Bug 509034 - kernel-2.6.spec file missing xen appendage to the xen package
Summary: kernel-2.6.spec file missing xen appendage to the xen package
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kernel-xen
Version: 5.3
Hardware: All
OS: Linux
low
urgent
Target Milestone: rc
: ---
Assignee: Don Zickus
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-06-30 23:04 UTC by Bret Palsson
Modified: 2011-03-24 15:36 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-24 15:36:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Bret Palsson 2009-06-30 23:04:52 UTC
Description of problem:
Many packages with have a kernel-xen-XXXX dependancy because they were built with that kernel. However they return:

Error: Missing Dependency: kernel-xen = 2.6.18-128.1.14.el5xen is needed by package ...

This is because in the kernel-2.6.spec under Package xen it is missing the xen appendage.

If you install kernel-xen and type in `uname -r` it will output 2.6.18-128.1.14.el5xen which is the same command many spec files use to set the dependency of the kernel.

kernel-2.6.spec

Version-Release number of selected component (if applicable):
5.3

How reproducible:
Every time

Steps to Reproduce:
1. yum install kernel-xen
2. reboot
3. uname -r (note output)
4. yum list kernel-xen (note the xen is missing from the version)
  
Actual results:
The versions are a miss-match.

Expected results:
The versions should match.

Additional info:
I appended xen on the provides for the package xen in the spec file and then rebuilt, it now works.
I would suggest adding another Provides line and then have the appendage.

Comment 2 Don Zickus 2009-07-01 14:45:23 UTC
Hi Bret,

I think I know what you are looking for but I has hoping for some more concrete details just to make sure.

Is the patch you are suggesting something like (sorry for the cut-n-paste)?

@@ -924,6 +929,7 @@ Summary: The Linux kernel compiled for Xen VM operations

 Group: System Environment/Kernel
 Provides: kernel = %{version}
+Provides: kernel = %{version}xen
 Provides: kernel-%{_target_cpu} = %{rpmversion}-%{release}xen
 Provides: xen-hypervisor-abi = %{xen_abi_ver}
 Prereq: %{kernel_prereq}


Also, may I ask what packages you are having trouble with this dependency.  This is the first I have heard of it.  I would have assumed this issue would have been brought up a while ago.  But then again, we are creating new virt packages all the time.

Thanks,
Don

Comment 3 Don Zickus 2009-11-24 16:12:18 UTC
Hi Bret,

Any feedback on my above reply?

Comment 4 Bret Palsson 2009-11-24 16:26:54 UTC
Yes that looks correct. I don't remember what package I was having a problem with now. I did however repackage the RPM with the above patch file. Sorry I didn't submit one earlier.

Thanks,
Bret

Comment 5 Laszlo Ersek 2011-03-24 15:36:02 UTC
$ uname -r
2.6.18-238.el5xen

$ yum list kernel-xen
kernel-xen.x86_64        2.6.18-238.el5           installed

The package is called "kernel-xen", not "kernel". I believe the affected client packages should depend (alternatively anyway) on the "kernel-xen" package, not on "kernel" with a "xen" suffixed version. Thus it's rather those packages that should be modified. Since no specific package was named, I'm closing this as NOTABUG. Please reopen if you disagree. Thank you.


Note You need to log in before you can comment on or make changes to this bug.