Bug#912358: lighttpd FTCBFS: unsatisfiable Build-Depends
Source: lighttpd
Version: 1.4.49-1.1
Tags: patch
User: helmutg@debian.org
Usertags: rebootstrap
lighttpd fails to cross build from source. The first problem is
satisfying Build-Depends. Two dependencies are problematic: perl and
libcgi-pm-perl. Turns out the latter is unnecessary (removing it does
not influence the build result). And perl needs to be run, but not
linked, so it gets annotated :native. Then it uses the wrong pkg-config
and fails finding libxml2.pc. After fixing that as well, lighttpd cross
builds successfully. Please consider applying the attached patch.
Helmut
diff --minimal -Nru lighttpd-1.4.49/debian/changelog lighttpd-1.4.49/debian/changelog
--- lighttpd-1.4.49/debian/changelog 2018-03-31 13:43:49.000000000 +0200
+++ lighttpd-1.4.49/debian/changelog 2018-10-30 17:48:06.000000000 +0100
@@ -1,3 +1,14 @@
+lighttpd (1.4.49-1.2) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: (Closes: -1)
+ + Drop unused Build-Depends: libcgi-pm-perl. (Verified with reproducible
+ builds.)
+ + Annotate Build-Depends: perl with :native.
+ + cross.patch: Fix detection of pkg-config.
+
+ -- Helmut Grohne <helmut@subdivi.de> Tue, 30 Oct 2018 17:48:06 +0100
+
lighttpd (1.4.49-1.1) unstable; urgency=medium
* Non-maintainer upload.
diff --minimal -Nru lighttpd-1.4.49/debian/control lighttpd-1.4.49/debian/control
--- lighttpd-1.4.49/debian/control 2018-03-31 13:41:37.000000000 +0200
+++ lighttpd-1.4.49/debian/control 2018-10-30 17:48:06.000000000 +0100
@@ -27,8 +27,7 @@
libsqlite3-dev,
libxml2-dev,
libkrb5-dev,
- perl,
- libcgi-pm-perl,
+ perl:native,
Vcs-Git: https://salsa.debian.org/debian/lighttpd.git
Vcs-Browser: https://salsa.debian.org/debian/lighttpd
Standards-Version: 4.1.3
diff --minimal -Nru lighttpd-1.4.49/debian/patches/cross.patch lighttpd-1.4.49/debian/patches/cross.patch
--- lighttpd-1.4.49/debian/patches/cross.patch 1970-01-01 01:00:00.000000000 +0100
+++ lighttpd-1.4.49/debian/patches/cross.patch 2018-10-30 17:48:06.000000000 +0100
@@ -0,0 +1,12 @@
+--- lighttpd-1.4.49.orig/configure.ac
++++ lighttpd-1.4.49/configure.ac
+@@ -170,9 +170,6 @@
+ AC_SUBST([DL_LIB])
+
+ dnl prepare pkg-config usage below
+-if test -z "$PKG_CONFIG"; then
+- AC_PATH_PROG([PKG_CONFIG], [pkg-config], [no])
+-fi
+ PKG_PROG_PKG_CONFIG
+
+ dnl checking for libev
diff --minimal -Nru lighttpd-1.4.49/debian/patches/series lighttpd-1.4.49/debian/patches/series
--- lighttpd-1.4.49/debian/patches/series 1970-01-01 01:00:00.000000000 +0100
+++ lighttpd-1.4.49/debian/patches/series 2018-10-30 17:48:06.000000000 +0100
@@ -0,0 +1 @@
+cross.patch
Reply to: