Bug#684782: libgl1-nvidia-glx:amd64: Please add preferred package to "Recommends: nvidia-kernel-302.17"

Ralf Jung post at ralfj.de
Tue Aug 14 09:27:30 UTC 2012


Hi,

> the -rt- prebuilt modules will go away as the ABI is not considered
> stable (and would require a rebuild for each kernel update, not only for
> each kernel ABI bump)
I see. So on amd64, the "normal" kernel would be the only one left? Personally 
I still prefer the dkms module (e.g., I sometimes build kernels myself), but 
at least on a default installation running just "install nvidia-glx" would 
work out then.
For i386 though, there seem to be some more modules... when I installed the 
foreign-arch libgl, I ended up having an i386 pae kernel installed.

> > installed. I assume this is because of the Recommends: for the virtual
> > package nvidia-kernel-302.17, which does not give any preference, and
> > aptitude doing a strange choice here. When depending on a virtual
> > package, it is common to provide the preferred "provider" of this
> > virtual package as first alternative ("Recommends: nvidia-kernel-dkms |
> > nvidia-kernel-302.17"): apt-get and aptitude will prefer that package,
> > but not install it if something else providing this package is already
> > installed.
> > The same holds for the dependency on nvidia-kernel-302.17 in nvidia-glx.
> 
> Recommends: nvidia-kernel-dkms | nvidia-kernel-${nvidia:Version}
> 
> This does not work, as *any* version of -dkms will satisfy this, not
> neccessarily the one providing -${nvidia:Version}, so we would need to
> use rather ugly versioned dependencies:
> 
> Recommends: nvidia-kernel-dkms (>= ${nvidia:Version}) |
> nvidia-kernel-${nvidia:Version}, nvidia-kernel-dkms (<<
> ${nvidia:Version}.0) | nvidia-kernel-${nvidia:Version}
> (and actually, we need even some more variables in there ...)
> 
> Hmm, we could use (= ${binary:Version})
I don't know which other setups are supported, but on my machines the versions 
were always equal, so
Recommends: nvidia-kernel-dkms (= ${binary:Version}) | nvidia-
kernel-${nvidia:Version}
would work out.

> > While you are at it, please consider whether it is appropriate to make
> > nvidia- kernel-dkms "Multi-Arch: foreign", since currently resolving the
> > dependencies of libgl1-nvidia-glx:i386 on an amd64 system tries to pull
> > in nvidia-kernel- dkms:i386, which of course does not work.
> 
> ACK. pending.
Thanks.

Kind regards,
Ralf



More information about the pkg-nvidia-devel mailing list