Source: libmypaint
Version: 1.6.0-4
Tags: patch
User: [email protected]
Usertags: cross-satisfiability

libmypaint cannot be cross built from source, because several of its
documentation-related dependencies are not satisfiable. Rather than
think about how to fix that, I noted that the documentation is only
needed for Arch: all packages and that the implemented nodoc profile
already nicely separates that aspect. In effect, I now propose to imply
the nodoc profile in arch-only builds. At that point the profile becomes
fairly useless and could be removed in principle. Once doing so,
libmypaint just cross builds. Please consider applying the attached
patch in forky.

Helmut
diff --minimal -Nru libmypaint-1.6.0/debian/changelog 
libmypaint-1.6.0/debian/changelog
--- libmypaint-1.6.0/debian/changelog   2025-04-26 04:59:25.000000000 +0200
+++ libmypaint-1.6.0/debian/changelog   2025-06-20 07:54:02.000000000 +0200
@@ -1,3 +1,10 @@
+libmypaint (1.6.0-4.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Turn arch-only build into a nodoc build. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Fri, 20 Jun 2025 07:54:02 +0200
+
 libmypaint (1.6.0-4) unstable; urgency=medium
 
   * Fix armel-specific FTBFS by skipping flaky tests. (Closes: #1103376)
diff --minimal -Nru libmypaint-1.6.0/debian/control 
libmypaint-1.6.0/debian/control
--- libmypaint-1.6.0/debian/control     2025-04-26 04:59:25.000000000 +0200
+++ libmypaint-1.6.0/debian/control     2025-06-20 07:53:57.000000000 +0200
@@ -5,17 +5,17 @@
 Uploaders: Jeremy Bicha <[email protected]>, Vincent Cheng <[email protected]>
 Build-Depends: autoconf-archive,
                debhelper-compat (= 13),
-               doxygen <!nodoc>,
                gobject-introspection,
                intltool,
                libgirepository1.0-dev,
                libglib2.0-dev,
-               libjs-jquery <!nodoc>,
-               libjs-underscore <!nodoc>,
                libjson-c-dev,
                pkgconf,
-               python3-breathe <!nodoc>,
-               python3-sphinx <!nodoc>
+Build-Depends-Indep: doxygen <!nodoc>,
+                     libjs-jquery <!nodoc>,
+                     libjs-underscore <!nodoc>,
+                     python3-breathe <!nodoc>,
+                     python3-sphinx <!nodoc>
 Standards-Version: 4.7.2
 Homepage: https://github.com/mypaint/libmypaint
 Vcs-Browser: https://salsa.debian.org/multimedia-team/libmypaint
diff --minimal -Nru libmypaint-1.6.0/debian/rules libmypaint-1.6.0/debian/rules
--- libmypaint-1.6.0/debian/rules       2025-04-26 04:59:25.000000000 +0200
+++ libmypaint-1.6.0/debian/rules       2025-06-20 07:53:17.000000000 +0200
@@ -6,17 +6,13 @@
 include /usr/share/dpkg/buildflags.mk
 include /usr/share/dpkg/architecture.mk
 
-ifeq ($(filter nodoc, $(DEB_BUILD_PROFILES)),)
-       ENABLE_DOCS = --enable-docs
-else
-       ENABLE_DOCS = --disable-docs
-endif
-
 %:
        dh $@ --with gir
 
 override_dh_auto_configure:
-       dh_auto_configure -- $(ENABLE_DOCS) --enable-openmp
+       dh_auto_configure -- \
+               --$(if $(filter libmypaint-doc,$(shell 
dh_listpackages)),en,dis)able-docs \
+               --enable-openmp
 
 # Tests are known to be flaky on armel, see #1103376
 override_dh_auto_test:

Reply via email to