Source: gnustep-gui
Version: 0.31.1-8
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

gnustep-gui fails to cross build from source, because it configures
during dh_auto_clean without passing --host but passing a cross CC. As a
result this configure invocation and the dh_auto_clean operation fails.
The configuration is also quite useless, because whatever is configured
is subsequently deleted. The configure step can be inhibited by touching
two files. I'm attaching a patch for doing so. Once dh_auto_clean
passes, the rest of the package cross builds just fine. Please consider
applying the patch and talking to upstream to figure out a way of
running make distlcean without invoking configure.

Helmut
diff --minimal -Nru gnustep-gui-0.31.1/debian/changelog 
gnustep-gui-0.31.1/debian/changelog
--- gnustep-gui-0.31.1/debian/changelog 2025-01-28 06:36:00.000000000 +0100
+++ gnustep-gui-0.31.1/debian/changelog 2025-01-30 13:24:26.000000000 +0100
@@ -1,3 +1,10 @@
+gnustep-gui (0.31.1-8.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Do not run configure during dh_auto_clean. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Thu, 30 Jan 2025 13:24:26 +0100
+
 gnustep-gui (0.31.1-8) unstable; urgency=medium
 
   * Upload to unstable.
diff --minimal -Nru gnustep-gui-0.31.1/debian/rules 
gnustep-gui-0.31.1/debian/rules
--- gnustep-gui-0.31.1/debian/rules     2025-01-28 05:48:30.000000000 +0100
+++ gnustep-gui-0.31.1/debian/rules     2025-01-30 13:24:26.000000000 +0100
@@ -87,7 +87,14 @@
        $(RM) -r debian/tmp$(GNUSTEP_SYSTEM_DOC)/Developer/Gui/ReleaseNotes/0.*
 endif
 
+override_dh_auto_clean-arch:
+       # Otherwise make clean runs configure
+       touch config.make gui.make
+       dh_auto_clean
+
 override_dh_auto_clean-indep:
+       # Otherwise make clean runs configure
+       touch config.make gui.make
        dh_auto_clean -- doc=yes
 
 # Doc symlinks

Reply via email to