Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 405171 - x11-drivers/nvidia-drivers installs precompiled binaries to /usr
Summary: x11-drivers/nvidia-drivers installs precompiled binaries to /usr
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal QA
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-21 17:33 UTC by Kacper Kowalik (Xarthisius) (RETIRED)
Modified: 2012-03-23 15:27 UTC (History)
3 users (show)

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


Attachments
/usr/bin -> /opt/bin transition (nvidia-drivers-295.20-r1.diff,2.58 KB, patch)
2012-02-21 17:33 UTC, Kacper Kowalik (Xarthisius) (RETIRED)
Details | Diff
updated patch (nvidia-drivers-295.20-r1.diff,3.48 KB, patch)
2012-02-21 18:27 UTC, Kacper Kowalik (Xarthisius) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-02-21 17:33:21 UTC
Created attachment 302711 [details, diff]
/usr/bin -> /opt/bin transition

As per summary, currently nvidia-drivers install binary blobs to /usr which violates quot. "Binary-only applications must not be installed outside of /opt."[1] As much as I'd love to see all of binary files moved there, I'd like to start with solving clash with media-video/nvidia-settings and moving all execs to /opt/bin.

In case anyone wonders about impact on users, /opt/bin is in PATH by default:

xarth@aiur:/etc/env.d$ grep 'opt/bin' 00basic 
PATH="/opt/bin"
ROOTPATH="/opt/bin"
xarth@aiur:/etc/env.d$ equery b /etc/env.d/00basic 
 * Searching for /etc/env.d/00basic ... 
sys-apps/baselayout-2.1 (/etc/env.d/00basic)

[1] http://devmanual.gentoo.org/general-concepts/filesystem/index.html
Comment 1 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-02-21 17:37:42 UTC
I've also checked docs (at least those directly referring to nvidia). There's no reference to /usr/bin anywhere. Of course you can double check me :)
Comment 2 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-02-21 18:27:07 UTC
Created attachment 302721 [details, diff]
updated patch

As was noticed by Cardoe on irc I've left out desktop entry and icon as blockers for media-video/nvidia-settings. New version of patch installs nvidia-settings-bin instead of plain nvidia-settings to avoid that. One more thing left to do is to fix elog message to reflect current status
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2012-03-23 15:27:28 UTC
They're now in /opt/bin. You can skip installing the nvidia-settings.png and nvidia-setting man page in the nvidia-settings package as that's provided.

Fixed in 295.33