Source: libgnt Version: 2.14.1-1 Tags: patch User: [email protected] Usertags: ftcbfs
libgnt fails to cross build from source, because it fails to run the host architecture executable libgnt-scan. It is run by gtkdoc in the process of generating the documentation that isn't being packaged in an arch-only cross build. So a relatively solution to this problem is skipping the documentation build when performing arch-only builds (such as cross builds). For doing so, we must add an option to the upstream build system and I hope that's ok. Please consider applying the attached patch. Helmut
diff --minimal -Nru libgnt-2.14.1/debian/changelog libgnt-2.14.1/debian/changelog --- libgnt-2.14.1/debian/changelog 2021-02-05 08:11:35.000000000 +0100 +++ libgnt-2.14.1/debian/changelog 2021-09-19 11:20:46.000000000 +0200 @@ -1,3 +1,10 @@ +libgnt (2.14.1-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Skip gtkdoc in arch-only build. (Closes: #-1) + + -- Helmut Grohne <[email protected]> Sun, 19 Sep 2021 11:20:46 +0200 + libgnt (2.14.1-1) unstable; urgency=medium * New upstream version 2.14.1 diff --minimal -Nru libgnt-2.14.1/debian/control libgnt-2.14.1/debian/control --- libgnt-2.14.1/debian/control 2021-01-23 06:50:24.000000000 +0100 +++ libgnt-2.14.1/debian/control 2021-09-19 11:20:45.000000000 +0200 @@ -3,10 +3,10 @@ Priority: optional Maintainer: Richard Laager <[email protected]> Build-Depends: debhelper-compat (= 13), - gtk-doc-tools, libglib2.0-dev, libncurses-dev, meson (>= 0.41.0), +Build-Depends-Indep: gtk-doc-tools, Homepage: https://keep.imfreedom.org/libgnt/libgnt Vcs-Browser: https://salsa.debian.org/debian/libgnt Vcs-Git: https://salsa.debian.org/debian/libgnt.git diff --minimal -Nru libgnt-2.14.1/debian/patches/cross.patch libgnt-2.14.1/debian/patches/cross.patch --- libgnt-2.14.1/debian/patches/cross.patch 1970-01-01 01:00:00.000000000 +0100 +++ libgnt-2.14.1/debian/patches/cross.patch 2021-09-19 11:20:46.000000000 +0200 @@ -0,0 +1,14 @@ +--- libgnt-2.14.1.orig/meson.build ++++ libgnt-2.14.1/meson.build +@@ -235,4 +235,6 @@ + + subdir('wms') + subdir('test') +-subdir('doc') ++if get_option('doc') ++ subdir('doc') ++endif +--- /dev/null ++++ libgnt-2.14.1/meson_options.txt +@@ -0,0 +1 @@ ++option('doc', type: 'boolean', value: true, description: 'build the documentation') diff --minimal -Nru libgnt-2.14.1/debian/patches/series libgnt-2.14.1/debian/patches/series --- libgnt-2.14.1/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 +++ libgnt-2.14.1/debian/patches/series 2021-09-19 11:19:34.000000000 +0200 @@ -0,0 +1 @@ +cross.patch diff --minimal -Nru libgnt-2.14.1/debian/rules libgnt-2.14.1/debian/rules --- libgnt-2.14.1/debian/rules 2021-01-21 23:15:53.000000000 +0100 +++ libgnt-2.14.1/debian/rules 2021-09-19 11:20:27.000000000 +0200 @@ -3,5 +3,8 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DPKG_GENSYMBOLS_CHECK_LEVEL = 4 +override_dh_auto_configure: + dh_auto_configure -- -Ddoc=$(if $(filter libgnt-doc,$(shell dh_listpackages)),true,false) + %: dh $@

