Source: wavemon
Version: 0.8.1-1
Tags: patch
User: [email protected]
Usertags: rebootstrap

wavemon fails to cross build from source, because it uses the make
default of CC "cc" as the compiler rather than the cross compiler set up
by configure. Fixing the CC assignment in Makefile.in makes the cross
build succeed. Please consider applying the attached patch.

Helmut
diff --minimal -Nru wavemon-0.8.1/debian/changelog 
wavemon-0.8.1/debian/changelog
--- wavemon-0.8.1/debian/changelog      2017-01-03 00:02:03.000000000 +0100
+++ wavemon-0.8.1/debian/changelog      2017-01-27 09:41:51.000000000 +0100
@@ -1,3 +1,10 @@
+wavemon (0.8.1-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: 02-honour-CC.patch (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Fri, 27 Jan 2017 09:41:51 +0100
+
 wavemon (0.8.1-1) unstable; urgency=medium
 
   * New upstream release 
diff --minimal -Nru wavemon-0.8.1/debian/patches/02-honour-CC.patch 
wavemon-0.8.1/debian/patches/02-honour-CC.patch
--- wavemon-0.8.1/debian/patches/02-honour-CC.patch     1970-01-01 
01:00:00.000000000 +0100
+++ wavemon-0.8.1/debian/patches/02-honour-CC.patch     2017-01-27 
09:41:44.000000000 +0100
@@ -0,0 +1,19 @@
+From: Helmut Grohne <[email protected]>
+Subject: honour the CC variable from configure
+
+A ?= assignment to CC is a noop, because CC has a make default of "cc". This
+breaks e.g. cross compilation.
+
+Index: wavemon-0.8.1/Makefile.in
+===================================================================
+--- wavemon-0.8.1.orig/Makefile.in
++++ wavemon-0.8.1/Makefile.in
+@@ -8,7 +8,7 @@
+ exec_perms  = 0755
+ install-suid-root: exec_perms = 4755
+ 
+-CC     ?= @CC@
++CC      = @CC@
+ CFLAGS         ?= @CFLAGS@ @LIBNL3_CFLAGS@
+ CPPFLAGS ?= @CPPFLAGS@
+ LDFLAGS  ?= @LDFLAGS@
diff --minimal -Nru wavemon-0.8.1/debian/patches/series 
wavemon-0.8.1/debian/patches/series
--- wavemon-0.8.1/debian/patches/series 2016-01-30 19:25:56.000000000 +0100
+++ wavemon-0.8.1/debian/patches/series 2017-01-27 09:40:46.000000000 +0100
@@ -1 +1,2 @@
 01-patch-makefile.in-to-not-install-docs.patch
+02-honour-CC.patch

Reply via email to