[Bug 948722] New: Kernel:stable/standard kernel-pae/kernel-default obsolete kernel-desktop <= 4.3
http://bugzilla.opensuse.org/show_bug.cgi?id=948722 Bug ID: 948722 Summary: Kernel:stable/standard kernel-pae/kernel-default obsolete kernel-desktop <= 4.3 Classification: openSUSE Product: openSUSE Factory Version: 2015* Hardware: Other OS: SUSE Other Status: NEW Severity: Major Priority: P5 - None Component: Kernel Assignee: kernel-maintainers@forge.provo.novell.com Reporter: AxelKoellhofer@web.de QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Hi there, I am using openSUSE 13.1 with kernels from repo Kernel:stable/standard. A few days ago all packages of "kernel-desktop" flavors got removed with the following entry in changelog: * Fr Sep 25 2015 mmarek@suse.cz - Merge kernel-desktop back into kernel-default/kernel-pae (fate#319416) - commit ad49492 So far, so good, and it was certainly OK to do so which also applies to this: Provides: kernel-desktop = 4.3 Provides: kernel-desktop-base = 4.3 However, I think this is not such a good idea: Obsoletes: kernel-desktop <= 4.3 Obsoletes: kernel-desktop-base <= 4.3 Let's say some user wants to test one of those kernels on his stable openSUSE version (like 13.1/13.2) but does not want to delete his running kernel released for that stable distro (like "kernel-desktop-3.16.X" for openSUSE 13.2 or "kernel-desktop-3.11.X" for openSUSE 13.1) which was installed by default and most likely will be a "desktop"-flavored kernel. With the obsoletion of all "kernel-desktop" packages < 4.3 (= any kernel--desktop package from any stable kernel version ever released for openSUSE)this would force the user to remove older "known to work" kernels but only the ones of the "desktop"-flavor. Yes, I could just replace the older "kernel-desktop" package by a respective "kernel-default" from 13.1/13.2, but that would not really make sense. It should be possible to keep an older, stable "kernel-desktop" (i.e. one from the running, stable release) as a fallback. IMHO the new kernel-pae/kernel-default should not obsolete any stable distro kernel for supported openSUSE releases, so the best way would be to remove obsoletion of kernel-desktop <= 4.3 from the packages on kernel:stable/standard. Greetings, AK -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=948722
Thomas Fackler
http://bugzilla.opensuse.org/show_bug.cgi?id=948722
http://bugzilla.opensuse.org/show_bug.cgi?id=948722#c1
Takashi Iwai
http://bugzilla.opensuse.org/show_bug.cgi?id=948722
http://bugzilla.opensuse.org/show_bug.cgi?id=948722#c2
--- Comment #2 from Axel Köllhofer
Maybe we don't need obsolete but just provides would be enough -- supposing zypper will clean up the multi-version packages by itself in anyway?
I tend to agree, AFAIK this whole mechanism was created to take care of exactly this type of issue.
But then a question is what happens if we install the package without obsolete directly via rpm...
In case of "rpm -Uhv" I would expect it would remove older kernel-desktop packages as it explicitly provides "kernel-desktop = 4.3" and with "rpm -ihv" it will install the package without removing older "kernel-desktop" (or other kernel-$FLAVOR) packages, which is pretty much the same behaviour as before without the "Obsoletes: kernel-desktop <= 4.3". Maybe (just an idea, although I am not really in favor of this) we could obsolete all kernel-desktop packages which are _newer_ than a certain version, maybe > 3.16.7 (latest distro kernel for latest openSUSE version), although I think just removing the "Obsoletes: kernel-desktop <= $WHATEVER_VERSION" is the better solution. After all, the "worst case" would be users will have an extra kernel on their systems they can remove if they want to, while with obsoletion the worst case could be - at least one kernel less than expected and - if there is only one left (= all other kernels installed were "kernel-desktop-S$OMEVERSION") and - that one does not work as expected (or not even boot), then ..... For me these kernels from kernel:stable/standard are fairly safe testing grounds as long as I can keep my fallback kernel provided by the running openSUSE release, otherwise I would think at least twice before installing (and testing) them. Greetings, AK -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=948722
http://bugzilla.opensuse.org/show_bug.cgi?id=948722#c4
--- Comment #4 from Axel Köllhofer
We need to keep the obsoletes line, otherwise the last kernel-desktop package would never get removed (the purge-kernels script treats flavors separately).
Well, so be it then, but just for the record and mainly for other users reading this thread
As a workaround on 13.1, you can either install the new kernel with rpm -i
rpm -ihv /daten/Kernel/kernel_stable/4.2.x/4.2.3/kernel-pae-4.2.3-1.1.gef1562d.i686.rpm error: Failed dependencies: kernel-desktop <= 4.3 is obsoleted by kernel-pae-4.2.3-1.1.gef1562d.i686 this does not work. So there is either this
or switch to kernel-default for the 13.1 kernels as well.
or as a _very_ dirty workaround using the tool rpmrebuild -ep on the downloaded kernel RPM, manually removing the "Obsoletes" lines and subsequently installing the resulting RPM with "rpm -i". Quite dirty but working fine here. Greetings, AK -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com