Source: fontforge Version: 1:20201107~dfsg-2 Tags: patch User: debian-cr...@lists.debian.org Usertags: cross-satisfiability
fontforge cannot be cross built from source, because its Build-Depends are not cross-satisfiable. Before looking into this problem in detail, I observe that even though fontforge builds architecture-independent packages, it does not have any Build-Depends-Indep. Indeed, it turns out that a number of Build-Depends can quite simply be demoted to Build-Depends-Indep if one skips building the documentation during an arch-only build. Given that fontforge is reproducible, one can verify that this change does not affect the resulting binary packages. Please consider applying the attached patch. I don't think fontforge will become cross buildable, but it'll be a significant step in that direction. Please close this bug when moving dependencies from Build-Depends to Build-Depends-Indep. Surprisingly enough, my patch also moves uthash-dev and libxt-dev. This suggests that these dependencies are no longer necessary at all. Please also check whether you still need these at all. Helmut
diff --minimal -Nru fontforge-20201107~dfsg/debian/changelog fontforge-20201107~dfsg/debian/changelog --- fontforge-20201107~dfsg/debian/changelog 2020-11-25 02:21:25.000000000 +0100 +++ fontforge-20201107~dfsg/debian/changelog 2020-12-22 20:42:19.000000000 +0100 @@ -1,3 +1,10 @@ +fontforge (1:20201107~dfsg-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Reduce Build-Depends via Build-Depends-Indep. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Tue, 22 Dec 2020 20:42:19 +0100 + fontforge (1:20201107~dfsg-2) unstable; urgency=medium * debian/libfontforge4.install: Fix incorrect path. For example, on i386, diff --minimal -Nru fontforge-20201107~dfsg/debian/control fontforge-20201107~dfsg/debian/control --- fontforge-20201107~dfsg/debian/control 2020-11-25 02:21:25.000000000 +0100 +++ fontforge-20201107~dfsg/debian/control 2020-12-22 20:42:19.000000000 +0100 @@ -15,9 +15,7 @@ cmake, debhelper-compat (= 13), dh-sequence-python3, - dh-sequence-sphinxdoc <!nodoc>, shared-mime-info, - desktop-file-utils, libreadline-dev, libcairo2-dev, libfreetype-dev, @@ -29,17 +27,20 @@ libtiff5-dev, libuninameslist-dev, libxml2-dev, - libxt-dev, libglib2.0-dev, ninja-build, python3, python3-dev, - uthash-dev, - potrace, libwoff-dev, libgtk-3-dev, - python3-sphinx, pkg-kde-tools +Build-Depends-Indep: + dh-sequence-sphinxdoc <!nodoc>, + desktop-file-utils, + libxt-dev, + uthash-dev, + potrace, + python3-sphinx, Standards-Version: 4.5.0 Homepage: https://fontforge.github.io/en-US/ Vcs-Git: https://salsa.debian.org/fonts-team/fontforge.git diff --minimal -Nru fontforge-20201107~dfsg/debian/rules fontforge-20201107~dfsg/debian/rules --- fontforge-20201107~dfsg/debian/rules 2020-11-23 08:54:36.000000000 +0100 +++ fontforge-20201107~dfsg/debian/rules 2020-12-22 20:42:19.000000000 +0100 @@ -24,9 +24,9 @@ -DENABLE_DEBUG_RAW_POINTS=ON \ -DENABLE_FONTFORGE_EXTRAS=ON -ifneq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) +ifneq (_fontforge-doc,$(filter nodoc,$(DEB_BUILD_OPTIONS))_$(filter fontforge-doc,$(shell dh_listpackages))) DEB_CONFIGURE_EXTRA_FLAGS += -DENABLE_DOCS=OFF endif override_dh_auto_configure: dh_auto_configure --builddirectory=build/nox -- \