http://bugzilla.opensuse.org/show_bug.cgi?id=1082704 http://bugzilla.opensuse.org/show_bug.cgi?id=1082704#c7 --- Comment #7 from Peter Sütterlin <P.Suetterlin@royac.iac.es> --- (In reply to Stefan Dirsch from comment #6)
My guess is, that you have various versions of kernel-default-devel, kernel-devel, kernel-source installed.
Yes, indeed. lux:~ # rpm -q kernel-default-devel kernel-devel kernel-default-devel-4.15.2-1.4.x86_64 kernel-default-devel-4.15.4-1.5.x86_64 kernel-devel-4.15.2-1.4.noarch kernel-devel-4.15.4-1.5.noarch nvidia-gfxG04-kmp-default requires kernel-default-devel, and this gets (also) updated with every new kernel version when running 'zypper dup'. So I'd assume every user of the nvidia repo would be in that situation?
I cannot investigate that issue without direct access to the system. I you want to investigate the issue yourself, you would need to run %post of nvidia-gfxG04-kmp-default manually. Please check out via
rpm --scripts -q nvidia-gfxG04-kmp-default
I had a look at those before, and also at the makefiles etc, but could so far not spot where it decides to use the latest devel version... going through it again now. There's no mantion of any update-alternatives though. The postinstall scriptlet only consists of ----- postinstall scriptlet (using /bin/sh): nvr=nvidia-gfxG04-kmp-default-390.25_k4.15.2_1-10.1 wm2=/usr/lib/module-init-tools/weak-modules2 if [ -x $wm2 ]; then INITRD_IN_POSTTRANS=1 /bin/bash -${-/e/} $wm2 --add-kmp $nvr fi ----- And running that does not compile anything, I think it only creates the links. So then the suspicion is it is the kernel-default-devel package. The zypper log shows that that one did actually compile the nvidia modules. I checked the postinstall of that one, but that only does the ..obj links. Still, the log has # 2018-02-22 23:24:25 kernel-default-devel-4.15.4-1.5.x86_64.rpm installed ok # Additional rpm output: # Changing symlink /usr/src/linux-obj/x86_64/default from ../../linux-4.15.2-1-obj/x86_64/default to ../../linux-4.15.4-1-obj/x86_64/default # /usr/src/kernel-modules/nvidia-390.25-default / # rm -f -r conftest # make[1]: Entering directory '/usr/src/linux-4.15.2-1' The 'Changing symlink' is from the post script. No idea why it starts compiling now. Does it call dkms or something? -- You are receiving this mail because: You are on the CC list for the bug.