Bug 155988 - yum is treating kernel-devel and kernel-smp-devel package
yum is treating kernel-devel and kernel-smp-devel package
Product: Fedora
Classification: Fedora
Component: kernel (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Dave Jones
: 156741 157730 158627 (view as bug list)
Depends On:
Blocks: FC4Blocker
  Show dependency treegraph
Reported: 2005-04-26 10:02 EDT by Jef Spaleta
Modified: 2015-01-04 17:19 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-08-25 21:52:29 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jef Spaleta 2005-04-26 10:02:24 EDT
Description of problem:
kernel-devel package is treated as installonly
kernel-smp-devel is updated

They should be treated the same way.. which way they are both treated is a
matter of opinionated opinion. I've brought this up in fedora-packaging list as
per seth's request.. but the discussion sort of died without a clear consensous.
I'm filing this to make sure the issue isn't forgotten.  

Version-Release number of selected component (if applicable):
Comment 1 Jeremy Katz 2005-04-26 11:38:54 EDT
Would a generic
  Provides: kernel-devel
in kernel-devel-smp help?  Seems like the low-hanging way to fix this.
Comment 2 Seth Vidal 2005-05-09 23:55:30 EDT
fixed in yum upstream

i just added kernel-smp-devel to the installonly list in the default config.
Comment 3 Jeremy Katz 2005-05-10 08:33:28 EDT
*** Bug 156741 has been marked as a duplicate of this bug. ***
Comment 4 Jeremy Katz 2005-05-10 08:41:08 EDT
But adding these to the yum config is going to be ugly and really shouldn't be
needed anyway.  If we do it in yum, then we need to also add -xen0-devel and
-xenU-devel and then when we collapse the xen packages, -xen-devel.  It seems
far simpler to do the following in the kernel spec file

Index: kernel-2.6.spec
RCS file: /cvs/dist/devel/kernel/kernel-2.6.spec,v
retrieving revision 1.1291
diff -u -u -r1.1291 kernel-2.6.spec
--- kernel-2.6.spec     10 May 2005 01:14:09 -0000      1.1291
+++ kernel-2.6.spec     10 May 2005 12:31:57 -0000
@@ -428,6 +428,7 @@
 Group: System Environment/Kernel
 Provides: kernel-smp-devel-%{_target_cpu} = %{rpmversion}-%{release}
 Provides: kernel-devel-%{_target_cpu} = %{rpmversion}-%{release}smp
+Provides: kernel-devel = %{rpmversion}-%{release}smp
 AutoReqProv: no
 Prereq: /usr/sbin/hardlink, /usr/bin/find

@@ -468,6 +469,7 @@
 AutoReqProv: no
 Provides: kernel-xen0-devel-%{_target_cpu} = %{rpmversion}-%{release}
 Provides: kernel-devel-%{_target_cpu} = %{rpmversion}-%{release}xen0
+Provides: kernel-devel = %{rpmversion}-%{release}xen0
 Prereq: /usr/sbin/hardlink, /usr/bin/find

 %description xen0-devel
@@ -502,6 +504,7 @@
 AutoReqProv: no
 Provides: kernel-xenU-devel-%{_target_cpu} = %{rpmversion}-%{release}
 Provides: kernel-devel-%{_target_cpu} = %{rpmversion}-%{release}xenU
+Provides: kernel-devel = %{rpmversion}-%{release}xenU
 Prereq: /usr/sbin/hardlink, /usr/bin/find

 %description xenU-devel

Dave/Seth -- if this seems sane to you, let me know and I can commit it.
Comment 5 Jeremy Katz 2005-05-10 14:05:43 EDT
Changed the kernel spec and reverted the yum change.  This'll fix the
kernel-xen[0U]-devel too :-)
Comment 6 Jeremy Katz 2005-05-16 16:18:29 EDT
*** Bug 157730 has been marked as a duplicate of this bug. ***
Comment 7 Jef Spaleta 2005-05-24 10:11:25 EDT
I'm still seeing kernels-smp-devel being updated by yum in rawhide even as of
today. kernel-smp-devel 1341 updated 1340 and so on back in time since this bug
was put in the modified state. As far as I can tell nothing has changed. Did you
accidently revert the wrong yum change in comment #5?

Comment 8 Jeremy Katz 2005-05-24 10:37:34 EDT
*** Bug 158627 has been marked as a duplicate of this bug. ***
Comment 9 Jeremy Katz 2005-05-24 10:42:14 EDT
I see what's going on here...  looking at doing a generic fix for it in yum
Comment 10 Jeremy Katz 2005-05-24 10:57:15 EDT
yum wasn't matching provides against installonlypkgs -- fixed for yum-2.3.2-5
(and in upstream cvs)
Comment 11 Jef Spaleta 2005-08-25 21:52:29 EDT
kernel-smp-devel installs instead of updates for me, for awhile now. Closing the
bug as fixed.

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