Bug#946334: pd-mrpeach FTCBFS: uses build architecture build tools
Source: pd-mrpeach
Version: 0.1~svn17647-3
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs
pd-mrpeach fails to cross build from source. It has multiple make
invocations and only one happens via dh_auto_build. The others lack
cross tools and we can fix that by using dh_auto_build there as well.
Then it fails running the build architecture strip during make install.
It is best to disable such stripping as it also breaks generation of
-dbgsym packages and DEB_BUILD_OPTIONS=nostrip. The attached patch fixes
all of that. Please consider applying it.
Helmut
diff --minimal -Nru pd-mrpeach-0.1~svn17647/debian/changelog pd-mrpeach-0.1~svn17647/debian/changelog
--- pd-mrpeach-0.1~svn17647/debian/changelog 2018-09-29 21:03:03.000000000 +0200
+++ pd-mrpeach-0.1~svn17647/debian/changelog 2019-12-07 10:51:01.000000000 +0100
@@ -1,3 +1,12 @@
+pd-mrpeach (0.1~svn17647-3.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: (Closes: #-1)
+ + Let dh_auto_build pass cross tools to make.
+ + Defer stripping to dh_strip.
+
+ -- Helmut Grohne <helmut@subdivi.de> Sat, 07 Dec 2019 10:51:01 +0100
+
pd-mrpeach (0.1~svn17647-3) unstable; urgency=medium
* dh_auto_install fixes (Closes: #909820)
diff --minimal -Nru pd-mrpeach-0.1~svn17647/debian/rules pd-mrpeach-0.1~svn17647/debian/rules
--- pd-mrpeach-0.1~svn17647/debian/rules 2018-09-29 21:03:03.000000000 +0200
+++ pd-mrpeach-0.1~svn17647/debian/rules 2019-12-07 10:51:00.000000000 +0100
@@ -27,15 +27,15 @@
override_dh_auto_build:
dh_auto_build
- make -C osc \
+ dh_auto_build --sourcedirectory=osc -- \
CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
- make -C net \
+ dh_auto_build --sourcedirectory=net -- \
CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
- make -C cmos \
+ dh_auto_build --sourcedirectory=cmos -- \
CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
override_dh_auto_install:
- dh_auto_install -- prefix=/usr pkglibdir=$(pkglibdir)
+ dh_auto_install -- prefix=/usr pkglibdir=$(pkglibdir) STRIP=true
# fix permissions
find $(CURDIR)/debian/tmp/ -name "*.pd_linux" -exec \
chmod 0644 {} +
Reply to: