Source: encfs Version: 1.9.5-2 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
encfs fails to cross build from source, because a try run check fails. Looking closer this check isn't part of encfs itself part of a vendored dependency. Looking even closer, the relevant dependency is used for unit testing. Since we cannot run tests during cross builds, we might as well skip building tests. Indeed, doing so fixes the cross build. I'm attaching a patch for your convenience. I observe that encfs does not run tests during build at all. Still I consider building the tests a form of testing and thus have not disabled that. Helmut
diff --minimal -Nru encfs-1.9.5/debian/changelog encfs-1.9.5/debian/changelog --- encfs-1.9.5/debian/changelog 2023-01-21 18:06:03.000000000 +0100 +++ encfs-1.9.5/debian/changelog 2023-09-09 13:25:59.000000000 +0200 @@ -1,3 +1,10 @@ +encfs (1.9.5-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Skip building tests when DEB_BUILD_OPTIONS=nocheck (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Sat, 09 Sep 2023 13:25:59 +0200 + encfs (1.9.5-2) unstable; urgency=medium * Update debconf template translation diff --minimal -Nru encfs-1.9.5/debian/rules encfs-1.9.5/debian/rules --- encfs-1.9.5/debian/rules 2023-01-21 18:06:03.000000000 +0100 +++ encfs-1.9.5/debian/rules 2023-09-09 13:25:57.000000000 +0200 @@ -14,7 +14,12 @@ override_dh_auto_configure: # keep cmake's default rpath handling with rewritting on installation but target a custom folder - dh_auto_configure -- -DUSE_INTERNAL_TINYXML=off -DBUILD_SHARED_LIBS=on -DINSTALL_LIBENCFS=on -DLIB_INSTALL_DIR=lib/encfs + dh_auto_configure -- \ + -DUSE_INTERNAL_TINYXML=off \ + -DBUILD_SHARED_LIBS=on \ + -DINSTALL_LIBENCFS=on \ + -DLIB_INSTALL_DIR=lib/encfs \ + -DBUILD_UNIT_TESTS=$(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),off,on) ifneq ($(DOENCFSTESTS),FORCE) # needs the fuse kernel module -> ignore