Source: brotli
Version: 1.0.7-2
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap
Control: affects -1 + src:curl

curl recently gained a build dependency on libbrotli-dev. This means,
that brotli is now required for architecture bootstrap. We'll need to be
able to build brotli without having python available. This is typically
implemented using the nopython build profile. Please consider applying
the attached patch.

Helmut
diff --minimal -Nru brotli-1.0.7/debian/changelog brotli-1.0.7/debian/changelog
--- brotli-1.0.7/debian/changelog       2019-01-07 23:11:10.000000000 +0100
+++ brotli-1.0.7/debian/changelog       2019-09-17 22:15:21.000000000 +0200
@@ -1,3 +1,10 @@
+brotli (1.0.7-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Support the nopython build profile. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Tue, 17 Sep 2019 22:15:21 +0200
+
 brotli (1.0.7-2) unstable; urgency=medium
 
   * Refresh packaging (std-ver, compat=12)
diff --minimal -Nru brotli-1.0.7/debian/control brotli-1.0.7/debian/control
--- brotli-1.0.7/debian/control 2019-01-07 23:11:10.000000000 +0100
+++ brotli-1.0.7/debian/control 2019-09-17 22:12:40.000000000 +0200
@@ -6,13 +6,13 @@
 Build-Depends: cmake,
                debhelper (>= 12),
                debhelper-compat (= 12),
-               dh-python,
-               python,
-               python-dev,
-               python-setuptools,
-               python3,
-               python3-all-dev,
-               python3-setuptools
+               dh-python <!nopython>,
+               python <!nopython>,
+               python-dev <!nopython>,
+               python-setuptools <!nopython>,
+               python3 <!nopython>,
+               python3-all-dev <!nopython>,
+               python3-setuptools <!nopython>,
 Standards-Version: 4.3.0
 Vcs-Browser: https://salsa.debian.org/debian/brotli
 Vcs-Git: https://salsa.debian.org/debian/brotli.git
@@ -20,6 +20,7 @@
 
 Package: python-brotli
 Architecture: any
+Build-Profiles: <!nopython>
 Depends: ${misc:Depends}, ${python:Depends}, ${shlibs:Depends}
 Description: lossless compression algorithm and format (Python 2 version)
  Brotli is a generic-purpose lossless compression algorithm
@@ -33,6 +34,7 @@
 
 Package: python3-brotli
 Architecture: any
+Build-Profiles: <!nopython>
 Depends: ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends}
 Description: lossless compression algorithm and format (Python 3 version)
  Brotli is a generic-purpose lossless compression algorithm
diff --minimal -Nru brotli-1.0.7/debian/rules brotli-1.0.7/debian/rules
--- brotli-1.0.7/debian/rules   2018-02-03 08:56:52.000000000 +0100
+++ brotli-1.0.7/debian/rules   2019-09-17 22:15:19.000000000 +0200
@@ -6,6 +6,7 @@
 
 export PYBUILD_NAME = brotli
 
+ifeq (,$(filter nopython,$(DEB_BUILD_PROFILES)))
 %:
        dh $@ --buildsystem=pybuild --with=python2,python3
 
@@ -28,6 +29,10 @@
 override_dh_auto_test:
        dh_auto_test
        dh_auto_test --buildsystem=cmake
+else
+%:
+       dh $@ --buildsystem=cmake
+endif
 
 override_dh_install:
        find debian/tmp -name '*.a' -print -delete

Reply via email to