lvc/abi-dumper

The use of dwz breaks abi-dumper processing

Opened this issue · 0 comments

Found while working on a package update for jack sound server on Rosa Fresh 2021.1 (x86_64).
In this distribution release, the build process make use of dwz to reduce the debugging info size; eg, for jack package, the build log contains the following line:
/usr/bin/find-debuginfo -j12 -m -i --build-id-seed 1.9.16-2 --unique-debug-suffix -1.9.16-2.x86_64 --unique-debug-src-base jack-1.9.16-2.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /tmp/abf/rpmbuild/BUILD/jack2-1.9.16

But this causes abi-build to fail:

$ abi-dumper libjack.so -o ABI-0.dump -lver 1.9.16
Found link to libjack.so.0.1.0-1.9.16-2.x86_64.debug (gnu_debuglink)
Reading debug-info file libjack.so.0.1.0-1.9.16-2.x86_64.debug linked from gnu_debuglink
WARNING: can't access '../../.dwz/jack-1.9.16-2.x86_64'
ERROR: can't read gnu_debugaltlink

There is a workaround, though, according to the Fedora docs (https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/rawhide/f/buildflags.md): adding "%undefine _find_debuginfo_dwz_opts" to the spec file for the interested package, so disabling the use of dwz... but it would be better teach abi-dumper to deal with the presence of this program.