Source: csv2latex Version: 0.21-1 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
csv2latex fails to cross build from source, because it strips with the wrong strip at make install time. Beyond breaking cross compilation, this breaks DEB_BUILD_OPTION=nostrip as well as generation of -dbgsym packages. It is best to defer all stripping to dh_strip. The attached patch implements that. Please consider applying it. Helmut
diff --minimal -Nru csv2latex-0.21/debian/changelog csv2latex-0.21/debian/changelog --- csv2latex-0.21/debian/changelog 2018-07-02 23:52:26.000000000 +0200 +++ csv2latex-0.21/debian/changelog 2019-12-28 21:47:36.000000000 +0100 @@ -1,3 +1,12 @@ +csv2latex (0.21-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS and DEB_BUILD_OPTIONS=nostrip and -dbgsym: (Closes: #-1) + + nostrip.patch: Make stripping optional. + + Defer all stripping to dh_strip. + + -- Helmut Grohne <hel...@subdivi.de> Sat, 28 Dec 2019 21:47:36 +0100 + csv2latex (0.21-1) unstable; urgency=medium * new upstream version 0.21 (options --font and --landscape) diff --minimal -Nru csv2latex-0.21/debian/patches/nostrip.patch csv2latex-0.21/debian/patches/nostrip.patch --- csv2latex-0.21/debian/patches/nostrip.patch 1970-01-01 01:00:00.000000000 +0100 +++ csv2latex-0.21/debian/patches/nostrip.patch 2019-12-28 21:47:14.000000000 +0100 @@ -0,0 +1,16 @@ +--- csv2latex-0.21.orig/Makefile ++++ csv2latex-0.21/Makefile +@@ -4,11 +4,12 @@ + MANDIR=$(PREFIX)/share/man/man1 + CFLAGS=-Wall -Wextra -pedantic -Os + GZIP=gzip --to-stdout ++STRIP?=strip + all: + $(CC) $(CPPFLAGS) $(CFLAGS) $(PROGNAME).c $(LDFLAGS) -o $(PROGNAME) + $(GZIP) $(PROGNAME).1 > $(PROGNAME).1.gz + install: +- strip $(PROGNAME) ++ $(STRIP) $(PROGNAME) + install $(PROGNAME) ${DESTDIR}$(BINDIR)/$(PROGNAME) + install -D $(PROGNAME).1.gz ${DESTDIR}$(MANDIR)/$(PROGNAME).1.gz + uninstall: diff --minimal -Nru csv2latex-0.21/debian/patches/series csv2latex-0.21/debian/patches/series --- csv2latex-0.21/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 +++ csv2latex-0.21/debian/patches/series 2019-12-28 21:46:27.000000000 +0100 @@ -0,0 +1 @@ +nostrip.patch diff --minimal -Nru csv2latex-0.21/debian/rules csv2latex-0.21/debian/rules --- csv2latex-0.21/debian/rules 2018-07-02 23:52:26.000000000 +0200 +++ csv2latex-0.21/debian/rules 2019-12-28 21:47:35.000000000 +0100 @@ -6,3 +6,4 @@ DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(CURDIR)/debian/csv2latex/ +export STRIP=true