LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   slackware patch kernel (http://www.linuxquestions.org/questions/linux-newbie-8/slackware-patch-kernel-388769/)

james penguin 12-02-2005 06:23 PM

slackware patch kernel
 
Ok, so I need to patch my 2.4.29 slackware kernel to 2.4.32. Ok so normally I'd think I could just get the kernel patches from kernel.org, but when ever I try
Code:

gzip2 -dc patch-2.4.xx | patch -p1 --dry-run
But it's saying it can't find the files to patch, and asks me for an alternate dir.

So is it because the slack kernel is funky? Or do I need special slack patches?

Boow 12-02-2005 06:50 PM

You need to get all the patches from 2.4.30 upto 2.4.32 and apply them all or better yet if you have broadband just download the full 2.4.32 source.

james penguin 12-02-2005 07:20 PM

yeah I know I have to go one patch at a time starting at 2.4.30, but I'm getting that error. Do I need to rename my linux-2.4.29 folder?

AxeZ 12-02-2005 07:38 PM

Try patch -p0

james penguin 12-02-2005 08:42 PM

yay it works thanks a lot. So what exactly is the deal with p0 and p1?

Tinkster 12-02-2005 08:45 PM

Quote:

man patch
Code:

      -pnum  or  --strip=num
          Strip  the  smallest  prefix  containing  num  leading
          slashes from each file name found in the patch file.  A
          sequence  of one or more adjacent slashes is counted as
          a single slash.  This controls how file names found  in
          the patch file are treated, in case you keep your files
          in a different directory than the person who  sent  out
          the patch.  For example, supposing the file name in the
          patch file was

            /u/howard/src/blurfl/blurfl.c

          setting -p0 gives the entire file name unmodified,  -p1
          gives

            u/howard/src/blurfl/blurfl.c

          without the leading slash, -p4 gives

            blurfl/blurfl.c

          and  not  specifying -p at all just gives you blurfl.c.
          Whatever you end up with is looked for  either  in  the
          current directory, or the directory specified by the -d
          option.


Bloody marvelous source of information, those man-pages.



Cheers,
Tink


All times are GMT -5. The time now is 10:22 AM.