Source: gkrellkam Version: 2.0.0-1.2 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
gkrellkam fails to cross build from source, because it does not pass cross tools to make. The easiest way of fixing that - using dh_auto_build - is insufficient here as the upstream Makefile hard codes the build architecture pkg-config. pkg-config needs to be made substitutable as well. Please consider applying the attached patch. Helmut
diff -u gkrellkam-2.0.0/Makefile gkrellkam-2.0.0/Makefile --- gkrellkam-2.0.0/Makefile +++ gkrellkam-2.0.0/Makefile @@ -13,7 +13,8 @@ GKRELLM_HDRS = /usr/include CC := gcc -GTKFLAGS := $(shell pkg-config gtk+-2.0 --cflags) +PKG_CONFIG ?= pkg-config +GTKFLAGS := $(shell $(PKG_CONFIG) gtk+-2.0 --cflags) CFLAGS := $(CFLAGS) -fPIC -Wall $(GTKFLAGS) -I$(GKRELLM_HDRS) LDFLAGS := -shared INST_DIR := $(DESTDIR)/usr/lib/gkrellm2/plugins diff -u gkrellkam-2.0.0/debian/changelog gkrellkam-2.0.0/debian/changelog --- gkrellkam-2.0.0/debian/changelog +++ gkrellkam-2.0.0/debian/changelog @@ -1,3 +1,12 @@ +gkrellkam (2.0.0-1.3) 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> Mon, 09 Sep 2019 20:38:25 +0200 + gkrellkam (2.0.0-1.2) unstable; urgency=medium * Non-maintainer upload reverted: --- gkrellkam-2.0.0/debian/files +++ gkrellkam-2.0.0.orig/debian/files @@ -1 +0,0 @@ -gkrellkam_2.0.0-1.2_source.buildinfo x11 optional diff -u gkrellkam-2.0.0/debian/rules gkrellkam-2.0.0/debian/rules --- gkrellkam-2.0.0/debian/rules +++ gkrellkam-2.0.0/debian/rules @@ -18,10 +18,7 @@ build: configure-stamp build-stamp build-stamp: dh_testdir - - # Add here commands to compile the package. - $(MAKE) - + dh_auto_build touch build-stamp clean: