Repository navigation
packaging: strip release binaries into a dbgsym package - #209
Draft
stevephodgson wants to merge 2 commits into
Draft
stevephodgson wants to merge 2 commits into
stevephodgson wants to merge 2 commits into
Conversation
stevephodgson
force-pushed
the
packaging-dbgsym
branch
from
November 3, 2026 16:29
0295d96 to
ce8b125
Compare
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>
stevephodgson
force-pushed
the
packaging-dbgsym
branch
from
November 27, 2026 16:55
eb879d5 to
c91e041
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
build_release_deb.py now strips each release binary the way
dh_stripdoes and writes the debug info to a matchingternfs-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 Nreplaces each binary's build ID with a hash of N and the linker's build ID, as rpm's debugedit --build-id-seed does.