Source: stterm
Version: 0.6-1
Tags: patch
User: [email protected]
Usertags: rebootstrap

stterm fails to cross build, because it uses the build architecture
$(CC) (make default) and hard codes the build architectures pkg-config.
dpkg has a nice buildtools.mk to set up the corresponding variables and
after doing so and allowing to substitute pkg-config, stterm cross
builds successfully. Please consider applying the attached patch.

Helmut
diff --minimal -Nru stterm-0.6/debian/changelog stterm-0.6/debian/changelog
--- stterm-0.6/debian/changelog 2016-05-16 10:26:51.000000000 +0200
+++ stterm-0.6/debian/changelog 2018-06-06 16:13:52.000000000 +0200
@@ -1,3 +1,10 @@
+stterm (0.6-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dpkg's buildtools.mk supply cross tools. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Wed, 06 Jun 2018 16:13:52 +0200
+
 stterm (0.6-1) unstable; urgency=medium
 
   * Team upload
diff --minimal -Nru stterm-0.6/debian/rules stterm-0.6/debian/rules
--- stterm-0.6/debian/rules     2016-05-16 10:25:24.000000000 +0200
+++ stterm-0.6/debian/rules     2018-06-06 16:13:50.000000000 +0200
@@ -39,11 +39,14 @@
 export DEB_CFLAGS_MAINT_APPEND += \
     -D_BSD_SOURCE -D_XOPEN_SOURCE=600
 
+-include /usr/share/dpkg/buildtools.mk
+PKG_CONFIG ?= pkg-config
+
 # From original sources: config.mk
 
 CFLAGS += -std=c99 --param=ssp-buffer-size=4 \
          -I/usr/include -I/usr/X11R6/include -DVERSION=\"0.4.1\" \
-         $$(pkg-config --cflags freetype2)
+         $$($(PKG_CONFIG) --cflags freetype2)
 
 LDFLAGS += -s -L/usr/lib -lc -L/usr/X11R6/lib -lX11 -lutil -lXext -lXft 
-lfontconfig -lm
 

Reply via email to