Bug 540558

Summary: kernel/kmp: tilde support
Product: [openSUSE] openSUSE 11.2 Reporter: Jan Engelhardt <jengelh>
Component: KernelAssignee: Michal Marek <mmarek>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Enhancement    
Priority: P5 - None CC: kkaempf, mls
Version: Factory   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Found By: Beta-Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: patch

Description Jan Engelhardt 2009-09-20 11:20:22 UTC
As discussed on RPM summit.
Requires #466994.
Comment 1 Jan Engelhardt 2009-09-20 11:21:50 UTC
Created attachment 318977 [details]
patch
Comment 2 Jan Engelhardt 2009-09-20 12:08:54 UTC
'~' won't make anything worse than '_' with an unpatched rpm, so remove Depends On.
Comment 3 Klaus Kämpf 2009-09-21 09:13:44 UTC
This needs synchronization with rpm upstream first.
Comment 4 Michal Marek 2009-09-21 12:11:25 UTC
(In reply to comment #2)
> '~' won't make anything worse than '_' with an unpatched rpm, so remove Depends
> On.

With an unpatched rpm also doesn't fix anything, so there is little benefit in doing it before there is support in rpm. BTW a much more user-visible improvement would be the ability to encode the rc number into the rpm version (currently, mkspec more or less throws the -rcX string away).
Comment 5 Jan Engelhardt 2009-09-21 13:05:13 UTC
Humm, it is already encoded ("foo-kmp-rt-1.2.3_2.6.31_rc8-123.i586.rpm") or did I miss something?
Comment 6 Michal Marek 2009-09-21 13:09:00 UTC
Sorry, I had the kernels themselves in mind, there the rpm version is just the 2.6.X or 2.6.X.Y, without the -rc string.
Comment 7 Jan Engelhardt 2009-09-21 13:20:16 UTC
That is because your scripts strip it. I already mentioned that in #465113.
Comment 8 Michal Marek 2009-09-23 08:08:54 UTC
The problem with KMPs you're trying to address is easily fixed by adding a .0 to the mainline kernel version encoded in the kmp version: foo-kmp-desktop-0.1_2.6.31.0_2.3-4.5.x86_64.rpm, I just committed this yesterday.

For properly representing the kernel version in kernel packages, we have to wait for support in rpm.
Comment 9 Michal Marek 2009-09-23 08:09:31 UTC
.
Comment 10 Pavol Rusnak 2009-09-25 08:50:22 UTC
For the record, this is ticket#56 in upstream tracker : http://rpm.org/ticket/56