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 13:46:47
Message-Id: 20131229154253011316.3958345e@danielibnzayd.net
In Reply to: Re: [gentoo-alt] Gentoo Prefix | Mac Leopard 10.5.8 | Permissions issue by Fabian Groffen
1 Thanks for the quick reply. The changes you recommend get me through the initial check of dependencies to the emerge, at which point something else kicks in and is trying to set group permissions again....here is the run before I ^-C out of it:
2
3 danielibnzayd@boojum /Volumes/GENTOO/usr/lib/portage/pym/portage $ emerge portage
4 Calculating dependencies... done!
5
6 >>> Verifying ebuild manifests
7
8 >>> Emerging (1 of 1) sys-apps/portage-2.2.7-r2
9 * prefix-portage-2.2.7.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ]
10 * chgrp failure ignored with unprivileged user:
11 * chgrp danielibnzayd ${EPREFIX}/var/tmp/portage/sys-apps/portage-2.2.7-r2/temp/eclass-debug.log
12 * ${EPREFIX}/bin/chgrp: changing group of ¡${EPREFIX}/var/tmp/portage/sys-apps/portage-2.2.7-r2/temp/eclass-debug.log¢: Operation not permitted
13
14 [ Repeated many times ]
15
16 >>> Unpacking source...
17 >>> Unpacking prefix-portage-2.2.7.tar.bz2 to /Volumes/GENTOO/var/tmp/portage/sys-apps/portage-2.2.7-r2/work
18 >>> Source unpacked in /Volumes/GENTOO/var/tmp/portage/sys-apps/portage-2.2.7-r2/work
19 * chgrp failure ignored with unprivileged user:
20 * chgrp danielibnzayd ${EPREFIX}/var/tmp/portage/sys-apps/portage-2.2.7-r2/temp/environment
21 * ${EPREFIX}/bin/chgrp: changing group of ¡${EPREFIX}/var/tmp/portage/sys-apps/portage-2.2.7-r2/temp/environment¢: Operation not permitted
22 >>> Preparing source in /Volumes/GENTOO/var/tmp/portage/sys-apps/portage-2.2.7-r2/work/prefix-portage-2.2.7 ...
23 * Applying portage-2.2.7-ebuildshell.patch ... [ ok ]
24 * Applying portage-2.2.7-shebang-fixes.patch ... [ ok ]
25 * Applying portage-2.2.7-sandbox.patch ... [ ok ]
26 * Applying portage-2.2.7-macho-relative-install_names.patch ... [ ok ]
27 * Disabling ipc...
28 >>> Source prepared.
29 ^C
30
31 Exiting on signal 2
32 /Volumes/GENTOO/var/tmp/portage/._portage_reinstall_.axg752/bin/save-ebuild-env.sh: line 119: declare: write error: Interrupted system call
33 Traceback (most recent call last):
34 File "/Volumes/GENTOO/var/tmp/portage/._portage_reinstall_.axg752/bin/filter-bash-environment.py", line 157, in <module>
35 re.compile(var_pattern), file_in, file_out)
36 File "/Volumes/GENTOO/var/tmp/portage/._portage_reinstall_.axg752/bin/filter-bash-environment.py", line 57, in filter_bash_environment
37 for line in file_in:
38 File "/Volumes/GENTOO/usr/lib/python3.3/codecs.py", line 1028, in iterdecode
39 for input in iterator:
40 KeyboardInterrupt
41 * ERROR: sys-apps/portage-2.2.7-r2::gentoo_prefix failed (prepare phase):
42 * filter-bash-environment.py failed
43 *
44 * Call stack:
45 * ebuild.sh, line 766: Called __ebuild_main 'prepare'
46 * phase-functions.sh, line 1000: Called __filter_readonly_variables '--filter-features'
47 * phase-functions.sh, line 143: Called die
48 * The specific snippet of code:
49 * "${PORTAGE_PYTHON:-/Volumes/GENTOO/usr/bin/python}" "${PORTAGE_BIN_PATH}"/filter-bash-environment.py "${filtered_vars}" || die "filter-bash-environment.py failed"
50 *
51 * If you need support, post the output of `emerge --info '=sys-apps/portage-2.2.7-r2::gentoo_prefix'`,
52 * the complete build log and the output of `emerge -pqv '=sys-apps/portage-2.2.7-r2::gentoo_prefix'`.
53 * The complete build log is located at '/Volumes/GENTOO/var/tmp/portage/sys-apps/portage-2.2.7-r2/temp/build.log'.
54 * The ebuild environment file is located at '/Volumes/GENTOO/var/tmp/portage/sys-apps/portage-2.2.7-r2/temp/environment'.
55 * Working directory: '/Volumes/GENTOO/var/tmp/portage/._portage_reinstall_.axg752/pym'
56 * S: '/Volumes/GENTOO/var/tmp/portage/sys-apps/portage-2.2.7-r2/work/prefix-portage-2.2.7'
57 /Volumes/GENTOO/var/tmp/portage/sys-apps/portage-2.2.7-r2/temp/environment: line 2587: syntax error: unexpected end of file
58 * ERROR: sys-apps/portage-2.2.7-r2::gentoo_prefix failed:
59 * error sourcing environment
60 *
61 * Call stack:
62 * misc-functions.sh, line 17: Called source '/Volumes/GENTOO/var/tmp/portage/._portage_reinstall_.axg752/bin/ebuild.sh'
63 * ebuild.sh, line 541: Called die
64 * The specific snippet of code:
65 * source "${T}"/environment || \
66 * die "error sourcing environment"
67 *
68 * If you need support, post the output of `emerge --info '=sys-apps/portage-2.2.7-r2::gentoo_prefix'`,
69 * the complete build log and the output of `emerge -pqv '=sys-apps/portage-2.2.7-r2::gentoo_prefix'`.
70 * The complete build log is located at '/Volumes/GENTOO/var/tmp/portage/sys-apps/portage-2.2.7-r2/temp/build.log'.
71 * The ebuild environment file is located at '/Volumes/GENTOO/var/tmp/portage/sys-apps/portage-2.2.7-r2/temp/environment'.
72 * Working directory: '/Volumes/GENTOO/var/tmp/portage/._portage_reinstall_.axg752/pym'
73 * S: '/Volumes/GENTOO/var/tmp/portage/sys-apps/portage-2.2.7-r2/work/prefix-portage-2.2.7'
74
75 * Messages for package sys-apps/portage-2.2.7-r2:
76
77 * chgrp failure ignored with unprivileged user:
78 * chgrp danielibnzayd ${EPREFIX}/var/tmp/portage/sys-apps/portage-2.2.7-r2/temp/eclass-debug.log
79 * ${EPREFIX}/bin/chgrp: changing group of ¡${EPREFIX}/var/tmp/portage/sys-apps/portage-2.2.7-r2/temp/eclass-debug.log¢: Operation not permitted
80
81 [repeated many times]
82
83 * ERROR: sys-apps/portage-2.2.7-r2::gentoo_prefix failed (prepare phase):
84 * filter-bash-environment.py failed
85 *
86 * Call stack:
87 * ebuild.sh, line 766: Called __ebuild_main 'prepare'
88 * phase-functions.sh, line 1000: Called __filter_readonly_variables '--filter-features'
89 * phase-functions.sh, line 143: Called die
90 * The specific snippet of code:
91 * "${PORTAGE_PYTHON:-/Volumes/GENTOO/usr/bin/python}" "${PORTAGE_BIN_PATH}"/filter-bash-environment.py "${filtered_vars}" || die "filter-bash-environment.py failed"
92 *
93 * If you need support, post the output of `emerge --info '=sys-apps/portage-2.2.7-r2::gentoo_prefix'`,
94 * the complete build log and the output of `emerge -pqv '=sys-apps/portage-2.2.7-r2::gentoo_prefix'`.
95 * The complete build log is located at '/Volumes/GENTOO/var/tmp/portage/sys-apps/portage-2.2.7-r2/temp/build.log'.
96 * The ebuild environment file is located at '/Volumes/GENTOO/var/tmp/portage/sys-apps/portage-2.2.7-r2/temp/environment'.
97 * Working directory: '/Volumes/GENTOO/var/tmp/portage/._portage_reinstall_.axg752/pym'
98 * S: '/Volumes/GENTOO/var/tmp/portage/sys-apps/portage-2.2.7-r2/work/prefix-portage-2.2.7'
99 * ERROR: sys-apps/portage-2.2.7-r2::gentoo_prefix failed:
100 * error sourcing environment
101 *
102 * Call stack:
103 * misc-functions.sh, line 17: Called source '/Volumes/GENTOO/var/tmp/portage/._portage_reinstall_.axg752/bin/ebuild.sh'
104 * ebuild.sh, line 541: Called die
105 * The specific snippet of code:
106 * source "${T}"/environment || \
107 * die "error sourcing environment"
108 *
109 * If you need support, post the output of `emerge --info '=sys-apps/portage-2.2.7-r2::gentoo_prefix'`,
110 * the complete build log and the output of `emerge -pqv '=sys-apps/portage-2.2.7-r2::gentoo_prefix'`.
111 * The complete build log is located at '/Volumes/GENTOO/var/tmp/portage/sys-apps/portage-2.2.7-r2/temp/build.log'.
112 * The ebuild environment file is located at '/Volumes/GENTOO/var/tmp/portage/sys-apps/portage-2.2.7-r2/temp/environment'.
113 * Working directory: '/Volumes/GENTOO/var/tmp/portage/._portage_reinstall_.axg752/pym'
114 * S: '/Volumes/GENTOO/var/tmp/portage/sys-apps/portage-2.2.7-r2/work/prefix-portage-2.2.7'
115 ^C
116 ====================================
117 Error in portage.process.run_exitfuncs
118
119 File "/Volumes/GENTOO/usr/lib/portage/pym/portage/process.py", line 179, in run_exitfuncs
120 func(*targs, **kargs)
121 File "/Volumes/GENTOO/usr/lib/portage/pym/portage/__init__.py", line 260, in __call__
122 rval = self._func(*wrapped_args, **wrapped_kwargs)
123 File "/Volumes/GENTOO/usr/lib/python3.3/shutil.py", line 478, in rmtree
124 return _rmtree_unsafe(path, onerror)
125 File "/Volumes/GENTOO/usr/lib/python3.3/shutil.py", line 368, in _rmtree_unsafe
126 _rmtree_unsafe(fullname, onerror)
127 File "/Volumes/GENTOO/usr/lib/python3.3/shutil.py", line 368, in _rmtree_unsafe
128 _rmtree_unsafe(fullname, onerror)
129 File "/Volumes/GENTOO/usr/lib/python3.3/shutil.py", line 368, in _rmtree_unsafe
130 _rmtree_unsafe(fullname, onerror)
131 File "/Volumes/GENTOO/usr/lib/python3.3/shutil.py", line 368, in _rmtree_unsafe
132 _rmtree_unsafe(fullname, onerror)
133 File "/Volumes/GENTOO/usr/lib/python3.3/shutil.py", line 368, in _rmtree_unsafe
134 _rmtree_unsafe(fullname, onerror)
135 File "/Volumes/GENTOO/usr/lib/python3.3/shutil.py", line 375, in _rmtree_unsafe
136 os.rmdir(path)
137 ====================================
138
139 Error in atexit._run_exitfuncs:
140 Traceback (most recent call last):
141 File "/Volumes/GENTOO/usr/lib/portage/pym/portage/process.py", line 179, in run_exitfuncs
142 func(*targs, **kargs)
143 File "/Volumes/GENTOO/usr/lib/portage/pym/portage/__init__.py", line 260, in __call__
144 rval = self._func(*wrapped_args, **wrapped_kwargs)
145 File "/Volumes/GENTOO/usr/lib/python3.3/shutil.py", line 478, in rmtree
146 return _rmtree_unsafe(path, onerror)
147 File "/Volumes/GENTOO/usr/lib/python3.3/shutil.py", line 368, in _rmtree_unsafe
148 _rmtree_unsafe(fullname, onerror)
149 File "/Volumes/GENTOO/usr/lib/python3.3/shutil.py", line 368, in _rmtree_unsafe
150 _rmtree_unsafe(fullname, onerror)
151 File "/Volumes/GENTOO/usr/lib/python3.3/shutil.py", line 368, in _rmtree_unsafe
152 _rmtree_unsafe(fullname, onerror)
153 File "/Volumes/GENTOO/usr/lib/python3.3/shutil.py", line 368, in _rmtree_unsafe
154 _rmtree_unsafe(fullname, onerror)
155 File "/Volumes/GENTOO/usr/lib/python3.3/shutil.py", line 368, in _rmtree_unsafe
156 _rmtree_unsafe(fullname, onerror)
157 File "/Volumes/GENTOO/usr/lib/python3.3/shutil.py", line 375, in _rmtree_unsafe
158 os.rmdir(path)
159 KeyboardInterrupt
160
161
162
163 On Sun, 29 Dec 2013 11:02:45 +0100, Fabian Groffen wrote:
164 > On 29-12-2013 10:40:11 +0200, Daniel Ibn Zayd wrote:
165 >> [code]# Default portage user/group
166 >> PORTAGE_USER='danielibnzayd'
167 >> PORTAGE_GROUP='staff' [b]#was danielibnzayd[/b]
168 >> PORTAGE_ROOT_USER='danielibnzayd'
169 >>
170 >> # Default ownership of installed files.
171 >> PORTAGE_INST_UID="502"
172 >> PORTAGE_INST_GID="20"[/code] [b]#was 502[/b]
173 >>
174 >> ...and the error persists. I imagine there is a config file I am
175 >> overlooking?
176 >
177 > Also check $EPREFIX/usr/lib/portage/pym/portage/const_autotool.py the
178 > same stuff is in there. After changing that, you probably best
179 > re-emerge portage to make sure it's all registered correctly.
180 >
181 > Hope it helps,
182 > Fabian

Replies