Source: yank
Version: 1.1.0-1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

yank fails to cross build from source. During dh_auto_build, it
correctly cross builds the "yank" executable. Then during make install,
PROG is changed to yank-cli, so it needs to be rebuilt, but no cross
tools are passed. Passing PROG to the build step as well fixes this
part. Then it passes -s to install, which uses the wrong strip. This
also breaks DEB_BUILD_OPTIONS=nostrip and generation of a -dbgsym
package. Dropping the -s flag and deferring all stripping to dh_strip is
the usual solution here. Please consider applying the attached patch.

Helmut
diff --minimal -Nru yank-1.1.0/debian/changelog yank-1.1.0/debian/changelog
--- yank-1.1.0/debian/changelog 2018-11-07 16:29:11.000000000 +0100
+++ yank-1.1.0/debian/changelog 2019-05-15 06:16:19.000000000 +0200
@@ -1,3 +1,12 @@
+yank (1.1.0-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Also pass PROG= to dh_auto_build.
+    + Pass INSTALL_PROGRAM without -s.
+
+ -- Helmut Grohne <hel...@subdivi.de>  Wed, 15 May 2019 06:16:19 +0200
+
 yank (1.1.0-1) unstable; urgency=medium
 
   * New upstream version 1.1.0
diff --minimal -Nru yank-1.1.0/debian/rules yank-1.1.0/debian/rules
--- yank-1.1.0/debian/rules     2018-11-07 16:29:11.000000000 +0100
+++ yank-1.1.0/debian/rules     2019-05-15 06:16:19.000000000 +0200
@@ -7,5 +7,8 @@
 %:
        dh $@
 
+override_dh_auto_build:
+       dh_auto_build -- PROG=yank-cli
+
 override_dh_auto_install:
-       $(MAKE) PREFIX=$(CURDIR)/debian/yank/usr PROG=yank-cli install
+       $(MAKE) PREFIX=$(CURDIR)/debian/yank/usr PROG=yank-cli 
INSTALL_PROGRAM="install -m 0755" install

Reply via email to