Source: proftpd-dfsg
Version: 1.3.5d-1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

proftpd-dfsg fails to cross build from source, because make install
tries to strip proftpd (via install -s) with the build architecture
strip and fails doing so. Stripping is best performed by dh_strip to get
useful -dbgsym packages. Thus the easy solution is to pass
--disable-strip and just doing so makes the cross build succeed. Please
consider applying the attached patch.

Helmut
diff --minimal -Nru proftpd-dfsg-1.3.5d/debian/changelog 
proftpd-dfsg-1.3.5d/debian/changelog
--- proftpd-dfsg-1.3.5d/debian/changelog        2017-01-26 13:23:53.000000000 
+0100
+++ proftpd-dfsg-1.3.5d/debian/changelog        2017-12-16 18:06:47.000000000 
+0100
@@ -1,3 +1,10 @@
+proftpd-dfsg (1.3.5d-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Configure with --disable-strip (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sat, 16 Dec 2017 18:06:47 +0100
+
 proftpd-dfsg (1.3.5d-1) unstable; urgency=medium
 
   [ Hilmar Preuße ]
diff --minimal -Nru proftpd-dfsg-1.3.5d/debian/rules 
proftpd-dfsg-1.3.5d/debian/rules
--- proftpd-dfsg-1.3.5d/debian/rules    2017-01-26 13:23:53.000000000 +0100
+++ proftpd-dfsg-1.3.5d/debian/rules    2017-12-16 18:06:45.000000000 +0100
@@ -40,7 +40,7 @@
             --with-includes=$(shell pg_config --includedir):$(shell 
mysql_config --include|sed -e 's/-I//') \
             --mandir=/usr/share/man --sysconfdir=/etc/$(NAME) 
--localstatedir=/run --libexecdir=/usr/lib/$(NAME) \
             --enable-sendfile --enable-facl --enable-dso --enable-autoshadow 
--enable-ctrls --with-modules=mod_readme \
-            --enable-ipv6 --enable-nls --enable-memcache 
--with-lastlog=/var/log/lastlog --enable-pcre $(DEVELOPT)
+            --enable-ipv6 --enable-nls --enable-memcache 
--with-lastlog=/var/log/lastlog --enable-pcre $(DEVELOPT) --disable-strip
 
 ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
   CONF_ARGS += --build $(DEB_HOST_GNU_TYPE)

Reply via email to