Tuesday 9 February 2021

dbgsym and dbg packages without file conflicts

Since debhelper v9, dh_strip created detached debug files in a file system
layout based on the build-id. This created file conflicts for any detached
debug file with the same build id, usually seen with

- private shared libraries shipped in different packages

- loadable modules

- packages shipped in different major upstream versions

Starting with debhelper 13.3.3ubuntu1, dh_strip now recreates the build-id with
a seed value including the package name and version, making the build-id unique
for each build.

If you are aware of conflicting dbgsym packages in hirsute, just do a no-change
upload to resolve the conflict.

If you have a package not using dh_strip, fix the build-id yourself just before
stripping the package, using

debugedit --build-id \
--build-id-seed='<binary pkg name>-<deb version>' \
<file>

Please note that we don't systematically check for file conflicts in non-debug
packages (that would need regular checks using piuparts).

Matthias

--
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel