Hi,

I've prepared a patch to try to fix this bug. This patch must be applied
to Debian package version 1.6.1-1, uploaded on Sep 14th to Debian
unstable. It is working for me.

YunQiang: Please, could you test it in your system to see if it also works for
you?

Noam: Pleae, could you review if I am breaking something?

Thank you both!

commit eef9f5c27016fbe809c9f51bb21d6bbad56e6887
Author: Mònica Ramírez Arceda <mon...@debian.org>
Date:   Mon Sep 15 15:03:02 2014 +0200

    Remove -L/usr/lib from build system.

diff --git a/debian/changelog b/debian/changelog
index 6481698..b4561e8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+xmlstarlet (1.6.1-2) UNRELEASED; urgency=medium
+
+  * Remove -L/usr/lib from the build system. (Closes: #722870)
+
+ -- Mònica Ramírez Arceda <mon...@debian.org>  Tue, 16 Sep 2014 14:46:27 +0200
+
 xmlstarlet (1.6.1-1) unstable; urgency=medium
 
   * New upstream release.
diff --git a/debian/patches/70-remove-link-usr-lib.patch b/debian/patches/70-remove-link-usr-lib.patch
new file mode 100644
index 0000000..7d0bc11
--- /dev/null
+++ b/debian/patches/70-remove-link-usr-lib.patch
@@ -0,0 +1,23 @@
+Description: Remove links to /usr/lib to fix #722870.
+Author: Mònica Ramírez Arceda <mon...@debian.org>
+Last-Update: 2012-10-28
+
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -56,7 +56,6 @@
+ AS_IF([test "x$STATIC_LIBS" != xno],
+       [LIBXML_LIBS="$LIBXML_LIBDIR/libxml2.a"],
+       [LIBXML_LIBS="-lxml2"])
+-[LIBXML_LDFLAGS="-L$LIBXML_LIBDIR"]
+ 
+ 
+ XSTAR_LIB_CHECK([LIBXSLT], [xslt-config])
+@@ -68,7 +67,6 @@
+        AS_IF([test "x$STATIC_LIBS" != xno],
+              [LIBXSLT_LIBS="$LIBXSLT_SRCDIR/libexslt/.libs/libexslt.a $LIBXSLT_SRCDIR/libxslt/.libs/libxslt.a"])],
+       [XSLTPROC_PATH="$PATH"
+-       LIBXSLT_LDFLAGS="-L$LIBXSLT_LIBDIR"
+       AS_IF([test "x$STATIC_LIBS" != xno],
+              [LIBXSLT_LIBS="$LIBXSLT_LIBDIR/libexslt.a $LIBXSLT_LIBDIR/libxslt.a"])])
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 28bcc84..8a4ef63 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 40-use-debian-docbook-xsl.patch
 50-fix-format-security.patch
 60-avoid-silent-rules.patch
+70-remove-link-usr-lib.patch

Reply via email to