Source: properties-cpp Version: 0.0.2-7 Tags: patch User: [email protected] Usertags: ftcbfs
properties-cpp fails to cross build from source, because it builds gmock with the build architecture toolchain and then tries to link it into a host architecture executabe. While that could be fixable of itself, DEB_BUILD_OPTIONS=nocheck should have caused gmock to be unused. I'm therefore proposing to really skip building gmock in a nocheck build and am attaching a patch for your convenience. Helmut
diff --minimal -Nru properties-cpp-0.0.2/debian/changelog properties-cpp-0.0.2/debian/changelog --- properties-cpp-0.0.2/debian/changelog 2022-07-25 16:46:21.000000000 +0200 +++ properties-cpp-0.0.2/debian/changelog 2023-01-31 18:40:38.000000000 +0100 @@ -1,3 +1,10 @@ +properties-cpp (0.0.2-7.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Support DEB_BUILD_OPTIONS=nocheck. (Closes: #-1) + + -- Helmut Grohne <[email protected]> Tue, 31 Jan 2023 18:40:38 +0100 + properties-cpp (0.0.2-7) unstable; urgency=medium [ Debian Janitor ] diff --minimal -Nru properties-cpp-0.0.2/debian/patches/nocheck.patch properties-cpp-0.0.2/debian/patches/nocheck.patch --- properties-cpp-0.0.2/debian/patches/nocheck.patch 1970-01-01 01:00:00.000000000 +0100 +++ properties-cpp-0.0.2/debian/patches/nocheck.patch 2023-01-31 18:39:56.000000000 +0100 @@ -0,0 +1,11 @@ +--- properties-cpp-0.0.2.orig/CMakeLists.txt ++++ properties-cpp-0.0.2/CMakeLists.txt +@@ -39,6 +39,8 @@ + add_subdirectory(doc) + add_subdirectory(data) + add_subdirectory(include) ++IF(BUILD_TESTING) + add_subdirectory(tests) ++endif(BUILD_TESTING) + + # enable_coverage_report(posix_process_test linux_process_test) diff --minimal -Nru properties-cpp-0.0.2/debian/patches/series properties-cpp-0.0.2/debian/patches/series --- properties-cpp-0.0.2/debian/patches/series 2022-07-20 00:21:37.000000000 +0200 +++ properties-cpp-0.0.2/debian/patches/series 2023-01-31 18:39:30.000000000 +0100 @@ -1,2 +1,3 @@ 1001_fix-FTBFS-in-gtest.patch 1002_reproducible-builds.patch +nocheck.patch diff --minimal -Nru properties-cpp-0.0.2/debian/rules properties-cpp-0.0.2/debian/rules --- properties-cpp-0.0.2/debian/rules 2022-07-20 00:21:37.000000000 +0200 +++ properties-cpp-0.0.2/debian/rules 2023-01-31 18:40:38.000000000 +0100 @@ -8,6 +8,9 @@ %: dh $@ +override_dh_auto_configure: + dh_auto_configure -- -DBUILD_TESTING=$(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),OFF,ON) + override_dh_missing: dh_missing --fail-missing

