Re: Gasp - Some Simple Help Please
Posted in 1999
Tim Schaefer wrote: > I've tried to do this without asking for help, by wading through the > obtuse documentation on patching a kernel in Linux, but I am just > stuck. Does this have to be a total mystery? I can do many things > but I do not pretend to be a kernel patch expert or kernel hack. Your problem is primarily that you are not sufficiently well acquainted with some of the more peculiar properties of the patch program, rather than needing to know about the kernel per se. > What's the procedure and the process for using a patch? > > I am exasperated and this is something that needs to be in a FAQ > in human understandable form that allows patching a kernel without > screwing it up. > > When I ran "patch -i patch.txt" which I got from Marco, I got a > bunch of strange output, such as: > > rebel:/usr/src/linux-2.2.5.SuSE # patch -i patch001.txt <--------- starts here > can't find file to patch at input line 2 > Perhaps you should have used the -p or --strip option? You should first check that you have a sub-directory arch/i386/kernel which contains a file init_task.c. If you do, then you need to add the -p option to your patch command line, as patch suggested. If you do not have such a directory, the patch will not work for you sensibly. > The text leading up to this was: > -------------------------- > |Index: ./arch/i386/kernel/init_task.c > -------------------------- > File to patch: > Skip this patch? [y] > Skipping patch. > 1 out of 1 hunk ignored > can't find file to patch at input line 5 > Perhaps you should have used the -p or --strip option? > The text leading up to this was: > -------------------------- > |Index: ./arch/sparc64/kernel/init_task.c > > It repeats on, asking me what files to patch--like I know what > this means! I think you could type arch/i386/kernel/init_task.c in response to the question "File to patch:", but it quickly gets boring if there's more than one file to patch. So, go and use the -p (or -p0) options to patch. > Linux: SuSE 6.1: Kernel 2.2.5 > > If I can't get this fixed, then I cannot connect to the Linux box. > Imagine wanting to use the data base after installing it! Really? Can't think why... -- Jonathan Leffler (jleffler@informix.com, jleffler@earthlink.net) Guardian of DBD::Informix v0.60 -- see http://www.perl.com/CPAN #include <disclaimer.h>