I'm trying to build an old(ish) kernel (220.127.116.11-46-fc11.i586) on an
up-to-date F-11 system, but I keep getting a build failure. I have
tracked it down to the following.
At the beginning of the %install stage, it executes
'[' /u/home/hsn/rpmbuild/BUILDROOT/kernel-18.104.22.168-46.fc11.i386 '!=' /
rm -rf /u/home/hsn/rpmbuild/BUILDROOT/kernel-22.214.171.124-46.fc11.i386
but there are already files in that directory that have been created
earlier in the build process and are needed for the install (see
extract of build log below).
I notice that when kernels are build in koji, this rm ... does not get
executed, but also, looking at other packages' build.log in koji (the
example I took was rpm itself), then the equivalent rm command is
I cannot see where the rm ... command comes from, or how to stop it.
Can anyone give me some pointers?
+ ln -sf ../../../usr/src/kernels/126.96.36.199-46.fc11.i586
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.NR0ESi
+ umask 022
+ cd /u/home/hsn/rpmbuild/BUILD
+ '[' /u/home/hsn/rpmbuild/BUILDROOT/kernel-188.8.131.52-46.fc11.i386 '!=' /
+ rm -rf /u/home/hsn/rpmbuild/BUILDROOT/kernel-184.108.40.206-46.fc11.i386
++ dirname /u/home/hsn/rpmbuild/BUILDROOT/kernel-220.127.116.11-46.fc11.i386
+ mkdir -p /u/home/hsn/rpmbuild/BUILDROOT
+ mkdir /u/home/hsn/rpmbuild/BUILDROOT/kernel-18.104.22.168-46.fc11.i386
+ cd kernel-2.6.29
+ export LANG
+ unset DISPLAY
+ cd linux-2.6.29.i586