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
Message-Id: 428D4A40.7070704@gmail.com
In Reply to: Re: [gentoo-laptop] can't patch the kernel to swsusp2 by Ryan Viljoen
1 Thanks, now it works....
2
3 Leandro
4
5 Ryan Viljoen wrote:
6
7 >I also asked this awhile back, the only way to get it to work is to
8 >hack it, its quite dirty. Open up the apply script in an editor and
9 >look for the following section:
10 >
11 >APPLIED_PATCHES=""
12 >bugger=
13 >for i in $PATCH_DIR/[0-9]* ; do
14 > name=${i##$PATCH_DIR/}
15 >
16 > echo "Applying $name ..."
17 > apply_patch $i
18 > ret=$?
19 > if [ $ret -eq 10 ] ; then
20 > prompt_yes "$name will not apply cleanly. Reverse
21 >applied patches" || exit 1
22 > bugger=1
23 > break
24 > elif [ $ret -eq 20 ] ; then
25 > echo "Eeep! Patch $name was supposed to apply cleanly
26 >but didn't!"
27 > echo "Stopping right now. The patches that did
28 >successfully apply were:"
29 > for i in $APPLIED_PATCHES ; do echo $i ; done
30 > exit 2
31 > fi
32 > APPLIED_PATCHES="$name $APPLIED_PATCHES"
33 >done
34 >
35 >If you look at your if statements they should be 1 and 2 change them
36 >to 10 and 20. It will than apply all the patches to the kernel. Than
37 >make menucconfig and continue.
38 >
39 >I cant remember who told me about this but thanks to who ever it was.
40 >
41 >Hope it helps
42 >Cheers
43 >Rav
44 >
45 >
46 >
47 >On 5/19/05, Leandro Castanheira <lleandro@×××××.com> wrote:
48 >
49 >
50 >>Hi..
51 >>I'm trying to patch my kernel but when I run
52 >>/root/software-suspend-2.1.8-for-2.6.11/apply
53 >>I get:
54 >>
55 >>Applying 101-kdb-v4.4-2.6.11-rc3-common-1 ...
56 >>101-kdb-v4.4-2.6.11-rc3-common-1 will not apply cleanly. Reverse applied
57 >>patches [Yn]?
58 >>
59 >>If I put Y,
60 >>Reversing patches...
61 >>Done.
62 >>
63 >>but nothing happens..
64 >>
65 >>I already try to del the 101-kdb-v4.4-2.6.11-rc3-common-1 file in the
66 >>/root/software-suspend-2.1.8-for-2.6.11/ put the appears another one
67 >>102********* will not apply cleanly. Reverse applied patches [Yn]?
68 >>
69 >>So, what can i do?
70 >>
71 >>I did the
72 >>emerge kernel-sources
73 >>and get the
74 >>http://www.suspend2.net/downloads/all/software-suspend-2.1.8-for-2.6.11.tar.bz2
75 >>
76 >>Thanks,
77 >>Leandro
78 >>--
79 >>gentoo-laptop@g.o mailing list
80 >>
81 >>
82 >>
83 >>
84 >
85 >
86 >
87
88 --
89 gentoo-laptop@g.o mailing list