Source: modemmanager
Version: 1.22.0-3
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: cross-satisfiability

modemmanager cannot be cross built from source, because some of its
build dependencies cannot be satisfied for cross compilation. I looked
into it and figured a couple of modifications that will end up making
them satisfiable. On the surface, dose reports a conflict involving
gtk-doc-tools. The documentation dependencies are only needed for
building Arch:all packages though, so they can be moved to B-D-I. Once
doing so, the build fails for lack of xsltproc, which was formerly
implied and needs to become explicit. Then the python3 modules pose
difficulties. It turns out that building the package does not actually
require the, so they can be annotated <!nocheck>. You can find the
changes mentioned here in the attached patch. Once applying it, cross
building can be attempted (but doesn't work for reasons outside of
modemmanager's control).

Helmut
diff --minimal -Nru modemmanager-1.22.0/debian/changelog 
modemmanager-1.22.0/debian/changelog
--- modemmanager-1.22.0/debian/changelog        2024-01-20 12:14:00.000000000 
+0100
+++ modemmanager-1.22.0/debian/changelog        2024-11-09 18:39:07.000000000 
+0100
@@ -1,3 +1,12 @@
+modemmanager (1.22.0-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Improve cross building: (Closes: #-1)
+    + Move documentation dependencies to B-D-I.
+    + Mark python3-dbus and python3-gi with the nocheck build profile.
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sat, 09 Nov 2024 18:39:07 +0100
+
 modemmanager (1.22.0-3) unstable; urgency=medium
 
   [ Jeremy BĂ­cha ]
diff --minimal -Nru modemmanager-1.22.0/debian/control 
modemmanager-1.22.0/debian/control
--- modemmanager-1.22.0/debian/control  2024-01-20 12:14:00.000000000 +0100
+++ modemmanager-1.22.0/debian/control  2024-11-09 18:39:07.000000000 +0100
@@ -23,15 +23,16 @@
                libtool,
                meson,
                polkitd,
-               python3-dbus,
-               python3-gi,
                systemd-dev,
                valac (>= 0.22),
-# Needed for building documentation
-               gtk-doc-tools <!nodoc>,
-               libglib2.0-doc <!nodoc>,
+               xsltproc,
 # Needed for automated tests
                dbus <!nocheck>,
+               python3-dbus <!nocheck>,
+               python3-gi <!nocheck>,
+# Needed for building documentation
+Build-Depends-Indep: gtk-doc-tools <!nodoc>,
+                     libglib2.0-doc <!nodoc>,
 Standards-Version: 4.6.2
 Rules-Requires-Root: no
 Vcs-Git: https://salsa.debian.org/DebianOnMobile-team/modemmanager.git

Reply via email to