Source: bmon
Version: 1:4.0-4
Tags: upstream patch
User: helm...@debian.org
Usertags: rebootstrap

bmon fails to cross build from source, because it uses the build
architecture pkg-config. After switching detection to
PKG_PROG_PKG_CONFIG (which considers $ac_tool_prefix), cross builds
succeed. Please consider applying the attached patch.

Helmut
diff --minimal -Nru bmon-4.0/debian/changelog bmon-4.0/debian/changelog
--- bmon-4.0/debian/changelog   2017-07-03 09:26:55.000000000 +0200
+++ bmon-4.0/debian/changelog   2017-08-05 22:28:30.000000000 +0200
@@ -1,3 +1,10 @@
+bmon (1:4.0-4.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Add cross.patch (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sat, 05 Aug 2017 22:28:30 +0200
+
 bmon (1:4.0-4) unstable; urgency=low
 
   * Remove patch 02-hurd-ftbfs again. hurd misses some functions required by
diff --minimal -Nru bmon-4.0/debian/patches/cross.diff 
bmon-4.0/debian/patches/cross.diff
--- bmon-4.0/debian/patches/cross.diff  1970-01-01 01:00:00.000000000 +0100
+++ bmon-4.0/debian/patches/cross.diff  2017-08-05 22:28:30.000000000 +0200
@@ -0,0 +1,18 @@
+From: Helmut Grohne <hel...@subdivi.de>
+Subject: consider $ac_tool_prefix for pkg-config
+
+Index: bmon-4.0/configure.ac
+===================================================================
+--- bmon-4.0.orig/configure.ac
++++ bmon-4.0/configure.ac
+@@ -62,8 +62,8 @@
+ AC_CHECK_FUNCS(strchr strdup strerror strncasecmp strstr strtol)
+ AC_CHECK_FUNCS(uname getdate)
+ 
+-AC_PATH_PROG([PKG_CONFIG], [pkg-config], [no])
+-AS_IF([test "x$PKG_CONFIG" = "xno"],[
++PKG_PROG_PKG_CONFIG
++AS_IF([test "x$PKG_CONFIG" = "x"],[
+    AC_MSG_ERROR([
+       *** The pkg-config script could not be found. Make sure it is
+       *** in your path, or set the PKG_CONFIG environment variable
diff --minimal -Nru bmon-4.0/debian/patches/series 
bmon-4.0/debian/patches/series
--- bmon-4.0/debian/patches/series      2017-07-03 09:26:55.000000000 +0200
+++ bmon-4.0/debian/patches/series      2017-08-05 22:28:30.000000000 +0200
@@ -1 +1,2 @@
 01-bsd-ftbfs.diff
+cross.diff

Reply via email to