Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 591636

Summary: sys-devel/crossdev generated pkg-config ignores PKG_CONFIG_PATH
Product: Gentoo Linux Reporter: Malte <malte.f.gerdes>
Component: Current packagesAssignee: Gentoo Crossdev team <crossdev>
Status: CONFIRMED ---    
Severity: normal CC: embedded, freedesktop-bugs
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Malte 2016-08-18 20:49:54 UTC
I want to build some programs with the armv7a-hardfloat-linux-gnueabi toolchain which I generated via crossdev. 

It fails because it is not able to find a library which i installed locally into my home folder. 
Solution: set PKG_CONFIG_PATH to contain that local folder.

Now there is the problem the armv7a-hardfloat-linux-gnueabi-pkg-config does not find the libraries .pc file while stock pkg-config does. Additionally armv7a-hardfloat-linux-gnueabi-pkg-config fails with this message:  realpath: ‘pkgconfig/..’: No such file or directory, perhaps you should add to PKG_CONFIG_PATH blahblah ... 

Is this supposed to happen?
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2020-08-15 08:55:19 UTC
crossdev (perhaps over-zealously) cleans them up in https://gitweb.gentoo.org/proj/crossdev.git/tree/wrappers/cross-pkg-config#n75

We should either allow PKG_CONFIG_PATH as is or have an equivalent variable.