Re: [Announce] Amaya 10 .1-pre snapshot
Regis Boudin <[email protected]> Wed, 30 Apr 2008 20:05:26 +0100
| Newsgroups | gmane.comp.web.amaya.devel,gmane.comp.web.amaya.general |
|---|---|
| Message-ID | <1209582326.3258.8.camel@x40> |
Hi all, For information, I just built and am uploading the Debian package to experimental (wx2.8 is not available in unstable). Attached are the 2 patches I've had for over a year now, and still would like to see merged in CVS at some point. Is there any chance to have them tested, and if they fail, please tell me how and possibly give me a build log, so I can actually fix it. As before, raptor goes on top of rdf_conf_in_conf, and just having rdf_conf_in_conf applied would be a very good first step. Regis On Tue, 2008-04-29 at 18:37 +0200, Irene Vatton wrote: > Hi, > > A snapshot, Amaya 10.1-pre, is now available. > > Major changes are: > o A new version of the formatting engine > o Improvement of MathML editing > o Possibility to enter a complex CSS selector when a > Style rule is created > o Extension of templates to apply to all XML languages > o Support of the HTML + RDFa profile > o Several other bug fixes >
rdf_conf_in_conf.diff
(text/x-patch, 6.1 KB)
Index: amaya-10.0.1/Makefile.in
===================================================================
--- amaya-10.0.1.orig/Makefile.in 2008-03-02 22:04:21.000000000 +0000
+++ amaya-10.0.1/Makefile.in 2008-03-02 22:04:33.000000000 +0000
@@ -11,11 +11,10 @@
include Options
LIBWWW = libwww
-REDLAND = redland
#MKP: adding davlib
SUBDIRS = @SUBDIRS@ tools thotlib batch annotlib @DAVDIR@ amaya
-EXTRA_SUBDIRS= $(LIBWWW) $(REDLAND) $(WX_BUILDDIR) $(GL_BUILDDIR)
+EXTRA_SUBDIRS= redland $(LIBWWW) $(WX_BUILDDIR) $(GL_BUILDDIR)
prefix = @prefix@
exec_prefix = @exec_prefix@
@@ -24,7 +23,7 @@
srcdir = $(THOTDIR)
-default : tools gl @BUILDWXWIDGETS@ thotlib batch amaya_prog print_prog
+default : tools gl @BUILDWXWIDGETS@ @BUILDREDLAND@ thotlib batch amaya_prog print_prog
amaya : tools thotlib amaya_prog print_prog
@@ -255,53 +254,8 @@
#
# Rules to build the redland RDF library
#
-
-# Previous rule used to link and compile expat inside redland... to be removed
-# after checking all is ok in all the platforms
-# we're using the expat from inside libwww
-# @(if test ! -e "$(THOTDIR)/../$(REDLAND)/expat" ; then \
-# libwwwdir="$(THOTDIR)/../$(LIBWWW)" ; \
-# echo $$libwwwdir ; \
-# $(LN_S) "$$libwwwdir/modules/expat" "$(THOTDIR)/../$(REDLAND)/expat" ; \
-# fi)
-
-# Because redland 0.9.14 forces the check on a glib-2.0 function, we remove the
-# results of the configure to force its non use.
-
-redland_config: @MAKEREDLAND@ force
- @(if test ! -e "$(THOTDIR)/../$(REDLAND)" ; then \
- $(ECHO) "Error redland dir not found at $(THOTDIR)/$(REDLAND)" ; \
- fi)
- @(if test ! -d "$(REDLAND)" ; then \
- $(MKDIR) $(REDLAND) ; \
- fi)
- @(localdir=`pwd` ; redlanddir="$$localdir/../../$(REDLAND)" ; \
- cd $(REDLAND) ; unset LANG; \
- if test ! -f Makefile -o ! -f redland-src-config ; then \
- CPPFLAGS="-I$$localdir/../../$(LIBWWW)/modules/expat/lib" \
- LDFLAGS="-L$$localdir/libwww/modules/expat -L$$localdir/libwww/modules/expat/.libs" \
- $$redlanddir/configure \
- --build=@build_alias@ --host=@host_alias@ --target=@target_alias@ \
- --disable-shared \
- --disable-nfc-check \
- --without-bdb \
- --with-raptor=internal \
- --with-xml-parser=expat \
- --with-www=none \
- --without-libwww \
- --without-openssl-digests \
- --without-mysql ;\
- $(ECHO) "redland is configured" ; \
- fi)
-
-
-# the -DLIBRDF_INTERNAL=1 is needed if we're going to pass our own CFLAGS.
-redland_make: @MAKEREDLAND@ force
- @(cd $(REDLAND) ; \
- $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) -DLIBRDF_INTERNAL=1"; \
- )
-
-redland: @MAKEREDLAND@ redland_config redland_make
+redland: force
+ $(MAKE) -C redland
@($(ECHO) "redland is installed")
#
Index: amaya-10.0.1/configure.in
===================================================================
--- amaya-10.0.1.orig/configure.in 2008-03-02 22:04:27.000000000 +0000
+++ amaya-10.0.1/configure.in 2008-03-02 22:04:33.000000000 +0000
@@ -755,7 +755,6 @@
-a ! -d "$srcdir/../redland" ; then
AC_MSG_WARN(Redland source dir not found !!)
AC_MSG_WARN(Disabling redland build !)
- MAKEREDLAND=['#']
with_redland="no"
fi
@@ -765,13 +764,36 @@
if test "$with_redland" = "yes" ; then
AMAYA_ANNOT_OPTIONS="$AMAYA_ANNOT_OPTIONS -DAM_REDLAND"
if test "$with_system_redland" != "yes" ; then
- AMAYA_RAPTOR_SRC="amaya_comp_redland"
AMAYA_ANNOT_OPTIONS="$AMAYA_ANNOT_OPTIONS -I\$(THOTDIR)/../redland/librdf -I\$(THOTDIR)/../redland/raptor "
AMAYA_RAPTOR_LIBS="../redland/librdf/.libs/librdf.a ../redland/raptor/.libs/libraptor.a"
AMAYA_RAPTOR_INCLUDES="-I\$(THOTDIR)/../redland/librdf -I\$(THOTDIR)/../redland/raptor"
+ BUILDREDLAND="redland"
+ CURRENTPATH="`pwd`"
+ mkdir $BUILDREDLAND
+ cd $BUILDREDLAND &&
+ CC="$CC" CXX="$CXX" \
+ CPPFLAGS="-I$CURRENTPATH/../../libwww/modules/expat/lib" \
+ LDFLAGS="-L$CURRENTPATH/libwww/modules/expat -L$CURRENTPATH/libwww/modules/expat/.libs" \
+ ../../../redland/configure \
+ --build=$build_alias --host=$host_alias --target=$target_alias \
+ --disable-shared \
+ --without-bdb \
+ --enable-parsers=raptor \
+ --with-raptor=internal \
+ --with-xml-parser=expat \
+ --with-www=none \
+ --without-libwww \
+ --without-openssl-digests \
+ --without-mysql
+ $ECHO "redland is configured"
+ $ECHO "Patching the raptor_config.h file to avoid including glib2-0"
+ $CP raptor/raptor_config.h raptor/raptor_config.h.orig
+ $SED "s/\(\#define HAVE_G_UTF8_NORMALIZE 1\)/\/* \1 *\//" \
+ raptor/raptor_config.h.orig > raptor/raptor_config.h
+ $RM raptor/raptor_config.h.orig
+ $ECHO "Raptor is patched"
+ cd ..
else
- MAKEREDLAND=['#']
- AMAYA_RAPTOR_SRC=
redland_includes=`$REDLAND_CONFIG --cflags`
redland_libs=`$REDLAND_CONFIG --libs`
AMAYA_ANNOT_OPTIONS="$AMAYA_ANNOT_OPTIONS"
@@ -785,6 +807,8 @@
ANNOTLIB_COMPILE_BM=['#']
+AC_SUBST(BUILDREDLAND)
+
###################End of Annotations Support####################
@@ -1003,9 +1027,7 @@
AC_SUBST(MAKE_LIBWWW_RDF_PARSER)
AC_SUBST(LIBWWW_RDF_PARSER)
-AC_SUBST(MAKEREDLAND)
#AC_SUBST(ANNOTLIB_COMPILE_BM)
-AC_SUBST(AMAYA_RAPTOR_SRC)
AC_SUBST(AMAYA_RAPTOR_LIBS)
AC_SUBST(AMAYA_RAPTOR_INCLUDES)
Index: amaya-10.0.1/amaya/Makefile.in
===================================================================
--- amaya-10.0.1.orig/amaya/Makefile.in 2008-03-02 22:04:21.000000000 +0000
+++ amaya-10.0.1/amaya/Makefile.in 2008-03-02 22:04:33.000000000 +0000
@@ -91,8 +91,8 @@
../redland/librdf/.libs/librdf.a \
../redland/raptor/.libs/libraptor.a \
-amaya_comp_redland: @MAKEREDLAND@ force
- @(cd .. ; $(MAKE) redland CC="$(CC)" CFLAGS="-O2")
+redland:
+ $(MAKE) -C ../redland
.depends depend : ../tools/mkdep/mkdep
../tools/mkdep/mkdep -relative -vpath $(VPATH) $(INCLUDES) $(VPATH)/*.c > .depends
@@ -144,7 +144,7 @@
$(AMAYA_ANNOT_OBJ) $(AMAYA_DAV_OBJ) $(AMAYA_TEMPLATES_OBJ)
AMAYA_SRC= \
- $(AMAYA_LIBWWW_SRC) @AMAYA_RAPTOR_SRC@ \
+ $(AMAYA_LIBWWW_SRC) \
$(AMAYA_MATH_SRC) $(AMAYA_SVG_SRC) \
$(AMAYA_ANNOT_SRC) $(AMAYA_DAV_SRC) $(AMAYA_TEMPLATES_SRC)
raptor.diff
(text/x-patch, 7.9 KB)
Index: amaya-10.0.1/Makefile.in
===================================================================
--- amaya-10.0.1.orig/Makefile.in 2008-03-02 22:04:33.000000000 +0000
+++ amaya-10.0.1/Makefile.in 2008-03-02 22:04:38.000000000 +0000
@@ -14,7 +14,7 @@
#MKP: adding davlib
SUBDIRS = @SUBDIRS@ tools thotlib batch annotlib @DAVDIR@ amaya
-EXTRA_SUBDIRS= redland $(LIBWWW) $(WX_BUILDDIR) $(GL_BUILDDIR)
+EXTRA_SUBDIRS= raptor $(LIBWWW) $(WX_BUILDDIR) $(GL_BUILDDIR)
prefix = @prefix@
exec_prefix = @exec_prefix@
@@ -23,7 +23,7 @@
srcdir = $(THOTDIR)
-default : tools gl @BUILDWXWIDGETS@ @BUILDREDLAND@ thotlib batch amaya_prog print_prog
+default : tools gl @BUILDWXWIDGETS@ @BUILDRAPTOR@ thotlib batch amaya_prog print_prog
amaya : tools thotlib amaya_prog print_prog
@@ -252,11 +252,11 @@
@($(ECHO) "libwww is installed")
#
-# Rules to build the redland RDF library
+# Rules to build the raptor RDF library
#
-redland: force
- $(MAKE) -C redland
- @($(ECHO) "redland is installed")
+raptor: force
+ $(MAKE) -C raptor
+ @($(ECHO) "raptor is installed")
#
# Rules to rebuild the libjpeg package
Index: amaya-10.0.1/configure.in
===================================================================
--- amaya-10.0.1.orig/configure.in 2008-03-02 22:04:33.000000000 +0000
+++ amaya-10.0.1/configure.in 2008-03-02 22:04:38.000000000 +0000
@@ -693,113 +693,78 @@
[with_annot="yes"])
-#annot need Redland
+#annot need Raptor
if test "$with_annot" = "yes" ; then
- with_redland="yes"
+ with_raptor="yes"
else
- with_redland="no"
+ with_raptor="no"
fi
-AC_ARG_ENABLE([system-redland],
- AC_HELP_STRING([--enable-system-redland],[try the redland RDF system library]),
+AC_ARG_ENABLE([system-raptor],
+ AC_HELP_STRING([--enable-system-raptor],[try the raptor RDF system library]),
[case "${enableval}" in
- yes) with_system_redland="yes";;
- no) with_system_redland="no" ;;
- *) AC_MSG_ERROR(bad value ${enableval} for --enable-system-redland) ;;
+ yes) with_system_raptor="yes";;
+ no) with_system_raptor="no" ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-system-raptor) ;;
esac],
- [with_system_redland="no"])
+ [with_system_raptor="no"])
-#If Redland is needed and we are asked
+#If Raptor is needed and we are asked
#to use the system library, check if is present
-if test "$with_redland" = "yes" -a "$with_system_redland" = "yes" ; then
- # check to see if we have a redland library
- AC_PATH_PROG([REDLAND_CONFIG],[redland-config])
-
- if test "$REDLAND_CONFIG" = "" ; then
- AC_MSG_WARN(Not using system-provided redland library)
- with_system_redland="no"
- else
-
- AC_MSG_CHECKING(system redland version)
- redland_min_version=0.9.16
- REDLAND_VERSION=`$REDLAND_CONFIG --version`
- redland_version_dec=`echo $REDLAND_VERSION | awk -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'`
- redland_min_version_dec=`echo $redland_min_version | awk -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'`
- if test $redland_version_dec -lt $redland_min_version_dec; then
- AC_MSG_RESULT(no - found version $REDLAND_VERSION and minimal version is $redland_min_version)
- with_system_redland="no"
- else
- AC_MSG_RESULT(yes - found version $REDLAND_VERSION)
- AC_MSG_CHECKING(checking for redland headers)
- dnl We should use awk here and remove the -I from the following line
- dnl REDLAND_HEADERS=`$REDLAND_CONFIG --cflags`
- REDLAND_HEADERS=""
- if test -e "/usr/include/redland.h" ; then
- REDLAND_HEADERS="/usr/include";
- elif test -e "/usr/local/include/redland.h" ; then
- REDLAND_HEADERS="/usr/local/include";
- fi
- if test $REDLAND_HEADERS != ""; then
- AC_MSG_RESULT(yes - have development version)
- else
- AC_MSG_RESULT(no - no development version)
- with_system_redland="no"
- fi
- fi
+if test "$with_raptor" = "yes" -a "$with_system_raptor" = "yes" ; then
+ # check to see if we have a raptor library
+ AC_PATH_PROG([RAPTOR_CONFIG],[raptor-config])
+
+ if test "$RAPTOR_CONFIG" = "" ; then
+ AC_MSG_WARN(Not using system-provided Raptor library)
+ with_system_raptor="no"
fi
fi
#if we use the builtin library,
#check it is present
-if test "$with_redland" = "yes" -a "$with_system_redland" != "yes" \
- -a ! -d "$srcdir/../redland" ; then
- AC_MSG_WARN(Redland source dir not found !!)
- AC_MSG_WARN(Disabling redland build !)
- with_redland="no"
+if test "$with_raptor" = "yes" -a "$with_system_raptor" != "yes" \
+ -a ! -d "$srcdir/../redland/raptor" ; then
+ AC_MSG_WARN(Raptor source dir not found !!)
+ AC_MSG_WARN(Disabling raptor build !)
+ with_raptor="no"
fi
-#At this point, we know everything about Redland,
+#At this point, we know everything about Raptor,
#so either set the variables we will need later,
#or disable Annotations
-if test "$with_redland" = "yes" ; then
- AMAYA_ANNOT_OPTIONS="$AMAYA_ANNOT_OPTIONS -DAM_REDLAND"
- if test "$with_system_redland" != "yes" ; then
- AMAYA_ANNOT_OPTIONS="$AMAYA_ANNOT_OPTIONS -I\$(THOTDIR)/../redland/librdf -I\$(THOTDIR)/../redland/raptor "
- AMAYA_RAPTOR_LIBS="../redland/librdf/.libs/librdf.a ../redland/raptor/.libs/libraptor.a"
- AMAYA_RAPTOR_INCLUDES="-I\$(THOTDIR)/../redland/librdf -I\$(THOTDIR)/../redland/raptor"
- BUILDREDLAND="redland"
+if test "$with_raptor" = "yes" ; then
+ if test "$with_system_raptor" != "yes" ; then
+ AMAYA_ANNOT_OPTIONS="$AMAYA_ANNOT_OPTIONS -I\$(THOTDIR)/../redland/raptor "
+ AMAYA_RAPTOR_LIBS="../redland/raptor/.libs/libraptor.a"
+ AMAYA_RAPTOR_INCLUDES="-I\$(THOTDIR)/../redland/raptor"
+ BUILDRAPTOR="raptor"
CURRENTPATH="`pwd`"
- mkdir $BUILDREDLAND
- cd $BUILDREDLAND &&
+ mkdir $BUILDRAPTOR
+ cd $BUILDRAPTOR &&
CC="$CC" CXX="$CXX" \
CPPFLAGS="-I$CURRENTPATH/../../libwww/modules/expat/lib" \
LDFLAGS="-L$CURRENTPATH/libwww/modules/expat -L$CURRENTPATH/libwww/modules/expat/.libs" \
- ../../../redland/configure \
+ ../../../redland/raptor/configure \
--build=$build_alias --host=$host_alias --target=$target_alias \
--disable-shared \
- --without-bdb \
- --enable-parsers=raptor \
- --with-raptor=internal \
--with-xml-parser=expat \
- --with-www=none \
- --without-libwww \
- --without-openssl-digests \
- --without-mysql
- $ECHO "redland is configured"
+ --with-www=none
+ $ECHO "Raptor is configured"
$ECHO "Patching the raptor_config.h file to avoid including glib2-0"
- $CP raptor/raptor_config.h raptor/raptor_config.h.orig
+ $CP raptor_config.h raptor_config.h.orig
$SED "s/\(\#define HAVE_G_UTF8_NORMALIZE 1\)/\/* \1 *\//" \
- raptor/raptor_config.h.orig > raptor/raptor_config.h
- $RM raptor/raptor_config.h.orig
+ raptor_config.h.orig > raptor_config.h
+ $RM raptor_config.h.orig
$ECHO "Raptor is patched"
cd ..
else
- redland_includes=`$REDLAND_CONFIG --cflags`
- redland_libs=`$REDLAND_CONFIG --libs`
+ raptor_includes=`$RAPTOR_CONFIG --cflags`
+ raptor_libs=`$RAPTOR_CONFIG --libs`
AMAYA_ANNOT_OPTIONS="$AMAYA_ANNOT_OPTIONS"
- AMAYA_ANNOT_INCLUDES="$redland_includes -I\$(THOTDIR)/thotlib/include"
- AMAYA_ANNOT_EXTRA_LIBS="$redland_libs"
- AMAYA_RAPTOR_INCLUDES="$redland_includes"
+ AMAYA_ANNOT_INCLUDES="$raptor_includes -I\$(THOTDIR)/thotlib/include"
+ AMAYA_ANNOT_EXTRA_LIBS="$raptor_libs"
+ AMAYA_RAPTOR_INCLUDES="$raptor_includes"
fi
else
with_annot="no"
@@ -807,7 +772,15 @@
ANNOTLIB_COMPILE_BM=['#']
-AC_SUBST(BUILDREDLAND)
+AC_SUBST(BUILDRAPTOR)
+
+AC_SUBST(AMAYA_ANNOT_OPTIONS)
+AC_SUBST(AMAYA_ANNOT_INCLUDES)
+AC_SUBST(AMAYA_ANNOT_EXTRA_LIBS)
+
+AC_SUBST(ANNOTLIB_COMPILE_BM)
+AC_SUBST(AMAYA_RAPTOR_LIBS)
+AC_SUBST(AMAYA_RAPTOR_INCLUDES)
###################End of Annotations Support####################
@@ -1014,9 +987,6 @@
AC_SUBST(THOT_OPTIONS)
AC_SUBST(AMAYA_OPTIONS)
-AC_SUBST(AMAYA_ANNOT_OPTIONS)
-AC_SUBST(AMAYA_ANNOT_INCLUDES)
-AC_SUBST(AMAYA_ANNOT_EXTRA_LIBS)
AC_SUBST(IMGLIBS)
AC_SUBST(EXTRA_INCLUDES)
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBIGML2VE17sLEtWVoRAsq9AKCgDd30s+sxBncm1rCog5kxV7+35ACeOzez xgUBLyCbU/orgF4IdfxjU+Y= =WIXf -----END PGP SIGNATURE-----