So, if a file had three patches, then I would move to the base
directory of the files mentioned in the .patch file, and then go

patch -p1 < patchfile.name
patch -p2 < patchfile.name
patch -p3 < patchfile.name

like that?

Regards,
Gani

On Apr 21, 6:12 pm, Yi Sun <[email protected]> wrote:
> cd frameworks/base
> patch -p1 < <where you patch is>
>
> On Tue, 2009-04-21 at 10:07 -0700, Gani Bhagavathula wrote:
> > Hi all:
>
> > I have seen some patches at the site
> >http://code.google.com/p/patch-hosting-for-android-x86-support/update...
> > - How do I apply those patches?
>
> > I have tried patch -p0 < cursor.patch for example, and get the
> > following query
>
> > can't find file to patch at input line 6
> > Perhaps you should have used the -p or --strip option?
> > The text leading up to this was:
> > --------------------------
> > |project frameworks/base/
> > |diff --git a/core/java/android/view/RawInputEvent.java b/core/java/
> > android/view/RawInputEvent.java
> > |index 30da83e..4d9a11a 100644
> > |--- a/core/java/android/view/RawInputEvent.java
> > |+++ b/core/java/android/view/RawInputEvent.java
> > --------------------------
>
> > am I supposed to change the lines in the patch file (replace a/ with
> > my actual path?)
>
> > Regards,
> > Gani
>
>
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to