Source: json-glib
Version: 1.10.0+ds-2
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: cross-satisfiability

json-glib cannot be cross built from source, because a number of
Build-Depends cannot be satisfied. A quick look indicates that most of
them are related to building documentation. Whilst there is a separate
-doc package that is Arch:all, the documentation is still built in
arch-only builds. Passing -Ddocumentation=disabled avoids that. Once
doing so, a fair number of dependencies can be moved to B-D-I and then
the remaining B-D become cross-satisfiable. I'm attaching a patch with
the necessary changes for your convenience. Unfortunately, json-glib
does not yet become cross buildable for reasons outside the control of
json-glib.

Helmut
diff --minimal -Nru json-glib-1.10.0+ds/debian/changelog 
json-glib-1.10.0+ds/debian/changelog
--- json-glib-1.10.0+ds/debian/changelog        2024-09-18 17:54:26.000000000 
+0200
+++ json-glib-1.10.0+ds/debian/changelog        2024-11-10 21:55:20.000000000 
+0100
@@ -1,3 +1,12 @@
+json-glib (1.10.0+ds-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Improve cross building: (Closes: #-1)
+    + Skip documentation in arch-only build.
+    + Demote documentation dependencies to B-D-I.
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 10 Nov 2024 21:55:20 +0100
+
 json-glib (1.10.0+ds-2) unstable; urgency=medium
 
   * Team upload
diff --minimal -Nru json-glib-1.10.0+ds/debian/control 
json-glib-1.10.0+ds/debian/control
--- json-glib-1.10.0+ds/debian/control  2024-09-18 17:54:26.000000000 +0200
+++ json-glib-1.10.0+ds/debian/control  2024-11-10 21:55:13.000000000 +0100
@@ -6,18 +6,18 @@
 Build-Depends: debhelper-compat (= 13),
                dh-sequence-gir,
                dh-sequence-gnome,
-               gi-docgen,
                gir1.2-glib-2.0 (>= 0.9.12),
-               gtk-doc-tools (>= 1.20),
                libgirepository1.0-dev (>= 0.9.12),
                libglib2.0-dev (>= 2.72.0),
                meson (>= 1.2.0),
                python3-docutils,
-               python3-jinja2,
-               python3-toml,
-               python3-typogrify,
                xsltproc
-Build-Depends-Indep: libglib2.0-doc <!nodoc>
+Build-Depends-Indep: gi-docgen,
+                     gtk-doc-tools (>= 1.20),
+                     libglib2.0-doc <!nodoc>,
+                     python3-jinja2,
+                     python3-toml,
+                     python3-typogrify,
 Rules-Requires-Root: no
 Standards-Version: 4.7.0
 Vcs-Browser: https://salsa.debian.org/gnome-team/json-glib
diff --minimal -Nru json-glib-1.10.0+ds/debian/rules 
json-glib-1.10.0+ds/debian/rules
--- json-glib-1.10.0+ds/debian/rules    2024-09-18 17:54:26.000000000 +0200
+++ json-glib-1.10.0+ds/debian/rules    2024-11-10 21:55:20.000000000 +0100
@@ -14,6 +14,7 @@
                -Dconformance=true \
                -Dinstalled_tests=true \
                -Dman=true \
+               -Ddocumentation=$(if $(filter libjson-glib-doc,$(shell 
dh_listpackages)),enabled,disabled) \
                $(NULL)
 
 override_dh_gnome_clean:

Reply via email to