Re: pacth question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Tyler <tyler@agat.net> [2004-06-03 11:28]:
>
> Why this patch isn't good ?
> I juste make a diff -u include/linux/kernel.org.h include/linux/kernel.h
> and catch the result in the file monpatch.
>
[...]
> But when i hit the command : "cat monpatch | -p1", there is the
> following error :
>
> can't find file to patch at input line 3
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
> --------------------------
> |--- include/linux/kernel.org.h 2004-06-03 11:21:53.000000000 +0200
> |+++ include/linux/kernel.h     2004-06-03 11:22:13.000000000 +0200
> --------------------------
> File to patch:
>
> Where is my error ?
>

I assume the following sequence should work.

    cd <linux-src-root>
    diff
    cd <other-src-root>
    cat monpatch | patch

'-p' is required only when you apply the patch on a "different level"
in the directory hierarchy than where you extracted it.

wbr,
Lukas
-- 
Lukas Ruf           | Wanna know anything about raw |
<http://www.lpr.ch> | IP? -> <http://www.rawip.org> |
eMail Style Guide: <http://www.rawip.org/style.html>|

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux