[xml/sgml-pkgs] Bug#841384: libxslt FTCBFS: unsatisfiable cross Build-Depends, forces build architecture compiler

Helmut Grohne helmut at subdivi.de
Thu Oct 20 04:37:49 UTC 2016


Source: libxslt
Version: 1.1.29-1
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

libxslt fails to cross build from source, because a number of its
Build-Depends are not satisfiable or wrongly satisfied during cross
building (e.g. executing tools installed for the host architecture). It
also forces the use of the build architecture compiler leading to
failures in finding required dependencies. The attached patch fixes all
of those problems and makes a cross build succeed. Please consider
applying it.

Helmut
-------------- next part --------------
diff --minimal -Nru libxslt-1.1.29/debian/changelog libxslt-1.1.29/debian/changelog
--- libxslt-1.1.29/debian/changelog
+++ libxslt-1.1.29/debian/changelog
@@ -1,3 +1,15 @@
+libxslt (1.1.29-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Drop unsatisfiable binutils dependency: Always satisfied natively even
+      in wheezy.
+    + Use cross-compatible python Build-Depends.
+    + Annotate Build-Depends: perl with :any.
+    + Do not pass CC=cc to configure.
+
+ -- Helmut Grohne <helmut at subdivi.de>  Tue, 20 Oct 2016 06:25:50 +0200
+
 libxslt (1.1.29-1) unstable; urgency=medium
 
   * Imported Upstream version 1.1.29 (Closes: #826446)
diff --minimal -Nru libxslt-1.1.29/debian/control libxslt-1.1.29/debian/control
--- libxslt-1.1.29/debian/control
+++ libxslt-1.1.29/debian/control
@@ -7,15 +7,15 @@
  YunQiang Su <syq at debian.org>,
 Standards-Version: 3.9.8
 Build-Depends:
- binutils (>= 2.14.90.0.7),
  debhelper (>= 9),
  dh-autoreconf,
  dh-python,
  libgcrypt11-dev,
  libxml2-dev (>= 2.6.27),
- perl,
- python-all-dbg,
- python-all-dev (>= 2.6.6-3~),
+ perl:any,
+ libpython-all-dbg,
+ python-all-dev:any (>= 2.6.6-3~),
+ libpython-all-dev (>= 2.6.6-3~),
 Homepage: http://xmlsoft.org/xslt/
 Vcs-Git: https://anonscm.debian.org/git/debian-xml-sgml/libxslt.git
 Vcs-Browser: https://anonscm.debian.org/git/debian-xml-sgml/libxslt.git
diff --minimal -Nru libxslt-1.1.29/debian/rules libxslt-1.1.29/debian/rules
--- libxslt-1.1.29/debian/rules
+++ libxslt-1.1.29/debian/rules
@@ -12,7 +12,7 @@
 LDFLAGS = `dpkg-buildflags --get LDFLAGS` -Wl,--as-needed
 CPPFLAGS = `dpkg-buildflags --get CPPFLAGS`
 
-CONFIGURE_FLAGS := --with-history CC="$(CC)" CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)"           LDFLAGS="$(LDFLAGS)" --cache-file="$(CURDIR)/builddir/config.cache"
+CONFIGURE_FLAGS := --with-history CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)"           LDFLAGS="$(LDFLAGS)" --cache-file="$(CURDIR)/builddir/config.cache"
 
 TARGETS := main $(PYVERS) $(PYVERS:%=%-dbg)
 


More information about the debian-xml-sgml-pkgs mailing list