Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 254763 - pkg-config does not search /usr/local
Summary: pkg-config does not search /usr/local
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-13 00:38 UTC by Brian Moon
Modified: 2009-01-14 14:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Moon 2009-01-13 00:38:55 UTC
The ebuild for pkgconfig should set --with-pc-path=/usr/lib64/pkgconfig:/usr/local/lib64/pkgconfig when configuring pkg-config.  Currently, when installing non-portage applications, one must set the environment variable PKG_CONFIG_PATH manually for any packages with .pc files in /usr/local.

Reproducible: Always

Steps to Reproduce:
Install an application that puts it's .pc file in /usr/local/.  Attempt to install a program that depends on said package.  Configure will fail.
Actual Results:  
pkg-config can not find .pc files /usr/local

Expected Results:  
pkg-config would search /usr and /usr/local

For a working example, you could install the latest gearmand and gearman MySQL UDFs from http://gearmanproject.org/doku.php?id=download
Comment 1 Rémi Cardona (RETIRED) gentoo-dev 2009-01-13 14:33:40 UTC
For me, this is WONTFIX. Allowing this by default would be akin to shooting ourselves collectively in all our feet.

-1 from me.

Thanks
Comment 2 Mart Raudsepp gentoo-dev 2009-01-14 09:14:25 UTC
For me this is a NOTABUG or INVALID.
Marking as such, because such a change would also make it differ on the default, and documented default path in the man page. Use PKG_CONFIG_PATH if doing your own stuff in /usr/local/
Comment 3 Brian Moon 2009-01-14 14:08:38 UTC
Other facilities look in /usr/local/ by default: ldconfig, $PATH, man and others.  It seems counter intuitive to have those things using /usr/local paths but not have this doing it because it is "not the default" or whatever.
Comment 4 Rémi Cardona (RETIRED) gentoo-dev 2009-01-14 14:36:06 UTC
And those other facilities are a recurrent source of trouble for both us and users. With that, it's almost too easy to shoot yourself in the foot and wreak havoc on your system.

If you want an easy solution, you can always add a file in /etc/env.d.

Thanks