1 |
On 26.03.2016 17:37, Alan McKinnon wrote: |
2 |
> On 26/03/2016 17:46, Dan Johansson wrote: |
3 |
>> On my Raspberry Pi2 (running Gentoo of cause) I have a problem with |
4 |
>> portage, or rather with emerge. When emerging something I get some error |
5 |
>> messages about "shell-init:... permission denied" like this: |
6 |
>> |
7 |
>> ---------------------8<--------------------- |
8 |
Snip... |
9 |
>> ---------------------8<--------------------- |
10 |
>> |
11 |
>> The emerge continues and installs the software OK (as far as I can see). |
12 |
>> I tried to debug emerge (using --debug), but surprise surprise, just |
13 |
>> before the error messages shows there is a "set +x" in the output, hence |
14 |
>> I can not see which command it is that "produces" the error message and |
15 |
>> I can also not see the path/file that is the culprit. |
16 |
>> |
17 |
>> Any suggestions on how to debug this further? |
18 |
>> |
19 |
>> |
20 |
> |
21 |
> |
22 |
> |
23 |
> What user do you run emerge as? |
24 |
> It should be root |
25 |
> |
26 |
> Also check permissions on directories in /var/tmp/portage and all subdirs |
27 |
|
28 |
User running emerge is root. |
29 |
|
30 |
This is what my /var/tmp/portage looks like (when no emerge is running) |
31 |
---------------------8<--------------------- |
32 |
# find /var/tmp/portage/ -type d -exec ls -pald {} + |
33 |
drwxrwxrwt 5 portage portage 4096 Mar 26 17:53 /var/tmp/portage// |
34 |
drwxrwxr-x 2 portage portage 4096 Mar 26 17:52 /var/tmp/portage/._unmerge_/ |
35 |
drwxrwsr-x 4 root portage 4096 Mar 24 09:49 /var/tmp/portage/.distcc/ |
36 |
drwxrwsr-x 2 root portage 4096 Mar 26 17:43 |
37 |
/var/tmp/portage/.distcc/lock/ |
38 |
drwxrwsr-x 2 root portage 4096 Mar 26 17:51 |
39 |
/var/tmp/portage/.distcc/state/ |
40 |
---------------------8<--------------------- |
41 |
|
42 |
This looks the same as on my other systems with the exception of the |
43 |
.distcc (as this is the only system using distcc). |
44 |
|
45 |
The .distcc is automatically created when emerging and distcc is enabled. |
46 |
|
47 |
-- |
48 |
Dan Johansson, <http://www.dmj.nu> |
49 |
*************************************************** |
50 |
This message is printed on 100% recycled electrons! |
51 |
*************************************************** |