Source: grandorgue
Version: 3.9.1-1
Tags: patch
User: [email protected]
Usertags: ftcbfs

grandorgue fails to cross build from source. The upstream documentation
describes special steps needed for cross compilation, but the packaging
does not implement them. I'm attaching a patch for your convenience.

Helmut
diff --minimal -Nru grandorgue-3.9.1/debian/changelog 
grandorgue-3.9.1/debian/changelog
--- grandorgue-3.9.1/debian/changelog   2022-11-20 22:28:05.000000000 +0100
+++ grandorgue-3.9.1/debian/changelog   2022-12-02 07:17:13.000000000 +0100
@@ -1,3 +1,10 @@
+grandorgue (3.9.1-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Build build tools natively. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Fri, 02 Dec 2022 07:17:13 +0100
+
 grandorgue (3.9.1-1) unstable; urgency=medium
 
   * New upstream version 3.9.1
diff --minimal -Nru grandorgue-3.9.1/debian/clean grandorgue-3.9.1/debian/clean
--- grandorgue-3.9.1/debian/clean       1970-01-01 01:00:00.000000000 +0100
+++ grandorgue-3.9.1/debian/clean       2022-12-02 07:17:09.000000000 +0100
@@ -0,0 +1 @@
+build-tools
diff --minimal -Nru grandorgue-3.9.1/debian/rules grandorgue-3.9.1/debian/rules
--- grandorgue-3.9.1/debian/rules       2022-04-17 20:37:16.000000000 +0200
+++ grandorgue-3.9.1/debian/rules       2022-12-02 07:17:13.000000000 +0100
@@ -4,4 +4,8 @@
        dh $@
 
 override_dh_auto_configure:
-       dh_auto_configure -- -DUSE_INTERNAL_RTAUDIO=OFF 
-DUSE_INTERNAL_PORTAUDIO=OFF -DUSE_INTERNAL_ZITACONVOLVER=OFF 
-DBUILD_VERSION=debian
+ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+       dpkg-architecture -a$(DEB_BUILD_ARCH) -f -c dh_auto_configure 
--builddirectory=build-tools --sourcedirectory=src/build
+       dpkg-architecture -a$(DEB_BUILD_ARCH) -f -c dh_auto_build 
--builddirectory=build-tools --sourcedirectory=src/build
+endif
+       dh_auto_configure -- -DUSE_INTERNAL_RTAUDIO=OFF 
-DUSE_INTERNAL_PORTAUDIO=OFF -DUSE_INTERNAL_ZITACONVOLVER=OFF 
-DBUILD_VERSION=debian $(if $(filter 
$(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)),,-DIMPORT_EXECUTABLES=$(CURDIR)/build-tools/ImportExecutables.cmake)

Reply via email to