Source: pal
Version: 0.4.3-8.1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

pal 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 -
does not fix that entirely, because the upstream Makefile hard codes the
build architecture pkg-config. The attached patch makes pal cross
buildable. Please consider applying it.

Helmut
diff -u pal-0.4.3/debian/changelog pal-0.4.3/debian/changelog
--- pal-0.4.3/debian/changelog
+++ pal-0.4.3/debian/changelog
@@ -1,3 +1,12 @@
+pal (0.4.3-8.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>  Wed, 27 Feb 2019 18:57:54 +0100
+
 pal (0.4.3-8.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -u pal-0.4.3/debian/patches/series pal-0.4.3/debian/patches/series
--- pal-0.4.3/debian/patches/series
+++ pal-0.4.3/debian/patches/series
@@ -11,0 +12 @@
+cross.patch
diff -u pal-0.4.3/debian/rules pal-0.4.3/debian/rules
--- pal-0.4.3/debian/rules
+++ pal-0.4.3/debian/rules
@@ -24,7 +24,7 @@
 build-arch: build-stamp
 build-stamp: $(QUILT_STAMPFN)
        dh_testdir
-       $(MAKE) "CFLAGS=$(CFLAGS)"
+       dh_auto_build -- "CFLAGS=$(CFLAGS)"
        touch $@
 
 .PHONY: clean
--- pal-0.4.3.orig/debian/patches/cross.patch
+++ pal-0.4.3/debian/patches/cross.patch
@@ -0,0 +1,24 @@
+--- pal-0.4.3.orig/src/Makefile
++++ pal-0.4.3/src/Makefile
+@@ -2,9 +2,9 @@
+ 
+ include Makefile.defs
+ 
+-INCLDIR = -I${prefix}/include `pkg-config --cflags glib-2.0`
++INCLDIR = -I${prefix}/include `$(PKG_CONFIG) --cflags glib-2.0`
+ LIBDIR  =
+-LIBS    = `pkg-config --libs glib-2.0` -lreadline -lncursesw
++LIBS    = `$(PKG_CONFIG) --libs glib-2.0` -lreadline -lncursesw
+ 
+ SRC     = main.c colorize.c output.c input.c event.c rl.c html.c latex.c \
+           add.c edit.c del.c remind.c search.c manage.c
+--- pal-0.4.3.orig/src/Makefile.defs
++++ pal-0.4.3/src/Makefile.defs
+@@ -5,6 +5,7 @@
+ # want to change this to /usr/local
+ prefix = /usr
+ CC      = gcc
++PKG_CONFIG ?= pkg-config
+ 
+ PAL_VERSION = 0.4.3
+ 

Reply via email to