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

Bug#995991: lintian: match for static-library-has-unneeded-sections may not be sufficiently precise



Package: lintian
Version: 2.108.0
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

In using lintian 2.108.0 to check a build of the mongo-c-driver package
prior to uploading version 1.19.1-1, I encountered many occurrences of
the static-library-has-unneeded-sections warning.  This warning did not
occur with previous versions of lintian nor on previous versions of
mongo-c-driver.

Based on a brief investigation of the diff between 2.107.0 and 2.108.0,
I suspect that in lib/Lintian/Check/Libraries/Static.pm, these lines may
be the cause:

            my @EXTRA_SECTIONS = qw{.note .comment};
            my @not_needed
              = grep { exists $member_objdump->{SH}{$_} } @EXTRA_SECTIONS;

In the libbson-dev and libmongoc-dev binary packages, there are static
libraries that contain the section '.note.GNU-stack'.  Could it be
possible that this check is matching '.note.GNU-stack' and mistaking it
for a '.note' section?

Regards,

- -Roberto

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

iQIzBAEBCgAdFiEEz9ERzDttUsU/BH8iLNd4Xt2nsg8FAmFhw9QACgkQLNd4Xt2n
sg+XtxAAoMqbpij5XP1BT3XvMR1rfJA6I/djTpDhOaSqemSBr6CO2+/QnoyjbAl6
gDd2f24E4srYxI9WxXOg4jKcWnLH5BRktjnN4+zgueXVbw71/zatMKurZGHjw/vB
Ql7iDXI2lRC22LA0yZtrUwzXM+L7Cfmo/KUxQW8Zv+eURo64TAoCs7RWhouAr4z/
HjHT2weuiYMzqGNW67UUedew7c1qjJX2uZSc9iYBJQSrpgw8CRCsKIvXd9hxW8nP
zXBWptF0VTl/2yuRqerszRStpbRbezRS76zpYsGteh2uHy4TjTyUqiafnuV7yQag
1+x0rzNTVGwnPRq/OIhbCQOySxZOODniCbcO2ghF2d7SjZ/hp+Ftiz2fLrVRApoV
6qjO+Z/dJ6iEiPqjjgk+DpK94d2E89bzhEXmh6YTt/5OgfUEutHnFB26zGECoKE8
mI5mXVcmYHGgzAaZi5ABUW1FvZYdkW+h3rMt9tc39gMmhyOHujvo0uQQgiLApiW9
PH3e7pKEkscIxmZYkvs1cA/R1VldFdYaVIZrZajKUkn4sDHxDbx5A0MCGnJc8sbb
A7vS+4x7UmWYoilCOz7QLvioSD0L4u+i4F4W6WwvepMPT9y2n+i9oCKOYShpw2JM
OpRLge6pqQ/uIQSg3ffC0BMOSFDqDxBmjNX7CHizVNZo9VVRhoo=
=FQQL
-----END PGP SIGNATURE-----


Reply to: