← Back to issue list

Alter prefix for pkg-config to get correct values

View original Github issue

Metadata

Project
snapcraft
Number
#620
Type
pull request
State
merged
Author
sergiusens
Labels
—
Created
Updated
Closed

Current evaluation

Merged in snapcraft#620 as commit f25abf9c0, correcting pkg-config prefixes so reported values resolve correctly during builds.

Resolution: closed resolved

Reason: The pull request was merged as commit f25abf9c0. It changed pkg-config prefix handling to produce correct values during builds.

Evaluated by: mr-cal-bot

No scores available.

Issue body

LP: #1595243 Signed-off-by: Sergio Schvezov sergio.schvezov@ubuntu.com

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged in snapcraft#620 as commit f25abf9c0, correcting pkg-config prefixes so reported values resolve correctly during builds.
stealth/space-bunny-alpha — closed resolved Merged as snapcraft#620 (f25abf9c0), correcting pkg-config prefixes so their values resolve properly during builds.
stealth/space-bunny-alpha — closed resolved Merged the pkg-config prefix correction so generated values use the correct paths, addressing LP #1595243.
qwen/qwen3.6-35b-a3b — — Merged pkg-config prefix adjustments to retrieve correct values. Approved following reviewer feedback on installdir handling and test coverage, the author verified production compatibility. The change touched 7 files with 215 additions and 174 deletions.
qwen3.6-35b-a3b-mtp-q6 — — Merged after review. The change alters the pkg-config prefix to retrieve correct values, resolving LP #1595243. Approved by reviewer and confirmed working on target systems.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1774254 Wrong prefix is set in staged pkg-config files when alternate --prefix is configured snapcraft (launchpad) closed Fixed incorrect prefix in staged pkg-config files when alternate --prefix is configured. Resolved via snapcraft#3848 and craft-parts#251.
80%
#3848 repo: fix_pkg_config removes prefixes from staged snap's .pc files. snapcraft merged Merged in snapcraft#3848 as commit 2dadaa6da, fixing fix_pkg_config to remove build-stage prefixes from staged snaps' pkg-config .pc files.
77%
#251 repo: fix_pkg_config removes prefixes from staged snap's .pc files. craft-parts merged Merged in craft-parts#251 via 7c8140f4 (commit 359d377a), stripping staged build paths from .pc prefixes before applying the new prefix, addressing LP #1916281.
75%
#1604472 snapcraft changing pkgconfig .pc prefix is creating conflicts between parts snapcraft (launchpad) closed Resolved conflicting pkg-config prefix rewriting through snapcore/snapcraft PR #676, which a maintainer linked as the issue's resolution.
74%
#1595243 pkg-config fails to find dependencies built from other parts snapcraft (launchpad) closed Launchpad bug #1595243 (pkg-config cannot find libraries built by other parts) was fixed by snapcore/snapcraft PR #620 'Alter prefix for pkg-config to get correct values', merged as commit f25abf9c0 after the earlier attempt PR #612 was closed.
72%
#252 repo: fix_pkg_config trims prefixes more generically craft-parts merged Merged: generic pkg-config prefix trimming (f6681f0f, merge 789d2510), follow-up to #251 for CRAFT-1215/LP#1916281. Later reverted by #255 (e7f3fe49) after false matches when 'stage' appeared in the working-directory path.
72%
#335 Redo pkg-config handling with library collecting snapcraft merged Merged in snapcraft#335 as commit 4a5de243e, reworking pkg-config sysroot handling and adding host-to-snap ELF dependency collection.
71%