dbgsym and dbg packages without file conflicts

Matthias Klose doko at ubuntu.com
Tue Feb 9 11:57:36 UTC 2021


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



More information about the ubuntu-devel mailing list