Description of problem: Rebuilding the Kernel package from kernel-2.6.17-1.2558.fc6.src.rpm stops with an error message generated from calling 'chmod -R a+r *'. The context in the spec file is: ---------------------------------------------- %if %{builddoc} mkdir -p $RPM_BUILD_ROOT/usr/share/doc/kernel-doc-%{kversion}/Documentation # sometimes non-world-readable files sneak into the kernel source tree chmod -R a+r * # copy the source over tar cf - Documentation | tar xf - -C $RPM_BUILD_ROOT/usr/share/doc/kernel-doc-%{kversion} %endif ---------------------------------------------- A file '-w' is created during the build process in the build-directory: BUILD/kernel-2.6.17/linux-2.6.17.i686/-w chmod doesn't seem to handle files with special characters very well and exits with the error message "a+r" file or directory not found. Version-Release number of selected component (if applicable): kernel-2.6.17-1.2558.fc6 How reproducible: just rebuild the kernel with "builddoc" set to 1 build the kernel with 'rpmbuild -ba --target=i686 kernel-2.6.spec' enjoy the error message Steps to Reproduce: 1. install the kernel source rpm 2. in the kernel spec-file set the variable 'builddoc' to 1 3. build the kernel with 'rpmbuild -ba --target=i686 kernel-2.6.spec' 4. wait a couple of hours 5. enjoy the error message Actual results: no new kernel package Expected results: a new kernel package Additional info:
The -w is created by kabitool. Jon?
I don't think this one is me. Let me know if I should dig more though :-)
Please dig. The only instance of -w in the kernel-2.6.spec was the kabitool line.
It was me. It was stupid. I fixed it earlier when I fixed the kabitool breakage - shouldn't have called with -l and -w... I think it's all better - but shout at me loudly when I'm wrong :-) Jon.