Source: libportal Version: 0.4-2 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
libportal fails to cross build from source, because running gtkdoc-scangobj fails. It turns out that this is only needed for building libportal-doc, so we can skip it. Please consider applying the attached patch. Helmut
diff --minimal -Nru libportal-0.4/debian/changelog libportal-0.4/debian/changelog --- libportal-0.4/debian/changelog 2021-09-21 18:29:00.000000000 +0200 +++ libportal-0.4/debian/changelog 2021-12-07 11:54:02.000000000 +0100 @@ -1,3 +1,10 @@ +libportal (0.4-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Don't run gtkdoc-scangobj during arch-only build. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Tue, 07 Dec 2021 11:54:02 +0100 + libportal (0.4-2) unstable; urgency=medium * d/p/portal-helpers-Unref-correct-object.patch: diff --minimal -Nru libportal-0.4/debian/control libportal-0.4/debian/control --- libportal-0.4/debian/control 2021-09-21 18:29:00.000000000 +0200 +++ libportal-0.4/debian/control 2021-12-07 11:54:02.000000000 +0100 @@ -6,12 +6,13 @@ Simon McVittie <s...@debian.org>, Build-Depends: debhelper-compat (= 13), - gtk-doc-tools, libglib2.0-dev (>= 2.58), libgstreamer-plugins-base1.0-dev <!noinsttest>, libgtk-3-dev <!noinsttest>, meson (>= 0.46.0), pkg-config, +Build-Depends-Indep: + gtk-doc-tools, Rules-Requires-Root: no Standards-Version: 4.6.0 Homepage: https://github.com/flatpak/libportal diff --minimal -Nru libportal-0.4/debian/rules libportal-0.4/debian/rules --- libportal-0.4/debian/rules 2021-09-21 18:29:00.000000000 +0200 +++ libportal-0.4/debian/rules 2021-12-07 11:53:59.000000000 +0100 @@ -16,6 +16,11 @@ else meson_options += -Dbuild-portal-test=true endif +ifeq ($(filter libportal-doc,$(built_binaries)),) +meson_options += -Dgtk_doc=false +else +meson_options += -Dgtk_doc=true +endif %: dh $@