Re: Newbie question - Patching

Bjorn Wesen (bjorn@sparta.lu.se)
Fri, 16 Jul 1999 23:58:13 +0200 (MET DST)


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...

-Bjorn

-
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/