[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#977596: marked as done (please error on static archive without any code sections)



Your message dated Sat, 20 Nov 2021 17:04:43 +0000
with message-id <E1moTn9-000DAh-Fs@fasolo.debian.org>
and subject line Bug#977596: fixed in lintian 2.113.0
has caused the Debian Bug report #977596,
regarding please error on static archive without any code sections
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 owner@bugs.debian.org
immediately.)


-- 
977596: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=977596
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: lintian

Please show an error on static archives without any code sections.  This happens
when a package ships a lib<foo>.a which is built with -flto=auto, but without
-ffat-lto-objects.  dh_strip already takes care of stripping the lto sections,
but maybe is leaving the .a file unusable.

see
https://github.com/rpm-software-management/rpmlint/blob/master/rpmlint/checks/BinariesCheck.py
(_check_no_text_in_archive function) for an implementation.

or a shell implementation:

readelf -W --section-headers lib<foo>.a \
 | sed -n '/^ *\[[ 0-9]*\]/s/ *\[[ 0-9]*\] *//p' \
 | awk 'BEGIN {rv=1} /^NULL/ {next} $1 ~
/^.(text|data|(preinit|init|fini)_array$)/ {if ($5 !~ /^0+$/) rv=0} END { exit rv}'

You can test this with e.g. xxhash, building with

  export DEB_CFLAGS_MAINT_APPEND = -flto=auto

and

  export DEB_CFLAGS_MAINT_APPEND = -flto=auto -ffat-lto-objects

--- End Message ---
--- Begin Message ---
Source: lintian
Source-Version: 2.113.0
Done: Chris Lamb <lamby@debian.org>

We believe that the bug you reported is fixed in the latest version of
lintian, 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 977596@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Chris Lamb <lamby@debian.org> (supplier of updated lintian 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: SHA256

Format: 1.8
Date: Sat, 20 Nov 2021 16:43:03 +0000
Source: lintian
Architecture: source
Version: 2.113.0
Distribution: unstable
Urgency: medium
Maintainer: Debian Lintian Maintainers <lintian-maint@debian.org>
Changed-By: Chris Lamb <lamby@debian.org>
Closes: 963057 977596 999601 999602 999878 1000148
Changes:
 lintian (2.113.0) unstable; urgency=medium
 .
   * Summary of tag changes:
     + Added:
       - anticipated-repack-count
       - dfsg-version-with-tilde
       - dot-before-repack-count
       - elf-error
       - elf-warning
       - no-code-sections
       - static-link-time-optimization
     + Removed:
       - apparently-corrupted-elf-binary
 .
   [ Felix Lechner ]
   * Bump the maximum plausible bug number to 1,500,000. (Closes: #1000148)
   * Flag static archives without code sections, as can happen with LTO
     objects. (Closes: #977596)
   * Flag use of link-time-optimization (LTO) in static archives.
     (Closes: #963057)
   * Exempt Coq's cmxs files from the shared-library-lacks-prerequisites
     tag. (Closes: #999602)
   * Accommodate dune's file names for the bytecode in OCaml interfaces.
     (Closes: #999601)
   * Drop 'type' from the list of bash-centric expressions.
     (Closes: #999878)
   * Fix CI failure on armhf due to a parsing failure of readelf output.
   * Adjust refresh script fetching debhelper data for the new
     Contents-all.gz served by archive.
   * Refresh debhelper data.
 .
   [ Kentaro Hayashi ]
   * Add the dfsg-version-with-tilde tag, as opposed to a plus.
   * Add a new tag about a possibly unnecessary repack count for upstream
     sources.
   * Add a tag about source versions with a dot before the repack count.
Checksums-Sha1:
 7d6739350d0cb4a153a1f0bbc8ad87bc65fc519f 2486 lintian_2.113.0.dsc
 3dc5668dbb5cf00fbb8c8209865a9757ba3e2c18 2114036 lintian_2.113.0.tar.xz
 35d27914dbf1277bf81cbc8b16d2be741ed24b23 6567 lintian_2.113.0_amd64.buildinfo
Checksums-Sha256:
 30bcce852c7fc683c6856dce393ad84d9ddff164d9a794c542e8721d11c8d71d 2486 lintian_2.113.0.dsc
 4114d14b2778e8f1d4c8aca4f790c7404fba3a506a1156cfee6ebb0d8a3221c0 2114036 lintian_2.113.0.tar.xz
 fcc9c9b14ba924fae80438ad82bce4620df7fb95295ed12a8f75b589de66d8a5 6567 lintian_2.113.0_amd64.buildinfo
Files:
 f7a1f8d55b6faf07b8138b920f875093 2486 devel optional lintian_2.113.0.dsc
 edfb3ab9716551418a5d865b7ea134d9 2114036 devel optional lintian_2.113.0.tar.xz
 cfba3fd00b67b455a786aa45fed66da0 6567 devel optional lintian_2.113.0_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEwv5L0nHBObhsUz5GHpU+J9QxHlgFAmGZJisACgkQHpU+J9Qx
HliStxAAuHzFJKaVmmSLiXFxKNL5AsH3sZanF1wOZo8q1pdWWHNcNusfU0qGZtBv
CsVma0QLTcGXbRBvVs/iDH8YRA6G2UJ5ZBNmYa+86iOsh9UovpL8DcZN6VxD7Giq
uOnonC966gbakGnLAAyGWmdToDMozRth2tS+wPutuRAIvRPldJpj5UFKuEbpt1/L
4zjxZKO3r3TT2OhvhsJopLMvte9Ht0NxUynMFAcAeDsOmizXG/JjVz8oKMzAWXAD
EXNQU2zYBtxeahx74BYGHMhU5SAQEiEu4ipqlX2U+4k6fIEqWJHfFfHGJwONnd8T
VdbKGKSHE4lcb90kZwhT/YzmyKs2plYIBL71X4wu6YKZhzDKoORN8XnqCwIXqkad
GFX3W5uSKFn2odlZcqe/4zR2LG8L/S2r0TG7761Y0/bQOVLb0WyRYHr9kpGQYs60
bs1x2YTTvqllOpfLOWGj3e8NDZStXM91FgvI/ThKjUyKbFe+0JT0UnCq/0FYyH5h
Wv8n6+Kg+U8+/NtLyQ70chUHsPDFxB79fkscz2b0eogxwe2HbkYP1Wc4IK9PFsfD
OiQIl0xMGfvipAYR/vLxHVJwULUSaj9Snl71LrEpW1IoTU14Yguo8gXdVrzLaglG
ndIykrq/vm4ThDnqnumJCEqJkkXtZP+ae5tz7RG1jfWkXnbppB0=
=wClx
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: