Bug 150692 - Rpm doesn't check kernel dependencies
Rpm doesn't check kernel dependencies
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: rpm (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2005-03-09 14:00 EST by Chris Feist
Modified: 2007-11-30 17:07 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-03-09 15:42:27 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Output from rpm -ivv GFS-modules-* (6.68 KB, text/plain)
2005-03-09 14:38 EST, Chris Feist
no flags Details

  None (edit)
Description Chris Feist 2005-03-09 14:00:33 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6)
Gecko/20050302 Firefox/1.0.1 Fedora/1.0.1-1.3.2

Description of problem:
I have a package (GFS-modules) which requires kernel = 2.4.21-29.EL

If I don't have that kernel installed rpm still happily attempts to
install GFS-modules and a scriptlet fails because it can't find the

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

How reproducible:

Steps to Reproduce:
1.  Get GFS & GFS-modules & perl-Net-Telnet

2.  install perl-Net-Telnet
3. Make sure you don't have kernel 2.4.21-29.EL installed
4. rpm -qp --requires GFS-modules- (to see that it
requires kernel = 2.4.21-29.EL)
5. Install GFS & GFS-modules


Actual Results:  Both GFS & GFS-modules install even though the
dependency is not met.

Expected Results:  Rpm should fail to install GFS-modules because the
proper kernel is not installed.

Additional info:
Comment 1 Jeff Johnson 2005-03-09 14:29:27 EST
Can you attach -vv output from the install? I'm pretty sure
I know what the (packaging) problem is, but I need -vv output
to confirm before suggesting what to do.
Comment 2 Chris Feist 2005-03-09 14:38:24 EST
Created attachment 111820 [details]
Output from rpm -ivv GFS-modules-*

Output from rpm -ivv GFS-modules-*
Comment 3 Jeff Johnson 2005-03-09 15:42:27 EST
This line indicates that the dependency is met:
    D:  Requires: kernel = 2.4.21-29.EL       YES (db provides)
by an already installed package Provides:

What is happening is that the kernel has a
    Provides: kernel = 2.4.21
(Note the missing Release:)

Missing Release: in the provides is interpreted as
    All/any releases are provided.
which matches your Requires:

If you want *exactly* a kernel-2.4.21-29.EL package and
nothing else will do, then you will need to express your
Requires: differently.

The easiest expression is to add a file dependency, like
    Requires: /lib/modules/2.4.21-29.EL
or (alternatively)
    Requires: /boot/vmlinuz-2.4.21-29.EL

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