Source: conserver
Version: 8.2.6-1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

conserver fails to cross build from source, because it does not pass
--host to ./configure. The easiest way of doing this is using
dh_auto_configure. Beyond this, it strips with the build architecture
strip via install -s during make install. Doing so also breaks
generation of -dbgsym packages as well as DEB_BUILD_OPTIONS=nostrip. It
is best to defer stripping exclusively to dh_strip. Please consider
applying the attached patch to fix all of the mentioned issues.

Helmut
diff --minimal -Nru conserver-8.2.6/debian/changelog 
conserver-8.2.6/debian/changelog
--- conserver-8.2.6/debian/changelog    2020-12-13 21:46:15.000000000 +0100
+++ conserver-8.2.6/debian/changelog    2020-12-21 08:08:55.000000000 +0100
@@ -1,3 +1,12 @@
+conserver (8.2.6-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Let dh_auto_configure pass --host to configure.
+    + Defer stripping to dh_strip.
+
+ -- Helmut Grohne <hel...@subdivi.de>  Mon, 21 Dec 2020 08:08:55 +0100
+
 conserver (8.2.6-1) unstable; urgency=medium
 
   * New upstream version 8.2.6
diff --minimal -Nru conserver-8.2.6/debian/rules conserver-8.2.6/debian/rules
--- conserver-8.2.6/debian/rules        2020-12-13 21:46:15.000000000 +0100
+++ conserver-8.2.6/debian/rules        2020-12-21 08:08:55.000000000 +0100
@@ -12,20 +12,20 @@
        cp -f /usr/share/misc/config.sub config.sub
        cp -f /usr/share/misc/config.guess config.guess
 
-       ./configure \
+       dh_auto_configure -- \
                --verbose \
                --sysconfdir=/etc/conserver \
                --with-openssl \
                --with-pam \
                --with-port=782 \
-               --prefix=/usr \
-               --mandir=\$${prefix}/share/man \
-               --infodir=\$${prefix}/share/info \
                --with-logfile=/var/log/conserver/server.log \
                --with-pidfile=/run/conserver/conserver.pid \
                --with-libwrap \
                --with-ipv6
 
+override_dh_auto_install:
+       dh_auto_install -- INSTALL_PROGRAM='install --strip-program=true'
+
 override_dh_installman:
        dh_installman --language=C
 

Reply via email to