Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Porblems with nvidia-settings vs. nvidia-drivers: Up-/downgrade race condition
Date: Sat, 17 Oct 2015 19:54:41
Message-Id: 5622A747.5080607@gmail.com
In Reply to: Re: [gentoo-user] Porblems with nvidia-settings vs. nvidia-drivers: Up-/downgrade race condition by Meino.Cramer@gmx.de
1 On 17/10/2015 18:42, Meino.Cramer@×××.de wrote:
2 > Alan McKinnon <alan.mckinnon@×××××.com> [15-10-17 18:24]:
3 >> On 17/10/2015 16:59, Meino.Cramer@×××.de wrote:
4 >>> Heiko Baums <lists@××××××××××××.de> [15-10-17 15:44]:
5 >>>> Am 17.10.2015 um 13:07 schrieb Meino.Cramer@×××.de:
6 >>>>
7 >>>>> previously I had emerged nvidia-settings seperately. This leads to an
8 >>>>> problem with a recent update, because the nvidia-settings were
9 >>>>> pulling in the old version of the nvidia-drivers and the update wants
10 >>>>> the new version of the drivers.
11 >>>>>
12 >>>>> So I emerge -C'ed the nvidia-settings, set the USE-flag 'tools' for
13 >>>>> the drivers and updated...it works.
14 >>>>>
15 >>>>> This morning ... updateing my Gentoo box again, the same scenario
16 >>>>> happens again...nvidia-settings (old version) were missing (why?)
17 >>>>> and again wants the old driver while emerge wants the new one.
18 >>>>>
19 >>>>> How can I get out of this?
20 >>>>
21 >>>> Do you have xfce-extra/xfce4-sensors-plugin with
22 >>>> USE="video_cards_nvidia" resp. VIDEO_CARDS="nvidia" installed?
23 >>>>
24 >>>> Because this pulls in media-video/nvidia-settings.
25 >>>>
26 >>>> My guess is that media-video/nvidia-settings is now included in
27 >>>> x11-drivers/nvidia-drivers and is therefore not needed anymore as a
28 >>>> separate package.
29 >>>>
30 >>>> As a workaround, because I hadn't had time to file a bug report when I
31 >>>> discovered this, I just reinstalled xfce-extra/xfce4-sensors-plugin with
32 >>>> USE="-video_cards_nvidia".
33 >>>>
34 >>>> There are some other packages which pull in media-video/nvidia-settings
35 >>>> if VIDEO_CARDS="nvidia" is set. So if you don't use Xfce it's probably
36 >>>> one of those packages.
37 >>>>
38 >>>> Just run `equery depends nvidia-settings` or `emerge -pv --tree ...` to
39 >>>> see by which package it gets pulled in.
40 >>>>
41 >>>
42 >>> Hi Heiko,
43 >>> (_sounds_ somehow redundant, hahahaha! ;)
44 >>>
45 >>> Thanks for the help! :)
46 >>> The equery command found three more of those:
47 >>> app-admin/conky-1.9.0-r3 (nvidia ? media-video/nvidia-settings)
48 >>> sci-libs/vtk-6.1.0-r1 (video_cards_nvidia ? media-video/nvidia-settings)
49 >>> sys-apps/hwloc-1.10.0-r2 (gl ? media-video/nvidia-settings)
50 >>>
51 >>> I fixed that via accorinding use-flag setting as you suggested but
52 >>> unfortunately vtk is ignoring my manipulations:
53 >>>
54 >>> [I] sci-libs/vtk
55 >>> Available versions: ~6.0.0^t (~)6.1.0^t 6.1.0-r1^t {R +X all-modules aqua boost cg doc examples ffmpeg gdal imaging java json kaapi mpi mysql odbc offscreen postgres python qt4 rendering smp tbb tcl test theora tk views web xdmf2 ELIBC="FreeBSD" PYTHON_TARGETS="python2_7" VIDEO_CARDS="nvidia"}
56 >>> Installed versions: 6.1.0-r1^t(05:31:39 06/13/15)(X rendering tcl tk -R -all-modules -aqua -boost -cg -doc -examples -ffmpeg -gdal -imaging -java -json -kaapi -mpi -mysql -odbc -offscreen -postgres -python -qt4 -smp -tbb -test -theora -views -web -xdmf2 ELIBC="-FreeBSD" PYTHON_TARGETS="python2_7" VIDEO_CARDS="nvidia")
57 >>> Homepage: http://www.vtk.org/
58 >>> Description: The Visualization Toolkit
59 >>>
60 >>>
61 >>> There is no 'nvidia-settings" use-flag with vtk.
62 >>>
63 >>> But nevertheless - it pulls it in:
64 >>> [nomerge ] sci-libs/vtk-6.1.0-r1::gentoo USE="X rendering tcl tk -R -all-modules (-aqua) -boost -cg -doc (-examples) -ffmpeg -gdal -imaging -java -json -kaapi -mpi -mysql -odbc -offscreen -postgres -python -qt4 -smp -tbb {-test} -theora -views -web -xdmf2" PYTHON_TARGETS="python2_7" VIDEO_CARDS="nvidia"
65 >>> [ebuild N ~] media-video/nvidia-settings-355.11::gentoo USE="-examples -gtk3" 0 KiB
66 >>>
67 >>>
68 >>> Am I lost? ;)
69 >>
70 >> With the tree currently as-is, yes. vtk blindly pulls in nvidia-settings:
71 >>
72 >> RDEPEND="
73 >> ...
74 >> video_cards_nvidia? ( media-video/nvidia-settings )
75 >>
76 >>
77 >> Which is a bit of a blunt weapon - saying nvidia in make.conf gives you
78 >> nvidia-settings regardless of anything else.
79 >>
80 >> I would suggest removing nvidia-drivers from world, putting
81 >> nvidia-settings in instead. This will enforce that you only get drivers
82 >> packages that are compatible with settings. Any ebuild that tries to
83 >> update drivers to latest without a matching settings will run into a
84 >> blocker.
85 >>
86 >> Ideal of course would be nvidia-settings is always in step with
87 >> nvidia-drivers then this problem just never arises. Why those two are
88 >> eternally out of step is beyond me.
89 >>
90 >>>
91 >>>
92 >>> Best regards,
93 >>> Meino
94 >>>
95 >>>
96 >>>
97 >>>
98 >>
99 >>
100 >> --
101 >> Alan McKinnon
102 >> alan.mckinnon@×××××.com
103 >>
104 >>
105 >
106 > Hi Alan,
107 >
108 > thanks for digging into the depth of Gentoo! :)
109 >
110 > Why not to remove nvidia-settings as a separate package completely and
111 > make the choose whether to install it dependant from the
112 > "tools" flag of the drivers?
113 >
114 > I dont think, that there is someone out there, who wants
115 > nvidia-settings /without/ the drivers?!?
116 >
117 > Only my 2 EURcents... ;)
118
119
120 That makes sense. I don't know why the two ebuilds are set up that way,
121 and I haven't used nvidia myself for ages so have nothing in the past to
122 compare to. You'd have to ask the dev why the ebuilds are done that way
123
124
125 --
126 Alan McKinnon
127 alan.mckinnon@×××××.com