Bug#884558: proftpd-dfsg FTCBFS: fails stripping with the build architecture strip

2017-12-17 Thread Hilmar Preuße
tags 884558 + pending
stop

On 16.12.2017 20:59, Helmut Grohne wrote:

Hi Helmut,

> 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.
> 
I've committed your patch to our git and tag the bug pending.

@Francesco: please be so kind to upload ASAP.

Hilmar
-- 
#206401 http://counter.li.org



Bug#884558: proftpd-dfsg FTCBFS: fails stripping with the build architecture strip

2017-12-16 Thread Hilmar Preuße
On 16.12.2017 23:07, Hilmar Preuße wrote:

Hi Helmut,

> However we do call dh_gencontrol right before the dh_builddeb call. Do
> you have a fast explanation why we don't see debug packages?
> 
OK, found it. We have to call dh_strip before dh_gencontrol.

Hilmar
-- 
#206401 http://counter.li.org



Bug#884558: proftpd-dfsg FTCBFS: fails stripping with the build architecture strip

2017-12-16 Thread Hilmar Preuße
On 16.12.2017 20:59, Helmut Grohne wrote:

Dear Helmut,

> 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.
> 
Many thanks for your bug report!

I've applied now the patch in my local copy. I had the hope that we
would get now dbgsym packages, which is not the case. I see the
following messages in the build log:

dh_builddeb: Not building dbgsym package for proftpd-basic as it has no
control file
dh_builddeb: Please use dh_gencontrol to avoid this issue

However we do call dh_gencontrol right before the dh_builddeb call. Do
you have a fast explanation why we don't see debug packages?

Many thanks!

Hilmar
-- 
#206401 http://counter.li.org



proftpd-dfsg_1.3.5e-1_amd64.7z
Description: application/7z-compressed


Bug#884558: proftpd-dfsg FTCBFS: fails stripping with the build architecture strip

2017-12-16 Thread Helmut Grohne
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/changelog2017-01-26 13:23:53.0 
+0100
+++ proftpd-dfsg-1.3.5d/debian/changelog2017-12-16 18:06:47.0 
+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   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/rules2017-01-26 13:23:53.0 +0100
+++ proftpd-dfsg-1.3.5d/debian/rules2017-12-16 18:06:45.0 +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)