Bug 432773 - RHEL4.6 -> RHEL5.2 anaconda upgrade produces multiple errors for several gcc packages
Summary: RHEL4.6 -> RHEL5.2 anaconda upgrade produces multiple errors for several gcc ...
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: gcc
Version: 5.2
Hardware: All
OS: Linux
low
low
Target Milestone: beta
: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
: 432931 432934 (view as bug list)
Depends On:
Blocks: RHEL5u2_relnotes 434847 RHEL5u3_relnotes
TreeView+ depends on / blocked
 
Reported: 2008-02-14 10:30 UTC by Milan Zázrivec
Modified: 2010-03-14 21:32 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
(all architectures) When upgrading to Red Hat Enterprise Linux 5.1 or later from Red Hat Enterprise Linux 4.6, gcc4 may cause the upgrade to fail. As such, you should manually remove the gcc4 package before upgrading.
Clone Of:
Environment:
Last Closed: 2008-02-21 20:02:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Milan Zázrivec 2008-02-14 10:30:04 UTC
Description of problem:
Anaconda upgrade of RHEL4.6::AS -> RHEL5.2-Server-20080212.0 produces
multiple upgrade errors for several gcc packages.

The upgrade errors are of two kinds:
* First to occur are the errors like following:
...
Error(s) installing: libstdc++-devel 4.1.2 39.el5 i386
error: unpacking of archive failed on file /usr/lib/gcc/i386-redhat-linux/4.1.2:
cpio: rename
...

* After libgcj gets upgraded:
...
Error(s) installing: libgcj 4.1.2 39.el5 i386
error: unpacking of archive failed on file /usr/lib/gcj-4.1.2: cpio: rename
...

Couple of other package upgrades produce following error:
...
gij: error while loading shared libraries: libgij.so.7rh: cannot open shared
object file: No such file or directory
...

Version-Release number of selected component (if applicable):
gcc-4.1.2-39.el5 / RHEL5.2-Server-20080212.0

Comment 2 RHEL Program Management 2008-02-15 15:27:11 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 5 Brock Organ 2008-02-19 15:30:37 UTC
*** Bug 432931 has been marked as a duplicate of this bug. ***

Comment 6 James Laska 2008-02-19 15:32:10 UTC
Something changed in RHEL4 or RHEL5 that regressed the major release upgrade
test result.

This failure was not observed when upgrading from RHEL-4/U5 -> RHEL-5/U1.

Retesting RHEL-4/U5 -> RHEL-5/U2 upgrades in KATE now.  Will post back with
results.  This should help narrow down what introduces this change in behavior
(a RHEL4 change or RHEL5 change).

May also test RHEL-4/U6 -> RHEL-5/U1 upgrades.  The combination should narrow
down the guilty party.

Comment 8 James Laska 2008-02-19 15:35:11 UTC
Looking at early test results of upgrades from RHEL-4/U5 -> RHEL-5/U2 this does
not appear to happen. 

This must mean a change was introduced in RHEL-4/U6 that is causing this issue
on upgrade?

Comment 12 Bill Nottingham 2008-02-19 19:58:00 UTC
You're pretty much screwed; you just can't replace directories with symlinks.
%pre/%prein will cause problems if the old paths will still be valid after you
install the symlinks.

Comment 14 Thomas Fitzsimmons 2008-02-19 21:21:05 UTC
*** Bug 432934 has been marked as a duplicate of this bug. ***

Comment 21 Bill Nottingham 2008-02-21 18:36:22 UTC
(In reply to comment #19)
> Argh, just tried to upgrade RHEL5.2 beta gcc-4.1.2-39.el5 to this scratch
> gcc-4.1.2-39.el5.1 on ibm-defiant.rhts.boston.redhat.com and the results are
> very weird.  I thought the only thing rpm doesn't handle is replacement of a
> directory with a symlink, but it seems it can't cope even with the opposite
> direction, replacement of a symlink (symlink to directory) with a directory.

The problem is that file dispositions are calculated before any filesystem
changes are done. If the old package has a:

/usr/lib/1.2.3/foo

file that isn't in the new package set, it will be removed. If, as a result of
the new package set,

/usr/lib/1.2.3/foo 

points to some other file in the new package set (due to some components of that
path being newly created symlinks), it doesn't matter - it will still get removed.

Comment 23 Bill Nottingham 2008-02-21 18:58:37 UTC
(In reply to comment #19)
> Argh, just tried to upgrade RHEL5.2 beta gcc-4.1.2-39.el5 to this scratch
> gcc-4.1.2-39.el5.1 on ibm-defiant.rhts.boston.redhat.com and the results are
> very weird.  I thought the only thing rpm doesn't handle is replacement of a
> directory with a symlink, but it seems it can't cope even with the opposite
> direction, replacement of a symlink (symlink to directory) with a directory.

Oh, sorry. Directory symlinks are followed, not replaced. (For example, imagine
if /usr/local was a symlink to /opt... you want to follow the symlink, not
replace it with a dir.)

Comment 26 Jakub Jelinek 2008-02-21 20:02:38 UTC
This is impossible to fix in RHEL5 gcc.  Closing this as CANTFIX.  If RHEL4 ->
RHEL5 upgrades must be supported, we need to errata RHEL4 gcc4 (need a separate
bug for that I guess).

Comment 30 Don Domingo 2008-02-26 00:29:04 UTC
thanks James; adding to RHEL5.2 release notes under "Installation-Related Notes"
(since this is CLOSED/CANTFIX, i assume this issue will still be present come
RHEL5.2 GA?):

<quote>
When upgrading to Red Hat Enterprise Linux 5.2 from Red Hat Enterprise Linux
4.6, gcc4 may cause the upgrade to fail. As such, you should manually remove the
gcc4 package before upgrading.
</quote>

please advise if any further revisions are required. thanks!

Comment 31 James Laska 2008-02-26 00:34:47 UTC
Looks great Don, thanks!

Comment 32 Jakub Jelinek 2008-02-26 07:20:39 UTC
It is actually:
<quote>
When upgrading to Red Hat Enterprise Linux 5.1 or newer from Red Hat Enterprise
Linux 4.6, gcc4 may cause the upgrade to fail. As such, you should manually
remove the gcc4 package before upgrading.
</quote>

Comment 33 Don Domingo 2008-02-26 22:43:54 UTC
thanks Jakub, corrected in source.

Comment 34 Don Domingo 2008-04-02 02:12:30 UTC
Hi,
the RHEL5.2 release notes will be dropped to translation on April 15, 2008, at
which point no further additions or revisions will be entertained.

a mockup of the RHEL5.2 release notes can be viewed at the following link:
http://intranet.corp.redhat.com/ic/intranet/RHEL5u2relnotesmockup.html

please use the aforementioned link to verify if your bugzilla is already in the
release notes (if it needs to be). each item in the release notes contains a
link to its original bug; as such, you can search through the release notes by
bug number.

Cheers,
Don

Comment 35 Ryan Lerch 2008-08-07 01:49:02 UTC
Tracking this bug for the Red Hat Enterprise Linux 5.3 Release Notes.

Comment 36 Ryan Lerch 2008-08-07 01:49:02 UTC
Release note added. If any revisions are required, please set the 
"requires_release_notes" flag to "?" and edit the "Release Notes" field accordingly.
All revisions will be proofread by the Engineering Content Services team.


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