1 |
On Friday 01 December 2006 06:28, Andrew Gaydenko wrote: |
2 |
> After installing sys-kernel/gentoo-sources-2.6.19 I have tried |
3 |
> to reinstall lirc and got the error shown below. |
4 |
> |
5 |
> Where is my fault? |
6 |
> |
7 |
> |
8 |
> =============================================== |
9 |
> ... |
10 |
> make[1]: Leaving directory |
11 |
> `/wrk/tmp/portage/portage/app-misc/lirc-0.8.0-r6/work/lirc-0.8.0' |
12 |
> |
13 |
> >>> Source compiled. |
14 |
> |
15 |
> --------------------------- ACCESS VIOLATION SUMMARY |
16 |
> --------------------------- LOG FILE = |
17 |
> "/var/log/sandbox/sandbox-app-misc_-_lirc-0.8.0-r6-8905.log" |
18 |
> |
19 |
> open_wr: /usr/src/linux-2.6.19-gentoo/astest13467.out |
20 |
> open_wr: /usr/src/linux-2.6.19-gentoo/astest13471.out |
21 |
> open_wr: /usr/src/linux-2.6.19-gentoo/astest13478.out |
22 |
> open_wr: /usr/src/linux-2.6.19-gentoo/astest13482.out |
23 |
> open_wr: /usr/src/linux-2.6.19-gentoo/astest13535.out |
24 |
> open_wr: /usr/src/linux-2.6.19-gentoo/astest13539.out |
25 |
> open_wr: /usr/src/linux-2.6.19-gentoo/astest13546.out |
26 |
> open_wr: /usr/src/linux-2.6.19-gentoo/astest13550.out |
27 |
> open_wr: /usr/src/linux-2.6.19-gentoo/astest13601.out |
28 |
> open_wr: /usr/src/linux-2.6.19-gentoo/astest13605.out |
29 |
> open_wr: /usr/src/linux-2.6.19-gentoo/astest13612.out |
30 |
> open_wr: /usr/src/linux-2.6.19-gentoo/astest13616.out |
31 |
> --------------------------------------------------------------------------- |
32 |
>----- |
33 |
|
34 |
|
35 |
Andrew... |
36 |
|
37 |
If you are still following this thread... It's not your problem... it's an |
38 |
unexpected reaction between kbuild in latter version of kernels and portage. |
39 |
The simple fix is to patch kbuild in /usr/src/linux... |
40 |
|
41 |
Here's the relevent patch from gentoo-sources... |
42 |
|
43 |
Index: linux-2.6.19/scripts/Kbuild.include |
44 |
=================================================================== |
45 |
--- linux-2.6.19.orig/scripts/Kbuild.include |
46 |
+++ linux-2.6.19/scripts/Kbuild.include |
47 |
@@ -66,9 +66,11 @@ as-option = $(shell if $(CC) $(CFLAGS) $ |
48 |
# as-instr |
49 |
# Usage: cflags-y += $(call as-instr, instr, option1, option2) |
50 |
|
51 |
-as-instr = $(shell if echo -e "$(1)" | $(AS) >/dev/null 2>&1 -W -Z -o |
52 |
astest$$$$.out ; \ |
53 |
+as-instr = $(shell if echo -e "$(1)" | $(AS) >/dev/null 2>&1 -W -Z -o \ |
54 |
+ $(if $(KBUILD_EXTMOD),$(firstword $(KBUILD_EXTMOD))/)astest$$$$.out ; \ |
55 |
then echo "$(2)"; else echo "$(3)"; fi; \ |
56 |
- rm -f astest$$$$.out) |
57 |
+ rm -f \ |
58 |
+ $(if $(KBUILD_EXTMOD),$(firstword $(KBUILD_EXTMOD))/)astest$$$$.out) |
59 |
|
60 |
# cc-option |
61 |
# Usage: cflags-y += $(call cc-option, -march=winchip-c6, -march=i586) |
62 |
|
63 |
|
64 |
Basicly what it does is prevents emerge process from writing |
65 |
into /usr/src/linux... |
66 |
|
67 |
Cheers... |
68 |
|
69 |
-- |
70 |
|
71 |
Jerry McBride |
72 |
-- |
73 |
gentoo-user@g.o mailing list |