Wrong prefix is set in staged pkg-config files when alternate --prefix is configured
Metadata
Current evaluation
Staged .pc files get prefix rewritten to $SNAPCRAFT_STAGE plus the original configure prefix, producing invalid paths when an alternate --prefix was used. Open since 2018, no labels or comments; pkg-config prefix handling has since been reworked in the codebase.
Suggested action: needs triage
Reason: The issue is a genuine bug report (invalid prefix in staged pkg-config files) with zero maintainer interaction, no labels, and no comments in 3015 days, so it has never been triaged. Git history shows the pkg-config prefix handling was reworked (e.g. 'fix: don't modify prefix for relocatable pkg-config files (#5157)' and 'fix_pkg_config removes prefixes from staged snap's .pc files (#3848)'), suggesting the behavior may have changed, but I could not confirm whether this exact alternate-prefix case is fixed, so a maintainer should verify before closing.
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.8-27b |
Impact:
40
Quick Win:
18.0
Staleness:
90
Complexity:
55
Confidence:
55
Support Request:
5
|
needs triage | Staged .pc files get prefix rewritten to $SNAPCRAFT_STAGE plus the original configure prefix, producing invalid paths when an alternate --prefix was used. Open since 2018, no labels or comments; pkg-config prefix handling has since been reworked in the codebase. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
45
Confidence:
90
Support Request:
10
|
close stale | Bug report detailing incorrect prefix paths in staged pkg-config files when using alternate --prefix. Unlabeled, zero comments, inactive for over eight years. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
55
Confidence:
85
Support Request:
5
|
close stale | Snapcraft incorrectly sets the prefix in staged pkg-config files when an alternate --prefix is used, resulting in invalid paths. Untriaged and inactive for over 8 years. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
98
Complexity:
45
Confidence:
85
Support Request:
10
|
close stale | Bug report from 8 years ago detailing incorrect prefix substitution in staged pkg-config files when using an alternate --prefix. No maintainer interaction or activity. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
98
Complexity:
40
Confidence:
85
Support Request:
10
|
close stale | Report of incorrect pkg-config prefix paths in snapcraft staged files when using alternate --prefix. Unaddressed for ~8 years with no maintainer comments or labels. |
Update history
No update history recorded yet.
Related work
-
Related To:
snapcraft#5157
(confidence 60%)
Commit 0a7f753ac 'fix: don't modify prefix for relocatable pkg-config files (#5157)' directly touches the prefix-modification behavior this issue complains about.
-
Related To:
snapcraft#3848
(confidence 55%)
Commit 2dadaa6da 'repo: fix_pkg_config removes prefixes from staged snap's .pc files (#3848)' is part of the same pkg-config prefix rewriting machinery.
Related issues
No related issues found above the similarity threshold.