[Libreoffice-commits] .: redland/raptor

Thorsten Behrens thorsten at kemper.freedesktop.org
Wed Jun 8 07:52:29 PDT 2011


 redland/raptor/raptor-1.4.18.libxml.patch  |  110 ++++++++++++++++++++++++++++-
 redland/raptor/raptor-1.4.18.libxslt.patch |  109 +++++++++++++++++++++++++++-
 2 files changed, 213 insertions(+), 6 deletions(-)

New commits:
commit bcd7b3730e989e54c97fd91fbd416dbb49d00fcd
Author: William Lachance <wrlach at gmail.com>
Date:   Wed Jun 8 16:48:53 2011 +0200

    Fix raptor to not use xml2-config on Mac
    
    Christian suggested modifying the configure script not to use
    xml2-config/xslt-config at all. Here's a patch which does exactly
    that. I'm not exactly thrilled by the size/complexity of this patch
    for what it does, but at the same time it does seem a bit crazy for
    LO not to build just because libxml is installed in MacPorts (which
    is not uncommon: it's a dependency of ImageMagick for instance).

diff --git a/redland/raptor/raptor-1.4.18.libxml.patch b/redland/raptor/raptor-1.4.18.libxml.patch
index d5627cd..59e5ceb 100644
--- a/redland/raptor/raptor-1.4.18.libxml.patch
+++ b/redland/raptor/raptor-1.4.18.libxml.patch
@@ -1,6 +1,110 @@
---- misc/raptor-1.4.18/configure	2011-06-04 01:25:04.000000000 +0200
-+++ misc/build/raptor-1.4.18/configure	2011-06-04 01:24:57.000000000 +0200
-@@ -26447,8 +26447,8 @@
+--- misc/raptor-1.4.18/configure	2011-06-05 11:55:18.000000000 -0400
++++ misc/build/raptor-1.4.18/configure	2011-06-05 11:55:46.000000000 -0400
+@@ -23470,73 +23470,6 @@
+ LIBS="$oLIBS"
+ 
+ 
+-# Check whether --with-xml2-config was given.
+-if test "${with_xml2_config+set}" = set; then
+-  withval=$with_xml2_config; xml2_config="$withval"
+-else
+-  xml2_config=""
+-fi
+-
+-
+-if test "X$xml2_config" != "X" ; then
+-  { echo "$as_me:$LINENO: checking for $xml2_config" >&5
+-echo $ECHO_N "checking for $xml2_config... $ECHO_C" >&6; }
+-
+-  if test -f $xml2_config ; then
+-    XML_CONFIG=$xml2_config
+-    { echo "$as_me:$LINENO: result: yes" >&5
+-echo "${ECHO_T}yes" >&6; }
+-  else
+-    { echo "$as_me:$LINENO: result: no - searching PATH" >&5
+-echo "${ECHO_T}no - searching PATH" >&6; }
+-  fi
+-fi
+-if test "X$XML_CONFIG" = "X"; then
+-  for ac_prog in xml2-config
+-do
+-  # Extract the first word of "$ac_prog", so it can be a program name with args.
+-set dummy $ac_prog; ac_word=$2
+-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
+-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
+-if test "${ac_cv_prog_XML_CONFIG+set}" = set; then
+-  echo $ECHO_N "(cached) $ECHO_C" >&6
+-else
+-  if test -n "$XML_CONFIG"; then
+-  ac_cv_prog_XML_CONFIG="$XML_CONFIG" # Let the user override the test.
+-else
+-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+-for as_dir in $PATH
+-do
+-  IFS=$as_save_IFS
+-  test -z "$as_dir" && as_dir=.
+-  for ac_exec_ext in '' $ac_executable_extensions; do
+-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+-    ac_cv_prog_XML_CONFIG="$ac_prog"
+-    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+-    break 2
+-  fi
+-done
+-done
+-IFS=$as_save_IFS
+-
+-fi
+-fi
+-XML_CONFIG=$ac_cv_prog_XML_CONFIG
+-if test -n "$XML_CONFIG"; then
+-  { echo "$as_me:$LINENO: result: $XML_CONFIG" >&5
+-echo "${ECHO_T}$XML_CONFIG" >&6; }
+-else
+-  { echo "$as_me:$LINENO: result: no" >&5
+-echo "${ECHO_T}no" >&6; }
+-fi
+-
+-
+-  test -n "$XML_CONFIG" && break
+-done
+-
+-fi
+-
+-
+ # Check whether --with-xslt-config was given.
+ if test "${with_xslt_config+set}" = set; then
+   withval=$with_xslt_config; xslt_config="$withval"
+@@ -23719,8 +23652,8 @@
+ 
+ oCPPFLAGS="$CPPFLAGS"
+ oLIBS="$LIBS"
+-if test "X$XML_CONFIG" != X; then
+-  LIBS="$LIBS `$XML_CONFIG --libs`"
++if test 0; then
++  LIBS="$LIBS $LIBXML_LIBS"
+   { echo "$as_me:$LINENO: checking for xmlCreatePushParserCtxt" >&5
+ echo $ECHO_N "checking for xmlCreatePushParserCtxt... $ECHO_C" >&6; }
+ if test "${ac_cv_func_xmlCreatePushParserCtxt+set}" = set; then
+@@ -23813,18 +23746,6 @@
+   if test $have_xmlCreatePushParserCtxt = yes; then
+     have_libxml_lib=1
+     have_libxml=1
+-    CPPFLAGS="`$XML_CONFIG --cflags` $CPPFLAGS"
+-    LIBXML_VERSION=`$XML_CONFIG --version`
+-    libxml_version_dec=`echo $LIBXML_VERSION | awk -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'`
+-    libxml_min_version_dec=`echo $libxml_min_version | awk -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'`
+-    { echo "$as_me:$LINENO: result: yes - version $LIBXML_VERSION" >&5
+-echo "${ECHO_T}yes - version $LIBXML_VERSION" >&6; }
+-    if test $libxml_version_dec -lt $libxml_min_version_dec; then
+-       { echo "$as_me:$LINENO: WARNING: Using libxml $LIBXML_VERSION is unsupported - $libxml_min_version or newer required." >&5
+-echo "$as_me: WARNING: Using libxml $LIBXML_VERSION is unsupported - $libxml_min_version or newer required." >&2;}
+-       have_libxml_lib=0
+-       have_libxml=0
+-    fi
+   else
+     { echo "$as_me:$LINENO: result: no" >&5
+ echo "${ECHO_T}no" >&6; }
+@@ -26447,8 +26368,8 @@
      CPPFLAGS="-I$srcdir/libxml $CPPFLAGS"
      LIBS="$LIBS -Llibxml -llibxml"
    else
diff --git a/redland/raptor/raptor-1.4.18.libxslt.patch b/redland/raptor/raptor-1.4.18.libxslt.patch
index 488aa48..6dfffd9 100644
--- a/redland/raptor/raptor-1.4.18.libxslt.patch
+++ b/redland/raptor/raptor-1.4.18.libxslt.patch
@@ -1,6 +1,109 @@
---- misc/raptor-1.4.18/configure	2011-06-04 01:34:34.000000000 +0200
-+++ misc/build/raptor-1.4.18/configure	2011-06-04 01:34:08.000000000 +0200
-@@ -26474,8 +26474,8 @@
+--- misc/raptor-1.4.18/configure	2011-06-05 11:57:41.000000000 -0400
++++ misc/build/raptor-1.4.18/configure	2011-06-05 11:58:11.000000000 -0400
+@@ -23470,73 +23470,6 @@
+ LIBS="$oLIBS"
+ 
+ 
+-# Check whether --with-xslt-config was given.
+-if test "${with_xslt_config+set}" = set; then
+-  withval=$with_xslt_config; xslt_config="$withval"
+-else
+-  xslt_config=""
+-fi
+-
+-
+-if test "X$xslt_config" != "X" ; then
+-  { echo "$as_me:$LINENO: checking for $xslt_config" >&5
+-echo $ECHO_N "checking for $xslt_config... $ECHO_C" >&6; }
+-
+-  if test -f $xslt_config ; then
+-    XSLT_CONFIG=$xslt_config
+-    { echo "$as_me:$LINENO: result: yes" >&5
+-echo "${ECHO_T}yes" >&6; }
+-  else
+-    { echo "$as_me:$LINENO: result: no - searching PATH" >&5
+-echo "${ECHO_T}no - searching PATH" >&6; }
+-  fi
+-fi
+-if test "X$XSLT_CONFIG" = "X"; then
+-  for ac_prog in xslt-config
+-do
+-  # Extract the first word of "$ac_prog", so it can be a program name with args.
+-set dummy $ac_prog; ac_word=$2
+-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
+-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
+-if test "${ac_cv_prog_XSLT_CONFIG+set}" = set; then
+-  echo $ECHO_N "(cached) $ECHO_C" >&6
+-else
+-  if test -n "$XSLT_CONFIG"; then
+-  ac_cv_prog_XSLT_CONFIG="$XSLT_CONFIG" # Let the user override the test.
+-else
+-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+-for as_dir in $PATH
+-do
+-  IFS=$as_save_IFS
+-  test -z "$as_dir" && as_dir=.
+-  for ac_exec_ext in '' $ac_executable_extensions; do
+-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+-    ac_cv_prog_XSLT_CONFIG="$ac_prog"
+-    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+-    break 2
+-  fi
+-done
+-done
+-IFS=$as_save_IFS
+-
+-fi
+-fi
+-XSLT_CONFIG=$ac_cv_prog_XSLT_CONFIG
+-if test -n "$XSLT_CONFIG"; then
+-  { echo "$as_me:$LINENO: result: $XSLT_CONFIG" >&5
+-echo "${ECHO_T}$XSLT_CONFIG" >&6; }
+-else
+-  { echo "$as_me:$LINENO: result: no" >&5
+-echo "${ECHO_T}no" >&6; }
+-fi
+-
+-
+-  test -n "$XSLT_CONFIG" && break
+-done
+-
+-fi
+-
+-
+ # Check whether --with-curl-config was given.
+ if test "${with_curl_config+set}" = set; then
+   withval=$with_curl_config; curl_config="$withval"
+@@ -24702,8 +24635,8 @@
+ 
+ oCPPFLAGS="$CPPFLAGS"
+ oLIBS="$LIBS"
+-if test "X$XSLT_CONFIG" != X; then
+-  LIBS="$LIBS `$XSLT_CONFIG --libs`"
++if test 0; then
++  LIBS="$LIBS $LIBXSLT_LIBS"
+   { echo "$as_me:$LINENO: checking for xsltSaveResultToString" >&5
+ echo $ECHO_N "checking for xsltSaveResultToString... $ECHO_C" >&6; }
+ if test "${ac_cv_func_xsltSaveResultToString+set}" = set; then
+@@ -24795,17 +24728,6 @@
+ echo $ECHO_N "checking for system libxslt library... $ECHO_C" >&6; }
+   if test $have_xsltSaveResultToString = yes; then
+     have_libxslt=1
+-    CPPFLAGS="`$XSLT_CONFIG --cflags` $CPPFLAGS"
+-    LIBXSLT_VERSION=`$XSLT_CONFIG --version`
+-    libxslt_version_dec=`echo $LIBXSLT_VERSION | awk -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'`
+-    libxslt_min_version_dec=`echo $libxslt_min_version | awk -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'`
+-    { echo "$as_me:$LINENO: result: yes - version $LIBXSLT_VERSION" >&5
+-echo "${ECHO_T}yes - version $LIBXSLT_VERSION" >&6; }
+-    if test $libxslt_version_dec -lt $libxslt_min_version_dec; then
+-       { echo "$as_me:$LINENO: WARNING: Using libxslt $LIBXSLT_VERSION is unsupported - $libxslt_min_version or newer required." >&5
+-echo "$as_me: WARNING: Using libxslt $LIBXSLT_VERSION is unsupported - $libxslt_min_version or newer required." >&2;}
+-       have_libxslt=0
+-    fi
+   else
+     { echo "$as_me:$LINENO: result: no" >&5
+ echo "${ECHO_T}no" >&6; }
+@@ -26395,8 +26317,8 @@
  fi
  
  if test $need_libxslt = 1; then


More information about the Libreoffice-commits mailing list