Update from 7.3.0-15 to 7.3.0-16 based GCC causes lintian problems
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fwupd |
Fix Released
|
Unknown
|
|||
lintian (Debian) |
Incomplete
|
Unknown
|
|||
lintian (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Upstream fwupd runs CI with Debian testing and Ubuntu devel. As part of that CI we run lintian after a packaged build.
A few days ago we started noticing failures in Ubuntu first and then Debian later (probably because Ubuntu pulled in the -16 based GCC-7 before it migrated to Debian testing):
E: fwupd: library-
E: fwupd-tests: library-
I examined the files and sure enough they don't have libc.s.6 marked NEEDED.
Compiling with the older compiler (or clang) they do.
Newer:
$ objdump -x build/obj-
NEEDED libgobject-2.0.so.0
NEEDED libglib-2.0.so.0
Older:
$ objdump -x build/obj-
NEEDED libgobject-2.0.so.0
NEEDED libglib-2.0.so.0
NEEDED libpthread.so.0
NEEDED libc.so.6
We were looking at this upstream and find that it only happens if the compiler optimization is set to -O2. (which is our default). Setting it to -O0 the problem goes away.
Changed in gcc-7 (Debian): | |
status: | Unknown → New |
Changed in fwupd: | |
status: | Unknown → Fix Released |
Changed in lintian (Debian): | |
status: | New → Incomplete |
Per discussion in the Debian bug, this is actually a lintian bug.
fwupd has chosen to ignore this error. /github. com/hughsie/ fwupd/commit/ 8600b644dffe833 9b39564e601f5dd e2517b5802
https:/