Source: boxes
Version: 2.2.0-1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

boxes fails to cross build from source, because it strips with the build
architecture strip. Beyond breaking cross compilation, doing so also
breaks DEB_BUILD_OPTIONS=nostrip as well as generation of -dbgsym
packages. Fixing this is not entirely trivial as the build target forces
this stripping. A relatively easy way to avoid it is switching to the
debug target, but doing so looses the -O flag. I'm attaching a patch for
your convenience.

Helmut
diff --minimal -Nru boxes-2.2.0/debian/changelog boxes-2.2.0/debian/changelog
--- boxes-2.2.0/debian/changelog        2022-09-23 12:06:21.000000000 +0200
+++ boxes-2.2.0/debian/changelog        2022-11-01 13:29:35.000000000 +0100
@@ -1,3 +1,10 @@
+boxes (2.2.0-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Defer stripping to dh_strip. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Tue, 01 Nov 2022 13:29:35 +0100
+
 boxes (2.2.0-1) unstable; urgency=medium
 
   * debian/watch: Switch to watch tagged versions on github releases page
diff --minimal -Nru boxes-2.2.0/debian/rules boxes-2.2.0/debian/rules
--- boxes-2.2.0/debian/rules    2022-09-23 12:06:21.000000000 +0200
+++ boxes-2.2.0/debian/rules    2022-11-01 13:29:35.000000000 +0100
@@ -1,6 +1,9 @@
 #!/usr/bin/make -f
 
-export CFLAGS_ADDTL+=$(shell dpkg-buildflags --get CFLAGS)
+export CFLAGS_ADDTL+=-O $(shell dpkg-buildflags --get CFLAGS)
 
 %:
        dh $@
+
+override_dh_auto_build:
+       dh_auto_build -- debug

Reply via email to