Source: libmirage
Version: 3.2.7-4
Tags: patch
User: [email protected]
Usertags: ftcbfs

libmirage fails to cross build from source, because it fails running the
gtk-doc scanner. This is a common problem for cross builds. Fortunately,
libmirage has its documentation split out to libmirage-doc, so there
isn't actually any need to run the scanner in an arch-only build. Simply
skipping it there makes the cross build succeed while not affecting the
binary artifacts (according to diffoscope) and it also slightly speeds
up the native arch-only build (e.g. on buildds). I'm attaching a patch
for your convenience.

Helmut
diff --minimal -Nru libmirage-3.2.7/debian/changelog 
libmirage-3.2.7/debian/changelog
--- libmirage-3.2.7/debian/changelog    2024-05-25 12:55:24.000000000 +0200
+++ libmirage-3.2.7/debian/changelog    2024-05-29 09:41:43.000000000 +0200
@@ -1,3 +1,10 @@
+libmirage (3.2.7-4.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Disable gtk-doc on arch-only build. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Wed, 29 May 2024 09:41:43 +0200
+
 libmirage (3.2.7-4) unstable; urgency=medium
 
   * debian/appstream/net.sf.cdemu.libmirage.metainfo.xml:
diff --minimal -Nru libmirage-3.2.7/debian/rules libmirage-3.2.7/debian/rules
--- libmirage-3.2.7/debian/rules        2024-02-20 15:57:49.000000000 +0100
+++ libmirage-3.2.7/debian/rules        2024-05-29 09:41:41.000000000 +0200
@@ -7,7 +7,9 @@
 
 
 override_dh_auto_configure:
-       dh_auto_configure -- -DPOST_INSTALL_HOOKS:BOOL=OFF
+       dh_auto_configure -- \
+               -DPOST_INSTALL_HOOKS:BOOL=OFF \
+               -DGTKDOC_ENABLED=$(if $(filter libmirage-doc,$(shell 
dh_listpackages)),ON,OFF)
 
 override_dh_makeshlibs:
        dh_makeshlibs --exclude="libmirage-3.2"

Reply via email to