1 |
On Wed, 6 Jun 2012 15:22:45 +1000 |
2 |
Nima Talebi <nima@××××××.au> wrote: |
3 |
|
4 |
> Hi All, |
5 |
> |
6 |
> Could someone point out what's the deal with the following: |
7 |
> |
8 |
> % emerge --oneshot virtual/os-headers |
9 |
> Calculating dependencies... done! |
10 |
> |
11 |
> >>> Verifying ebuild manifests |
12 |
> |
13 |
> >>> Starting parallel fetch |
14 |
> |
15 |
> >>> Emerging (1 of 2) sys-kernel/linux-headers-3.3 |
16 |
> * gentoo-headers-base-3.3.tar.xz RMD160 SHA1 SHA256 size ;-) ... |
17 |
> [ ok ] |
18 |
> * gentoo-headers-3.3-2.tar.xz RMD160 SHA1 SHA256 size ;-) ... |
19 |
> [ ok ] |
20 |
> >>> Unpacking source... |
21 |
> >>> Unpacking gentoo-headers-base-3.3.tar.xz to |
22 |
> /home/talebi/gentoo/var/tmp/portage/sys-kernel/linux-headers-3.3/work |
23 |
> |
24 |
> This process ultimately fails, because the unpacking drops the files |
25 |
> into gentoo/var/tmp/portage/sys-kernel/linux-headers-3.3/work as |
26 |
> root, and then later things begin to fail as it (running as a |
27 |
> non-root user) doesn't have permissions to chmod, chown, etc: |
28 |
> |
29 |
> ... |
30 |
> chmod: changing permissions of |
31 |
> `gentoo-headers-base-3.3/include/drm/drm_dp_helper.h': Operation not |
32 |
> permitted |
33 |
> chmod: changing permissions of |
34 |
> `gentoo-headers-base-3.3/include/drm/drm_hashtab.h': Operation not |
35 |
> permitted chmod: changing permissions of |
36 |
> `gentoo-headers-base-3.3/include/drm/drm_usb.h': Operation not |
37 |
> permitted chmod: changing permissions of |
38 |
> `gentoo-headers-base-3.3/include/drm/drm_fixed.h': Operation not |
39 |
> permitted chmod: changing permissions of |
40 |
> `gentoo-headers-base-3.3/include/drm/drmP.h': Operation not permitted |
41 |
> chmod: changing permissions of |
42 |
> `gentoo-headers-base-3.3/include/drm/drm_mm.h': Operation not |
43 |
> permitted chmod: changing permissions of |
44 |
> `gentoo-headers-base-3.3/include/drm/vmwgfx_drm.h': Operation not |
45 |
> permitted chmod: changing permissions of |
46 |
> `gentoo-headers-base-3.3/include/drm/i810_drm.h': Operation not |
47 |
> permitted chmod: changing permissions of |
48 |
> `gentoo-headers-base-3.3/include/drm/drm_crtc.h': Operation not |
49 |
> permitted chmod: changing permissions of |
50 |
> `gentoo-headers-base-3.3/include/config': Operation not permitted |
51 |
> make headers_install |
52 |
> INSTALL_HDR_PATH=/home/talebi/gentoo/var/tmp/portage/sys-kernel/linux-headers-3.3/image///home/talebi/gentoo/usr/include/.. |
53 |
> ARCH=x86 CROSS_COMPILE=x86_64-pc-linux-gnu- |
54 |
> make[1]: Entering directory |
55 |
> `/home/talebi/gentoo/var/tmp/portage/sys-kernel/linux-headers-3.3/work/gentoo-headers-base-3.3' |
56 |
> CHK include/linux/version.h |
57 |
> /home/talebi/gentoo/tmp/usr/bin/bash: include/linux/version.h.tmp: |
58 |
> Permission denied |
59 |
> make[1]: *** [include/linux/version.h] Error 1 |
60 |
> make[1]: Leaving directory |
61 |
> `/home/talebi/gentoo/var/tmp/portage/sys-kernel/linux-headers-3.3/work/gentoo-headers-base-3.3' |
62 |
> emake failed |
63 |
> * ERROR: sys-kernel/linux-headers-3.3 failed (install phase): |
64 |
> * (no error message) |
65 |
> * |
66 |
> * Call stack: |
67 |
> * ebuild.sh, line 85: Called src_install |
68 |
> * environment, line 2673: Called kernel-2_src_install |
69 |
> * environment, line 1909: Called install_headers |
70 |
> * environment, line 1804: Called die |
71 |
> * The specific snippet of code: |
72 |
> * emake headers_install INSTALL_HDR_PATH="${D}"/${ddir}/.. |
73 |
> ${xmakeopts} || die; |
74 |
> * |
75 |
> * If you need support, post the output of 'emerge --info |
76 |
> =sys-kernel/linux-headers-3.3', |
77 |
> * the complete build log and the output of 'emerge -pqv |
78 |
> =sys-kernel/linux-headers-3.3'. |
79 |
> * The complete build log is located at |
80 |
> '/home/talebi/gentoo/var/tmp/portage/sys-kernel/linux-headers-3.3/temp/build.log'. |
81 |
> * The ebuild environment file is located at |
82 |
> '/home/talebi/gentoo/var/tmp/portage/sys-kernel/linux-headers-3.3/temp/environment'. |
83 |
> * Working directory: |
84 |
> '/home/talebi/gentoo/var/tmp/portage/sys-kernel/linux-headers-3.3/work/gentoo-headers-base-3.3' |
85 |
> * S: |
86 |
> '/home/talebi/gentoo/var/tmp/portage/sys-kernel/linux-headers-3.3/work/gentoo-headers-base-3.3' |
87 |
> |
88 |
> >>> Failed to emerge sys-kernel/linux-headers-3.3, Log file: |
89 |
> |
90 |
> >>> |
91 |
> '/home/talebi/gentoo/var/tmp/portage/sys-kernel/linux-headers-3.3/temp/build.log' |
92 |
> |
93 |
> * Messages for package sys-kernel/linux-headers-3.3: |
94 |
> |
95 |
> * ERROR: sys-kernel/linux-headers-3.3 failed (install phase): |
96 |
> * (no error message) |
97 |
> * |
98 |
> * Call stack: |
99 |
> * ebuild.sh, line 85: Called src_install |
100 |
> * environment, line 2673: Called kernel-2_src_install |
101 |
> * environment, line 1909: Called install_headers |
102 |
> * environment, line 1804: Called die |
103 |
> * The specific snippet of code: |
104 |
> * emake headers_install INSTALL_HDR_PATH="${D}"/${ddir}/.. |
105 |
> ${xmakeopts} || die; |
106 |
> * |
107 |
> * If you need support, post the output of 'emerge --info |
108 |
> =sys-kernel/linux-headers-3.3', |
109 |
> * the complete build log and the output of 'emerge -pqv |
110 |
> =sys-kernel/linux-headers-3.3'. |
111 |
> * The complete build log is located at |
112 |
> '/home/talebi/gentoo/var/tmp/portage/sys-kernel/linux-headers-3.3/temp/build.log'. |
113 |
> * The ebuild environment file is located at |
114 |
> '/home/talebi/gentoo/var/tmp/portage/sys-kernel/linux-headers-3.3/temp/environment'. |
115 |
> * Working directory: |
116 |
> '/home/talebi/gentoo/var/tmp/portage/sys-kernel/linux-headers-3.3/work/gentoo-headers-base-3.3' |
117 |
> * S: |
118 |
> '/home/talebi/gentoo/var/tmp/portage/sys-kernel/linux-headers-3.3/work/gentoo-headers-base-3.3' |
119 |
> make: *** [all] Error 1 |
120 |
> talebi@devsyd899:~/gentoo> |
121 |
> |
122 |
> I can post `emerge info/pqv' if requried, but at this point I think |
123 |
> the problem is obvious - I also can not remove the files there now as |
124 |
> they all belong to root:root (and I don't have root access on this |
125 |
> machine). |
126 |
> |
127 |
> Nima |
128 |
|
129 |
I'm curious... how could you expect to update the system not as a root? |
130 |
You don't have root access, so you are done playing... right? Did I |
131 |
miss something? |
132 |
|
133 |
I recall on my Mac I didn't have root, but did have sudo... so, "sudo |
134 |
bash -l" was how I did everything, and how I would have expected to do |
135 |
gentoo prefix. [So, kinda as "root". Utterly violating the point of not |
136 |
having root access, I suppose...] |
137 |
|
138 |
No idea if this could be any help at all. |
139 |
|
140 |
Anyway, good luck! |
141 |
|
142 |
Cheers, |
143 |
|
144 |
-- |
145 |
|\ /| | | ~ ~ |
146 |
| \/ | |---| `|` ? |
147 |
| |ichael | |iggins \^ / |
148 |
michael.higgins[at]evolone[dot]org |