Your message dated Wed, 27 Dec 2017 23:19:56 +0000
with message-id <[email protected]>
and subject line Bug#875572: fixed in unifont 1:10.0.07-1
has caused the Debian Bug report #875572,
regarding unifont FTCBFS: many reasons
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
875572: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=875572
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: unifont
Version: 1:10.0.06-1
Tags: patch
User: [email protected]
Usertags: rebootstrap
unifont fails to cross build from source, for a pile of reasons, all of
which are fixed in the attached patch. After applying it, unifont cross
builds successfully. Let me explain the issues and ask you to apply it:
* override_dh_auto_build-arch explicitly runs $(MAKE) and does not pass
any cross compilers. Thus it uses the build architecture compiler.
Indirecting it through dh_auto_build fixes that (and allows using
--parallel if you so wish).
* Even then the upstream src/Makefile uses the build architecture strip
by passing -s to install. It is best to just remove those -s flags as
their presence also breaks -dbgsym generation and stripping (and
honouring DEB_BUILD_OPTIONS=nostrip) is generally handled by
dh_strip.
* Further down the road it tries to run just built utilities and that
fails as running host arch code does not work during cross
compilation. Fortunately these steps are not necessary for building
unifont-bin, so adding "bindir" to override_dh_auto_build-arch fixes
this.
* Then make install runs these targets again, so my slightly ugly
solution here is to inline the relevant parts of make install into
override_dh_auto_install-arch.
I hope this works for you. At least it makes the arch-only build
blazingly fast.
Helmut
diff --minimal -Nru unifont-10.0.06/debian/changelog
unifont-10.0.06/debian/changelog
--- unifont-10.0.06/debian/changelog 2017-08-27 00:19:15.000000000 +0200
+++ unifont-10.0.06/debian/changelog 2016-12-04 05:50:42.000000000 +0100
@@ -1,3 +1,14 @@
+unifont (1:10.0.06-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: (Closes: #-1)
+ + Let dh_auto_build pass cross compilers to make
+ + debian/patches/nostrip.patch: Do not strip during build
+ + Only build "bindir" during arch-only build.
+ + Add override_dh_auto_install-arch to only install arch:any components.
+
+ -- Helmut Grohne <[email protected]> Sun, 04 Dec 2016 05:50:42 +0100
+
unifont (1:10.0.06-1) unstable; urgency=medium
* Update to Unifont 10.0.06 release.
diff --minimal -Nru unifont-10.0.06/debian/patches/nostrip.patch
unifont-10.0.06/debian/patches/nostrip.patch
--- unifont-10.0.06/debian/patches/nostrip.patch 1970-01-01
01:00:00.000000000 +0100
+++ unifont-10.0.06/debian/patches/nostrip.patch 2016-12-04
05:50:42.000000000 +0100
@@ -0,0 +1,30 @@
+From: Helmut Grohne <[email protected]>
+Subject: to not strip binaries during build
+
+ * install -s uses the build architecture strip and thus breaks cross
+ compilation.
+ * stripping during build means that dh_strip will be unable to generate useful
+ -dbgsym packages.
+
+Index: unifont-9.0.04/src/Makefile
+===================================================================
+--- unifont-9.0.04.orig/src/Makefile
++++ unifont-9.0.04/src/Makefile
+@@ -41,7 +41,7 @@
+ bin-stamp: $(CPROGS) $(PPROGS) $(PNGPROGS)
+ install -m0755 -d $(LOCALBINDIR)
+ # install -m0755 $? $(LOCALBINDIR)
+- install -s -m0755 $(CPROGS) $(LOCALBINDIR)
++ install -m0755 $(CPROGS) $(LOCALBINDIR)
+ install -m0755 $(PPROGS) $(LOCALBINDIR)
+ \rm -f $(CPROGS)
+ touch $@
+@@ -56,7 +56,7 @@
+ install -m0755 -d $(INSTALLDIR)
+ set -e && \
+ cd $(LOCALBINDIR) && \
+- install -s -m0755 $(CPROGS) $(INSTALLDIR)
++ install -m0755 $(CPROGS) $(INSTALLDIR)
+ set -e && \
+ cd ../bin && \
+ install -m0755 $(PPROGS) $(INSTALLDIR)
diff --minimal -Nru unifont-10.0.06/debian/patches/series
unifont-10.0.06/debian/patches/series
--- unifont-10.0.06/debian/patches/series 1970-01-01 01:00:00.000000000
+0100
+++ unifont-10.0.06/debian/patches/series 2016-12-04 05:50:42.000000000
+0100
@@ -0,0 +1 @@
+nostrip.patch
diff --minimal -Nru unifont-10.0.06/debian/rules unifont-10.0.06/debian/rules
--- unifont-10.0.06/debian/rules 2017-07-05 01:52:34.000000000 +0200
+++ unifont-10.0.06/debian/rules 2016-12-04 05:50:42.000000000 +0100
@@ -30,5 +30,9 @@
$(MAKE) BUILDFONT=1 PUA=""
override_dh_auto_build-arch:
- $(MAKE) CFLAGS='$(CFLAGS)' CPPFLAGS='$(CPPFLAGS)' \
- LDFLAGS='$(LDFLAGS)'
+ dh_auto_build -- CFLAGS='$(CFLAGS)' CPPFLAGS='$(CPPFLAGS)' \
+ LDFLAGS='$(LDFLAGS)' bindir
+
+override_dh_auto_install-arch:
+ dh_auto_install --builddirectory=src -- PREFIX='$$(DESTDIR)/usr'
+ dh_auto_install --builddirectory=man -- PREFIX='$$(DESTDIR)/usr'
--- End Message ---
--- Begin Message ---
Source: unifont
Source-Version: 1:10.0.07-1
We believe that the bug you reported is fixed in the latest version of
unifont, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Paul Hardy <[email protected]> (supplier of updated unifont 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 [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Wed, 27 Dec 2017 11:47:40 -0800
Source: unifont
Binary: unifont xfonts-unifont ttf-unifont psf-unifont unifont-bin
Architecture: source all amd64
Version: 1:10.0.07-1
Distribution: unstable
Urgency: medium
Maintainer: Paul Hardy <[email protected]>
Changed-By: Paul Hardy <[email protected]>
Description:
psf-unifont - PSF (console) version of GNU Unifont with APL support
ttf-unifont - TrueType version of GNU Unifont
unifont - font with a glyph for each visible Unicode Plane 0 character
unifont-bin - utilities for manipulating GNU Unifont
xfonts-unifont - PCF (bitmap) version of GNU Unifont
Closes: 875572
Changes:
unifont (1:10.0.07-1) unstable; urgency=medium
.
[Helmut Grohne]
* Fix FTCBFS: (Closes: #875572)
+ Let dh_auto_build pass cross compilers to make
+ debian/patches/nostrip.patch: Do not strip during build
+ Only build "bindir" during arch-only build.
+ Add override_dh_auto_install-arch to only install arch:any components.
.
[Paul Hardy]
* Update to Unifont 10.0.07 release.
* debian/control: update to Standards version 4.1.2.
* debian/watch:
- update to version 4
- change "ftp://" to "https://"
Checksums-Sha1:
88610ad9fc82b73932aef57ebfe7354bc3933b21 2293 unifont_10.0.07-1.dsc
dd4ce56a711e786fc980c7941b599e903f47ebc2 15641307 unifont_10.0.07.orig.tar.gz
5b5651279cb789d123dc80f258284114519df09f 833 unifont_10.0.07.orig.tar.gz.asc
bf649187fc052a350b414610bcc3b81d07366a5e 42197 unifont_10.0.07-1.debian.tar.gz
053808e7acc57a9b0dfe06a551aa2feec522b837 48128 psf-unifont_10.0.07-1_all.deb
e4cb2253580d11e517c98d4e5b7a338c0d061ffb 3052104 ttf-unifont_10.0.07-1_all.deb
5c007e314ff95d1b2ac9b986b7985b10ee5c6d1b 57776
unifont-bin-dbgsym_10.0.07-1_amd64.deb
b12d6c91e15e8fae34e96307ec3a6fcabf00460b 419332 unifont-bin_10.0.07-1_amd64.deb
dc91aefc9093c94547e7e0453dd485143c78abbe 1454636 unifont_10.0.07-1_all.deb
34383efb0a1de97a6e1da97cf50702d96dda9e2f 8485 unifont_10.0.07-1_amd64.buildinfo
6fc09a35596dc6d55a2c0f6e8c41e2fe5c86d34d 2705036
xfonts-unifont_10.0.07-1_all.deb
Checksums-Sha256:
cbb94982ffc8ba061e951ec611f05c47be024289708541cde0c214713d55f092 2293
unifont_10.0.07-1.dsc
136c304f77883d9c9e4b4136d25385180eedc87641759d2f96685fb2896d48cb 15641307
unifont_10.0.07.orig.tar.gz
d7827bd78c4111ea1a92953a3a56a5de439f3984f1f062b49d4d44451751b843 833
unifont_10.0.07.orig.tar.gz.asc
6a07b940ed316ac5add4fe149ee33ad316fad6a14acf487258d0ab69d7d6abcd 42197
unifont_10.0.07-1.debian.tar.gz
6702195634d0f6787993e5c0cebf3c2b34ee01a9d537bddd9f07ec7b02c9f425 48128
psf-unifont_10.0.07-1_all.deb
96ab43184fcc5c5841b88e3976181019fb4e5c8e0405e41383d87ef2d47e0b3b 3052104
ttf-unifont_10.0.07-1_all.deb
f361710250815b4467b3357671c425120f7848d10265470e6bf3d9d1dfcb5e83 57776
unifont-bin-dbgsym_10.0.07-1_amd64.deb
f6f0fc9da1c6f597178622685534069dc881778f9b6a5363c4ce2f1d02ffc7fc 419332
unifont-bin_10.0.07-1_amd64.deb
8a1ffac681628e927bb14e415ada1be614361401544188a54184d4a144cc588e 1454636
unifont_10.0.07-1_all.deb
5d4247c73e421f1e5bfcdc9a39c2a64403315664dba728bf3783aec04dbeeac2 8485
unifont_10.0.07-1_amd64.buildinfo
b31b47b36d00b563acdd4f3c45301e1b6d2311fb57a7ebc38d568911ecd85a37 2705036
xfonts-unifont_10.0.07-1_all.deb
Files:
234ec0826e551646dc171271f84e29b0 2293 fonts optional unifont_10.0.07-1.dsc
4d4b23c8ddb16ac9529931aa4159cd25 15641307 fonts optional
unifont_10.0.07.orig.tar.gz
d16cb8b3fb83f793f818b436aabf09ee 833 fonts optional
unifont_10.0.07.orig.tar.gz.asc
75f377674619727c6f94ba906c4a617b 42197 fonts optional
unifont_10.0.07-1.debian.tar.gz
068c1ecc1263cbad149973da6df1a040 48128 fonts optional
psf-unifont_10.0.07-1_all.deb
a089cdbe5b7d0bea0f858284a648cdaf 3052104 fonts optional
ttf-unifont_10.0.07-1_all.deb
2a30aaee6ae648a1032a9631648593bf 57776 debug optional
unifont-bin-dbgsym_10.0.07-1_amd64.deb
4e7489f4da6a30e4bfd1268d11df5f94 419332 x11 optional
unifont-bin_10.0.07-1_amd64.deb
c6f95ea662b717570aa173fc1f59f0f4 1454636 fonts optional
unifont_10.0.07-1_all.deb
173d1c301c3649c783860fdbd59d5a50 8485 fonts optional
unifont_10.0.07-1_amd64.buildinfo
91d11fa4aaa6d6e5c340a40485fae790 2705036 fonts optional
xfonts-unifont_10.0.07-1_all.deb
-----BEGIN PGP SIGNATURE-----
iQJOBAEBCgA4FiEEldLpq4dA2ARjh/0VGgkiex9DWjMFAlpEIjoaHHVuaWZvdW5k
cnlAdW5pZm91bmRyeS5jb20ACgkQGgkiex9DWjP6SA/8Cay6lJ0/FLEM8OLdiP+H
6AlQVZAnP9anJemcz4lHBN+aIPlVtvbECY8jjOH7eRthKjBynM/+XguG2JAuNuZH
pNkfBlMdEVGM5rCXt0/gmqUcgvk69/07oIp5If7qYrmq90MUO7s2xPhHeGCEfgF8
nL+C0sqeIbFIEbEAR+WqW9TjgfNBWCoIFl0JcvgEUHj6woImWv4sPZjBGjGsJA43
5JrN2nbMYCfCPA+TTOVCf1YglcRF/lRombQVONS72NMaqeJgM4XXQIxzAQn5uut1
nmErrkQf/SDErMC7TpQvhju+CKvP1G+/HU6MB2q98w1RcbKgzD94d9wsaHYyigA6
DVUSagVBzZGiZSxa2CkSzcV3kMaYXMjDf24qjoxTHyjh/Ez2KL5Ag8nVgmeKSPDz
blRvJBQxBSCFT3QRIzriG5oZLk782JTaEESqDE7QnkacNKueTZFmPiWxLEoOeAc/
fh2hN6gak5Xf/e7Je9qVVePDD94jtGfxIV9pXG2NfeOgMPMTW0R+s5mwjLoTmINh
f2G4IDB30ivwCDnuR2qapK5+LWLyqvEkL0ZCTZKr8Qb9vbM6XNSTJcPDeOPJUxDi
CL44aKkomINkEqVKLbCrYPp2cAqYatRbYJRJxpGuOUB6fk4xgjHaJV5Y8Sm6bFBE
X888XcZKgvYrAQpYtZVyfhg=
=dwvm
-----END PGP SIGNATURE-----
--- End Message ---