Changeset: edd627b962b4 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=edd627b962b4
Modified Files:
HowToStart.rst
configure.ag
monetdb5/extras/Makefile.ag
monetdb5/extras/xml/05_xml.mal
monetdb5/extras/xml/Makefile.ag
monetdb5/extras/xml/Tests/All
monetdb5/extras/xml/Tests/batxml100.mal
monetdb5/extras/xml/Tests/xml100.mal
monetdb5/extras/xml/Tests/xml100.modules
monetdb5/extras/xml/Tests/xml100.stable.err
monetdb5/extras/xml/Tests/xml100.stable.out
monetdb5/extras/xml/batxml.mx
monetdb5/extras/xml/xml.mx
monetdb5/modules/atoms/Makefile.ag
monetdb5/modules/atoms/Tests/All
monetdb5/modules/atoms/Tests/batxml100.mal
monetdb5/modules/atoms/Tests/xml00.mal
monetdb5/modules/atoms/Tests/xml00.modules
monetdb5/modules/atoms/Tests/xml00.stable.err
monetdb5/modules/atoms/Tests/xml00.stable.out
monetdb5/modules/atoms/Tests/xml01.mal
monetdb5/modules/atoms/Tests/xml01.modules
monetdb5/modules/atoms/Tests/xml01.stable.err
monetdb5/modules/atoms/Tests/xml01.stable.out
monetdb5/modules/atoms/Tests/xml02.mal
monetdb5/modules/atoms/Tests/xml02.modules
monetdb5/modules/atoms/Tests/xml02.stable.err
monetdb5/modules/atoms/Tests/xml02.stable.out
monetdb5/modules/atoms/Tests/xml03.mal
monetdb5/modules/atoms/Tests/xml03.modules
monetdb5/modules/atoms/Tests/xml03.stable.err
monetdb5/modules/atoms/Tests/xml03.stable.out
monetdb5/modules/atoms/Tests/xml04.mal
monetdb5/modules/atoms/Tests/xml04.modules
monetdb5/modules/atoms/Tests/xml04.stable.err
monetdb5/modules/atoms/Tests/xml04.stable.out
monetdb5/modules/atoms/Tests/xml05.mal
monetdb5/modules/atoms/Tests/xml05.modules
monetdb5/modules/atoms/Tests/xml05.stable.err
monetdb5/modules/atoms/Tests/xml05.stable.out
monetdb5/modules/atoms/Tests/xml06.mal
monetdb5/modules/atoms/Tests/xml06.modules
monetdb5/modules/atoms/Tests/xml10.mal
monetdb5/modules/atoms/Tests/xml10.modules
monetdb5/modules/atoms/Tests/xml10.stable.err
monetdb5/modules/atoms/Tests/xml10.stable.out
monetdb5/modules/atoms/Tests/xml100.mal
monetdb5/modules/atoms/Tests/xml100.modules
monetdb5/modules/atoms/Tests/xml100.stable.err
monetdb5/modules/atoms/Tests/xml100.stable.out
monetdb5/modules/atoms/batxml.mx
monetdb5/modules/atoms/xml.mx
monetdb5/modules/mal/Tests/All
monetdb5/modules/mal/Tests/xml00.mal
monetdb5/modules/mal/Tests/xml00.modules
monetdb5/modules/mal/Tests/xml00.stable.err
monetdb5/modules/mal/Tests/xml00.stable.out
monetdb5/modules/mal/Tests/xml01.mal
monetdb5/modules/mal/Tests/xml01.modules
monetdb5/modules/mal/Tests/xml01.stable.err
monetdb5/modules/mal/Tests/xml01.stable.out
monetdb5/modules/mal/Tests/xml02.mal
monetdb5/modules/mal/Tests/xml02.modules
monetdb5/modules/mal/Tests/xml02.stable.err
monetdb5/modules/mal/Tests/xml02.stable.out
monetdb5/modules/mal/Tests/xml03.mal
monetdb5/modules/mal/Tests/xml03.modules
monetdb5/modules/mal/Tests/xml03.stable.err
monetdb5/modules/mal/Tests/xml03.stable.out
monetdb5/modules/mal/Tests/xml04.mal
monetdb5/modules/mal/Tests/xml04.modules
monetdb5/modules/mal/Tests/xml04.stable.err
monetdb5/modules/mal/Tests/xml04.stable.out
monetdb5/modules/mal/Tests/xml05.mal
monetdb5/modules/mal/Tests/xml05.modules
monetdb5/modules/mal/Tests/xml05.stable.err
monetdb5/modules/mal/Tests/xml05.stable.out
monetdb5/modules/mal/Tests/xml06.mal
monetdb5/modules/mal/Tests/xml06.modules
monetdb5/modules/mal/Tests/xml10.mal
monetdb5/modules/mal/Tests/xml10.modules
monetdb5/modules/mal/Tests/xml10.stable.err
monetdb5/modules/mal/Tests/xml10.stable.out
monetdb5/tools/Makefile.ag
sql/test/sql_xml/Tests/All
testing/Mtest.py.in
tools/mserver/monet_version.c.in
Branch: Mar2011
Log Message:
backport unconditonal xml module support in monetdb5
Make xml mandatory, thereby always needing libxml2.
diffs (truncated from 435 to 300 lines):
diff --git a/HowToStart.rst b/HowToStart.rst
--- a/HowToStart.rst
+++ b/HowToStart.rst
@@ -126,22 +126,23 @@
with MonetDB. Only for this step you need the C++ compiler.
libxml2
- The XML parsing library `libxml2`__ is only used by
- XML/XQuery (pathfinder). The library is used for:
+ The XML parsing library `libxml2`__ is used by monetdb5 and
+ pathfinder for xml functionality. The library is used for:
- (a) the XML Schema import feature of the Pathfinder compiler, and
- (b) the XML document loader (runtime/shredder.mx).
+ (a) the XML Schema import feature of the Pathfinder compiler, and
+ (b) the XML document loader (runtime/shredder.mx).
- If libxml2 is not available on your system, the Pathfinder
- compiler will be compiled without XML Schema support. The XML
- document loader will not be compiled at all in that case.
- Current Linux distributions all come with libxml2.
+ If libxml2 is not available on your system, the Pathfinder
+ compiler will be compiled without XML Schema support. The XML
+ document loader will not be compiled at all in that case. MonetDB5
+ cannot be compiled without libxml2.
+ Current Linux distributions all come with libxml2.
__ http://dev.monetdb.org/downloads/sources/
__ http://www.gnu.org/software/autoconf/
__ http://www.gnu.org/software/automake/
__ http://www.gnu.org/software/libtool/
-__ http://www.xmlsoft.org
+__ http://www.xmlsoft.org/
Space Requirements
~~~~~~~~~~~~~~~~~~
diff --git a/configure.ag b/configure.ag
--- a/configure.ag
+++ b/configure.ag
@@ -2341,6 +2341,14 @@
CPPFLAGS="$save_CPPFLAGS"
;;
esac
+case "$enable_monetdb5-$have_libxml2" in
+yes-no)
+ AC_MSG_ERROR([libxml2 library not found but required for MonetDB5])
+ ;;
+auto-no)
+ enable_monetdb5=no
+ ;;
+esac
have_raptor=no
if test "x$enable_rdf" != xno; then
diff --git a/monetdb5/extras/Makefile.ag b/monetdb5/extras/Makefile.ag
--- a/monetdb5/extras/Makefile.ag
+++ b/monetdb5/extras/Makefile.ag
@@ -15,5 +15,5 @@
# Copyright August 2008-2011 MonetDB B.V.
# All Rights Reserved.
-SUBDIRS = compiler crackers HAVE_LIBXML2?xml HAVE_RAPTOR?rdf
HAVE_SPHINXCLIENT?sphinx
+SUBDIRS = compiler crackers HAVE_RAPTOR?rdf HAVE_SPHINXCLIENT?sphinx
diff --git a/monetdb5/extras/xml/05_xml.mal b/monetdb5/extras/xml/05_xml.mal
deleted file mode 100644
--- a/monetdb5/extras/xml/05_xml.mal
+++ /dev/null
@@ -1,20 +0,0 @@
-# The contents of this file are subject to the MonetDB Public License
-# Version 1.1 (the "License"); you may not use this file except in
-# compliance with the License. You may obtain a copy of the License at
-# http://monetdb.cwi.nl/Legal/MonetDBLicense-1.1.html
-#
-# Software distributed under the License is distributed on an "AS IS"
-# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
-# License for the specific language governing rights and limitations
-# under the License.
-#
-# The Original Code is the MonetDB Database System.
-#
-# The Initial Developer of the Original Code is CWI.
-# Portions created by CWI are Copyright (C) 1997-July 2008 CWI.
-# Copyright August 2008-2011 MonetDB B.V.
-# All Rights Reserved.
-
-# This loads the MonetDB/XML module
-include xml;
-include batxml;
diff --git a/monetdb5/extras/xml/Makefile.ag b/monetdb5/extras/xml/Makefile.ag
deleted file mode 100644
--- a/monetdb5/extras/xml/Makefile.ag
+++ /dev/null
@@ -1,63 +0,0 @@
-# The contents of this file are subject to the MonetDB Public License
-# Version 1.1 (the "License"); you may not use this file except in
-# compliance with the License. You may obtain a copy of the License at
-# http://monetdb.cwi.nl/Legal/MonetDBLicense-1.1.html
-#
-# Software distributed under the License is distributed on an "AS IS"
-# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
-# License for the specific language governing rights and limitations
-# under the License.
-#
-# The Original Code is the MonetDB Database System.
-#
-# The Initial Developer of the Original Code is CWI.
-# Portions created by CWI are Copyright (C) 1997-July 2008 CWI.
-# Copyright August 2008-2011 MonetDB B.V.
-# All Rights Reserved.
-
-INCLUDES = ../../mal \
- ../../../common/options \
- ../../../gdk \
- ../../../common/stream \
- $(libxml2_CFLAGS)
-MTSAFE
-
-lib__xml = {
- MODULE
- DIR = libdir/monetdb5
- SOURCES = xml.mx
-
- LIBS = ../../tools/libmonetdb5 \
- ../../../gdk/libbat \
- $(MALLOC_LIBS) $(libxml2_LIBS)
-}
-
-headers_xml_autoload = {
- HEADERS = mal
- DIR = libdir/monetdb5/autoload
- SOURCES = 05_xml.mal
-}
-
-headers_xml_mal = {
- HEADERS = mal
- DIR = libdir/monetdb5
- SOURCES = xml.mx
-}
-
-lib_batxml = {
- MODULE
- DIR = libdir/monetdb5
- SEP = _
- SOURCES = batxml.mx
- LIBS = lib_xml ../../tools/libmonetdb5 \
- ../../../gdk/libbat \
- $(MATH_LIBS) $(MALLOC_LIBS) $(libxml2_LIBS)
-}
-
-headers_batxml_mal = {
- HEADERS = mal
- DIR = libdir/monetdb5
- SOURCES = batxml.mx
-}
-
-EXTRA_DIST_DIR = Tests
diff --git a/monetdb5/extras/xml/Tests/All b/monetdb5/extras/xml/Tests/All
deleted file mode 100644
--- a/monetdb5/extras/xml/Tests/All
+++ /dev/null
@@ -1,1 +0,0 @@
-HAVE_LIBXML2?xml100
diff --git a/monetdb5/modules/atoms/Makefile.ag
b/monetdb5/modules/atoms/Makefile.ag
--- a/monetdb5/modules/atoms/Makefile.ag
+++ b/monetdb5/modules/atoms/Makefile.ag
@@ -18,12 +18,14 @@
INCLUDES = ../../mal \
../../../common/options \
../../../common/stream \
- ../../../gdk
+ ../../../gdk \
+ $(libxml2_CFLAGS)
MTSAFE
lib_atoms = {
NOINST
SOURCES = \
+ batxml.mx \
blob.mx \
color.mx \
identifier.mx \
@@ -31,14 +33,24 @@
mtime.mx \
streams.mx \
str.mx \
- url.mx
+ url.mx \
+ xml.mx
}
headers_mal = {
HEADERS = mal
DIR = libdir/monetdb5
- SOURCES = str.mx blob.mx url.mx mtime.mx streams.mx inet.mx color.mx \
- identifier.mx
+ SOURCES = \
+ batxml.mx \
+ blob.mx \
+ color.mx \
+ identifier.mx \
+ inet.mx \
+ mtime.mx \
+ streams.mx \
+ str.mx \
+ url.mx \
+ xml.mx
}
EXTRA_DIST_DIR = Tests
diff --git a/monetdb5/modules/atoms/Tests/All b/monetdb5/modules/atoms/Tests/All
--- a/monetdb5/modules/atoms/Tests/All
+++ b/monetdb5/modules/atoms/Tests/All
@@ -5,3 +5,12 @@
time00
strmax
+
+xml00
+xml01
+xml02
+xml03
+xml04
+xml05
+xml10
+xml100
diff --git a/monetdb5/extras/xml/Tests/batxml100.mal
b/monetdb5/modules/atoms/Tests/batxml100.mal
rename from monetdb5/extras/xml/Tests/batxml100.mal
rename to monetdb5/modules/atoms/Tests/batxml100.mal
diff --git a/monetdb5/modules/mal/Tests/xml00.mal
b/monetdb5/modules/atoms/Tests/xml00.mal
rename from monetdb5/modules/mal/Tests/xml00.mal
rename to monetdb5/modules/atoms/Tests/xml00.mal
diff --git a/monetdb5/modules/mal/Tests/xml00.modules
b/monetdb5/modules/atoms/Tests/xml00.modules
rename from monetdb5/modules/mal/Tests/xml00.modules
rename to monetdb5/modules/atoms/Tests/xml00.modules
diff --git a/monetdb5/modules/mal/Tests/xml00.stable.err
b/monetdb5/modules/atoms/Tests/xml00.stable.err
rename from monetdb5/modules/mal/Tests/xml00.stable.err
rename to monetdb5/modules/atoms/Tests/xml00.stable.err
diff --git a/monetdb5/modules/mal/Tests/xml00.stable.out
b/monetdb5/modules/atoms/Tests/xml00.stable.out
rename from monetdb5/modules/mal/Tests/xml00.stable.out
rename to monetdb5/modules/atoms/Tests/xml00.stable.out
diff --git a/monetdb5/modules/mal/Tests/xml01.mal
b/monetdb5/modules/atoms/Tests/xml01.mal
rename from monetdb5/modules/mal/Tests/xml01.mal
rename to monetdb5/modules/atoms/Tests/xml01.mal
diff --git a/monetdb5/modules/mal/Tests/xml01.modules
b/monetdb5/modules/atoms/Tests/xml01.modules
rename from monetdb5/modules/mal/Tests/xml01.modules
rename to monetdb5/modules/atoms/Tests/xml01.modules
diff --git a/monetdb5/modules/mal/Tests/xml01.stable.err
b/monetdb5/modules/atoms/Tests/xml01.stable.err
rename from monetdb5/modules/mal/Tests/xml01.stable.err
rename to monetdb5/modules/atoms/Tests/xml01.stable.err
diff --git a/monetdb5/modules/mal/Tests/xml01.stable.out
b/monetdb5/modules/atoms/Tests/xml01.stable.out
rename from monetdb5/modules/mal/Tests/xml01.stable.out
rename to monetdb5/modules/atoms/Tests/xml01.stable.out
diff --git a/monetdb5/modules/mal/Tests/xml02.mal
b/monetdb5/modules/atoms/Tests/xml02.mal
rename from monetdb5/modules/mal/Tests/xml02.mal
rename to monetdb5/modules/atoms/Tests/xml02.mal
diff --git a/monetdb5/modules/mal/Tests/xml02.modules
b/monetdb5/modules/atoms/Tests/xml02.modules
rename from monetdb5/modules/mal/Tests/xml02.modules
rename to monetdb5/modules/atoms/Tests/xml02.modules
diff --git a/monetdb5/modules/mal/Tests/xml02.stable.err
b/monetdb5/modules/atoms/Tests/xml02.stable.err
rename from monetdb5/modules/mal/Tests/xml02.stable.err
rename to monetdb5/modules/atoms/Tests/xml02.stable.err
diff --git a/monetdb5/modules/mal/Tests/xml02.stable.out
b/monetdb5/modules/atoms/Tests/xml02.stable.out
rename from monetdb5/modules/mal/Tests/xml02.stable.out
rename to monetdb5/modules/atoms/Tests/xml02.stable.out
diff --git a/monetdb5/modules/mal/Tests/xml03.mal
b/monetdb5/modules/atoms/Tests/xml03.mal
rename from monetdb5/modules/mal/Tests/xml03.mal
rename to monetdb5/modules/atoms/Tests/xml03.mal
diff --git a/monetdb5/modules/mal/Tests/xml03.modules
b/monetdb5/modules/atoms/Tests/xml03.modules
rename from monetdb5/modules/mal/Tests/xml03.modules
rename to monetdb5/modules/atoms/Tests/xml03.modules
diff --git a/monetdb5/modules/mal/Tests/xml03.stable.err
b/monetdb5/modules/atoms/Tests/xml03.stable.err
rename from monetdb5/modules/mal/Tests/xml03.stable.err
rename to monetdb5/modules/atoms/Tests/xml03.stable.err
diff --git a/monetdb5/modules/mal/Tests/xml03.stable.out
b/monetdb5/modules/atoms/Tests/xml03.stable.out
rename from monetdb5/modules/mal/Tests/xml03.stable.out
rename to monetdb5/modules/atoms/Tests/xml03.stable.out
diff --git a/monetdb5/modules/mal/Tests/xml04.mal
b/monetdb5/modules/atoms/Tests/xml04.mal
rename from monetdb5/modules/mal/Tests/xml04.mal
rename to monetdb5/modules/atoms/Tests/xml04.mal
diff --git a/monetdb5/modules/mal/Tests/xml04.modules
b/monetdb5/modules/atoms/Tests/xml04.modules
rename from monetdb5/modules/mal/Tests/xml04.modules
rename to monetdb5/modules/atoms/Tests/xml04.modules
diff --git a/monetdb5/modules/mal/Tests/xml04.stable.err
b/monetdb5/modules/atoms/Tests/xml04.stable.err
rename from monetdb5/modules/mal/Tests/xml04.stable.err
rename to monetdb5/modules/atoms/Tests/xml04.stable.err
diff --git a/monetdb5/modules/mal/Tests/xml04.stable.out
b/monetdb5/modules/atoms/Tests/xml04.stable.out
rename from monetdb5/modules/mal/Tests/xml04.stable.out
rename to monetdb5/modules/atoms/Tests/xml04.stable.out
diff --git a/monetdb5/modules/mal/Tests/xml05.mal
b/monetdb5/modules/atoms/Tests/xml05.mal
rename from monetdb5/modules/mal/Tests/xml05.mal
rename to monetdb5/modules/atoms/Tests/xml05.mal
diff --git a/monetdb5/modules/mal/Tests/xml05.modules
b/monetdb5/modules/atoms/Tests/xml05.modules
rename from monetdb5/modules/mal/Tests/xml05.modules
rename to monetdb5/modules/atoms/Tests/xml05.modules
diff --git a/monetdb5/modules/mal/Tests/xml05.stable.err
b/monetdb5/modules/atoms/Tests/xml05.stable.err
rename from monetdb5/modules/mal/Tests/xml05.stable.err
rename to monetdb5/modules/atoms/Tests/xml05.stable.err
diff --git a/monetdb5/modules/mal/Tests/xml05.stable.out
b/monetdb5/modules/atoms/Tests/xml05.stable.out
rename from monetdb5/modules/mal/Tests/xml05.stable.out
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list