You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pkgconfig defines the ${pcfiledir} variable as "the path of the .pc file". It is designed to allow to create relocatable .pc files. For example, the .pc file for librsvg library version 2.59.1 begins with:
prefix=${pcfiledir}/../../..
Since the file is stored at /usr/lib/x86_64-linux-gnu/pkg-config, the result is that prefix is /usr.
Unfortunately, snapcraft doesn't honor it, and prepends the $CRAFT_STAGE path during build, which breaks it. When the prefix begins with ${pcfiledir}, it should be kept unmodified.
Just a note that this bug is affecting the GIMP snap as described here: snapcrafters/gimp#300
There is a workaround in the PR to hard-code the librsvg header file search path in the build-environment section of a part that is impacted by this bug.
I prepared a patch for gnome-46-2404-sdk which should fix the problem ubuntu/gnome-sdk#264 but it's just a workaround until this is fixed in snapcraft.
Bug Description
Pkgconfig defines the ${pcfiledir} variable as "the path of the .pc file". It is designed to allow to create relocatable .pc files. For example, the .pc file for librsvg library version 2.59.1 begins with:
Since the file is stored at
/usr/lib/x86_64-linux-gnu/pkg-config
, the result is thatprefix
is/usr
.Unfortunately, snapcraft doesn't honor it, and prepends the $CRAFT_STAGE path during build, which breaks it. When the
prefix
begins with${pcfiledir}
, it should be kept unmodified.I tried to do a patch #5157 but didn't work.
To Reproduce
Just downloading the current stable version of gnome-46-2404 shows it.
Environment
Using LXD on Ubuntu 24.10.
snapcraft.yaml
Relevant log output
Additional context
No response
The text was updated successfully, but these errors were encountered: