Source: gkrellm-leds
Version: 0.8.0-1.3
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

gkrellm-leds fails to cross build from source, because it builds for the
build architecture. Passing cross tools to make can be deferred to
dh_auto_build, but the Makefile does not pick up the PKG_CONFIG
variable. After fixing both, gkrellm-leds cross builds successfully.
Please consider applying the attached patch.

Helmut
diff -u gkrellm-leds-0.8.0/Makefile gkrellm-leds-0.8.0/Makefile
--- gkrellm-leds-0.8.0/Makefile
+++ gkrellm-leds-0.8.0/Makefile
@@ -1,8 +1,9 @@
 SHELL = /bin/sh
 VPATH = src:src/pixmaps
 
-GTK_INCLUDE = `pkg-config gtk+-2.0 --cflags`
-GTK_LIB = `pkg-config gtk+-2.0 --libs`
+PKG_CONFIG ?= pkg-config
+GTK_INCLUDE = `$(PKG_CONFIG) gtk+-2.0 --cflags`
+GTK_LIB = `$(PKG_CONFIG) gtk+-2.0 --libs`
 
 X11_LIB = -L/usr/X11R6/lib -lX11 -lXtst
 
diff -u gkrellm-leds-0.8.0/debian/changelog gkrellm-leds-0.8.0/debian/changelog
--- gkrellm-leds-0.8.0/debian/changelog
+++ gkrellm-leds-0.8.0/debian/changelog
@@ -1,3 +1,12 @@
+gkrellm-leds (0.8.0-1.4) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Let dh_auto_build pass cross tools to make.
+    + Makefile: Make pkg-config substitutable.
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 04 Nov 2018 09:29:24 +0100
+
 gkrellm-leds (0.8.0-1.3) unstable; urgency=medium
 
   * Non-maintainer upload
diff -u gkrellm-leds-0.8.0/debian/rules gkrellm-leds-0.8.0/debian/rules
--- gkrellm-leds-0.8.0/debian/rules
+++ gkrellm-leds-0.8.0/debian/rules
@@ -28,7 +28,7 @@
 build-stamp: configure-stamp 
        dh_testdir
 
-       $(MAKE)
+       dh_auto_build
 
        touch build-stamp
 

Reply via email to