* [gentoo-laptop] can't patch the kernel to swsusp2
@ 2005-05-19 2:38 Leandro Castanheira
2005-05-19 7:02 ` Ryan Viljoen
2005-05-19 9:21 ` Henrik Brix Andersen
0 siblings, 2 replies; 4+ messages in thread
From: Leandro Castanheira @ 2005-05-19 2:38 UTC (permalink / raw
To: Gentoo-laptop
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
http://www.suspend2.net/downloads/all/software-suspend-2.1.8-for-2.6.11.tar.bz2
Thanks,
Leandro
--
gentoo-laptop@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-laptop] can't patch the kernel to swsusp2
2005-05-19 2:38 [gentoo-laptop] can't patch the kernel to swsusp2 Leandro Castanheira
@ 2005-05-19 7:02 ` Ryan Viljoen
2005-05-20 2:24 ` Leandro Castanheira
2005-05-19 9:21 ` Henrik Brix Andersen
1 sibling, 1 reply; 4+ messages in thread
From: Ryan Viljoen @ 2005-05-19 7:02 UTC (permalink / raw
To: gentoo-laptop
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@gmail.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
> http://www.suspend2.net/downloads/all/software-suspend-2.1.8-for-2.6.11.tar.bz2
>
> Thanks,
> Leandro
> --
> gentoo-laptop@gentoo.org mailing list
>
>
--
gentoo-laptop@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-laptop] can't patch the kernel to swsusp2
2005-05-19 2:38 [gentoo-laptop] can't patch the kernel to swsusp2 Leandro Castanheira
2005-05-19 7:02 ` Ryan Viljoen
@ 2005-05-19 9:21 ` Henrik Brix Andersen
1 sibling, 0 replies; 4+ messages in thread
From: Henrik Brix Andersen @ 2005-05-19 9:21 UTC (permalink / raw
To: gentoo-laptop
[-- Attachment #1: Type: text/plain, Size: 359 bytes --]
On Wed, 2005-05-18 at 23:38 -0300, Leandro Castanheira wrote:
> I'm trying to patch my kernel but when I run
> /root/software-suspend-2.1.8-for-2.6.11/apply
The easy solution would be to use my suspend2-sources:
http://dev.gentoo.org/~brix/files/overlay/sys-kernel/suspend2-sources/
./Brix
--
Henrik Brix Andersen <brix@gentoo.org>
Gentoo Linux
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-laptop] can't patch the kernel to swsusp2
2005-05-19 7:02 ` Ryan Viljoen
@ 2005-05-20 2:24 ` Leandro Castanheira
0 siblings, 0 replies; 4+ messages in thread
From: Leandro Castanheira @ 2005-05-20 2:24 UTC (permalink / raw
To: gentoo-laptop
Thanks, now it works....
Leandro
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@gmail.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
>>http://www.suspend2.net/downloads/all/software-suspend-2.1.8-for-2.6.11.tar.bz2
>>
>>Thanks,
>>Leandro
>>--
>>gentoo-laptop@gentoo.org mailing list
>>
>>
>>
>>
>
>
>
--
gentoo-laptop@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-05-20 2:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-19 2:38 [gentoo-laptop] can't patch the kernel to swsusp2 Leandro Castanheira
2005-05-19 7:02 ` Ryan Viljoen
2005-05-20 2:24 ` Leandro Castanheira
2005-05-19 9:21 ` Henrik Brix Andersen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox