Bug 681415 - systemtap spec file requires kernel-devel breaks installation and upgrade
Summary: systemtap spec file requires kernel-devel breaks installation and upgrade
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: systemtap
Version: 4.9
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Stan Cox
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-02 03:36 UTC by Travis Gummels
Modified: 2018-11-14 14:24 UTC (History)
4 users (show)

Fixed In Version: 1.3-5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-12 08:25:32 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0929 0 normal SHIPPED_LIVE systemtap bug fix update 2011-07-12 08:25:24 UTC

Description Travis Gummels 2011-03-02 03:36:43 UTC
Description of problem:

The systemtap package provided with RHEL 4 Update 9 introduced what seems to be a regression by requiring kernel-devel.

From the spec file:

# Alternate kernel packages kernel-PAE-devel et al have a virtual
# provide for kernel-devel, so this requirement does the right thing.
Requires: kernel-devel

Unfortunately this isn't the case:

$ rpm -q --provides -p /mnt/brew/packages/kernel/2.6.9/100.EL/x86_64/kernel-smp-devel-2.6.9-100.EL.x86_64.rpm 
kernel-smp-devel-x86_64 = 2.6.9-100.EL
kernel-smp-devel = 2.6.9-100.EL

Here's what it looks like for RHEL5

$ rpm -q --provides -p /mnt/brew/packages/kernel/2.6.18/238.5.1.el5/x86_64/kernel-devel-2.6.18-238.5.1.el5.x86_64.rpm 
kernel-devel-x86_64 = 2.6.18-238.5.1.el5
kernel-devel = 2.6.18-238.5.1.el5

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

systemtap-1.3-5.el4

How reproducible:

Attempt to install or upgrade systemtap.
  
Actual results (customer reporting issue uses yum):

 user@noric12 17:58 > sudo yum -c /etc/yum-immediate.conf upgrade
 Setting up Upgrade Process
 Setting up Repos
 base                      100% |=========================|  951 B    00:00     
 extras                    100% |=========================|  951 B    00:00     
 rh_updates                100% |=========================|  951 B    00:00     
 Reading repository metadata in from local files
 base      : ################################################## 1566/1566
 extras    : ################################################## 45/45
 rh_updates: ################################################## 7568/7568
 Excluding Packages in global exclude list
 Finished
 Resolving Dependencies
 --> Populating transaction set with selected packages. Please wait.
 ---> Package systemtap.i386 0:1.3-5.el4 set to be updated
 ---> Package systemtap-runtime.i386 0:1.3-5.el4 set to be updated
 --> Running transaction check
 --> Processing Dependency: kernel-devel for package: systemtap
 --> Finished Dependency Resolution
 Error: Missing Dependency: kernel-devel is needed by package systemtap
 Exit 1

Expected results:

The systemtap program installs or upgrades with out error.

Additional info:

Comment 1 Frank Ch. Eigler 2011-03-04 16:49:50 UTC
Sorry we didn't catch this issue earlier.  kernels from RHEL5+ all rpm-provide 
the 'kernel-devel' virtual resource, but RHEL4 doesn't.  Possible workaroundss
include:
- trivial rebuilding the systemtap RPM without that Require: [dev_ack+]
- (bad solution, but:) installing systemtap with --nodeps
- installing a dummy kernel-devel (any random version; won't be used)
- (not going to happen, but:) getting the kernel-VARIANT-devel RPMs to 
  rpm-provide: kernel-devel like RHEL5+ ones do

Comment 7 Frank Ch. Eigler 2011-06-09 19:55:42 UTC
We'll plop a build into the system within a day or two.

Comment 11 errata-xmlrpc 2011-07-12 08:25:32 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0929.html


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