Bug 107132 - rpm ordering with prerequires, sendmail %post doesn't work
Summary: rpm ordering with prerequires, sendmail %post doesn't work
Keywords:
Status: CLOSED DUPLICATE of bug 104940
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: chkconfig
Version: 7.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-10-15 09:13 UTC by Pekka Savola
Modified: 2014-03-17 02:39 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-02-21 18:59:09 UTC
Embargoed:


Attachments (Terms of Use)
a slightly tailed down log of RPM run with -vvvv debugging (42.59 KB, text/plain)
2003-10-15 09:16 UTC, Pekka Savola
no flags Details

Description Pekka Savola 2003-10-15 09:13:17 UTC
Description of problem:

There seem to be a problem with rpm ordering files which have a PreReq: <file>
line.  For example, when upgrading about 300 RPMs with one command-line option,
sendmail got installed before chkconfig even though the new sendmail version has
PreReq: /usr/sbin/alternatives which is provided only by the new chkconfig.

More fine-grained tests in a similar environment with only sendmail RPMs,
chkconfig and ntsysv failed to reproduce this weird reordering event.

However, the core problem still remained: the /usr/sbin/alternatives command at
sendmail's %post did not work for some reason.  The logs releal that it was
indeed run (but maybe the command was still missing at that point).

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

Red Hat Linux 7.2 (and upgrade to 7.3)

How reproducible:

Get a all-upgraded RHL72 system.  Get the latest ntsysv, chkconfig and sendmail
binaries from RHL73 (+updates).  Try to upgrade them in one go.  Notice that
/usr/sbin/sendmail ends up missing because sendmail's %post didn't work.  The
command itself works, whether run interactively or not (e.g., from cron).

Steps to Reproduce:
1. see above
2.
3.
    
Actual results:

No /usr/sbin/sendmail

Expected results:

Alternatives creating /usr/sbin/sendmail symlink

Additional info:

Comment 1 Pekka Savola 2003-10-15 09:16:37 UTC
Created attachment 95193 [details]
a slightly tailed down log of RPM run with -vvvv debugging

Comment 2 Jeff Johnson 2003-12-27 15:17:38 UTC
Hmmm, the provided log shows that yes, indeed, chkconfig
is ordered before sendmail.

If %post exits with a 0 if /usr/bin/alternatives is not
installed, that's a problem with the sendmail packaging.

I dunno "seems to be a problem", either there is or there isn't,
and I need a reproducer (or sufficient info to attempt) if
there is a problem. Please reopen with sufficient info (like
rpm -Uvv output for 300 pkg install) to attempt to reproduce
if you want me to take a look.

Off to sendmail in case there's a packaging problem.

Comment 3 Thomas Woerner 2004-01-28 15:01:53 UTC
sendmail-8.11.6-27.73 has the following PreReq:

Prereq: /usr/sbin/alternatives
Prereq: chkconfig >= 1.3

Off to rpm, again.

Comment 4 Leonard den Ottolander 2004-03-10 16:45:07 UTC
Thomas,

I must agree with Jeff that according to the log chkconfig indeed gets
installed before sendmail. Thus this is *not* an rpm bug. If it is not
a sendmail bug then the conclusion can only be that there is something
wrong with chkconfig.

Have a look at bug 67387. I would say that this issue is sort of a
duplicate of that one.

(Setting severity to normal)


Comment 5 Leonard den Ottolander 2004-03-10 16:48:05 UTC
Setting component to chkconfig and reassigning to Bill Nottingham, so
he can decide whether or not to close this as a dup of bug 67387.


Comment 6 Bill Nottingham 2004-03-10 17:41:11 UTC
Maybe, hard to tell. Is it possible to reproduce this on a current
release?


Comment 7 Leonard den Ottolander 2004-03-10 17:48:23 UTC
The issue in both cases seems to be /usr/sbin/alternatives failing to
set a correct symlink.

If this is reproducible I wouldn't know, but I do expect this no
longer to be the case, as their seem to be no reports for more recent
releases (these are both for 7.3 even though this one is tagged 7.2).

Probably both CURRENTRELEASEs, but I can't say for sure.


Comment 8 Leonard den Ottolander 2004-03-11 15:34:25 UTC
The problem is that the 7.2 /usr/sbin/sendmail binary is in the way
when /usr/sbin/alternatives tries to create the symlink. The old
binary only gets erased after the new mta is installed.


Comment 9 Leonard den Ottolander 2004-03-11 15:57:46 UTC

*** This bug has been marked as a duplicate of 104940 ***

Comment 10 Red Hat Bugzilla 2006-02-21 18:59:09 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.


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