Source: liblouis
Version: 3.7.0-1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

liblouis fails to satisfy cross build dependencies. This is rooted in
the Python dependencies. Fortunately, the Python packages built from
liblouis are Architecture: all, so we can move all those dependencies to
Build-Depends-Indep. Please consider applying the attached patch.

Helmut
diff --minimal -Nru liblouis-3.7.0/debian/changelog 
liblouis-3.7.0/debian/changelog
--- liblouis-3.7.0/debian/changelog     2018-09-15 10:11:03.000000000 +0200
+++ liblouis-3.7.0/debian/changelog     2018-11-06 06:26:53.000000000 +0100
@@ -1,3 +1,10 @@
+liblouis (3.7.0-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Demote python stuff to Build-Depends-Indep. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Tue, 06 Nov 2018 06:26:53 +0100
+
 liblouis (3.7.0-1) unstable; urgency=medium
 
   * New upstream release.
diff --minimal -Nru liblouis-3.7.0/debian/control liblouis-3.7.0/debian/control
--- liblouis-3.7.0/debian/control       2018-08-10 02:15:05.000000000 +0200
+++ liblouis-3.7.0/debian/control       2018-11-06 06:26:53.000000000 +0100
@@ -2,7 +2,8 @@
 Priority: optional
 Maintainer: Debian Accessibility Team <pkg-a11y-de...@lists.alioth.debian.org>
 Uploaders: Samuel Thibault <sthiba...@debian.org>, Cyril Brulebois 
<k...@debian.org>
-Build-Depends: debhelper (>= 9), dh-autoreconf, dh-python, autotools-dev, 
automake (>= 1:1.14~), pkg-config, python-all (>= 2.6.6-3~), python3-all, 
texinfo, help2man, dpkg-dev (>= 1.16), quilt, dh-autoreconf, libyaml-dev
+Build-Depends: debhelper (>= 9), dh-autoreconf, autotools-dev, automake (>= 
1:1.14~), pkg-config, texinfo, help2man, dpkg-dev (>= 1.16), quilt, 
dh-autoreconf, libyaml-dev
+Build-Depends-Indep: dh-python, python-all (>= 2.6.6-3~), python3-all
 Standards-Version: 4.2.0
 Section: libs
 Vcs-Git: https://anonscm.debian.org/git/pkg-a11y/liblouis.git
diff --minimal -Nru liblouis-3.7.0/debian/rules liblouis-3.7.0/debian/rules
--- liblouis-3.7.0/debian/rules 2018-04-23 18:36:31.000000000 +0200
+++ liblouis-3.7.0/debian/rules 2018-11-06 06:26:53.000000000 +0100
@@ -2,10 +2,20 @@
 # -*- makefile -*-
 
 %:
-       dh $@ --with autoreconf,python2,python3
+       dh $@ --with autoreconf $(DH_ADDONS)
+build binary %-indep: DH_ADDONS=--with=python2,python3
 
+DOPACKAGES := $(shell dh_listpackages)
+ifeq ($(filter python-louis,$(DOPACKAGES)),)
+PYVERS :=
+else
 PYVERS := $(shell pyversions -r)
+endif
+ifeq ($(filter python3-louis,$(DOPACKAGES)),)
+PY3VERS :=
+else
 PY3VERS := $(shell py3versions -r)
+endif
 
 override_dh_auto_configure:
        dh_auto_configure -- --enable-ucs4

Reply via email to