Skip to content

elfutils: patch debuginfod_find_source to accept ./-relative filenames - #6259

Draft
SebastianPaucar wants to merge 1 commit into
spack:developfrom
SebastianPaucar:feature/elfutils-debuginfod-relative-source
Draft

SebastianPaucar wants to merge 1 commit into
spack:developfrom
SebastianPaucar:feature/elfutils-debuginfod-relative-source

Conversation

@SebastianPaucar

Copy link
Copy Markdown

No intended to merge, this is just for EIC's containers cherry-picking. This PR patches elfutils's debuginfod client to accept ./-relative source filenames, produced when -ffile-prefix-map remaps compile-time paths (spack/compiler-wrapper#19), while preserving existing behavior for absolute filenames. cc @wdconinc

@spackbot-triage spackbot-triage Bot added patch Modifications to packages' sets of defined patches update-package Modifications to packages in the repository labels Aug 28, 2026
@SebastianPaucar
SebastianPaucar force-pushed the feature/elfutils-debuginfod-relative-source branch from aeb4887 to 0d28d22 Compare August 28, 2026 04:53
(plus fix ./-prefix gate check to require full ./ prefix)

elfutils: fix ./-prefix gate check to require full ./ prefix (syntax)
@SebastianPaucar
SebastianPaucar force-pushed the feature/elfutils-debuginfod-relative-source branch from 94e7834 to 5945d81 Compare August 29, 2026 04:56
wdconinc added a commit to eic/eic-spack that referenced this pull request Sep 10, 2026
### Briefly, what does this PR introduce? Please link to any relevant
presentations or discussions.
This PR moves spack/spack-packages#6259 into a
place where we can merge it sooner.

### What is the urgency of this PR?
- [ ] High (please describe reason below)
- [x] Medium
- [ ] Low

### What kind of change does this PR introduce?
- [ ] Bug fix (issue #__)
- [x] New feature (issue: elfutils debuginfod fix)
- [ ] Optimization (issue #__)
- [ ] Updated documentation
- [ ] other: __

### Please check if any of the following apply
- [ ] This PR introduces breaking changes. Please describe changes users
need to make below.
- [ ] This PR changes default behavior. Please describe changes below.
- [ ] AI was used in preparing this PR. Please describe usage below.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: wdconinc <4656391+wdconinc@users.noreply.github.com>
@wdconinc

wdconinc commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

This functionality was merged into the 0.196 release, https://sourceware.org/cgit/elfutils/commit/?id=bcc06ae5c80dedc02dd0422b83c1905dccdc58ec, so if possible we should reuse that patch as a URL at https://sourceware.org/cgit/elfutils/patch/?id=bcc06ae5c80dedc02dd0422b83c1905dccdc58ec.

@wdconinc

wdconinc commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

With that upstream fix I think we should upgrade this PR to actually target a merge into spack of the upstream patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch Modifications to packages' sets of defined patches update-package Modifications to packages in the repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants