Skip to content

elfutils: patch for debuginfod to allow relative paths - #1031

Merged
wdconinc merged 2 commits into
developfrom
patch-elfutils
Sep 10, 2026
Merged

wdconinc merged 2 commits into
developfrom
patch-elfutils

Conversation

@wdconinc

@wdconinc wdconinc commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

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)
  • Medium
  • Low

What kind of change does this PR introduce?

  • Bug fix (issue #__)
  • 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.

@wdconinc
wdconinc requested review from SebastianPaucar and a lite review from Copilot September 9, 2026 20:15
@wdconinc
wdconinc enabled auto-merge (squash) September 9, 2026 20:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The change is narrowly scoped, matches the referenced upstream patch, and only leaves a minor formatting nit in the new package override file.

Pull request overview

This PR introduces an EIC Spack overlay for elfutils to carry a debuginfod client patch (ported from spack/spack-packages#6259) that allows ./-relative DWARF source paths to be accepted and queried.

Changes:

  • Adds an elfutils package override that inherits from the builtin recipe and applies a conditional patch for @0.181:+debuginfod.
  • Adds a patch to debuginfod-client.c to accept ./-relative filenames and construct the request URL correctly by skipping the appropriate prefix.
File summaries
File Description
spack_repo/eic/packages/elfutils/package.py Introduces the EIC override of the builtin elfutils package and applies the relative-path debuginfod patch for a targeted version/variant.
spack_repo/eic/packages/elfutils/elfutils-debuginfod-relative-source.patch Implements the upstream debuginfod client change to allow ./-relative source paths and adjust URL escaping accordingly.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

…1032)

## 🤖 Automated Style Fixes

This PR applies automated style fixes for #1031.

### Changes Applied
- `spack style --fix` formatting
- Ensures compliance with Spack style guidelines

### Original PR
- **Number**: #1031
- **Branch**: `patch-elfutils`
- **Title**: elfutils: patch for debuginfod to allow relative paths

### How to Use
1. Review the changes in this PR
2. If acceptable, merge this PR instead of the original
3. Or, pull these changes into your original branch:
   ```bash
   git fetch origin style-fix-pr-1031
   git merge origin/style-fix-pr-1031
   ```

---
*This PR was automatically created by the [style-and-audit
workflow](https://github.com/eic/eic-spack/actions/runs/34399974882).*

Co-authored-by: wdconinc <4656391+wdconinc@users.noreply.github.com>
@SebastianPaucar SebastianPaucar self-assigned this Sep 9, 2026
@wdconinc
wdconinc disabled auto-merge September 10, 2026 01:36
@wdconinc
wdconinc merged commit 65cf62c into develop Sep 10, 2026
5 of 10 checks passed
@wdconinc
wdconinc deleted the patch-elfutils branch September 10, 2026 01:36
@wdconinc

Copy link
Copy Markdown
Contributor Author

Fails on macOS but that's a stretch goal in CI right now.

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.

3 participants