Source: brotli
Version: 1.2.0-1
Severity: important
Justification: breaks architecture bootstrap
Tags: patch ftbfs

brotli fails to build from source in unstable when enabling the nopython
build profile. The debian/rules file contains two separate
dh_auto_configure invocations for cmake and the nopython one lacks the
-DBROTLI_BUILD_FOR_PACKAGE=ON flag that enables the build of static
libraries. Hence, dh_install becomes unhappy. I am attaching a slightly
more involved patch that moves this flag into a shared variable to
reduce the chances of repeating the mistake. Please consider applying
it.

Helmut
diff -Nru brotli-1.2.0/debian/changelog brotli-1.2.0/debian/changelog
--- brotli-1.2.0/debian/changelog       2026-02-01 12:00:26.000000000 +0100
+++ brotli-1.2.0/debian/changelog       2026-02-04 12:13:42.000000000 +0100
@@ -1,3 +1,10 @@
+brotli (1.2.0-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTBFS with nopython profile. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Wed, 04 Feb 2026 12:13:42 +0100
+
 brotli (1.2.0-1) unstable; urgency=medium
 
   * New upstream version 1.2.0
diff -Nru brotli-1.2.0/debian/rules brotli-1.2.0/debian/rules
--- brotli-1.2.0/debian/rules   2026-02-01 10:28:32.000000000 +0100
+++ brotli-1.2.0/debian/rules   2026-02-04 12:13:42.000000000 +0100
@@ -6,13 +6,15 @@
 
 export PYBUILD_NAME = brotli
 
+CMAKE_FLAGS := -DBROTLI_BUILD_FOR_PACKAGE=ON
+
 ifeq (,$(filter nopython,$(DEB_BUILD_PROFILES)))
 %:
        dh $@ --buildsystem=pybuild --with=python3
 
 override_dh_auto_configure:
        dh_auto_configure
-       dh_auto_configure --buildsystem=cmake -- -DBROTLI_BUILD_FOR_PACKAGE=ON
+       dh_auto_configure --buildsystem=cmake -- $(CMAKE_FLAGS)
 
 override_dh_auto_build:
        dh_auto_build
@@ -32,6 +34,9 @@
 else
 %:
        dh $@ --buildsystem=cmake
+
+override_dh_auto_configure:
+       dh_auto_configure --buildsystem=cmake -- $(CMAKE_FLAGS)
 endif
 
 override_dh_missing:

Reply via email to