Source: lintex Version: 1.14-1 Tags: patch User: helm...@debian.org Usertags: rebootstrap
lintex fails to cross build from source. The immediate cause is failing to find libconfig.pc with the wrong pkg-config. The attached patch makes pkg-config substitutable to overcome that problem. Then, make install strips with the wrong strip. The easiest way of fixing that is avoiding this install target and just install the single binary using dh_install. Doing so also makes 02_install_dir.diff obsolete. Not stripping during make install also fixes DEB_BUILD_OPTIONS=nostrip as well as generation of -dbgsym packages. Please consider applying the attached patch. Helmut
diff --minimal -Nru lintex-1.14/debian/changelog lintex-1.14/debian/changelog --- lintex-1.14/debian/changelog 2015-02-09 01:02:59.000000000 +0100 +++ lintex-1.14/debian/changelog 2019-05-19 21:37:44.000000000 +0200 @@ -1,3 +1,12 @@ +lintex (1.14-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + cross.patch: Make pkg-config substitutable. + + Replacing stripping make install with debian/lintex.install. + + -- Helmut Grohne <hel...@subdivi.de> Sun, 19 May 2019 21:37:44 +0200 + lintex (1.14-1) unstable; urgency=medium * Imported Upstream version 1.14 diff --minimal -Nru lintex-1.14/debian/lintex.install lintex-1.14/debian/lintex.install --- lintex-1.14/debian/lintex.install 1970-01-01 01:00:00.000000000 +0100 +++ lintex-1.14/debian/lintex.install 2019-05-19 21:37:44.000000000 +0200 @@ -0,0 +1 @@ +lintex usr/bin diff --minimal -Nru lintex-1.14/debian/patches/cross.patch lintex-1.14/debian/patches/cross.patch --- lintex-1.14/debian/patches/cross.patch 1970-01-01 01:00:00.000000000 +0100 +++ lintex-1.14/debian/patches/cross.patch 2019-05-19 21:37:43.000000000 +0200 @@ -0,0 +1,15 @@ +--- lintex-1.14.orig/Makefile ++++ lintex-1.14/Makefile +@@ -1,8 +1,9 @@ + # $Id: Makefile,v 1.3 2001/12/02 11:00:05 loreti Exp $ + +-CFLAGS += -ansi -pedantic -Wall `pkg-config --cflags libconfig` +-#CFLAGS = -ansi -Wall -g `pkg-config --cflags libconfig` +-LIBS += `pkg-config --libs libconfig` ++PKG_CONFIG ?= pkg-config ++CFLAGS += -ansi -pedantic -Wall `$(PKG_CONFIG) --cflags libconfig` ++#CFLAGS = -ansi -Wall -g `$(PKG_CONFIG) --cflags libconfig` ++LIBS += `$(PKG_CONFIG) --libs libconfig` + + ROOT = debian/lintex/usr + diff --minimal -Nru lintex-1.14/debian/patches/series lintex-1.14/debian/patches/series --- lintex-1.14/debian/patches/series 2015-02-09 00:57:15.000000000 +0100 +++ lintex-1.14/debian/patches/series 2019-05-19 21:37:23.000000000 +0200 @@ -1 +1,2 @@ 02_install_dir.diff +cross.patch diff --minimal -Nru lintex-1.14/debian/rules lintex-1.14/debian/rules --- lintex-1.14/debian/rules 2012-09-11 13:27:15.000000000 +0200 +++ lintex-1.14/debian/rules 2019-05-19 21:37:44.000000000 +0200 @@ -3,3 +3,5 @@ %: dh $@ + +override_dh_auto_install: