Description of Problem: kernel-headers-2.2.19-6.2.7 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 fi <snip> 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 script. /usr/src/linux-2.2.19/include/asm-sparc/BuildASM: #!/bin/sh INCPATH=${1:-/usr/include} cd $INCPATH if [ ! -d asm-sparc -o ! -d asm-sparc64 ] ; then echo You must create $INCPATH/asm-sparc* symlinks first. exit 1 <snip>
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).
Problem still exists in 2.2.19-6.2.16. The fix remains the same.
No longer supported. Closing as WONTFIX.