Source: libarchive Version: 3.4.3-1 Tags: patch User: debian-cr...@lists.debian.org Usertags: cross-satisfiability ftcbfs
libarchive fails to cross build from source for three reasons: * Its gcc dependency is not cross-satisfiable. We need to perform toolchain dependency translation here, but this is not yet supported on the toolchain side. Bummer. Fortunately, the versioned dependency is implicitly satisfied even in oldstable. It can simply be dropped. * The locales | locales-all dependency is not cross-satisfiable. The locales-all alternative would help cross compilation, but sbuild drops alternatives and locales is not Multi-Arch: foreign. Fortunately, this is only needed for running tests, so we can opt out using <!nocheck>. * debian/rules wrongly matches for DEB_BUILD_OPTIONS=nocheck. Fix the pattern. After applying the attached patch, libarchive cross builds successfully. Please consider using it. Helmut
diff --minimal -Nru libarchive-3.4.3/debian/changelog libarchive-3.4.3/debian/changelog --- libarchive-3.4.3/debian/changelog 2020-06-03 15:40:28.000000000 +0200 +++ libarchive-3.4.3/debian/changelog 2020-07-31 19:41:19.000000000 +0200 @@ -1,3 +1,12 @@ +libarchive (3.4.3-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * debian/rules: correctly implement DBE_BUILD_OPTIONS=nocheck + * Annotate locale build dependencies with <!nocheck>. + * Drop versioned gcc from Build-Depends as it is satisfied in oldstable. + + -- Helmut Grohne <hel...@subdivi.de> Fri, 31 Jul 2020 19:41:19 +0200 + libarchive (3.4.3-1) unstable; urgency=medium * New upstream release: diff --minimal -Nru libarchive-3.4.3/debian/control libarchive-3.4.3/debian/control --- libarchive-3.4.3/debian/control 2020-06-03 15:40:28.000000000 +0200 +++ libarchive-3.4.3/debian/control 2020-07-31 19:41:17.000000000 +0200 @@ -2,7 +2,6 @@ Priority: optional Maintainer: Peter Pentchev <r...@debian.org> Build-Depends: debhelper-compat (= 13), - gcc (>> 4:9.2.1~), pkg-config, libbz2-dev, liblz4-dev, @@ -16,7 +15,7 @@ sharutils, nettle-dev, liblzo2-dev, - locales | locales-all + locales <!nocheck> | locales-all <!nocheck>, Standards-Version: 4.5.0 Section: libs Homepage: https://www.libarchive.org/ diff --minimal -Nru libarchive-3.4.3/debian/rules libarchive-3.4.3/debian/rules --- libarchive-3.4.3/debian/rules 2020-06-03 15:40:28.000000000 +0200 +++ libarchive-3.4.3/debian/rules 2020-07-31 19:40:49.000000000 +0200 @@ -22,7 +22,7 @@ find debian -name '*.la' -delete override_dh_auto_test: -ifneq (,$(filter check,$(DEB_BUILD_OPTIONS))) +ifneq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) ifneq (,$(shell locale -a | grep en_US.utf8)) _VERBOSITY_LEVEL=1 dh_auto_test --parallel else