lkml.org 
[lkml]   [1998]   [Mar]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.1.89 doesn't compile
Hi Steve,

> The usual cause for this is when the directories in the patch file
> do not match the tree being patched. AFAIK, for the default -p0 to
> work correctly, the paths in the patch file relating to "OLD" or
> "Original" location must match exactly the paths in the source tree
> being patched. For the linux kernel, this means that the root of your
> tree must be called ./linux, and not something like ./linux-2.1.89.

I used to use patch -p0, and I had to rename my directories around
a lot to meet the './linux' requirement.

cd /usr/src
mv linux-foo linux
patch -p0 < /tmp/patch
mv linux linux-foo

Then I found about 'patch -p1':

cd /usr/src/linux-foo
patch -p1 < /tmp/patch

This makes my life easier.

Regards,

Michael Chastain
<mailto:mec@shout.net>
"love without fear"

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.023 / U:0.780 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site