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
For me, this is WONTFIX. Allowing this by default would be akin to shooting ourselves collectively in all our feet. -1 from me. Thanks
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/
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.
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