Bug#1112686: chromaprint FTCBFS: fails running tests despite DEB_BUILD_OPTIONS containing nocheck
Source: chromaprint
Version: 1.6.0-1
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs
chromaprint started to fail to cross build from source in version
1.6.0-1. It seems that the new version defaults to BUILD_TESTS=ON.
debian/rules passes -DBUILD_TESTS=ON when DEB_BUILD_OPTIONS lacks
nocheck, but it did not pass -DBUILD_TESTS=OFF otherwise. Therefore it
actually is running tests. I'm attaching a patch for your covenience.
Once applying it, chromaprint cross builds again.
Helmut
diff -Nru chromaprint-1.6.0/debian/changelog chromaprint-1.6.0/debian/changelog
--- chromaprint-1.6.0/debian/changelog 2025-08-30 18:10:44.000000000 +0200
+++ chromaprint-1.6.0/debian/changelog 2025-08-31 15:36:33.000000000 +0200
@@ -1,3 +1,10 @@
+chromaprint (1.6.0-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Honour DEB_BUILD_OPTIONS=nocheck. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de> Sun, 31 Aug 2025 15:36:33 +0200
+
chromaprint (1.6.0-1) unstable; urgency=medium
* New upstream version 1.6.0
diff -Nru chromaprint-1.6.0/debian/rules chromaprint-1.6.0/debian/rules
--- chromaprint-1.6.0/debian/rules 2025-08-30 17:47:05.000000000 +0200
+++ chromaprint-1.6.0/debian/rules 2025-08-31 15:36:19.000000000 +0200
@@ -9,6 +9,8 @@
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
CONFIGURE_FLAGS += -DBUILD_TESTS=ON
CONFIGURE_FLAGS += -DGTEST_ROOT=/usr/src/googletest/googletest/
+else
+CONFIGURE_FLAGS += -DBUILD_TESTS=OFF
endif
%:
Reply to: