Source: liblinear
Version: 2.1.0+dfsg-2
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

liblinear fails to cross build from source, due to its python build
dependencies. Turns out, it only needs them for building arch:all
packages, so we can move them to Build-Depends-Indep and thus make them
irrelevant to cross building. The attached patch implements that. Please
consider applying it and close this bug when doing so.

Helmut
diff --minimal -Nru liblinear-2.1.0+dfsg/debian/changelog 
liblinear-2.1.0+dfsg/debian/changelog
--- liblinear-2.1.0+dfsg/debian/changelog       2016-04-24 16:56:30.000000000 
+0200
+++ liblinear-2.1.0+dfsg/debian/changelog       2018-11-08 17:42:05.000000000 
+0100
@@ -1,3 +1,10 @@
+liblinear (2.1.0+dfsg-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Move python Build-Depends to Build-Depends-Indep. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Thu, 08 Nov 2018 17:42:05 +0100
+
 liblinear (2.1.0+dfsg-2) unstable; urgency=medium
 
   * Drop package libocas-dbg in favor of automatic dbgsym packages, as per
diff --minimal -Nru liblinear-2.1.0+dfsg/debian/control 
liblinear-2.1.0+dfsg/debian/control
--- liblinear-2.1.0+dfsg/debian/control 2016-04-24 16:56:30.000000000 +0200
+++ liblinear-2.1.0+dfsg/debian/control 2018-11-08 17:41:34.000000000 +0100
@@ -5,10 +5,11 @@
 Uploaders: Chen-Tse Tsai <ctse.t...@gmail.com>
 Build-Depends:
     debhelper (>= 9),
+    libblas-dev
+Build-Depends-Indep:
     dh-python,
     python-all (>= 2.6.6-3~),
     python3-all,
-    libblas-dev
 Standards-Version: 3.9.8
 Homepage: http://www.csie.ntu.edu.tw/~cjlin/liblinear/
 Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/liblinear.git
diff --minimal -Nru liblinear-2.1.0+dfsg/debian/rules 
liblinear-2.1.0+dfsg/debian/rules
--- liblinear-2.1.0+dfsg/debian/rules   2016-04-24 16:56:30.000000000 +0200
+++ liblinear-2.1.0+dfsg/debian/rules   2018-11-08 17:42:03.000000000 +0100
@@ -35,7 +35,8 @@
 
 
 %:
-       dh $@ --with=python2,python3
+       dh $@ $(DH_ADDONS)
+build binary %-indep: DH_ADDONS=--with=python2,python3
 
 
 override_dh_auto_install:

Reply via email to