[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#944879: libmatemixer FTCBFS: fails building documentation



Source: libmatemixer
Version: 1.22.0-1
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs

libmatemixer fails to cross build from source, because it fails building
the documentation with an Exec format error. This is common when using
gtk-doc. Fortunately, the documentation is split to an arch:all package,
so we can skip building it in an arch-only build and doing so makes a
cross build succeed. Please consider applying it.

Helmut
diff --minimal -Nru libmatemixer-1.22.0/debian/changelog libmatemixer-1.22.0/debian/changelog
--- libmatemixer-1.22.0/debian/changelog	2019-07-10 13:37:35.000000000 +0200
+++ libmatemixer-1.22.0/debian/changelog	2019-11-16 20:46:04.000000000 +0100
@@ -1,3 +1,10 @@
+libmatemixer (1.22.0-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: --disable-gtk-doc for arch-only builds. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de>  Sat, 16 Nov 2019 20:46:04 +0100
+
 libmatemixer (1.22.0-1) unstable; urgency=medium
 
   [ Martin Wimpress ]
diff --minimal -Nru libmatemixer-1.22.0/debian/rules libmatemixer-1.22.0/debian/rules
--- libmatemixer-1.22.0/debian/rules	2019-07-10 13:37:35.000000000 +0200
+++ libmatemixer-1.22.0/debian/rules	2019-11-16 20:46:03.000000000 +0100
@@ -22,7 +22,7 @@
 override_dh_auto_configure:
 	NOCONFIGURE=1 ./autogen.sh
 	dh_auto_configure $(DHFLAGS) -- \
-		--enable-gtk-doc \
+		--$(if $(filter %-doc,$(shell dh_listpackages)),en,dis)able-gtk-doc \
 		--disable-static \
 		--disable-silent-rules \
 		$(NULL)

Reply to: