1 |
commit: 8c233bd78e9dd1291929d01a44d8323a0cd90929 |
2 |
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 24 22:12:07 2015 +0000 |
4 |
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 24 22:13:06 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c233bd7 |
7 |
|
8 |
sys-apps/portage: Version bump, EAPI 6 fixes |
9 |
|
10 |
Fixes bugs 566372, 566414, 566420, 566654, 566132, 566704. |
11 |
|
12 |
Package-Manager: portage-2.2.26 |
13 |
|
14 |
sys-apps/portage/Manifest | 1 + |
15 |
sys-apps/portage/portage-2.2.26.ebuild | 363 +++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 364 insertions(+) |
17 |
|
18 |
diff --git a/sys-apps/portage/Manifest b/sys-apps/portage/Manifest |
19 |
index 7eadb34..5e6f760 100644 |
20 |
--- a/sys-apps/portage/Manifest |
21 |
+++ b/sys-apps/portage/Manifest |
22 |
@@ -2,4 +2,5 @@ DIST portage-2.2.20.1.tar.bz2 950298 SHA256 84dd3ed1d9fd0a3336e956d057590c75834a |
23 |
DIST portage-2.2.23.tar.bz2 960229 SHA256 9aecc9f4c813810f99f6604a9806e268b162d90243a9769f1410b3a96822cdfb SHA512 17b8fe4967719bacd8f3ca324bde3328d82f5b7748a05b66cca165dcc8a4abbaf7e05ec61a54684cd1b001297dc0adc04c3771d0fd3cc4732f17ac9e0810e6ad WHIRLPOOL da7229c2be8330e898ef1e422a62683a003c16a640fee9d183c8afc8474779d302c0de639072099c8d47372fa0c74e2a635c485d8c7ed2b2344cacc857199578 |
24 |
DIST portage-2.2.24.tar.bz2 972610 SHA256 c2dbd53dd474c6fe455ffa5920514a6afe467abf02959c33ddb7a7e363939550 SHA512 9dc00410de604db66843bdf62cf0ee7e93ff2c4d562390172c4f0c55ab98b2712078b0eb02c9f35d52633b0fff0b024736e25a1c66cf40ad61a6bf99a7cee4a6 WHIRLPOOL 3227c61662acf69abd843344d0fb1b7cc2cfa91c1bae48b08e1da8fdf42cda15834994852d42dfc089f189e318c657e12fd6b1c19885279e0bb5cfd2349235f8 |
25 |
DIST portage-2.2.25.tar.bz2 961095 SHA256 834d1b1f3c6bc022b3608a826f940b5a43bfb13dd76377d237b001ec9cbad109 SHA512 9d64b2c7c48f38d48becf9961c5e7cdfc5428da59359b14cd37a3617f1db144258e8ba57d81fc64dc50e0aea755319ae08bd7ba6515c549c31096609fbd55d7c WHIRLPOOL 092d192d757e09e209c4fab529b3fe3786b5d639e2573dc36ad4dbd8fe365c8af32c24b05b289157cafe8d29c5a88f23323071d61a303d4a5c08f2b812547376 |
26 |
+DIST portage-2.2.26.tar.bz2 977277 SHA256 7f57aa704c58ea47f031f177203dc7b335e01e7ec1e809437ea9e46e3f9263e5 SHA512 fd1a5e5d028d52ba82bbeb7f87bf331d0c1d8c7f5a3bd450c668dd742e99185b6d2b21944f5d7788fe941c99736744b08157ca30145f0964ea60a7c2c435d601 WHIRLPOOL 0469f4c5609146c57eae4baeb8488b95c04f336a5511460ee44d15746339fd43a7c2d61b58528845d77a6a0b21e46c2afad19a9f05e94ac8dc6180032d71f298 |
27 |
DIST portage-2.2.8.tar.bz2 874672 SHA256 c1074e01173df5384e003598dbc5f64f09e92f83fd26faab2f88f9f0bc64aa7e SHA512 acc47d94ff8c08e5a7bf2d4c4e600863430dd1e7d0bb8b4254d6477a498933cae663db84debf9487d2243c2cba689629ef8e8b6cf108e10d40e89e8e8d7e1257 WHIRLPOOL d54290ede8d3d85e5211cda7e86ed740178121ef2f47cf0858c27941d8679d29c11445befff962986d40a47ded50d0d4654de19e7d4aef3fdf2546655a0d6fe2 |
28 |
|
29 |
diff --git a/sys-apps/portage/portage-2.2.26.ebuild b/sys-apps/portage/portage-2.2.26.ebuild |
30 |
new file mode 100644 |
31 |
index 0000000..43cb079 |
32 |
--- /dev/null |
33 |
+++ b/sys-apps/portage/portage-2.2.26.ebuild |
34 |
@@ -0,0 +1,363 @@ |
35 |
+# Copyright 1999-2015 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+# $Id$ |
38 |
+ |
39 |
+EAPI=5 |
40 |
+ |
41 |
+PYTHON_COMPAT=( |
42 |
+ pypy |
43 |
+ python3_3 python3_4 python3_5 |
44 |
+ python2_7 |
45 |
+) |
46 |
+# Note: substituted below |
47 |
+PYTHON_REQ_USE='bzip2(+)' |
48 |
+ |
49 |
+inherit distutils-r1 multilib |
50 |
+ |
51 |
+DESCRIPTION="Portage is the package management and distribution system for Gentoo" |
52 |
+HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage" |
53 |
+ |
54 |
+LICENSE="GPL-2" |
55 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" |
56 |
+SLOT="0" |
57 |
+IUSE="build doc epydoc +ipc linguas_ru selinux xattr" |
58 |
+ |
59 |
+DEPEND="!build? ( ${PYTHON_DEPS//bzip2(+)/ssl(+),bzip2(+)} ) |
60 |
+ >=app-arch/tar-1.27 |
61 |
+ dev-lang/python-exec:2 |
62 |
+ >=sys-apps/sed-4.0.5 sys-devel/patch |
63 |
+ doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 ) |
64 |
+ epydoc? ( >=dev-python/epydoc-2.0[$(python_gen_usedep 'python2*')] )" |
65 |
+# Require sandbox-2.2 for bug #288863. |
66 |
+# For xattr, we can spawn getfattr and setfattr from sys-apps/attr, but that's |
67 |
+# quite slow, so it's not considered in the dependencies as an alternative to |
68 |
+# to python-3.3 / pyxattr. Also, xattr support is only tested with Linux, so |
69 |
+# for now, don't pull in xattr deps for other kernels. |
70 |
+# For whirlpool hash, require python[ssl] (bug #425046). |
71 |
+# For compgen, require bash[readline] (bug #445576). |
72 |
+RDEPEND=" |
73 |
+ >=app-arch/tar-1.27 |
74 |
+ dev-lang/python-exec:2 |
75 |
+ !build? ( |
76 |
+ >=sys-apps/sed-4.0.5 |
77 |
+ app-shells/bash:0[readline] |
78 |
+ >=app-admin/eselect-1.2 |
79 |
+ ) |
80 |
+ elibc_FreeBSD? ( sys-freebsd/freebsd-bin ) |
81 |
+ elibc_glibc? ( >=sys-apps/sandbox-2.2 ) |
82 |
+ elibc_uclibc? ( >=sys-apps/sandbox-2.2 ) |
83 |
+ >=app-misc/pax-utils-0.1.17 |
84 |
+ selinux? ( >=sys-libs/libselinux-2.0.94[python,${PYTHON_USEDEP}] ) |
85 |
+ xattr? ( kernel_linux? ( |
86 |
+ >=sys-apps/install-xattr-0.3 |
87 |
+ $(python_gen_cond_dep 'dev-python/pyxattr[${PYTHON_USEDEP}]' \ |
88 |
+ python2_7 pypy) |
89 |
+ ) ) |
90 |
+ !<app-admin/logrotate-3.8.0" |
91 |
+PDEPEND=" |
92 |
+ !build? ( |
93 |
+ >=net-misc/rsync-2.6.4 |
94 |
+ userland_GNU? ( >=sys-apps/coreutils-6.4 ) |
95 |
+ )" |
96 |
+# coreutils-6.4 rdep is for date format in emerge-webrsync #164532 |
97 |
+# NOTE: FEATURES=installsources requires debugedit and rsync |
98 |
+ |
99 |
+REQUIRED_USE="epydoc? ( $(python_gen_useflags 'python2*') )" |
100 |
+ |
101 |
+SRC_ARCHIVES="https://dev.gentoo.org/~dolsen/releases/portage" |
102 |
+ |
103 |
+prefix_src_archives() { |
104 |
+ local x y |
105 |
+ for x in ${@}; do |
106 |
+ for y in ${SRC_ARCHIVES}; do |
107 |
+ echo ${y}/${x} |
108 |
+ done |
109 |
+ done |
110 |
+} |
111 |
+ |
112 |
+TARBALL_PV=${PV} |
113 |
+SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2 |
114 |
+ $(prefix_src_archives ${PN}-${TARBALL_PV}.tar.bz2)" |
115 |
+ |
116 |
+python_prepare_all() { |
117 |
+ distutils-r1_python_prepare_all |
118 |
+ |
119 |
+ if ! use ipc ; then |
120 |
+ einfo "Disabling ipc..." |
121 |
+ sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \ |
122 |
+ -i pym/_emerge/AbstractEbuildProcess.py || \ |
123 |
+ die "failed to patch AbstractEbuildProcess.py" |
124 |
+ fi |
125 |
+ |
126 |
+ if use xattr && use kernel_linux ; then |
127 |
+ einfo "Adding FEATURES=xattr to make.globals ..." |
128 |
+ echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \ |
129 |
+ || die "failed to append to make.globals" |
130 |
+ fi |
131 |
+ |
132 |
+ if [[ -n ${EPREFIX} ]] ; then |
133 |
+ einfo "Setting portage.const.EPREFIX ..." |
134 |
+ sed -e "s|^\(SANDBOX_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/sandbox\"\)|\\1${EPREFIX}\\2|" \ |
135 |
+ -e "s|^\(FAKEROOT_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/fakeroot\"\)|\\1${EPREFIX}\\2|" \ |
136 |
+ -e "s|^\(BASH_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/bash\"\)|\\1${EPREFIX}\\2|" \ |
137 |
+ -e "s|^\(MOVE_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/mv\"\)|\\1${EPREFIX}\\2|" \ |
138 |
+ -e "s|^\(PRELINK_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/sbin/prelink\"\)|\\1${EPREFIX}\\2|" \ |
139 |
+ -e "s|^\(EPREFIX[[:space:]]*=[[:space:]]*\"\).*|\\1${EPREFIX}\"|" \ |
140 |
+ -i pym/portage/const.py || \ |
141 |
+ die "Failed to patch portage.const.EPREFIX" |
142 |
+ |
143 |
+ einfo "Prefixing shebangs ..." |
144 |
+ while read -r -d $'\0' ; do |
145 |
+ local shebang=$(head -n1 "$REPLY") |
146 |
+ if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then |
147 |
+ sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "$REPLY" || \ |
148 |
+ die "sed failed" |
149 |
+ fi |
150 |
+ done < <(find . -type f -print0) |
151 |
+ |
152 |
+ einfo "Adjusting make.globals ..." |
153 |
+ sed -e "s|\(/usr/portage\)|${EPREFIX}\\1|" \ |
154 |
+ -e "s|^\(PORTAGE_TMPDIR=\"\)\(/var/tmp\"\)|\\1${EPREFIX}\\2|" \ |
155 |
+ -i cnf/make.globals || die "sed failed" |
156 |
+ |
157 |
+ einfo "Adjusting repos.conf ..." |
158 |
+ sed -e "s|^\(main-repo = \).*|\\1gentoo_prefix|" \ |
159 |
+ -e "s|^\\[gentoo\\]|[gentoo_prefix]|" \ |
160 |
+ -e "s|^\(location = \)\(/usr/portage\)|\\1${EPREFIX}\\2|" \ |
161 |
+ -e "s|^\(sync-uri = \).*|\\1rsync://prefix.gentooexperimental.org/gentoo-portage-prefix|" \ |
162 |
+ -i cnf/repos.conf || die "sed failed" |
163 |
+ |
164 |
+ einfo "Adding FEATURES=force-prefix to make.globals ..." |
165 |
+ echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \ |
166 |
+ || die "failed to append to make.globals" |
167 |
+ fi |
168 |
+ |
169 |
+ cd "${S}/cnf" || die |
170 |
+ if [ -f "make.conf.example.${ARCH}".diff ]; then |
171 |
+ patch make.conf.example "make.conf.example.${ARCH}".diff || \ |
172 |
+ die "Failed to patch make.conf.example" |
173 |
+ else |
174 |
+ eerror "" |
175 |
+ eerror "Portage does not have an arch-specific configuration for this arch." |
176 |
+ eerror "Please notify the arch maintainer about this issue. Using generic." |
177 |
+ eerror "" |
178 |
+ fi |
179 |
+} |
180 |
+ |
181 |
+python_compile_all() { |
182 |
+ local targets=() |
183 |
+ use doc && targets+=( docbook ) |
184 |
+ use epydoc && targets+=( epydoc ) |
185 |
+ |
186 |
+ if [[ ${targets[@]} ]]; then |
187 |
+ esetup.py "${targets[@]}" |
188 |
+ fi |
189 |
+} |
190 |
+ |
191 |
+python_test() { |
192 |
+ esetup.py test |
193 |
+} |
194 |
+ |
195 |
+python_install() { |
196 |
+ # Install sbin scripts to bindir for python-exec linking |
197 |
+ # they will be relocated in pkg_preinst() |
198 |
+ distutils-r1_python_install \ |
199 |
+ --system-prefix="${EPREFIX}/usr" \ |
200 |
+ --bindir="$(python_get_scriptdir)" \ |
201 |
+ --docdir="${EPREFIX}/usr/share/doc/${PF}" \ |
202 |
+ --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
203 |
+ --portage-bindir="${EPREFIX}/usr/lib/portage/${EPYTHON}" \ |
204 |
+ --sbindir="$(python_get_scriptdir)" \ |
205 |
+ --sysconfdir="${EPREFIX}/etc" \ |
206 |
+ "${@}" |
207 |
+} |
208 |
+ |
209 |
+python_install_all() { |
210 |
+ distutils-r1_python_install_all |
211 |
+ |
212 |
+ local targets=() |
213 |
+ use doc && targets+=( install_docbook ) |
214 |
+ use epydoc && targets+=( install_epydoc ) |
215 |
+ |
216 |
+ # install docs |
217 |
+ if [[ ${targets[@]} ]]; then |
218 |
+ esetup.py "${targets[@]}" |
219 |
+ fi |
220 |
+ |
221 |
+ # Due to distutils/python-exec limitations |
222 |
+ # these must be installed to /usr/bin. |
223 |
+ local sbin_relocations='archive-conf dispatch-conf emaint env-update etc-update fixpackages regenworld' |
224 |
+ einfo "Moving admin scripts to the correct directory" |
225 |
+ dodir /usr/sbin |
226 |
+ for target in ${sbin_relocations}; do |
227 |
+ einfo "Moving /usr/bin/${target} to /usr/sbin/${target}" |
228 |
+ mv "${ED}usr/bin/${target}" "${ED}usr/sbin/${target}" || die "sbin scripts move failed!" |
229 |
+ done |
230 |
+} |
231 |
+ |
232 |
+pkg_preinst() { |
233 |
+ # comment out sanity test until it is fixed to work |
234 |
+ # with the new PORTAGE_PYM_PATH |
235 |
+ #if [[ $ROOT == / ]] ; then |
236 |
+ ## Run some minimal tests as a sanity check. |
237 |
+ #local test_runner=$(find "${ED}" -name runTests) |
238 |
+ #if [[ -n $test_runner && -x $test_runner ]] ; then |
239 |
+ #einfo "Running preinst sanity tests..." |
240 |
+ #"$test_runner" || die "preinst sanity tests failed" |
241 |
+ #fi |
242 |
+ #fi |
243 |
+ |
244 |
+ # elog dir must exist to avoid logrotate error for bug #415911. |
245 |
+ # This code runs in preinst in order to bypass the mapping of |
246 |
+ # portage:portage to root:root which happens after src_install. |
247 |
+ keepdir /var/log/portage/elog |
248 |
+ # This is allowed to fail if the user/group are invalid for prefix users. |
249 |
+ if chown portage:portage "${ED}"var/log/portage{,/elog} 2>/dev/null ; then |
250 |
+ chmod g+s,ug+rwx "${ED}"var/log/portage{,/elog} |
251 |
+ fi |
252 |
+ |
253 |
+ if has_version "<${CATEGORY}/${PN}-2.1.13" || \ |
254 |
+ { |
255 |
+ has_version ">=${CATEGORY}/${PN}-2.2_rc0" && \ |
256 |
+ has_version "<${CATEGORY}/${PN}-2.2.0_alpha189" |
257 |
+ } ; then |
258 |
+ USERPRIV_UPGRADE=true |
259 |
+ USERSYNC_UPGRADE=true |
260 |
+ REPOS_CONF_UPGRADE=true |
261 |
+ REPOS_CONF_SYNC= |
262 |
+ type -P portageq >/dev/null 2>&1 && \ |
263 |
+ REPOS_CONF_SYNC=$("$(type -P portageq)" envvar SYNC) |
264 |
+ else |
265 |
+ USERPRIV_UPGRADE=false |
266 |
+ USERSYNC_UPGRADE=false |
267 |
+ REPOS_CONF_UPGRADE=false |
268 |
+ fi |
269 |
+} |
270 |
+ |
271 |
+get_ownership() { |
272 |
+ case ${USERLAND} in |
273 |
+ BSD) |
274 |
+ stat -f '%Su:%Sg' "${1}" |
275 |
+ ;; |
276 |
+ *) |
277 |
+ stat -c '%U:%G' "${1}" |
278 |
+ ;; |
279 |
+ esac |
280 |
+} |
281 |
+ |
282 |
+new_config_protect() { |
283 |
+ # Generate a ._cfg file even if the target file |
284 |
+ # does not exist, ensuring that the user will |
285 |
+ # notice the config change. |
286 |
+ local basename=${1##*/} |
287 |
+ local dirname=${1%/*} |
288 |
+ local i=0 |
289 |
+ while true ; do |
290 |
+ local filename=$( |
291 |
+ echo -n "${dirname}/._cfg" |
292 |
+ printf "%04d" ${i} |
293 |
+ echo -n "_${basename}" |
294 |
+ ) |
295 |
+ [[ -e ${filename} ]] || break |
296 |
+ (( i++ )) |
297 |
+ done |
298 |
+ echo "${filename}" |
299 |
+} |
300 |
+ |
301 |
+pkg_postinst() { |
302 |
+ |
303 |
+ if ${REPOS_CONF_UPGRADE} ; then |
304 |
+ einfo "Generating repos.conf" |
305 |
+ local repo_name= |
306 |
+ [[ -f ${PORTDIR}/profiles/repo_name ]] && \ |
307 |
+ repo_name=$(< "${PORTDIR}/profiles/repo_name") |
308 |
+ if [[ -z ${REPOS_CONF_SYNC} ]] ; then |
309 |
+ REPOS_CONF_SYNC=$(grep "^sync-uri =" "${EROOT:-${ROOT}}usr/share/portage/config/repos.conf") |
310 |
+ REPOS_CONF_SYNC=${REPOS_CONF_SYNC##* } |
311 |
+ fi |
312 |
+ local sync_type= |
313 |
+ [[ ${REPOS_CONF_SYNC} == git://* ]] && sync_type=git |
314 |
+ |
315 |
+ if [[ ${REPOS_CONF_SYNC} == cvs://* ]]; then |
316 |
+ sync_type=cvs |
317 |
+ REPOS_CONF_SYNC=${REPOS_CONF_SYNC#cvs://} |
318 |
+ fi |
319 |
+ |
320 |
+ cat <<-EOF > "${T}/repos.conf" |
321 |
+ [DEFAULT] |
322 |
+ main-repo = ${repo_name:-gentoo} |
323 |
+ |
324 |
+ [${repo_name:-gentoo}] |
325 |
+ location = ${PORTDIR:-${EPREFIX}/usr/portage} |
326 |
+ sync-type = ${sync_type:-rsync} |
327 |
+ sync-uri = ${REPOS_CONF_SYNC} |
328 |
+ EOF |
329 |
+ |
330 |
+ [[ ${sync_type} == cvs ]] && echo "sync-cvs-repo = $(<"${PORTDIR}/CVS/Repository")" >> "${T}/repos.conf" |
331 |
+ |
332 |
+ local dest=${EROOT:-${ROOT}}etc/portage/repos.conf |
333 |
+ if [[ ! -f ${dest} ]] && mkdir -p "${dest}" 2>/dev/null ; then |
334 |
+ dest=${EROOT:-${ROOT}}etc/portage/repos.conf/${repo_name:-gentoo}.conf |
335 |
+ fi |
336 |
+ # Don't install the config update if the desired repos.conf directory |
337 |
+ # and config file exist, since users may accept it blindly and break |
338 |
+ # their config (bug #478726). |
339 |
+ [[ -e ${EROOT:-${ROOT}}etc/portage/repos.conf/${repo_name:-gentoo}.conf ]] || \ |
340 |
+ mv "${T}/repos.conf" "$(new_config_protect "${dest}")" |
341 |
+ |
342 |
+ if [[ ${PORTDIR} == ${EPREFIX}/usr/portage ]] ; then |
343 |
+ einfo "Generating make.conf PORTDIR setting for backward compatibility" |
344 |
+ for dest in "${EROOT:-${ROOT}}etc/make.conf" "${EROOT:-${ROOT}}etc/portage/make.conf" ; do |
345 |
+ [[ -e ${dest} ]] && break |
346 |
+ done |
347 |
+ [[ -d ${dest} ]] && dest=${dest}/portdir.conf |
348 |
+ rm -rf "${T}/make.conf" |
349 |
+ [[ -f ${dest} ]] && cat "${dest}" > "${T}/make.conf" |
350 |
+ cat <<-EOF >> "${T}/make.conf" |
351 |
+ |
352 |
+ # Set PORTDIR for backward compatibility with various tools: |
353 |
+ # gentoo-bashcomp - bug #478444 |
354 |
+ # euse - bug #474574 |
355 |
+ # euses and ufed - bug #478318 |
356 |
+ PORTDIR="${EPREFIX}/usr/portage" |
357 |
+ EOF |
358 |
+ mkdir -p "${dest%/*}" |
359 |
+ mv "${T}/make.conf" "$(new_config_protect "${dest}")" |
360 |
+ fi |
361 |
+ fi |
362 |
+ |
363 |
+ local distdir=${PORTAGE_ACTUAL_DISTDIR-${DISTDIR}} |
364 |
+ |
365 |
+ if ${USERSYNC_UPGRADE} && \ |
366 |
+ [[ -d ${PORTDIR} && -w ${PORTDIR} ]] ; then |
367 |
+ local ownership=$(get_ownership "${PORTDIR}") |
368 |
+ if [[ -n ${ownership} ]] ; then |
369 |
+ einfo "Adjusting PORTDIR permissions for usersync" |
370 |
+ find "${PORTDIR}" -path "${distdir%/}" -prune -o \ |
371 |
+ ! \( -user "${ownership%:*}" -a -group "${ownership#*:}" \) \ |
372 |
+ -exec chown "${ownership}" {} + |
373 |
+ fi |
374 |
+ fi |
375 |
+ |
376 |
+ # Do this last, since it could take a long time if there |
377 |
+ # are lots of live sources, and the user may be tempted |
378 |
+ # to kill emerge while it is running. |
379 |
+ if ${USERPRIV_UPGRADE} && \ |
380 |
+ [[ -d ${distdir} && -w ${distdir} ]] ; then |
381 |
+ local ownership=$(get_ownership "${distdir}") |
382 |
+ if [[ ${ownership#*:} == portage ]] ; then |
383 |
+ einfo "Adjusting DISTDIR permissions for userpriv" |
384 |
+ find "${distdir}" -mindepth 1 -maxdepth 1 -type d -uid 0 \ |
385 |
+ -exec chown -R portage:portage {} + |
386 |
+ fi |
387 |
+ fi |
388 |
+ |
389 |
+ einfo "" |
390 |
+ einfo "This release of portage contains the new repoman code base" |
391 |
+ einfo "This code base is still being developed. So its API's are" |
392 |
+ einfo "not to be considered stable and are subject to change." |
393 |
+ einfo "The code released has been tested and considered ready for use." |
394 |
+ einfo "This however does not guarantee it to be completely bug free." |
395 |
+ einfo "Please report any bugs you may encounter." |
396 |
+ einfo "" |
397 |
+} |