Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pipelines: fix split/debug #1555

Merged
merged 1 commit into from
Oct 14, 2024
Merged

pipelines: fix split/debug #1555

merged 1 commit into from
Oct 14, 2024

Conversation

xnox
Copy link
Contributor

@xnox xnox commented Oct 12, 2024

Currently the variable substitution for the destination debug symbols
results in one level of directories being expanded and substituted
away. This breaks gdb automatic discovery of the debug symbols. Gdb is
looking for /usr/lib/debug/usr/bin/openssl.debug, whilst current
split/debug pipelines installs the dst to
/usr/lib/debug/bin/openssl.debug instead.

I think the substituition intends to strip the prefix path of the
installed file, to achieve the intended path without the leading '/',
e.g. usr/bin/openssl.debug. Thus make it do just that.

Currently the variable substitution for the destination debug symbols
results in one level of directories being expanded and substituted
away. This breaks gdb automatic discovery of the debug symbols. Gdb is
looking for /usr/lib/debug/usr/bin/openssl.debug, whilst current
split/debug pipelines installs the dst to
/usr/lib/debug/bin/openssl.debug instead.

I think the substituition intends to strip the prefix path of the
installed file, to achieve the intended path without the leading '/',
e.g. usr/bin/openssl.debug. Thus make it do just that.
@xnox xnox merged commit 87e00eb into chainguard-dev:main Oct 14, 2024
39 checks passed
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.

2 participants