Changeset: 5c619a8c0f4c for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=5c619a8c0f4c
Modified Files:
configure.ag
geom/monetdb5/50_geom.mal
geom/monetdb5/geom.mx
monetdb5/VERSION
monetdb5/mal/mal_authorize.c
monetdb5/modules/atoms/blob.c
monetdb5/modules/atoms/blob.h
monetdb5/modules/mal/Tests/inspect05.stable.out
monetdb5/modules/mal/Tests/inspect05.stable.out.Windows
Branch: headless
Log Message:
Merge with default branch.
Including the contentious MAL scenario changes.
diffs (truncated from 1416 to 300 lines):
diff --git a/MonetDB.spec b/MonetDB.spec
--- a/MonetDB.spec
+++ b/MonetDB.spec
@@ -528,18 +528,19 @@
%build
%{configure} \
- --enable-strict=no \
- --enable-assert=no \
- --enable-debug=no \
- --enable-optimize=yes \
- --enable-bits=%{bits} \
- --enable-java=no \
+ --enable-strict=no \
+ --enable-assert=no \
+ --enable-debug=no \
+ --enable-optimize=yes \
+ --enable-bits=%{bits} \
+ --enable-jdbc=no \
+ --enable-merocontrol=no \
--enable-rdf=no \
--enable-fits=no \
--with-valgrind=no \
--with-mseed=no \
- %{?oid32:--enable-oid32} \
- %{?comp_cc:CC="%{comp_cc}"} \
+ %{?oid32:--enable-oid32} \
+ %{?comp_cc:CC="%{comp_cc}"} \
%{?_with_netcdf} %{?_without_netcdf}
make
@@ -587,7 +588,7 @@
* Thu Apr 14 2011 Sjoerd Mullender <[email protected]> - 11.3.1-20110414
- gdk: Fixed bugs in antiselect which gave the incorrect result when upper
- and lower bount were equal. This bug could be triggered by the SQL
+ and lower bound were equal. This bug could be triggered by the SQL
query SELECT * FROM t WHERE x NOT BETWEEN y AND y.
* Thu Apr 14 2011 Sjoerd Mullender <[email protected]> - 11.3.1-20110414
diff --git a/clients/mapiclient/mclient.1 b/clients/mapiclient/mclient.1
--- a/clients/mapiclient/mclient.1
+++ b/clients/mapiclient/mclient.1
@@ -6,8 +6,10 @@
[
.I options
] [
+.I file or database
+[
.I file
-\&... ]
+\&... ] ]
.br
.B mclient
.B \-\-help
@@ -24,7 +26,7 @@
.BI \-\-statement= query
.RB ( \-s
.IR query)
-option is given, the query is executed.
+option is given, the query is executed as if it were given in a file.
If any files are listed after the options, queries are read from the
files and executed.
In either case,
@@ -66,20 +68,20 @@
.I .monetdb
file. If the environment variable
.B DOTMONETDBFILE
-is set, it reads the file pointed to by that variable. When unset,
+is set, it reads the file pointed to by that variable instead. When unset,
.I mclient
searches for a
.I .monetdb
file in the current working directory, and if that doesn't exist, in the
current user's home directory. This file can contain defaults for the
flags
-.BR user ", " password " and " language .
+.BR user ", " password ", " language ", " save_history ", " format " and "
width .
For example, an entry in a
.I .monetdb
file that sets the default language for
.I mclient
-to sql looks like this:
-.IR "language=sql" .
+to mal looks like this:
+.IR "language=mal" .
To disable reading the
.I .monetdb
file, set the variable
@@ -107,11 +109,16 @@
option, give language-specific help and continue.
.TP
\fB\-\-database=\fP\fIdatabase\fP (\fB\-d\fP \fIdatabase\fP)
-Specify the name of the database to connect to.
+Specify the name of the database to connect to. The \fB-d\fP can be
+omitted if an equally named file does not exist in the current
+directory. As such, the first non-option argument will be interpreted
+as database to connect to if the argument does not exist as file.
.TP
\fB\-\-host=\fP\fIhostname\fP (\fB\-h\fP \fIhostname\fP)
Specify the name of the host on which the server runs (default:
-localhost).
+localhost). When the argument starts with a forward slash (/), host is
+assumed to be the directory where the UNIX sockets are stored for
+platforms where these are supported.
.TP
\fB\-\-port=\fP\fIportnr\fP (\fB\-p\fP \fIportnr\fP)
Specify the portnumber of the server (default: 50000).
@@ -120,11 +127,13 @@
After executing the queries from the
.B \-\-statement
option and any file specified on the command
-line, read queries from standard input.
+line, read queries from standard input. When this option is set, all
+files are read line by line, like if it were entered on mclient's
+console.
.TP
\fB\-\-user\fP\fB=\fP\fIuser\fP (\fB\-u\fP \fIuser\fP)
Specify the user to connect as. If this flag is absent, the client will
-ask for a user name. Note that
+ask for a user name, unless a default was found in .monetdb file. Note that
.I user
must follow immediately after the option.
.TP
diff --git a/clients/mapilib/monetdb-mapi.pc.in
b/clients/mapilib/monetdb-mapi.pc.in
--- a/clients/mapilib/monetdb-mapi.pc.in
+++ b/clients/mapilib/monetdb-mapi.pc.in
@@ -6,6 +6,7 @@
Name: monetdb-mapi
Description: MonetDB MAPI C-client libary
Version: @PACKAGE_VERSION@
+Requires: monetdb-stream openssl
-Libs: -L${libdir} -lmapi
+Libs: -L${libdir} -lmapi @SOCKET_LIBS@
Cflags: -I${includedir}/monetdb
diff --git a/common/stream/monetdb-stream.pc.in
b/common/stream/monetdb-stream.pc.in
--- a/common/stream/monetdb-stream.pc.in
+++ b/common/stream/monetdb-stream.pc.in
@@ -8,5 +8,5 @@
Version: @PACKAGE_VERSION@
Requires: @PKG_CURL@ @PKG_ZLIB@
-Libs: -L${libdir} -lstream
+Libs: -L${libdir} -lstream @SOCKET_LIBS@
Cflags: -I${includedir}/monetdb
diff --git a/configure.ag b/configure.ag
--- a/configure.ag
+++ b/configure.ag
@@ -236,35 +236,23 @@
AC_DEFINE([HAVE_CONSOLE], 1, [If the console should be used])
fi
-AC_ARG_ENABLE(java,
- AS_HELP_STRING([--enable-java], [(try to) build Java components]),
- enable_java="$enableval",
- enable_java=auto)
+AC_ARG_ENABLE(jdbc,
+ AS_HELP_STRING([--enable-jdbc], [build the MonetDB JDBC driver]),
+ enable_jdbc="$enableval",
+ enable_jdbc=auto)
+case $enable_jdbc in
+ yes|auto) enable_jdbc=$enable_jdbc;;
+ *) enable_jdbc=no;;
+esac
-if test "x$enable_java" != xno; then
- AC_ARG_ENABLE(jdbc,
- AS_HELP_STRING([--enable-jdbc], [build the MonetDB JDBC
driver]),
- enable_jdbc="$enableval",
- enable_jdbc=auto)
- case $enable_jdbc in
- yes|auto) enable_jdbc=$enable_jdbc;;
- *) enable_jdbc=no;;
- esac
-
- AC_ARG_ENABLE(merocontrol,
- AS_HELP_STRING([--enable-merocontrol], [build the Merovingian
control driver]),
- enable_control="$enableval",
- enable_control=auto)
- case $enable_control in
- yes|auto) enable_control=$enable_control;;
- *) enable_control=no;;
- esac
-else
- enable_jdbc=no
- enable_control=no
- disable_jdbc="(as java is disabled)"
- disable_control="(as java is disabled)"
-fi
+AC_ARG_ENABLE(merocontrol,
+ AS_HELP_STRING([--enable-merocontrol], [build the Merovingian control
driver]),
+ enable_control="$enableval",
+ enable_control=auto)
+case $enable_control in
+ yes|auto) enable_control=$enable_control;;
+ *) enable_control=no;;
+esac
dnl RIPEMD160 is patent free, academic and European, but unfortunately
dnl can't use it by default, as that would exclude JDBC usage (Java
@@ -290,6 +278,35 @@
AC_ENABLE_SHARED
AM_CONDITIONAL(CROSS_COMPILING, test x$cross_compiling = xyes)
+dnl logs usually end up in /var/log
+logdir='${localstatedir}/log/monetdb'
+AC_ARG_WITH(logdir,
+ [--with-logdir=DIR Where to put log files
(LOCALSTATEDIR/log/monetdb/)],
+ [case "$withval" in
+ yes|no|auto)
+ AC_MSG_WARN([--with-logdir called without argument -
will use default])
+ ;;
+ *)
+ logdir="$withval"
+ ;;
+ esac]
+)
+
+dnl pidfiles usually end up in /var/run
+rundir='${localstatedir}/run/monetdb'
+AC_ARG_WITH(rundir,
+ [--with-rundir=DIR Where to put pid files
(LOCALSTATEDIR/run/monetdb/)],
+ [case "$withval" in
+ yes|no|auto)
+ AC_MSG_WARN([--with-rundir called without argument -
will use default])
+ ;;
+ *)
+ rundir="$withval"
+ ;;
+ esac]
+)
+
+
dnl checks for programs
AC_LANG([C])
@@ -1722,15 +1739,11 @@
JAVAC="javac"
JAR="jar"
JAVADOC="javadoc"
-if test "x$enable_java" != xno; then
- AC_ARG_WITH(java,
- AS_HELP_STRING([--with-java=DIR],
- [java, javac, jar and javadoc are installed in
DIR/bin]),
- have_java="$withval",
- have_java="$enable_java")
-else
- have_java=no
-fi
+AC_ARG_WITH(java,
+ AS_HELP_STRING([--with-java=DIR],
+ [java, javac, jar and javadoc are installed in DIR/bin]),
+ have_java="$withval",
+ have_java=auto)
JPATH=$PATH
case $have_java in
yes|no|auto)
@@ -1794,6 +1807,12 @@
AC_MSG_ERROR([MonetDB JDBC requires ant and Java])
;;
no-*)
+ enable_jdbc=no
+ if test x$ANT = xno ; then
+ disable_jdbc="(ant is required to build MonetDB JDBC)"
+ else
+ disable_jdbc="(Java is required to build MonetDB JDBC)"
+ fi
;;
*)
req_java_ver_min=1.5 # >= $req_java_ver_min required
@@ -1804,7 +1823,8 @@
if test "x$enable_jdbc" = xyes; then
AC_MSG_ERROR([MonetDB JDBC requires ant and Java >=
$req_java_ver_min, but < $req_java_ver_max.])
else
- AC_MSG_WARN([Cannot build MonetDB JDBC as it requires
ant and Java >= $req_java_ver_min, but < $req_java_ver_max.])
+ enable_jdbc=no
+ disable_jdbc="(MonetDB JDBC currently requires Java >=
$req_java_ver_min, but < $req_java_ver_max to build)"
fi
fi
;;
@@ -1819,6 +1839,12 @@
AC_MSG_ERROR([Merovingian control requires ant and Java])
;;
no-*)
+ enable_control=no
+ if test x$ANT = xno ; then
+ disable_control="(ant is required to build merovingian Java
control library)"
+ else
+ disable_control="(Java is required to build merovingian Java
control library)"
+ fi
;;
*)
req_java_ver_min=1.5 # >= $req_java_ver_min required
@@ -1828,7 +1854,8 @@
if test "x$enable_control" = xyes; then
AC_MSG_ERROR([Merovingian control requires ant and Java
>= $req_java_ver_min.])
else
- AC_MSG_WARN([Cannot build Merovingian control as it
requires ant and Java >= $req_java_ver_min.])
+ enable_control=no
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list