Bug 120409 - modutils RPM's %obsoletes spec tag causing problems
Summary: modutils RPM's %obsoletes spec tag causing problems
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: modutils (Show other bugs)
(Show other bugs)
Version: 3.0
Hardware: All Linux
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brian Brock
Depends On:
TreeView+ depends on / blocked
Reported: 2004-04-08 15:02 UTC by Rick Mohr
Modified: 2014-03-17 02:44 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-04-08 16:38:21 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Rick Mohr 2004-04-08 15:02:46 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1)

Description of problem:
The "Obsoletes: modules" line in the modutils rpm is causing problems
when an rpm called "modules" (which is not related to kernel modules)
is installed.

My systems use a package called modules that is used for manipulating
a user's environment (http://modules.sourceforge.net).  This is
installed as an rpm by the same name.  However, the modutils spec file
contains a line that obsoletes modules, presumably an older version of
the kernel module related utilities which was packaged under the
modules name.

When running up2date, the program reported that modutils-2.4.25-11.EL
needed to be installed even though it already was.  If the modutils
package was included in the updates, the update process then failed
because it determined that modutils was already installed.  One work
around was to simply deselect the modutils update every time that I
ran up2date.  In an attempt to avoid doing this every time, I
re-installed the modutils rpm (thinking that perhaps the rpm database
had an error and that re-installing would force the proper information
into it).  This caused my installed modules rpm to be erased without
my knowledge.

There are really a couple of thing at work here (which might not
exactly make this a modutils bug):

1) modutils obsoletes a package that is not even part of RedHat's set
of packages to begin with.

2) rpm has no good way of distinguishing packages other than by name
with no regard to content or group.

3) rpm will erase an obsoleted package with absolutely no indication
or warning that it is doing so.

I am not sure what the best course of action is.  I could rename the
modules rpm I use, but that kind of defeats the point of having the
rpm package name match the software name.  But perhaps a better
temporary fix would be to remove the "Obsoletes" tag from the modutils
 rpm.  And a better long-term fix would be to modify rpm's handling of
obsoleted packages.

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

How reproducible:

Steps to Reproduce:
1.Install any rpm package called "modules"
2.Install or upgrade the modutils rpm

Actual Results:  The modules rpm will be erased.

Expected Results:  modules rpm should remain, or at least be warned
that is will be erased so that action can be aborted.

Additional info:

Comment 1 Bill Nottingham 2004-04-08 16:38:21 UTC
Removed for future builds.

It's going to break upgrades from RHL 4.2, though. :)

Will be in modutils-2.4.25-13.EL or later, if that's built.

Comment 2 Bill Nottingham 2004-04-08 16:38:36 UTC
Removed for future builds.

It's going to break upgrades from RHL 4.2, though. :)

Will be in modutils-2.4.25-13.EL or later, if that's built.

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