Source: abr2gbr Version: 1:1.0.2-2.1 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
abr2gbr fails to cross build from source, because it uses build architecture build tools. For one thing, debian/rules does not pass cross tools to make - which is commonly fixed by using dh_auto_build - and for another, the Makefile hard codes the build architecture pkg-config. Please consider applying the attached patch to make abr2gbr cross buildable. Helmut
diff --minimal -Nru abr2gbr-1.0.2/debian/changelog abr2gbr-1.0.2/debian/changelog --- abr2gbr-1.0.2/debian/changelog 2020-02-17 22:29:46.000000000 +0100 +++ abr2gbr-1.0.2/debian/changelog 2020-02-20 08:08:44.000000000 +0100 @@ -1,3 +1,12 @@ +abr2gbr (1:1.0.2-2.2) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + cross.patch: Make pkg-config substitutable. + + Let dh_auto_build pass cross tools to make. + + -- Helmut Grohne <hel...@subdivi.de> Thu, 20 Feb 2020 08:08:44 +0100 + abr2gbr (1:1.0.2-2.1) unstable; urgency=medium * Non-maintainer upload. diff --minimal -Nru abr2gbr-1.0.2/debian/patches/cross.patch abr2gbr-1.0.2/debian/patches/cross.patch --- abr2gbr-1.0.2/debian/patches/cross.patch 1970-01-01 01:00:00.000000000 +0100 +++ abr2gbr-1.0.2/debian/patches/cross.patch 2020-02-20 08:08:43.000000000 +0100 @@ -0,0 +1,14 @@ +--- abr2gbr-1.0.2.orig/Makefile ++++ abr2gbr-1.0.2/Makefile +@@ -24,8 +24,9 @@ + + OBJDIR = .obj + BINDIR = /usr/bin +-CFLAGS = $(CCFLAGS) $(shell $(BINDIR)/pkg-config --cflags glib-2.0) +-LIBS = $(CLIBS) $(shell $(BINDIR)/pkg-config --libs glib-2.0) ++PKG_CONFIG ?= $(BINDIR)/pkg-config ++CFLAGS = $(CCFLAGS) $(shell $(PKG_CONFIG) --cflags glib-2.0) ++LIBS = $(CLIBS) $(shell $(PKG_CONFIG) --libs glib-2.0) + DESTS = $(addprefix $(OBJDIR)/, $(SOURCES:.c=.o)) + BIN = abr2gbr + DEPEND = $(OBJDIR)/.depend diff --minimal -Nru abr2gbr-1.0.2/debian/patches/series abr2gbr-1.0.2/debian/patches/series --- abr2gbr-1.0.2/debian/patches/series 2020-02-17 22:28:03.000000000 +0100 +++ abr2gbr-1.0.2/debian/patches/series 2020-02-20 08:08:09.000000000 +0100 @@ -1,2 +1,3 @@ fix_compile_flags-1:1.0.2-2 gcc9.patch +cross.patch diff --minimal -Nru abr2gbr-1.0.2/debian/rules abr2gbr-1.0.2/debian/rules --- abr2gbr-1.0.2/debian/rules 2010-08-27 21:13:41.000000000 +0200 +++ abr2gbr-1.0.2/debian/rules 2020-02-20 08:08:44.000000000 +0100 @@ -20,9 +20,7 @@ build-stamp: configure-stamp dh_testdir - - $(MAKE) CCFLAGS="$(CFLAGS)" - + dh_auto_build -- CCFLAGS="$(CFLAGS)" touch $@ clean: