Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130126 - add /usr/local to default PKG_CONFIG_PATH the pkg_config path
Summary: add /usr/local to default PKG_CONFIG_PATH the pkg_config path
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High minor
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 130864 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-15 23:29 UTC by foo banana
Modified: 2006-11-03 13:02 UTC (History)
2 users (show)

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


Attachments
patch for /etc/env.d/00basic (bug.patch,336 bytes, patch)
2006-04-15 23:32 UTC, foo banana
Details | Diff
Patch to the current 00basic file (patch,352 bytes, patch)
2006-10-28 07:51 UTC, Renato Caldas
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description foo banana 2006-04-15 23:29:55 UTC
Packages using provided dependencies may not be emergable if the build script involves using pkg-config. For example, on my system, I installed Imlib2 manually in /usr/local, and then tried emerging enlightemnent 16.8. enlightenment could not build because pkg-config did not see imlib2.pc, installed as /usr/local/lib/pkgconfig/imlib2.pc. One possible solution is to add /usr/local/lib/pkgconfig to the search path:

In /etc/env.d/00basic, add the line:

PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"

/etc/env.d/00basic looks like the best place to me, because that is also where

LDPATH="/usr/local/lib"

is located. A patch is attached
Comment 1 foo banana 2006-04-15 23:32:12 UTC
Created attachment 84754 [details, diff]
patch for /etc/env.d/00basic

Patch referenced in above comment
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-04-22 10:55:48 UTC
*** Bug 130864 has been marked as a duplicate of this bug. ***
Comment 3 Renato Caldas 2006-10-28 07:14:22 UTC
In my system PKG_CONFIG_PATH is set to /usr/qt/3/lib/pkgconfig
, because there is no other setting in /etc/env.d/. So I guess there should also be a reference to /usr/lib/pkgconfig.
Comment 4 Renato Caldas 2006-10-28 07:51:41 UTC
Created attachment 100654 [details, diff]
Patch to the current 00basic file

Here goes a patch against my current 00basic file, with the change above.
Comment 5 John N. Laliberte (RETIRED) gentoo-dev 2006-11-03 13:02:53 UTC
We have decided not to apply the patch.

By default, having portage use non-portage installed packages is not a good idea. Any reported problems would be harder to diagnose and fix if /usr/local/lib/pkgconfig was included.

A better way to go about this would be creating ebuilds for the packages you need and using portage to install them.

You can find us on #gentoo-desktop on freenode if you would like to discuss this further.

Thanks!