Bug 16238

Summary: Upgrade of kernel-headers is broken.
Product: [Retired] Red Hat Linux Reporter: Kenneth Topp <ken>
Component: kernelAssignee: Michael K. Johnson <johnsonm>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-08-15 14:30:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kenneth Topp 2000-08-15 14:30:21 UTC
This is an .spec or a document solution, as you cannot rpm -Uvh
kernel-headers from symlink style to the current way in .21.rpm.

The .21.rpm installs following the symlinks in /usr/include, and you get
the following output errors (as well as the error of the files all over the
place)
---
cannot remove /usr/src/linux-2.4.0/include/linux - directory not empty
cannot remove /usr/src/linux-2.4.0/include/asm-i386 - directory not empty
cannot remove /usr/src/linux-2.4.0 - directory not empty
---
I used kernel-headers-2.4.0-0.16.i386.rpm ->
kernel-headers-2.4.0-0.21.i386.rpm to see this, but I'm sure it's valid in
other upgrade situations.

I don't how rpm upgrades operate, but shouldn't rpm's dirs that were
symlinks in older rpms, have in the pre-install:

[ -L /usr/include/asm ] && rm -f /usr/include/asm 
[ -L /usr/include/linux ] && rm -f /usr/include/linux

Comment 1 Michael K. Johnson 2000-08-16 18:57:20 UTC
Fixed in our current internal source tree, thanks!