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

Bug#1062789: mate-desktop FTCBFS: fails running the gtk-doc scanner



Source: mate-desktop
Version: 1.26.2-1
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs

mate-desktop fails to cross build from source, because it fails running
the gtk-doc scanner with an Exec format error. This is fairly common.
Fortunately, it also separates its documentation into an Arch:all
package. Hence, we can disable gtk-doc in arch-only builds. With a bit
of tweaking of debian/rules, this makes a cross build succeed. I'm
attaching a patch for your convenience.

Helmut
--- mate-desktop-1.26.2/debian/changelog
+++ mate-desktop-1.26.2/debian/changelog
@@ -1,3 +1,10 @@
+mate-desktop (1.26.2-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Skip gtkdoc in arch-only build. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de>  Sat, 03 Feb 2024 08:23:39 +0100
+
 mate-desktop (1.26.2-1) unstable; urgency=medium
 
   * New upstream release.
--- mate-desktop-1.26.2/debian/rules
+++ mate-desktop-1.26.2/debian/rules
@@ -12,11 +12,12 @@
 override_dh_missing:
 	dh_missing --fail-missing
 
-override_dh_install:
+execute_before_dh_install-arch:
 	rm -f debian/tmp/usr/lib/*/*.la
+
+execute_before_dh_install-indep:
 	mkdir -p debian/tmp/usr/share/doc/libmate-desktop-doc/
 	mv debian/tmp/usr/share/gtk-doc/html/mate-desktop debian/tmp/usr/share/doc/libmate-desktop-doc/html
-	dh_install
 
 override_dh_installchangelogs:
 	dh_installchangelogs NEWS
@@ -28,7 +29,7 @@
 		--disable-silent-rules \
 		--disable-static \
 		--disable-schemas-compile \
-		--enable-gtk-doc
+		--$(if $(filter libmate-desktop-doc,$(shell dh_listpackages)),en,dis)able-gtk-doc
 
 get-orig-source:
 	uscan --noconf --force-download --rename --download-current-version --destdir=..

Reply to: