Source: at-spi2-core Version: 2.54.0-1 Tags: patch User: debian-cr...@lists.debian.org Usertags: cross-satisfiability
at-spi2-core cannot be cross built from source, because its build dependency on python3-sphinx is not satisfiable. Fortunately, the documentation is already split to two Arch:all packages and there is a configure option -Ddocs=... that does not influence non-documentation artifacts. We can simply skip the entire documentation build for arch-only (and thus speed up builds on buildds) and thus move sphinx to B-D-I making it irrelevant to cross building. I'm attaching a patch for your convenience. I also recommend dropping support for the nodoc build profile, because an arch-only build effectively is a better way of achieving a build without documentation for at-spi2-core. It doesn't actually become cross buildable for reasons outside of at-spi2-core's control. Helmut
diff --minimal -Nru at-spi2-core-2.54.0/debian/changelog at-spi2-core-2.54.0/debian/changelog --- at-spi2-core-2.54.0/debian/changelog 2024-09-16 13:34:32.000000000 +0200 +++ at-spi2-core-2.54.0/debian/changelog 2024-11-10 17:31:35.000000000 +0100 @@ -1,3 +1,10 @@ +at-spi2-core (2.54.0-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Improve cross building: Skip documentation in arch-only build. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Sun, 10 Nov 2024 17:31:35 +0100 + at-spi2-core (2.54.0-1) unstable; urgency=medium * Team upload diff --minimal -Nru at-spi2-core-2.54.0/debian/control at-spi2-core-2.54.0/debian/control --- at-spi2-core-2.54.0/debian/control 2024-09-16 13:34:32.000000000 +0200 +++ at-spi2-core-2.54.0/debian/control 2024-11-10 17:31:35.000000000 +0100 @@ -11,7 +11,6 @@ libx11-dev, libxtst-dev, meson (>= 0.63.0), pkgconf, - gtk-doc-tools, gi-docgen, python3-sphinx, gir1.2-dbus-1.0-dev, gir1.2-glib-2.0-dev, gir1.2-gobject-2.0-dev, @@ -20,8 +19,11 @@ xvfb <!nocheck>, at-spi2-core <!nocheck>, Build-Depends-Indep: docbook-xml <!nodoc>, + gi-docgen, + gtk-doc-tools, libglib2.0-doc <!nodoc>, - libglib2.0-dev-bin <!nodoc> + libglib2.0-dev-bin <!nodoc>, + python3-sphinx, Rules-Requires-Root: no Standards-Version: 4.6.2 Vcs-Browser: https://salsa.debian.org/a11y-team/at-spi2-core diff --minimal -Nru at-spi2-core-2.54.0/debian/rules at-spi2-core-2.54.0/debian/rules --- at-spi2-core-2.54.0/debian/rules 2024-09-16 13:34:32.000000000 +0200 +++ at-spi2-core-2.54.0/debian/rules 2024-11-10 17:31:35.000000000 +0100 @@ -9,6 +9,9 @@ configure_options += --native-file=$(CURDIR)/debian/meson/no-exe-wrapper.ini endif +DO_PACKAGES := $(shell dh_listpackages) +configure_options += -Ddocs=$(if $(filter at-spi2-doc libatk1.0-doc,$(DO_PACKAGES)),true,false) + %: dh $@ @@ -16,7 +19,6 @@ ac_cv_lib_ICE_IceConnectionNumber=no \ dh_auto_configure -- \ -Dintrospection=enabled \ - -Ddocs=true \ $(configure_options) \ -Ddefault_bus=dbus-broker