Source: poster
Version: 1:20050907-1.1
Tags: patch
User: [email protected]
Usertags: rebootstrap
poster fails to cross build from source, because it generally uses the
build architecture toolchain. dh_auto_build passes cross tools to make,
but the Makefile needs to be told to use them. The attached patch fixes
all the problems I found. I simply removed all stripping, because
dh_strip is way better at doing so. Please consider applying the
attached patch.
Helmut
diff -u poster-20050907/Makefile poster-20050907/Makefile
--- poster-20050907/Makefile
+++ poster-20050907/Makefile
@@ -8,7 +8,7 @@
#LIBS = -lm
poster: poster.c
- gcc $(CFLAGS) -o poster $(DEFINES) poster.c $(LIBS)
+ $(CC) $(CFLAGS) -o poster $(DEFINES) poster.c $(LIBS)
# HPUX: cc -O -Aa -D_POSIX_SOURCE -o poster poster.c -lm
# Note that this program might trigger a stupid bug in the HPUX C
library,
@@ -17,7 +17,6 @@
# or use gcc WITH the `-fwritable-strings' option.
install: poster
- strip poster
cp poster /usr/local/bin
cp poster.1 /usr/local/man/man1
diff -u poster-20050907/debian/changelog poster-20050907/debian/changelog
--- poster-20050907/debian/changelog
+++ poster-20050907/debian/changelog
@@ -1,3 +1,13 @@
+poster (1:20050907-1.2) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: (Closes: #-1)
+ + Let dh_auto_build pass cross compilers to make.
+ + Make gcc substitutable.
+ + Do not strip during make install.
+
+ -- Helmut Grohne <[email protected]> Thu, 14 Dec 2017 20:20:46 +0100
+
poster (1:20050907-1.1) unstable; urgency=medium
* Non-maintainer upload.
diff -u poster-20050907/debian/rules poster-20050907/debian/rules
--- poster-20050907/debian/rules
+++ poster-20050907/debian/rules
@@ -11,15 +11,12 @@
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
CFLAGS += -g
endif
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
- STRIP += -s
-endif
build: build-stamp
build-stamp:
dh_testdir
- $(MAKE)
+ dh_auto_build
touch build-stamp
clean:
@@ -35,7 +32,7 @@
dh_clean -k
dh_installdirs
install -d debian/poster/usr/bin
- install $(STRIP) poster debian/poster/usr/bin
+ install poster debian/poster/usr/bin
# Build architecture-independent files here.
binary-indep: build install