https://bugzilla.novell.com/show_bug.cgi?id=299670#c20 --- Comment #20 from Olaf Hering <olh@novell.com> 2007-08-13 14:46:52 MST --- This works in my testing. # replace the directory /usr/include/asm with a symlink # glibc-devel contained /usr/include/asm up to 10.1/SLES10 # The directory moved from glibc-devel to linux-kernel-headers in 10.2 (2.6.18.2) # The directory turned into a symlink in 10.3 (2.6.22) # rpm will remove obsolete files after the post install scripts # a trigger will run after the /usr/include/asm was removed %postun echo "postun %{name}-%{version}-%{release} $0 $*" if test "$1" = 0 then rm -f usr/include/asm fi exit 0 %post echo "post %{name}-%{version}-%{release} $0 $*" asm_link= case "$(uname -m)" in alpha*) asm_link=alpha ;; ppc*) asm_link=powerpc ;; s390*) asm_link=s390 ;; ia64) asm_link=ia64 ;; *arm*) asm_link=arm ;; parisc) asm_link=parisc ;; *mips*) asm_link=mips ;; *sparc*) asm_link=bi-sparc64 ;; *) asm_link=bi-x86_64 ;; esac if test -L usr/include/asm then : symlink is ok, update it below in case of an arch change elif test -d usr/include/asm then echo "/usr/include/asm is a directory, waiting for triggerpostun to symlink to asm-$asm_link" exit 0 fi ln -sfvn asm-$asm_link usr/include/asm exit 0 %triggerpostun -- linux-kernel-headers < 2.6.22 , glibc-devel < 2.5 echo "triggerpostun %{name}-%{version}-%{release} $# $0 $*" asm_link= case "$(uname -m)" in alpha*) asm_link=alpha ;; ppc*) asm_link=powerpc ;; s390*) asm_link=s390 ;; ia64) asm_link=ia64 ;; *arm*) asm_link=arm ;; parisc) asm_link=parisc ;; *mips*) asm_link=mips ;; *sparc*) asm_link=bi-sparc64 ;; *) asm_link=bi-x86_64 ;; esac ln -sfvn asm-$asm_link usr/include/asm exit 0 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.