Source: playerctl
Version: 2.4.1-3
Tags: patch
User: [email protected]
Usertags: ftcbfs

playerctl fails to cross build from source, because it fails running the
gtk-doc scanner. Fortunately, the documentation already has been
separated to an arch:all package, so running the gtk-doc scanner is no
longer necessary in arch-only builds such as cross builds. I'm attaching
a patch that skips gtk-doc in arch-only builds and verified that an
arch-only build produces the same .debs as a full build. Please consider
applying the patch as it makes playerctl cross buildable.

Helmut
diff -Nru playerctl-2.4.1/debian/changelog playerctl-2.4.1/debian/changelog
--- playerctl-2.4.1/debian/changelog    2025-02-09 05:31:15.000000000 +0100
+++ playerctl-2.4.1/debian/changelog    2026-01-23 21:09:56.000000000 +0100
@@ -1,3 +1,11 @@
+playerctl (2.4.1-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Skip gtk-doc in arch-only build. (Closes: #-1)
+  * Stop passing a --cross-file, no longer needed with recent meson.
+
+ -- Helmut Grohne <[email protected]>  Fri, 23 Jan 2026 21:09:56 +0100
+
 playerctl (2.4.1-3) unstable; urgency=medium
 
   [ Nick Morrott ]
diff -Nru playerctl-2.4.1/debian/control playerctl-2.4.1/debian/control
--- playerctl-2.4.1/debian/control      2025-02-09 05:31:15.000000000 +0100
+++ playerctl-2.4.1/debian/control      2026-01-23 21:09:56.000000000 +0100
@@ -9,7 +9,6 @@
  dh-sequence-gir,
  gobject-introspection,
  gobject-introspection (>= 1.78.1-9~) <cross>,
- gtk-doc-tools,
  intltool,
  libgirepository1.0-dev,
  libglib2.0-dev,
@@ -20,6 +19,8 @@
  python3-pytest <!nocheck>,
  python3-pytest-asyncio <!nocheck>,
  python3-pytest-timeout <!nocheck>,
+Build-Depends-Indep:
+ gtk-doc-tools,
 Standards-Version: 4.7.0
 Rules-Requires-Root: no
 Homepage: https://github.com/altdesktop/playerctl
diff -Nru playerctl-2.4.1/debian/rules playerctl-2.4.1/debian/rules
--- playerctl-2.4.1/debian/rules        2025-02-09 05:31:15.000000000 +0100
+++ playerctl-2.4.1/debian/rules        2026-01-23 21:09:53.000000000 +0100
@@ -9,20 +9,13 @@
 
 ignored_libraries := -Xlibplayerctl.a
 
-meson_options =
-
-ifeq ($(DEB_HOST_ARCH),$(DEB_BUILD_ARCH))
-native_or_cross = native
-else
-native_or_cross = cross
-meson_options += --cross-file=$(DEB_HOST_GNU_TYPE)-gobject-introspection.ini
-endif
-
 %:
        dh $@ --with gir --buildsystem=meson
 
 override_dh_auto_configure:
-       dh_auto_configure -- $(meson_options) $(NULL)
+       dh_auto_configure -- \
+               -Dgtk-doc=$(if $(filter libplayerctl-doc,$(shell 
dh_listpackages)),true,false) \
+               $(NULL)
 
 override_dh_auto_build:
        dh_auto_build

Reply via email to