Source: libevdev
Version: 1.5.4+dfsg-1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

libevdev fails to cross build from source, because its Build-Depends
request the host architecture python, which is neither installable nor
executable. It also fails finding check.pc, because it uses the build
architecture pkg-config for looking it up. Both issues are fixed in the
attached patch. Please consider applying it.

Helmut
diff --minimal -Nru libevdev-1.5.4+dfsg/debian/changelog 
libevdev-1.5.4+dfsg/debian/changelog
--- libevdev-1.5.4+dfsg/debian/changelog        2016-08-26 23:10:52.000000000 
+0200
+++ libevdev-1.5.4+dfsg/debian/changelog        2016-11-02 20:57:51.000000000 
+0100
@@ -1,3 +1,12 @@
+libevdev (1.5.4+dfsg-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Annotate python build dependency with :native.
+    + Use triplet-prefixed pkg-config.
+
+ -- Helmut Grohne <hel...@subdivi.de>  Wed, 02 Nov 2016 20:54:10 +0100
+
 libevdev (1.5.4+dfsg-1) unstable; urgency=medium
 
   * New upstream release.
diff --minimal -Nru libevdev-1.5.4+dfsg/debian/control 
libevdev-1.5.4+dfsg/debian/control
--- libevdev-1.5.4+dfsg/debian/control  2016-05-17 09:43:29.000000000 +0200
+++ libevdev-1.5.4+dfsg/debian/control  2016-11-02 20:54:08.000000000 +0100
@@ -8,7 +8,7 @@
                doxygen,
                graphviz,
                pkg-config,
-               python
+               python:native
 Standards-Version: 3.9.8
 Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/libevdev.git
 Vcs-Git: https://anonscm.debian.org/git/collab-maint/libevdev.git
diff --minimal -Nru libevdev-1.5.4+dfsg/debian/rules 
libevdev-1.5.4+dfsg/debian/rules
--- libevdev-1.5.4+dfsg/debian/rules    2016-05-13 21:25:14.000000000 +0200
+++ libevdev-1.5.4+dfsg/debian/rules    2016-11-02 20:57:33.000000000 +0100
@@ -4,10 +4,12 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+include /usr/share/dpkg/architecture.mk
+
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
 # The tests needs libpthread
-export CHECK_LIBS=-lpthread $(shell pkg-config --libs check)
+export CHECK_LIBS=-lpthread $(shell $(DEB_HOST_GNU_TYPE)-pkg-config --libs 
check)
 
 # doxygen version
 doxygen_version := $(shell dpkg-query -W -f="\$${source:Version}\n" doxygen)

Reply via email to