Source: libident
Version: 0.22-3.1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

libident successfully cross builds an entirely broken package. While
being tagged for the host architecture, the actual binaries are for the
build architecture. libident should be using cross tools and they can be
easily supplied from dpkg's buildtools.mk now. Please consider applying
the attached patch.

What would be even better is using debhelper. Doing so would have lots
of benefits including but not limited to:
 * Fixing this bug.
 * Making DEB_BUILD_OPTIONS=nostrip work.
 * Generating a -dbgsym package.
 * Making the package more reproducible.
 * Making debian/rules much shorter.

Helmut
diff -u libident-0.22/debian/changelog libident-0.22/debian/changelog
--- libident-0.22/debian/changelog
+++ libident-0.22/debian/changelog
@@ -1,3 +1,10 @@
+libident (0.22-3.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dpkg's buildtools.mk supply build tools. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Mon, 11 Nov 2019 21:16:05 +0100
+
 libident (0.22-3.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -u libident-0.22/debian/rules libident-0.22/debian/rules
--- libident-0.22/debian/rules
+++ libident-0.22/debian/rules
@@ -6,7 +6,9 @@
 version  = $(shell grep "^$(source) " debian/changelog|head -n 1|sed 
's/.*(\(.*\)\-[^\-]*).*/\1/g')
 revision = $(shell grep "^$(source) " debian/changelog|head -n 1|sed 
's/.*([^\-]*\-\(.*\)).*/\1/g')
 
-installexe = install -g root -o root -m 755
+include /usr/share/dpkg/buildtools.mk
+
+installexe = install --strip-program=$(STRIP) -g root -o root -m 755
 installbin = $(installexe)
 installdoc = install -g root -o root -m 644
 
@@ -26,7 +28,6 @@
             $(tmpdir-dev)/usr/lib \
             $(tmpdir-dev)/usr/share/man/man3
 
-CC=gcc
 CFLAGS=-g -Wall -DHAVE_ANSIHEADERS -D_REENTRANT
 LDFLAGS=
 
@@ -80,9 +81,9 @@
        # dont compress copyright
        gzip -v9 $(tmpdir)/usr/share/doc/libident/README
        gzip -v9 $(tmpdir)/usr/share/doc/libident/changelog.Debian
-       strip --strip-debug    $(tmpdir-dev)/usr/lib/libident.a
-       strip --strip-unneeded $(tmpdir)/usr/lib/libident.so.$(version)
-       strip --remove-section=.comment $(tmpdir)/usr/lib/libident.so.$(version)
+       $(STRIP) --strip-debug    $(tmpdir-dev)/usr/lib/libident.a
+       $(STRIP) --strip-unneeded $(tmpdir)/usr/lib/libident.so.$(version)
+       $(STRIP) --remove-section=.comment 
$(tmpdir)/usr/lib/libident.so.$(version)
        ln -s libident $(tmpdir-dev)/usr/share/doc/libident-dev
        dpkg-shlibdeps $(tmpdir)/usr/sbin/in.identtestd
        dpkg-gencontrol -P$(tmpdir)     -plibident     -isp

Reply via email to