Bug#878365: tuxpaint-config FTCBFS: uses the build architecture toolchain
Source: tuxpaint-config
Version: 0.0.13-3
Tags: patch
User: helmutg@debian.org
Usertags: rebootstrap
tuxpaint-config fails to cross build from source, because it uses the
build architecture toolchain (compiler and strip). Letting dh_auto_build
pass cross compilers to make fixes half of that. Then there still is the
-s option to install that breaks cross compilation and -dbgsym packages.
By removing it and thus deferring to dh_strip that is fixed as well.
After applying the attached patch, tuxpaint-config cross builds
successfully. Please consider using it.
Helmut
diff --minimal -Nru tuxpaint-config-0.0.13/debian/changelog tuxpaint-config-0.0.13/debian/changelog
--- tuxpaint-config-0.0.13/debian/changelog 2017-08-30 14:13:37.000000000 +0200
+++ tuxpaint-config-0.0.13/debian/changelog 2017-10-13 10:23:10.000000000 +0200
@@ -1,3 +1,12 @@
+tuxpaint-config (0.0.13-3.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: (Closes: #-1)
+ + Let dh_auto_build pass cross compilers to make.
+ + Let dh_strip perform the stripping. (Also fixes -dbgsym.)
+
+ -- Helmut Grohne <helmut@subdivi.de> Fri, 13 Oct 2017 10:23:10 +0200
+
tuxpaint-config (0.0.13-3) unstable; urgency=medium
* QA upload.
diff --minimal -Nru tuxpaint-config-0.0.13/debian/rules tuxpaint-config-0.0.13/debian/rules
--- tuxpaint-config-0.0.13/debian/rules 2017-08-30 14:13:37.000000000 +0200
+++ tuxpaint-config-0.0.13/debian/rules 2017-10-13 10:23:08.000000000 +0200
@@ -11,10 +11,6 @@
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
- INSTALL_PROGRAM += -s
-endif
-
configure: configure-stamp
configure-stamp:
dh_testdir
@@ -29,7 +25,7 @@
dh_testdir
# Add here commands to compile the package.
- $(MAKE) PREFIX=/usr CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)"
+ dh_auto_build -- PREFIX=/usr CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)"
touch build-stamp
Reply to: