--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: magicfilter FTCBFS: successfully builds for the build architecture
- From: Helmut Grohne <helmut@subdivi.de>
- Date: Fri, 13 Nov 2020 08:43:22 +0100
- Message-id: <20201113074322.GA17080@alf.mars>
Source: magicfilter
Version: 1.2-65
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs
magicfilter successfully cross builds a completely broken package
containing build architecture binaries. I'm attaching a patch that makes
it use host architecture tools. Please consider applying it.
Also please consider using debhelper, but this is irrelevant for the
purpose of this bug.
Helmut
diff --minimal -Nru magicfilter-1.2/debian/changelog magicfilter-1.2/debian/changelog
--- magicfilter-1.2/debian/changelog 2018-01-20 04:27:53.000000000 +0100
+++ magicfilter-1.2/debian/changelog 2020-11-13 08:35:50.000000000 +0100
@@ -1,3 +1,9 @@
+magicfilter (1.2-66) UNRELEASED; urgency=medium
+
+ * Fix FTCBFS: Let dpkg's buildtoolsmk supply build tools. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de> Fri, 13 Nov 2020 08:35:50 +0100
+
magicfilter (1.2-65) unstable; urgency=medium
* QA upload.
diff --minimal -Nru magicfilter-1.2/debian/rules magicfilter-1.2/debian/rules
--- magicfilter-1.2/debian/rules 2018-01-20 04:27:53.000000000 +0100
+++ magicfilter-1.2/debian/rules 2020-11-13 08:35:50.000000000 +0100
@@ -9,6 +9,9 @@
menu := usr/share/menu
tmp := debian/tmp
+DPKG_EXPORT_BUILDTOOLS=1
+include /usr/share/dpkg/buildtools.mk
+
CFLAGS = -Wall -g
LDFLAGS=
@@ -50,7 +53,7 @@
$(MAKE) install prefix=$(tmp)/usr\
bindir=$(tmp)/usr/sbin infodir=$(tmp)/$(info) mandir=$(tmp)/$(man)
ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
- strip --remove-section=.comment --remove-section=.note --strip-unneeded $(tmp)/usr/sbin/magicfilter
+ $(STRIP) --remove-section=.comment --remove-section=.note --strip-unneeded $(tmp)/usr/sbin/magicfilter
endif
install -p -m 755 magicfilterconfig $(tmp)/usr/sbin/magicfilterconfig
install -m 644 filters/README* $(tmp)/$(doc)/
--- End Message ---
--- Begin Message ---
Source: magicfilter
Source-Version: 1.2-66
Done: Vagrant Cascadian <vagrant@reproducible-builds.org>
We believe that the bug you reported is fixed in the latest version of
magicfilter, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 974767@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Vagrant Cascadian <vagrant@reproducible-builds.org> (supplier of updated magicfilter package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sun, 20 Dec 2020 13:18:12 -0800
Source: magicfilter
Architecture: source
Version: 1.2-66
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Vagrant Cascadian <vagrant@reproducible-builds.org>
Closes: 847016 974767 977783 977784
Changes:
magicfilter (1.2-66) unstable; urgency=medium
.
* QA upload.
.
[ Valerie R Young ]
* Make the build reproducible (fileordering) (Closes: #847016)
.
[ Helmut Grohne ]
* Fix failure to cross-build from source. (Closes: #974767)
.
[ Vagrant Cascadian ]
* debian/rules: Use -ffile-prefix-map in CFLAGS. (Closes: #977783)
* debian/rules: Pass GZIP and BZIP2 to configure. (Closes: #977784)
* debian/control: Update Vcs-* headers.
* debian/changelog: Remove trailing whitespace.
* debian/control: Set Rules-Requires-Root to no.
* debian/rules: Do not call chown for Rules-Requires-Root support.
* debian/rules: Use dpkg-deb with --root-owner-group to support
Rules-Requires-Root.
* debian/control: Update Standards-Version to 4.5.1.
Checksums-Sha1:
7562c8e16f88e3e1e1199f73edb20b2998dc43e4 1445 magicfilter_1.2-66.dsc
47e1f5085cc2c6544d1d3dfbe3230079aaf0250c 35316 magicfilter_1.2-66.debian.tar.xz
0e494655812514536ca041ec0a4b9cf2f9ca835d 7087 magicfilter_1.2-66_amd64.buildinfo
Checksums-Sha256:
1c9c7f63a87965162e0470022aa7f21a2b0287a64363e544163d1be3917fbc0b 1445 magicfilter_1.2-66.dsc
f2312a4b098df28cd4b61139f6ed2785eafa07b023ce33910306a51c5e9e8878 35316 magicfilter_1.2-66.debian.tar.xz
4920c7ae49eff366c4e2bd3b042d1003d263e10567baee325b6299e5de8f6797 7087 magicfilter_1.2-66_amd64.buildinfo
Files:
4515cd12e39f5dd4193a9851c579f575 1445 text optional magicfilter_1.2-66.dsc
f4cb146f2bb4a73a2fe870a18570512f 35316 text optional magicfilter_1.2-66.debian.tar.xz
2e9c1ed1e654d9d0e731d5b732080eae 7087 text optional magicfilter_1.2-66_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iJYEARYKAD4WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCX9/AQiAcdmFncmFudEBy
ZXByb2R1Y2libGUtYnVpbGRzLm9yZwAKCRDcUY/If5cWqiUcAQCaQpsceTUlXS5b
qRf3JnqNfNcgJ8HCmexe3qH6ICuWbQD/Y2eTah/E+D7azvmkqVOQBICqdCf0GPf4
kZxtrYwQYws=
=MZ7+
-----END PGP SIGNATURE-----
--- End Message ---