Your message dated Wed, 17 Feb 2016 22:32:36 +0000
with message-id <[email protected]>
and subject line Bug#814687: fixed in lz4 0.0~r131-2
has caused the Debian Bug report #814687,
regarding lz4 FTCBFS: uses build architecture compiler and fails to honour
DEB_BUILD_OPTIONS=nocheck
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.)
--
814687: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=814687
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: lz4
Version: 0.0~r131-1
Tags: patch
User: [email protected]
Usertags: rebootstrap
Since apt now requires lz4, I looked into cross compiling lz4 and
figured that it wouldn't work out of the box. You can find a failing
build log at:
http://subdivi.de/~helmut/debomatic-logs/lz4_0.0~r131-1_ppc64el.build
There are two issues at hand, both of which can be seen in the log
above.
1) The build uses the build architecture compiler instead of the cross
compiler. Thus the binaries produced are for the wrong architecture
and ultimately dh_strip makes the build fail hard.
2) The test suite is run despite being passed DEB_BUILD_OPTIONS=nocheck.
Once fixing the first issue, this becomes a hard failure as host
architecture executables cannot be run in a typical cross setting.
I am attaching a patch that addresses both of these issues.
Helmut
--- a/debian/rules
+++ b/debian/rules
@@ -7,9 +7,13 @@
CXXFLAGS:= $(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS)
LDFLAGS:= $(shell dpkg-buildflags --get LDFLAGS)
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
-DEB_HOST_ARCH_BITS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_BITS)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
PREFIX:= /usr
+ifeq ($(origin CC),default)
+CC := $(DEB_HOST_GNU_TYPE)-gcc
+endif
+
export CFLAGS
export CPPFLAGS
export LDFLAGS
@@ -21,12 +25,21 @@
ifneq (,$(findstring $(DEB_HOST_ARCH),sparc))
disable_test=1
endif
+ifneq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+disable_test=1
+endif
%:
dh $@
+override_dh_auto_build:
+ dh_auto_build -- CC=$(CC)
+
+override_dh_auto_install:
+ dh_auto_install -- CC=$(CC)
+
override_dh_install:
- make install DESTDIR=$$(pwd)/debian/tmp LIBDIR=$(DESTDIR)/usr/lib/$(DEB_HOST_MULTIARCH)
+ make install DESTDIR=$$(pwd)/debian/tmp LIBDIR=$(DESTDIR)/usr/lib/$(DEB_HOST_MULTIARCH) CC=$(CC)
dh_install
override_dh_auto_test:
--- End Message ---
--- Begin Message ---
Source: lz4
Source-Version: 0.0~r131-2
We believe that the bug you reported is fixed in the latest version of
lz4, 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.
Nobuhiro Iwamatsu <[email protected]> (supplier of updated lz4 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: SHA256
Format: 1.8
Date: Thu, 18 Feb 2016 00:27:54 +0900
Source: lz4
Binary: liblz4-dev liblz4-1 liblz4-1-dbg liblz4-tool
Architecture: source amd64
Version: 0.0~r131-2
Distribution: unstable
Urgency: medium
Maintainer: Nobuhiro Iwamatsu <[email protected]>
Changed-By: Nobuhiro Iwamatsu <[email protected]>
Description:
liblz4-1 - Fast LZ compression algorithm library - runtime
liblz4-1-dbg - Fast LZ compression algorithm library - Debugging Symbols
liblz4-dev - Fast LZ compression algorithm library - development files
liblz4-tool - Fast LZ compression algorithm library - tool
Closes: 814687
Changes:
lz4 (0.0~r131-2) unstable; urgency=medium
.
* Add support cross compile. (Closes: #814687)
Thanks to Helmut Grohne <[email protected]>.
* Change URL of homepage to https://github.com/Cyan4973/lz4.
Checksums-Sha1:
916f0ae947788dac25c9a8cfee8873b10994f1ad 1973 lz4_0.0~r131-2.dsc
82716a4af7242eac6f6b63564fd7ec7cb0b718c2 4936 lz4_0.0~r131-2.debian.tar.xz
0fb15ae6285ab0170efbec5750e6ee8aea3453b1 171146
liblz4-1-dbg_0.0~r131-2_amd64.deb
e7d2f77032fef728ce858df4ae07796ccc7fd8d3 32510 liblz4-1_0.0~r131-2_amd64.deb
43bce371a66ed2c49015949a79f0cfa383c86e62 40452 liblz4-dev_0.0~r131-2_amd64.deb
43647183aac817cd88978ecff6ce8c7409b350d8 51208 liblz4-tool_0.0~r131-2_amd64.deb
Checksums-Sha256:
304cf9dddee387377929adf3f2cef0ae19fb2e56b6cc9eab05798845b58bd9b6 1973
lz4_0.0~r131-2.dsc
966df055dd8fa7f292c283452b43a5d2d2047d542fe49e97025006e69525e224 4936
lz4_0.0~r131-2.debian.tar.xz
ccf2ae6bbc90b8108ef6758f3ac51a7dbd625f0d102c73915e6e4f958af2bcdc 171146
liblz4-1-dbg_0.0~r131-2_amd64.deb
1ee57f7ab748fd23687d2d9df1f0734912537742a3b533988792e9a471862573 32510
liblz4-1_0.0~r131-2_amd64.deb
6d6eccd66ffbe3610d29602a20610b1fa0caae19f3c42e6887cfad7e02ce8315 40452
liblz4-dev_0.0~r131-2_amd64.deb
e5b3afa2c74d9f056399812e505eab7f5838312303418d9f64d151cf350a8e0b 51208
liblz4-tool_0.0~r131-2_amd64.deb
Files:
8db1d0ce35e1acf9c9757f80577d53ce 1973 utils extra lz4_0.0~r131-2.dsc
d4c651cac4d99c11e4d8fe9307c30a04 4936 utils extra lz4_0.0~r131-2.debian.tar.xz
85f37ce7eaea823d7ea214f532aeabca 171146 debug extra
liblz4-1-dbg_0.0~r131-2_amd64.deb
be8768c2d5e4ce370fdb98084f3146c4 32510 libs extra liblz4-1_0.0~r131-2_amd64.deb
1e8c65c05c0875b88e59e573bb85f6aa 40452 libdevel extra
liblz4-dev_0.0~r131-2_amd64.deb
6a334fe330805ad30349c178576737c7 51208 utils extra
liblz4-tool_0.0~r131-2_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBCAAGBQJWxOusAAoJEDIkf7tArR+mvEMP/R53V9UEO3cQd74pX+QKDsTP
VCETU1R/Ch/1aedH1EbthudZ1k0Jhpu6UrCdoVmrVQlUtyZGEJm32vItyGIP6T5F
Lo79VfW7Ue3f8+3mX5W0NO1yCQ/sY0UclypoMx5M+l0MdKzVYG97dImZbKklIs+T
3iB5yQAuR2bsEVxGtlg4/fFNK+e0diRZDYpZ3d6QZCHmDmjFWY3a1Pb+L5rXNUBF
Y2sseFUQVifO7IsbWWCOJnO2qFL0HnmLgEb/jGYrd6N7xcBmcj8Am4pMTzARrY6v
6uLxk2MKT6QuHfIvav/9ARhVen4dH377+OGkFGjmrEs11Ni/OzN1ipnP5cE6e1wW
5V89hhC8d9GrVDMSREVfEnyduiMkdl1K+hXZc9NrtGKxS09fsRYevsHmkIaHMKeX
msPzQredmEBe+nk/YBiJttNBlpNHqiFscBEpiml7QPrqycfYD8mTYQqnxf7QaDoi
UtW+rGOYp0gvwlqttDGDOnxYc0zLezryINntRWrr/OQF85WwF+velCOi5uspXJwx
u2t2TkRFt5SJZanLAl0ahGmy2BHO4ZlBV931WiJtV/JZDe7CCO3UL0bcssoBLv5b
sefkmuU/+QsVCFlvaImjpjmql00TIifhAGpk8dxM7ITQMskmTwluBevgi7GKwHRx
0ZTDQ237OopJ4gEOuLXa
=I6Bq
-----END PGP SIGNATURE-----
--- End Message ---