On Sun, 30 May 1999, John Pearson wrote: >> The patch was prepared on a system where /usr/src/linux was 'really' >> /usr/src/linux.vanilla. Try this: >> # cd /usr/src >> # ln -s linux linux.vanilla >> # cat patch-2.2.7-ac4 | patch -p0 >> >> That should work.
>The patch utility was specifically designed to deal with cases where the >base directory is named differently. In other words, you can do it >without >the symlink. > # cd /usr/src/linux > # cat patch-2.2.7-ac4 | patch -p1 >The '1' tells it to ignore up to and including the first slash in the >pathnames in the diff: in this case, "linux.vanilla/". Thanks. it worked. But the patched kernel-source would not compile :( The last part of the compilation messages looks like this: ---------------------------------------------------------- gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -D__SMP__ -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686 -DEXPORT_SYMTAB -c ksyms.c ksyms.c:208: redefinition of `__kstrtab_page_cache_size' ksyms.c:114: `__kstrtab_page_cache_size' previously defined here ksyms.c:208: redefinition of `__ksymtab_page_cache_size' ksyms.c:114: `__ksymtab_page_cache_size' previously defined here ksyms.c:209: redefinition of `__kstrtab_page_hash_table' ksyms.c:115: `__kstrtab_page_hash_table' previously defined here ksyms.c:209: redefinition of `__ksymtab_page_hash_table' ksyms.c:115: `__ksymtab_page_hash_table' previously defined here make[3]: *** [ksyms.o] Error 1 make[3]: Leaving directory `/usr/src/kernel-source-2.2.7/kernel' make[2]: *** [first_rule] Error 2 make[2]: Leaving directory `/usr/src/kernel-source-2.2.7/kernel' make[1]: *** [_dir_kernel] Error 2 make[1]: Leaving directory `/usr/src/kernel-source-2.2.7' make: *** [build] Error 2 bash-2.02# exit --------------------------------------------- I will try and get a 2.2.9 patch somewhere and try it out later. Johann. -------------------------------------------------------------------------- | Johann Spies Windsorlaan 19 | | [EMAIL PROTECTED] 3201 Pietermaritzburg | | Tel/Faks Nr. +27 331-46-1310 Suid-Afrika (South Africa) | -------------------------------------------------------------------------- "How precious also are thy thoughts unto me, O God! how great is the sum of them! If I should count them, they are more in number than the sand; when I awake, I am still with thee." Psalms 139: 17,18