Skip to content

packaging: strip release binaries into a dbgsym package - #209

Draft
stevephodgson wants to merge 2 commits into
mainfrom
packaging-dbgsym
Draft

stevephodgson wants to merge 2 commits into
mainfrom
packaging-dbgsym

Conversation

@stevephodgson

Copy link
Copy Markdown
Collaborator

build_release_deb.py now strips each release binary the way dh_strip does and writes the debug info to a matching ternfs-release-<id>-dbgsym .ddeb, following Ubuntu's automatic debug symbol package conventions. Debug files go under /usr/lib/debug/.build-id/, where gdb, elfutils, systemd-coredump and debuginfod look for them.

Unchanged binaries are byte-identical across builds and keep their GNU build ID, so their debug packages would contain the same files and could not be installed together. To support automated build workflows that might build from the same gitrev, build.sh --build-version N replaces each binary's build ID with a hash of N and the linker's build ID, as rpm's debugedit --build-id-seed does.

stevephodgson and others added 2 commits November 27, 2026 16:46
build_release_deb.py now strips each release binary the way dh_strip
does and writes the debug info to a matching
ternfs-release-<id>-dbgsym .ddeb, following Ubuntu's automatic debug
symbol package conventions. Debug files go under
/usr/lib/debug/.build-id/, where gdb, elfutils, systemd-coredump and
debuginfod look for them.

Unchanged binaries are byte-identical across builds and keep their GNU
build ID, so their debug packages would contain the same files and
could not be installed together. build.sh --build-version N replaces
each binary's build ID with a hash of N and the linker's build ID, as
rpm's debugedit --build-id-seed does. Packaged builds should use a
distinct build version, the same number as --build-number.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant