Source: onscripter
Version: 20190819-1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

onscripter fails to cross build from source, because it uses build
architecture build tools. In debian/rules, pkg-config is hard coded.
Seeding pkg-config from dpkg's buildtools.mk is the common way to fix
that. Please consider applying the attached patch.

Helmut
diff --minimal -Nru onscripter-20190819/debian/changelog 
onscripter-20190819/debian/changelog
--- onscripter-20190819/debian/changelog        2019-08-20 11:01:43.000000000 
+0200
+++ onscripter-20190819/debian/changelog        2019-09-11 19:04:38.000000000 
+0200
@@ -1,3 +1,10 @@
+onscripter (20190819-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Seed build tools from dpkg's buildtools.mk. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Wed, 11 Sep 2019 19:04:38 +0200
+
 onscripter (20190819-1) unstable; urgency=low
 
   [ Helmut Grohne <hel...@subdivi.de> ]
diff --minimal -Nru onscripter-20190819/debian/rules 
onscripter-20190819/debian/rules
--- onscripter-20190819/debian/rules    2019-08-20 11:01:43.000000000 +0200
+++ onscripter-20190819/debian/rules    2019-09-11 19:04:37.000000000 +0200
@@ -64,8 +64,8 @@
 
 # Use lua if it is installed
 ifneq (,$(DEB_LUA_FLAG))
-CONFINCS += `pkg-config --cflags lua5.2`
-CONFLIBS += `pkg-config --libs lua5.2`
+CONFINCS += `$(PKG_CONFIG) --cflags lua5.2`
+CONFLIBS += `$(PKG_CONFIG) --libs lua5.2`
 CONFDEFS += -DUSE_LUA
 CONFEXT_OBJS += LUAHandler.o
 endif

Reply via email to