Source: duperemove
Version: 0.11.1-2
Tags: patch upstream
User: helm...@debian.org
Usertags: rebootstrap

duperemove fails to cross build from source, because the upstream
Makefile hard codes the build architecture pkg-config. After making it
substitutable, dh_auto_build's substitution takes effect and duperemove
becomes cross buildable. Please consider applying the attached patch.

Helmut
--- duperemove-0.11.1.orig/Makefile
+++ duperemove-0.11.1/Makefile
@@ -2,6 +2,7 @@
 RELEASE=v$(VER)
 
 CC ?= gcc
+PKG_CONFIG ?= pkg-config
 CFLAGS ?= -Wall -ggdb -O2
 
 MANPAGES=duperemove.8 btrfs-extent-same.8 hashstats.8 show-shared-extents.8
@@ -41,10 +42,10 @@
 install_progs = duperemove hashstats btrfs-extent-same show-shared-extents
 progs = $(install_progs) csum-test
 
-glib_CFLAGS=$(shell pkg-config --cflags glib-2.0)
-glib_LIBS=$(shell pkg-config --libs glib-2.0)
-sqlite_CFLAGS=$(shell pkg-config --cflags sqlite3)
-sqlite_LIBS=$(shell pkg-config --libs sqlite3)
+glib_CFLAGS=$(shell $(PKG_CONFIG) --cflags glib-2.0)
+glib_LIBS=$(shell $(PKG_CONFIG) --libs glib-2.0)
+sqlite_CFLAGS=$(shell $(PKG_CONFIG) --cflags sqlite3)
+sqlite_LIBS=$(shell $(PKG_CONFIG) --libs sqlite3)
 
 ifdef DEBUG
 	DEBUG_FLAGS = -ggdb3 -fsanitize=address -fno-omit-frame-pointer	\

Reply via email to