I found a small problem with scripts/patch-kernel. At first my configuration:
- Linux source tree in /usr/src/linux-1.3.xx, /usr/src/linux linked to that
directory
- patch files in root's home directory (/root)
If I run '/usr/src/linux/scripts/patch-kernel' from /root the kernel gets
patched correctly, but the orig-files are not deleted.
Reason: find /usr/src/linux -print gives just /usr/src/linux-1.3.xx or
something similar and therefore no orig-files are found to be deleted. The
same problem is with rej-files, if they occur.
No problems if run from /usr/src/linux as:
scripts/patch-kernel . ~
Solution: Adding -follow to the find commands, which should not break
anything else (patch appended).
Thank you for your great work
Oliver
-- ----------------------------------------------------------------------------- | Oliver Lauer | Tel: +49/9131/761-243 | Garbage looks good | | LSTM-Numerik | Fax: +49/9131/761-242 | in colour | | Universitaet Erlangen | | | | Cauerstr. 4 | Email: | Garbage looks better | | D-91058 Erlangen | lauer@lstm.uni-erlangen.de | in video | ------------- FATAL ERROR: COFFEE NOT FOUND --- SYSTEM HALTED ---------------A train station is a station where a train stops. But what the hell is a workstation? aus: de.talk.jokes
--- patch-kernel.orig Mon Mar 18 10:31:17 1996 +++ patch-kernel Wed Mar 20 18:54:04 1996 @@ -43,11 +43,11 @@ echo "failed. Clean up yourself." break fi - if [ "`find $sourcedir '(' -name '*.rej' -o -name '.*.rej' ')' -print`" ] + if [ "`find $sourcedir -follow '(' -name '*.rej' -o -name '.*.rej' ')' -print`" ] then echo "Aborting. Reject files found." break fi # Remove backup files - find $sourcedir '(' -name '*.orig' -o -name '.*.orig' ')' -print | xargs rm -f + find $sourcedir -follow '(' -name '*.orig' -o -name '.*.orig' ')' -print | xargs rm -f done