Bug 48827 - kernel-headers postinstall script broken: BuildASM
Summary: kernel-headers postinstall script broken: BuildASM
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: kernel
Version: 6.2
Hardware: sparc64
OS: Linux
Target Milestone: ---
Assignee: Arjan van de Ven
QA Contact: Brian Brock
Depends On:
TreeView+ depends on / blocked
Reported: 2001-07-12 00:12 UTC by Ben Levenson
Modified: 2007-04-18 16:34 UTC (History)
2 users (show)

Clone Of:
Last Closed: 2003-10-30 04:09:23 UTC

Attachments (Terms of Use)

Description Ben Levenson 2001-07-12 00:12:29 UTC
Description of Problem:
The post install script doesn't populate the /usr/include/asm directory.
The header files were copied to the proper directory only after I manually
executed the BuildASM script _without_ passing the /usr/include/asm 
argument to BuildASM. (/usr/src/linux-2.2.19/include/asm-sparc/BuildASM)

# rpm -q --scripts kernel-headers 
postinstall script (through /bin/sh):
cd /usr/src
rm -f linux
ln -snf linux-2.2.19 linux
if [ 0 -eq 0 ] ; then
	cd /usr/include
	rm -f linux
	ln -snf ../src/linux/include/linux linux
	rm -fr asm
	rm -f asm-sparc asm-sparc64
	ln -snf ../src/linux/include/asm-sparc asm-sparc
	ln -snf ../src/linux/include/asm-sparc64 asm-sparc64
	mkdir asm
	/usr/src/linux-2.2.19/include/asm-sparc/BuildASM /usr/include/asm

Here is the top of BuildASM. When "/usr/include/asm" is passed into the
script, it will always exit with the "create asm-sparc* symlinks first"
message even though the links were properly created by the %postinstall
if [ ! -d asm-sparc -o ! -d asm-sparc64 ] ; then
        echo You must create $INCPATH/asm-sparc* symlinks first.
        exit 1

Comment 1 Charles R. Anderson 2001-11-13 18:57:03 UTC
This problem still exists in the latest errata kernel, 2.2.19-6.2.12.
The fix is to change the kernel-headers %post to call the BuildASM script
with /usr/include as the argument instead of /usr/include/asm (or leave the
argument out altogether).

Comment 2 Charles R. Anderson 2002-03-27 23:58:28 UTC
Problem still exists in 2.2.19-6.2.16.  The fix remains the same.

Comment 3 Ben Levenson 2003-10-30 04:09:23 UTC
No longer supported.
Closing as WONTFIX.

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