Gentoo Archives: gentoo-alt

From: Daniel Ibn Zayd <DIZ@×××××××××××××.net>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] Gentoo Prefix | Mac Leopard 10.5.8 | Permissions issue
Date: Sun, 29 Dec 2013 20:39:09
Message-Id: 20131229223516034449.f3bd8d17@danielibnzayd.net
In Reply to: Re: [gentoo-alt] Gentoo Prefix | Mac Leopard 10.5.8 | Permissions issue by Fabian Groffen
1 From make.globals:
2
3 danielibnzayd@boojum /Volumes/GENTOO/etc $ grep danielibnzayd make.globals
4 PORTAGE_USER='danielibnzayd'
5 PORTAGE_ROOT_USER='danielibnzayd'
6 PORTAGE_ELOG_MAILURI="danielibnzayd"
7 PORTAGE_ELOG_MAILFROM="danielibnzayd@localhost"
8
9
10 danielibnzayd@boojum /Volumes/GENTOO/etc $ grep danielibnzayd /Volumes/GENTOO/usr/lib/portage/pym/portage/const_autotool.py
11 portageuser = "danielibnzayd"
12 rootuser = "danielibnzayd"
13
14
15 Perhaps it helps to understand that OS X Tiger changed the default file permissions such that every user also had a group with the same name/# as the user ID. When upgrading to OS X Leopard, this was carried over, even though a clean install of Leopard would place users in a primary group "staff" with GID 20.
16
17 So if I am not mistaken, the error log is showing an attempt to chgrp to danielibnzayd which was my former primary group. I've changed all of these to "staff/20" now, and have made that change in both places you suggested:
18
19 # Default portage user/group
20 PORTAGE_USER='danielibnzayd'
21 PORTAGE_GROUP='staff'
22 PORTAGE_ROOT_USER='danielibnzayd'
23
24 # Default ownership of installed files.
25 PORTAGE_INST_UID="502"
26 PORTAGE_INST_GID="20"
27
28 and
29
30 EPREFIX = "/Volumes/GENTOO"
31 SYSCONFDIR = "/Volumes/GENTOO/etc"
32 PORTAGE_BASE = "/Volumes/GENTOO/usr/lib/portage"
33
34 portagegroup = "staff"
35 portageuser = "danielibnzayd"
36 rootuser = "danielibnzayd"
37 rootuid = 502
38 rootgid = 20
39
40 PORTAGE_BASH = "/Volumes/GENTOO/bin/bash"
41 PORTAGE_MV = "/Volumes/GENTOO/bin/mv"
42
43
44
45
46 Thanks very much for your help! I really appreciate it.
47
48
49
50
51
52 On Sun, 29 Dec 2013 21:14:14 +0100, Fabian Groffen wrote:
53 > On 29-12-2013 15:42:53 +0200, Daniel Ibn Zayd wrote:
54 >> Thanks for the quick reply. The changes you recommend get me through
55 >> the initial check of dependencies to the emerge, at which point
56 >> something else kicks in and is trying to set group permissions
57 >> again....here is the run before I ^-C out of it:
58 >>
59 >> danielibnzayd@boojum /Volumes/GENTOO/usr/lib/portage/pym/portage $
60 >> emerge portage
61 >> Calculating dependencies... done!
62 >>
63 >>>>> Verifying ebuild manifests
64 >>
65 >>>>> Emerging (1 of 1) sys-apps/portage-2.2.7-r2
66 >> * prefix-portage-2.2.7.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-)
67 >> ... [ ok ]
68 >> * chgrp failure ignored with unprivileged user:
69 >> * chgrp danielibnzayd
70 >> ${EPREFIX}/var/tmp/portage/sys-apps/portage-2.2.7-r2/temp/eclass-debug.log
71 >
72 > Do you see danielibnzayd in $EPREFIX/etc/make.globals or
73 > $EPREFIX/usr/lib/portage/pym/portage/const_autotool.py at this point
74 > (grep for it)?
75 >
76 > Fabian

Replies

Subject Author
Re: [gentoo-alt] Gentoo Prefix | Mac Leopard 10.5.8 | Permissions issue Daniel Ibn Zayd <DIZ@×××××××××××××.net>