Skip to content

fix(kmod-nvidia-open): move driver version from package name into Version field#18108

Open
ellie-di wants to merge 1 commit into
4.0from
edehghani/remove-driver-version-from-pkg-name
Open

fix(kmod-nvidia-open): move driver version from package name into Version field#18108
ellie-di wants to merge 1 commit into
4.0from
edehghani/remove-driver-version-from-pkg-name

Conversation

@ellie-di

@ellie-di ellie-di commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Renames the NVIDIA open GPU kmod subpackage from kmod-nvidia-open-<driver_version>
to plain kmod-nvidia-open, moving the NVIDIA driver version out of the RPM name
and into the RPM Version field. The kernel NVR is used as the Release.

Why

Encoding the driver version in the package name meant every driver bump created a new
package name (kmod-nvidia-open-595.58.03kmod-nvidia-open-596.x.y). This breaks
dnf:

  • No upgrade path — dnf treats differently-named packages as unrelated, so a driver
    bump isn't seen as an upgrade of the existing kmod.
  • Broken dependency resolution — consumers had to Requires: kmod-nvidia-open-595.58.03,
    a name that disappears on the next driver release, breaking anything that referenced it.

Putting the driver version in Version: keeps the name (kmod-nvidia-open) stable across
driver updates: dnf sees bumps as normal version upgrades, and consumers depend on the
stable name (or on Provides: nvidia-open-kmod-version / nvidia-kmod to pin a specific
driver version) without breakage.

What changed

  • kmod-nvidia-open-%{nvidia_open_version} package renamed to kmod-nvidia-open.
  • Modprobe conf + license paths re-keyed on %{KVERREL} (not the driver version)
  • Bumped azl_pkgrelease, re-rendered spec, refreshed lock.

Documentation

Follows the out-of-tree kmod packaging strategy documented in #18064.

@ellie-di
ellie-di requested a review from a team as a code owner July 23, 2026 23:51
Copilot AI review requested due to automatic review settings July 23, 2026 23:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Moves the NVIDIA driver version from the kmod package name into its RPM version to establish a stable package name.

Changes:

  • Renames the subpackage and assigns driver/kernel NVR fields.
  • Keys configuration and license paths by kernel version.
  • Bumps the kernel release and refreshes generated metadata.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
base/comps/kernel/kmod-nvidia-open.inc Updates source kmod packaging.
base/comps/kernel/kernel.comp.toml Bumps kernel package release.
specs/k/kernel/kmod-nvidia-open.inc Updates rendered kmod include.
specs/k/kernel/kernel.azl.macros Updates generated release macro.
locks/kernel.lock Refreshes component fingerprint.

Comment on lines +24 to +27
%package -n kmod-%{_kmod_name}
Summary: NVIDIA open GPU kernel modules (driver %{nvidia_open_version})
Version: %{nvidia_open_version}
Release: %{_azl_kver}.%{_azl_krel}
[components.kernel.build.defines]
# RPM release number for the Azure Linux kernel package
azl_pkgrelease = "5"
azl_pkgrelease = "6"
%package -n kmod-%{_kmod_name}
Summary: NVIDIA open GPU kernel modules (driver %{nvidia_open_version})
Version: %{nvidia_open_version}
Release: %{_azl_kver}.%{_azl_krel}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants