Re: Newbie question - Patching

Arvind Sankar (arvinds@mit.edu)
Fri, 16 Jul 1999 20:03:06 -0400


On Fri, Jul 16, 1999 at 11:58:13PM +0200, Bjorn Wesen wrote:
> On Thu, 15 Jul 1999, Marc Mutz wrote:
> > > > have been trying to patch my 2.2.5 kernel to 2.2.10 and it can't get it
> > > > to patch cleanly. I haven't really seen any newbie level docs as far as
>
> > > 3) do "patch -p1 < patch-name" where patch name is patch-2.2.6 up to
> > > patch-2.2.10
>
> The problem I have with linux patches and patch -pXXX is that patch
> behaves differently with the -pXXX option depending on if a new file is
> being created or if its patching an old one.
>
> For example if I use patch -p2 <patch, standing inside the linux
> directory, two slashes are stripped off the filenames just as they should
> (since they are named like v2.2.0/linux/xxxx). But all new files get one
> extra strip, so they end up in the linux root.. which breaks eveything
> badly of course.
>
> So there must be some extra magic needed for patching cleanly...
>

the old names are irrelevant. patch only looks at the new ones for determining
what file is patched. so you should use -p1.

-- arvind

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/