You are not logged in.

#1 2020-12-03 16:46:57

johnnyn
Member
Registered: 2015-10-26
Posts: 26

Why doesn't nvidia package depend on specific linux package version?

Greetings,

is there a logical reason why not?

Recently my X wouldn't start, because of a partial upgrade from a bad mirror combination, where the linux package was upgraded, but the nvidia package was not upgraded to a version matching the linux package version.

https://github.com/archlinux/svntogit-p … idia/trunk shows that nvidia is always committed matching a specific linux version.
However, the nvidia PKGBUILD file lists just "linux" as a dependency. Not the specific linux version it is committed against.

So I'm curious, why the nvidia package just lists "linux" as a dependency, and not "linux=x.y.z"

Would the above mentioned partial upgrade have been canceled, if pacman had seen that the already installed nvidia version could not have its dependencies met by the new linux version?

Best regards
Johnny smile

Last edited by johnnyn (2020-12-03 16:48:31)

Offline

#2 2020-12-03 16:53:52

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,738

Re: Why doesn't nvidia package depend on specific linux package version?

This is generally not done as the normal procedure is that kernel updates lead to nvidia rebuilds. This happens correctly and is pushed to the primary mirrors in correct correlation. It's not pacman's nor the packagers job to account for broken mirrors.

If you were to properly complete your logic, that would mean every single package would need to depend on versioned libraries as applicable, which is a additional maintenance burden that isn't being taken as it is expected that the distribution rolls along properly as needed. Every package always depends on the latest releases at the time of compiling. Version constraints are usually used in corner cases where an application cannot be built against the newer dependency, which isn't the case here.

This of course doesn't mean there can't be exceptions and it would ultimately be up to the packager but in this case you really ought to make sure you are using proper mirrors. If it hadn't happened with nvidia it might have happened with readline with similarly devastating effects or with the big python rebuild where part of your modules would be on the old version and other parts on the new version or... you catch the drift

Last edited by V1del (2020-12-03 17:07:32)

Offline

#3 2020-12-03 20:59:18

johnnyn
Member
Registered: 2015-10-26
Posts: 26

Re: Why doesn't nvidia package depend on specific linux package version?

Thanks again, V1del, for the help smile

I don't consider myself particularly knowledgeable about how packages are distributed in relation to dependencies. So you just tought me something new smile

Best regards
Johnny smile

Offline

#4 2020-12-03 23:15:01

CarbonChauvinist
Member
Registered: 2012-06-16
Posts: 413
Website

Re: Why doesn't nvidia package depend on specific linux package version?

Wouldn't the DKMS nvidia package help with this type of issue also? Or am I misunderstanding something?

Last edited by CarbonChauvinist (2020-12-03 23:18:07)


"the wind-blown way, wanna win? don't play"

Offline

#5 2020-12-04 08:18:41

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,738

Re: Why doesn't nvidia package depend on specific linux package version?

It definitely would, but that just offloads the relevant responsibility to the user's system. And would fail,  though visibly so, as well if the mirror disjoint would concern the linux and linux-headers package, but as that one comes from the same base package your mirror would have to be truly fubar'd for this disjoint to happen

Offline

#6 2020-12-04 12:21:21

CarbonChauvinist
Member
Registered: 2012-06-16
Posts: 413
Website

Re: Why doesn't nvidia package depend on specific linux package version?

V1del wrote:

It definitely would, but that just offloads the relevant responsibility to the user's system. And would fail,  though visibly so...

Thanks for clarifying, this was in fact my assumption and may be something for OP to consider.


"the wind-blown way, wanna win? don't play"

Offline

Board footer

Powered by FluxBB