Source: clamav
Version: 0.99.2+dfsg-4
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

clamav fails to cross build from source, because it Build-Depends on the
host architecture perl and python, both of which are neither installable
nor executable. Indeed clamav only uses both interpreters as build
tools. Thus it should ask for the build architecture instances of them.
This can be achieved by annotating the respective dependencies with
:native. After doing so cross building clamav succeeds. Please consider
applying the attached patch.

Helmut
diff --minimal -Nru clamav-0.99.2+dfsg/debian/changelog 
clamav-0.99.2+dfsg/debian/changelog
--- clamav-0.99.2+dfsg/debian/changelog 2016-10-06 21:13:04.000000000 +0200
+++ clamav-0.99.2+dfsg/debian/changelog 2016-11-12 09:27:36.000000000 +0100
@@ -1,3 +1,10 @@
+clamav (0.99.2+dfsg-4.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Annotate interpreter dependencies with :native (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sat, 12 Nov 2016 09:27:36 +0100
+
 clamav (0.99.2+dfsg-4) unstable; urgency=medium
 
   * Remove Stephen Gran as Uploader and thank you for your work
diff --minimal -Nru clamav-0.99.2+dfsg/debian/control 
clamav-0.99.2+dfsg/debian/control
--- clamav-0.99.2+dfsg/debian/control   2016-10-06 20:56:41.000000000 +0200
+++ clamav-0.99.2+dfsg/debian/control   2016-11-12 09:27:34.000000000 +0100
@@ -27,10 +27,10 @@
                libsystemd-dev [linux-any],
                libtfm-dev,
                libxml2-dev,
-               perl,
+               perl:native,
                pkg-config,
                po-debconf,
-               python,
+               python:native,
                zlib1g-dev
 Standards-Version: 3.9.7
 Vcs-Git: https://anonscm.debian.org/git/pkg-clamav/clamav.git
_______________________________________________
Pkg-clamav-devel mailing list
Pkg-clamav-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-clamav-devel

Reply via email to