Bug#1061466: nautilus FTBFS with nocheck profile: ../test/automated/displayless/meson.build:1:19: ERROR: Dependency "tracker-testutils-3.0" not found, tried pkgconfig

Helmut Grohne helmut at subdivi.de
Wed Jan 24 22:21:23 GMT 2024


Source: nautilus
Version: 45.2.1-3
Severity: serious
Tags: patch ftbfs trixie sid

nautilus fails to build from source when built with the nocheck profile.
Since trixie such a build failure is considered release-critical. The
build system does not automatically disable tests when test dependencies
are missing and fails. I'm attaching a patch for your convenience. I
verified that a nocheck build results in bit-identicial artifacts to a
regular build.

Helmut
-------------- next part --------------
diff --minimal -Nru nautilus-45.2.1/debian/changelog nautilus-45.2.1/debian/changelog
--- nautilus-45.2.1/debian/changelog	2024-01-12 02:39:25.000000000 +0100
+++ nautilus-45.2.1/debian/changelog	2024-01-24 23:12:48.000000000 +0100
@@ -1,3 +1,10 @@
+nautilus (45.2.1-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix nocheck FTBFS (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Wed, 24 Jan 2024 23:12:48 +0100
+
 nautilus (45.2.1-3) unstable; urgency=medium
 
   * Update tracker test patch to really skip the test failure
diff --minimal -Nru nautilus-45.2.1/debian/rules nautilus-45.2.1/debian/rules
--- nautilus-45.2.1/debian/rules	2024-01-12 02:39:25.000000000 +0100
+++ nautilus-45.2.1/debian/rules	2024-01-24 23:12:48.000000000 +0100
@@ -4,6 +4,12 @@
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs
 export DPKG_GENSYMBOLS_CHECK_LEVEL = 4
 
+ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
+ENABLE_TESTS := -Dtests=all
+else
+ENABLE_TESTS := -Dtests=none
+endif
+
 ifeq ($(DEB_HOST_ARCH_OS),linux)
 ENABLE_SELINUX := -Dselinux=true
 else
@@ -24,7 +30,7 @@
 	dh_auto_configure -- \
 		-Ddocs=true \
 		-Dpackagekit=true \
-		-Dtests=all \
+		$(ENABLE_TESTS) \
 		$(ENABLE_CLOUD) \
 		$(ENABLE_SELINUX)
 


More information about the pkg-gnome-maintainers mailing list