Source: jxrlib Version: 1.2~git20170615.f752187-5.3 Tags: patch User: [email protected] Usertags: ftcbfs
jxrlib fails to cross build from source, because it runs help2man on built binaries. While help2man normally is a difficult problem to cross building, jxrlib is a quite small package with few dependencies and thus enables solving the problem by building twice. I'm attaching a patch that proposes doing so. It adds a native build pass and runs help2man on the native executables. In case of a native build, the obj-$(DEB_BUILD_MULTIARCH) target already exists when the manual pages are created and thus there only is one build pass as before. Please consider applying the patch. Helmut
diff -Nru jxrlib-1.2~git20170615.f752187/debian/changelog jxrlib-1.2~git20170615.f752187/debian/changelog --- jxrlib-1.2~git20170615.f752187/debian/changelog 2024-08-17 09:05:27.000000000 +0200 +++ jxrlib-1.2~git20170615.f752187/debian/changelog 2025-12-19 21:55:42.000000000 +0100 @@ -1,3 +1,10 @@ +jxrlib (1.2~git20170615.f752187-5.4) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Add a native build pass for help2man. (Closes: #-1) + + -- Helmut Grohne <[email protected]> Fri, 19 Dec 2025 21:55:42 +0100 + jxrlib (1.2~git20170615.f752187-5.3) unstable; urgency=medium * Non-maintainer upload. diff -Nru jxrlib-1.2~git20170615.f752187/debian/rules jxrlib-1.2~git20170615.f752187/debian/rules --- jxrlib-1.2~git20170615.f752187/debian/rules 2024-08-17 08:51:28.000000000 +0200 +++ jxrlib-1.2~git20170615.f752187/debian/rules 2025-12-19 21:55:42.000000000 +0100 @@ -22,6 +22,10 @@ pkg_lib=libjxr0t64 pkg_dev=libjxr-dev +obj-$(DEB_BUILD_MULTIARCH): + dpkg-architecture -a$(DEB_BUILD_ARCH) -f -c dh_auto_configure --reload-all-buildenv-variables + dpkg-architecture -a$(DEB_BUILD_ARCH) -f -c dh_auto_build -- JxrDecApp JxrEncApp + override_dh_install: # bin dh_install -p$(pkg_bin) usr/bin @@ -37,11 +41,11 @@ dh_clean debian/JxrEncApp.1 dh_clean debian/JPEGXR_DPK_Spec_1.0.txt -debian/JxrDecApp.1: debian/JxrDecApp.1.in - LD_PRELOAD= LD_LIBRARY_PATH=./debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH) help2man --version-string=$(VER_FULL) --include=$< --output=$@ --no-info ./debian/tmp/usr/bin/JxrDecApp +debian/JxrDecApp.1: debian/JxrDecApp.1.in obj-$(DEB_BUILD_MULTIARCH) + LD_PRELOAD= LD_LIBRARY_PATH=./obj-$(DEB_BUILD_MULTIARCH) help2man --version-string=$(VER_FULL) --include=$< --output=$@ --no-info ./obj-$(DEB_BUILD_MULTIARCH)/JxrDecApp -debian/JxrEncApp.1: debian/JxrEncApp.1.in - LD_PRELOAD= LD_LIBRARY_PATH=./debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH) help2man --version-string=$(VER_FULL) --include=$< --output=$@ --no-info ./debian/tmp/usr/bin/JxrEncApp +debian/JxrEncApp.1: debian/JxrEncApp.1.in obj-$(DEB_BUILD_MULTIARCH) + LD_PRELOAD= LD_LIBRARY_PATH=./obj-$(DEB_BUILD_MULTIARCH) help2man --version-string=$(VER_FULL) --include=$< --output=$@ --no-info ./obj-$(DEB_BUILD_MULTIARCH)/JxrEncApp debian/JPEGXR_DPK_Spec_1.0.txt: doc/JPEGXR_DPK_Spec_1.0.doc antiword $< > $@ @@ -55,5 +59,8 @@ dh_installdocs debian/JPEGXR_DPK_Spec_1.0.txt dh_installdocs +execute_after_dh_auto_clean: + rm -Rf ./obj-* + get-orig-source: uscan --download --force-download --rename

