With media-gfx/nvidia-cg-toolkit-2.1.0016, the install directory was changed from /usr to /opt/nvidia-cg-toolkit, see bug #255867; this makes other programs fail to find Cg by default, for example crystal space (installed as user in my home directory). I realise there may be some policy which makes it impossible to change the install location back how it was, but is there some way to configure things so Cg is found with the system default include and link paths? Maybe with pkg-config or something in /etc/env.d, I don't know the most clean or approved way. Reproducible: Always Steps to Reproduce: 1. Install media-gfx/nvidia-cg-toolkit-2.1.0016 2. Download an application that can use Cg, for example Crystal Space 3. Run ./configure Actual Results: Cg is not found Expected Results: Cg is found by default, as it used to
It also means that econf for dev-games/ogre-1.6.1 fails when the USE flag cg is enabled.
As Cg is a library, you can't simply move it out of /usr without ensuring that it's headers and libs are found by 3rd party configure scripts and such.
*** This bug has been marked as a duplicate of bug 255867 ***