Skip to content

pkg-proof: openSUSE, which the docs claim and nothing had ever run (Refs #1280, #1279) - #1466

Merged
bong-water-water-bong merged 1 commit into
mainfrom
1bit/kpkg-1280-opensuse
Nov 8, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
1bit/kpkg-1280-opensuse

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

The install section says "Fedora / openSUSE … same files", and the .rpm had only ever been proved on Fedora. Worth checking rather than assuming, and it turned out the harness could not even run on openSUSE: it found the kernel version with ls /usr/src/kernels, and openSUSE has no such directory — its headers live in /usr/src/linux-<ver>-obj/<flavour>, reachable only through /lib/modules/<ver>/build.

The fix is to stop guessing the vendor's path. The version is now found through the /lib/modules/<ver>/build/Makefile that every family provides (Fedora /usr/src/kernels/<ver>, openSUSE /usr/src/linux-<ver>-obj/<flavour>, Debian /usr/src/linux-headers-<ver>). Same approach the arch branch already used, now for rpm, and it drops a vendor assumption rather than adding one.

Measured, the same .rpm, each distribution's own tool:

container headers rows
opensuse/tumbleweed 7.3.1-1-default all 29 rows PASS, rc=0
fedora:latest (regression) 7.2.15-300.fc45.x86_64 all 29 rows PASS, rc=0 — the new detection cost no row

On Tumbleweed that means the same file Fedora takes, installed by zypper with no per-distro package: dkms builds both modules, amdxdna resolves to the dkms build ahead of the in-tree one, the kernel rpm installs and removes cleanly, and the distribution's own module is restored afterwards.

Two container facts found the hard way, now in the header and the docs row instead of waiting to surprise someone: openSUSE's dkms needs kernel-default-devel and the kernel-default package for the in-tree-module rows to have a module to find (my first run failed 4 rows on exactly that), and udevadm comes from the udev package there.

Docs get the measured row. Container work under ~/lb/thermal-run.sh (it paused for temperature during these runs); nothing installed on the box, no device ticket, no release, no publish. Refs #1280, #1279.

The install section says 'Fedora / openSUSE … same files', and the rpm family had only ever been proved on
Fedora. It could not even have run on openSUSE: the harness found the kernel version with
'ls /usr/src/kernels', and openSUSE has no such directory — its headers are /usr/src/linux-<ver>-obj/<flavour>,
reachable through /lib/modules/<ver>/build. So the version is now found through that build symlink's
Makefile, which is the one thing every family provides (Fedora /usr/src/kernels/<ver>, openSUSE
/usr/src/linux-<ver>-obj/<flavour>, Debian /usr/src/linux-headers-<ver>).

Measured, same .rpm, each distribution's own tool:

  opensuse/tumbleweed   29 rows PASS, rc=0, ALL ROWS PASS (headers 7.3.1-1-default)
  fedora:latest         29 rows PASS, rc=0, ALL ROWS PASS  (regression: the new detection did not cost a row)

Two container facts found the hard way and now written down in the header and the docs row rather than left
to surprise the next person: openSUSE's dkms needs kernel-default-devel *and* the kernel package for the
in-tree-module rows to have a module to find, and  comes from the udev package there.

Refs #1280, #1279.
@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

The install section says "Fedora / openSUSE … same files", and the .rpm had only ever been proved on Fedora. Worth checking rather than assuming, and it turned out the harness could not even run on openSUSE: it found the kernel version with ls /usr/src/kernels, and openSUSE has no such directory — its headers live in /usr/src/linux-<ver>-obj/<flavour>, reachable only through /lib/modules/<ver>/build.

The fix is to stop guessing the vendor's path. The version is now found through the /lib/modules/<ver>/build/Makefile that every family provides (Fedora /usr/src/kernels/<ver>, openSUSE /usr/src/linux-<ver>-obj/<flavour>, Debian /usr/src/linux-headers-<ver>). Same approach the arch branch already used, now for rpm, and it drops a vendor assumption rather than adding one.

Measured, the same .rpm, each distribution's own tool:

container headers rows
opensuse/tumbleweed 7.3.1-1-default all 29 rows PASS, rc=0
fedora:latest (regression) 7.2.15-300.fc45.x86_64 all 29 rows PASS, rc=0 — the new detection cost no row

On Tumbleweed that means the same file Fedora takes, installed by zypper with no per-distro package: dkms builds both modules, amdxdna resolves to the dkms build ahead of the in-tree one, the kernel rpm installs and removes cleanly, and the distribution's own module is restored afterwards.

Two container facts found the hard way, now in the header and the docs row instead of waiting to surprise someone: openSUSE's dkms needs kernel-default-devel and the kernel-default package for the in-tree-module rows to have a module to find (my first run failed 4 rows on exactly that), and udevadm comes from the udev package there.

Docs get the measured row. Container work under ~/lb/thermal-run.sh (it paused for temperature during these runs); nothing installed on the box, no device ticket, no release, no publish. Refs #1280, #1279.

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

VERDICT: READY at 528779facf0913a02c04173bfce2e4de7f712b74

The right fix: find the kernel through the /lib/modules/<ver>/build/Makefile every family provides, instead of guessing Fedora's /usr/src/kernels. That turns "openSUSE is claimed" into "openSUSE is measured", with no per-distro package, and the Fedora rerun shows it cost nothing.

At this head (base d2c019a, on main): bash -n passes, and shellcheck -S warning scripts/pkg-proof.sh reports 0, the same as main. The suse command line in the header and the docs row match the two container facts you found (kernel-default alongside kernel-default-devel, udevadm from udev).

One note on the selection, not blocking. When more than one /lib/modules/*/build exists, the loop keeps the lowest version: case $(printf '%s\n%s\n' "$kv" "$v" | sort -V | head -1) in "$v") kv=$v replaces kv only when v sorts first. The two other branches choose differently:

  • deb|coexist picks the highest (ls /lib/modules | sort -V | tail -1);
  • arch skips 7.4.0-rc1-1bit explicitly.

In the measured containers there's one header set, so it doesn't matter yet. In a container with two (or if the 1bit kernel's build tree is ever present before this line), the families would disagree on which kernel the drivers are built against. Making rpm match deb (highest, skipping *-1bit the way arch does) would keep one rule.

@bong-water-water-bong
bong-water-water-bong merged commit a22d17e into main Nov 8, 2026
8 of 9 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the 1bit/kpkg-1280-opensuse branch November 8, 2026 13:12
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.

1 participant