← Back to issue list

PKG_CONFIG_PATH during build step should include multiarch paths

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1796802
Type
issue
State
open
Author
~brlin
Labels
Created
Updated
Closed

Current evaluation

Snapcraft build step sets PKG_CONFIG_PATH to only $SNAPCRAFT_STAGE/lib/pkgconfig, missing multiarch lib/<triplet>/pkgconfig paths, so .pc files installed there are not found by later parts. Unlabelled, zero comments, ~8 years old.

Suggested action: needs triage

Reason: No labels, no maintainer comments, no assignee, and no activity in ~8 years, so it has never been triaged. The underlying behavior is now handled by craft-parts, whose get_pkg_config_paths(root, arch_triplet) already computes pkg-config paths per arch triplet (craft_parts/executor/environment.py:145), so a maintainer should verify whether the multiarch path is still missing before deciding to fix or close.

Impact: 40 Quick Win: 28.0 Staleness: 95 Complexity: 30 Confidence: 60 Support Request: 10

Issue body

Currently the PKG_CONFIG_PATH environmental variable is set to `$SNAPCRAFT_STAGE/lib/pkgconfig` during build step, however, some parts install their pc files at `$SNAPCRAFT_STAGE/lib/$DEBIAN_MULTIARCH_TUPLE/pkgconfig` and as a result the files are not read during the building of other parts. IMO `$SNAPCRAFT_STAGE/lib/$DEBIAN_MULTIARCH_TUPLE/pkgconfig` should also be set as a fallback path.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 40
Quick Win: 28.0
Staleness: 95
Complexity: 30
Confidence: 60
Support Request: 10
needs triage Snapcraft build step sets PKG_CONFIG_PATH to only $SNAPCRAFT_STAGE/lib/pkgconfig, missing multiarch lib/<triplet>/pkgconfig paths, so .pc files installed there are not found by later parts. Unlabelled, zero comments, ~8 years old.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 20
Confidence: 80
Support Request: 10
needs triage Snapcraft build step PKG_CONFIG_PATH omits multiarch lib paths, causing build failures for parts relying on multiarch pkgconfig files. Untriaged, inactive for over seven years.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 15
Confidence: 90
Support Request: 10
close stale Snapcraft's build step PKG_CONFIG_PATH omits multiarch library paths, causing pkg-config files to be missed. Untriaged and inactive for over 7 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 20
Confidence: 85
Support Request: 10
close stale Snapcraft build environment PKG_CONFIG_PATH lacks multiarch paths. Issue is over 7 years old, unlabelled, and has zero maintainer activity. Likely obsolete due to major build system and environment changes in modern Snapcraft versions.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 20
Confidence: 85
Support Request: 10
close stale Request to add multiarch paths to PKG_CONFIG_PATH during Snapcraft builds. Untriaged, zero comments, and inactive for over 7 years.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.