Repository navigation
pkg-proof: openSUSE, which the docs claim and nothing had ever run (Refs #1280, #1279) - #1466
Conversation
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.
|
The install section says "Fedora / openSUSE … same files", and the The fix is to stop guessing the vendor's path. The version is now found through the Measured, the same
On Tumbleweed that means the same file Fedora takes, installed by zypper with no per-distro package: dkms builds both modules, 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 Docs get the measured row. Container work under |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
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|coexistpicks the highest (ls /lib/modules | sort -V | tail -1);archskips7.4.0-rc1-1bitexplicitly.
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.
The install section says "Fedora / openSUSE … same files", and the
.rpmhad 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 withls /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/Makefilethat every family provides (Fedora/usr/src/kernels/<ver>, openSUSE/usr/src/linux-<ver>-obj/<flavour>, Debian/usr/src/linux-headers-<ver>). Same approach thearchbranch already used, now forrpm, and it drops a vendor assumption rather than adding one.Measured, the same
.rpm, each distribution's own tool:opensuse/tumbleweed7.3.1-1-defaultrc=0fedora:latest(regression)7.2.15-300.fc45.x86_64rc=0— the new detection cost no rowOn Tumbleweed that means the same file Fedora takes, installed by zypper with no per-distro package: dkms builds both modules,
amdxdnaresolves 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-develand thekernel-defaultpackage for the in-tree-module rows to have a module to find (my first run failed 4 rows on exactly that), andudevadmcomes from theudevpackage 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.