Source: sac
Version: 1.9b5-3
Tags: patch
User: [email protected]
Usertags: ftcbfs
sac 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 sac entirely. It still passes -s to install and uses the
build architecture strip. A good solution here is to make install
substitutable and passing a non-stripping install. dh_strip will take
care of stripping. Please consider applying the attached patch.
Helmut
diff -u sac-1.9b5/Makefile sac-1.9b5/Makefile
--- sac-1.9b5/Makefile
+++ sac-1.9b5/Makefile
@@ -10,6 +10,7 @@
#
CC=gcc
+INSTALL=install
# For Intel platforms (use -m386 w/ AMD CPU's for better speed):
#CFLAGS=-Wall -O2 -fomit-frame-pointer -m486
@@ -89,22 +90,22 @@
if [ -f sac.o -o -f raw.o -o -f writetmp.o -o -f wcat.o ]; then rm *.o;
fi
install: all
- install -d $(BINDIR)
+ $(INSTALL) -d $(BINDIR)
if [ -f $(SAC_DEST) ]; then \
- install -m 0111 -s $(SAC_DEST) $(BINDIR)/$(SAC_DEST); \
+ $(INSTALL) -m 0111 -s $(SAC_DEST) $(BINDIR)/$(SAC_DEST); \
fi
if [ -f $(RAW_DEST) ]; then \
- install -m 0111 -s $(RAW_DEST) $(BINDIR)/$(RAW_DEST); \
+ $(INSTALL) -m 0111 -s $(RAW_DEST) $(BINDIR)/$(RAW_DEST); \
fi
if [ -f $(WRITETMP_DEST) ]; then \
- install -m 0111 -s $(WRITETMP_DEST) $(BINDIR)/$(WRITETMP_DEST);
\
+ $(INSTALL) -m 0111 -s $(WRITETMP_DEST)
$(BINDIR)/$(WRITETMP_DEST); \
fi
if [ -f $(WCAT_DEST) ]; then \
- install -m 0111 -s $(WCAT_DEST) $(BINDIR)/$(WCAT_DEST); \
+ $(INSTALL) -m 0111 -s $(WCAT_DEST) $(BINDIR)/$(WCAT_DEST); \
fi
for man in $(MANS); do \
m=`expr match $$man '.*\(.\)'`; \
- install -m 0444 $$man $(MANDIR)/man$$m/$$man; \
+ $(INSTALL) -m 0444 $$man $(MANDIR)/man$$m/$$man; \
done
VERSION=1.9
diff -u sac-1.9b5/debian/rules sac-1.9b5/debian/rules
--- sac-1.9b5/debian/rules
+++ sac-1.9b5/debian/rules
@@ -8,7 +8,7 @@
build-arch:
dh_testdir
- $(MAKE) "CFLAGS=-Wall -O2 -fomit-frame-pointer"
+ dh_auto_build -- "CFLAGS=-Wall -O2 -fomit-frame-pointer"
touch build-arch
clean:
@@ -34,7 +34,7 @@
dh_testroot
dh_clean -k -s
dh_installdirs -s
- make install BINDIR=debian/sac/usr/bin MANDIR=debian/sac/usr/share/man
+ make install BINDIR=debian/sac/usr/bin MANDIR=debian/sac/usr/share/man
INSTALL='install --strip-program=true'
dh_install -s
diff -u sac-1.9b5/debian/control sac-1.9b5/debian/control
--- sac-1.9b5/debian/control
+++ sac-1.9b5/debian/control
@@ -2,7 +2,7 @@
Section: admin
Priority: optional
Maintainer: Javier Fernandez-Sanguino Pen~a <[email protected]>
-Build-Depends: debhelper
+Build-Depends: debhelper (>= 7)
Standards-Version: 3.5.6.1
Package: sac
diff -u sac-1.9b5/debian/changelog sac-1.9b5/debian/changelog
--- sac-1.9b5/debian/changelog
+++ sac-1.9b5/debian/changelog
@@ -1,3 +1,12 @@
+sac (1.9b5-3.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: (Closes: #-1)
+ + Let dh_auto_build pass cross tools to make.
+ + Don't strip during make install.
+
+ -- Helmut Grohne <[email protected]> Wed, 15 Apr 2020 08:51:22 +0200
+
sac (1.9b5-3) unstable; urgency=low
* Fix "sac ftbfs on armel and armhf. struct user conflicts with system