Gentoo Archives: gentoo-laptop

From: Leandro Castanheira <lleandro@×××××.com>
To: gentoo-laptop@l.g.o
Subject: Re: [gentoo-laptop] can't patch the kernel to swsusp2
Date: Fri, 20 May 2005 02:26:06
In Reply to: Re: [gentoo-laptop] can't patch the kernel to swsusp2 by Ryan Viljoen
Thanks, now it works....


Ryan Viljoen wrote:

>I also asked this awhile back, the only way to get it to work is to >hack it, its quite dirty. Open up the apply script in an editor and >look for the following section: > >APPLIED_PATCHES="" >bugger= >for i in $PATCH_DIR/[0-9]* ; do > name=${i##$PATCH_DIR/} > > echo "Applying $name ..." > apply_patch $i > ret=$? > if [ $ret -eq 10 ] ; then > prompt_yes "$name will not apply cleanly. Reverse >applied patches" || exit 1 > bugger=1 > break > elif [ $ret -eq 20 ] ; then > echo "Eeep! Patch $name was supposed to apply cleanly >but didn't!" > echo "Stopping right now. The patches that did >successfully apply were:" > for i in $APPLIED_PATCHES ; do echo $i ; done > exit 2 > fi > APPLIED_PATCHES="$name $APPLIED_PATCHES" >done > >If you look at your if statements they should be 1 and 2 change them >to 10 and 20. It will than apply all the patches to the kernel. Than >make menucconfig and continue. > >I cant remember who told me about this but thanks to who ever it was. > >Hope it helps >Cheers >Rav > > > >On 5/19/05, Leandro Castanheira <lleandro@×××××.com> wrote: > > >>Hi.. >>I'm trying to patch my kernel but when I run >>/root/software-suspend-2.1.8-for-2.6.11/apply >>I get: >> >>Applying 101-kdb-v4.4-2.6.11-rc3-common-1 ... >>101-kdb-v4.4-2.6.11-rc3-common-1 will not apply cleanly. Reverse applied >>patches [Yn]? >> >>If I put Y, >>Reversing patches... >>Done. >> >>but nothing happens.. >> >>I already try to del the 101-kdb-v4.4-2.6.11-rc3-common-1 file in the >>/root/software-suspend-2.1.8-for-2.6.11/ put the appears another one >>102********* will not apply cleanly. Reverse applied patches [Yn]? >> >>So, what can i do? >> >>I did the >>emerge kernel-sources >>and get the >> >> >>Thanks, >>Leandro >>-- >>gentoo-laptop@g.o mailing list >> >> >> >> > > >
-- gentoo-laptop@g.o mailing list