Red Hat Bugzilla – Bug 53986
kernel source rpm pre-install scripts "fail" when they aren't failing
Last modified: 2015-01-04 17:01:27 EST
Description of Problem:
The pre-install scripts for the headers do:
[ -L /usr/include/linux ] && rm -f /usr/include/linux
[ -L /usr/include/asm ] && rm -f /usr/include/asm
But if those aren't links, it's NOT a failure. But, since the result of the executions
was false, rpm bitches and bags the install.
[ -L /usr/include/linux ] && rm -f /usr/include/linux || true
[ -L /usr/include/asm ] && rm -f /usr/include/asm || true
and then this false-failure won't happen.
I agree on the solution.
However, how did those headers get there ? And RPM will bitch if
there are files with the same names there.....