Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/portage-mgorny/
Date: Tue, 24 Jul 2018 07:40:18
Message-Id: 1532418002.401356179317d57ad40e6fd7493f33a9d9b83a94.mgorny@gentoo
1 commit: 401356179317d57ad40e6fd7493f33a9d9b83a94
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 24 07:26:46 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 24 07:40:02 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40135617
7
8 sys-apps/portage-mgorny: Drop old
9
10 sys-apps/portage-mgorny/Manifest | 4 -
11 .../portage-mgorny/portage-mgorny-2.3.26.1.ebuild | 198 ---------------------
12 .../portage-mgorny/portage-mgorny-2.3.31.1.ebuild | 198 ---------------------
13 .../portage-mgorny/portage-mgorny-2.3.33.1.ebuild | 198 ---------------------
14 .../portage-mgorny/portage-mgorny-2.3.36.1.ebuild | 198 ---------------------
15 5 files changed, 796 deletions(-)
16
17 diff --git a/sys-apps/portage-mgorny/Manifest b/sys-apps/portage-mgorny/Manifest
18 index d2f23e91664..6e49c555159 100644
19 --- a/sys-apps/portage-mgorny/Manifest
20 +++ b/sys-apps/portage-mgorny/Manifest
21 @@ -1,6 +1,2 @@
22 -DIST portage-mgorny-2.3.26.1.tar.gz 1237698 BLAKE2B 73dcce2f57930bd074f6de5103a31ba3730537196438302ea7b25b21ee32d6ab8b3292b42825eac2e912639be1dd0a1b15c049c5cb22f54525c476b96f4817f4 SHA512 38c5ca6a1fee7125942fca10921f3c2ae201c6c06b4f69ee7b0b90b44486aca7b8e4f5817efad99c1ef5ad3f558cd9da144d2c3c26242a1a05bca9e17921b173
23 -DIST portage-mgorny-2.3.31.1.tar.gz 1245744 BLAKE2B f9085fd7b66c2e018736cd1b5740d03cd61ab50d18113d651289521c3cb7786bd7963b24fe9a8d55e9dd107a01bc77c5ca2e8f343e4728a844fc17fd608a3680 SHA512 d2f6188f78c94341c97ca71915bd1428b49d26ea2d22f34b71029128dbd9ec0c9673b2835af730f17d81aba96927bcf05e46ef82ba1e94c3ae7249b6ac8ee235
24 -DIST portage-mgorny-2.3.33.1.tar.gz 1246760 BLAKE2B 5502b60a889d224008d9cdd3befce80bc831ab15bf1a9dd43599e6da307d108939fe21ba272f19b785e2e927c582bef55dd2baa2186f0dcb882a5ea9b37accc4 SHA512 1fcc239abbb4288dc8863e3d5aea84fe59dcb1ecd989616cfabc477dc8516722d174021e96105ded26952d7e900c83dd32da27c35fd1e429af6431ee32dfa877
25 -DIST portage-mgorny-2.3.36.1.tar.gz 1247357 BLAKE2B e3adcb48a2261d55956e9d5da291936aa581f485a88b815097f93bec4b0300f98677064207a60b2d98c10c1c6082e6f58221f7bea87b689a920c0c50a81bd583 SHA512 16284e06531cdad65f8ea3efd8f4fb9e4f3ff5c127c7d24f5a3fc3d0ba1a3cebe18e32b89ed85759f6b3df3841eaf618390c5b401a7e621a02cfce1da71c4ea4
26 DIST portage-mgorny-2.3.43.2.tar.gz 1254672 BLAKE2B 2fc3b7d1fa617b0032525fcef475c53d8a59b2c5b34a6685b7c34d88d41930bd24bd4203966922537ef243f30e4377060ba7f94e89c1bb3c9941cbc3297a690b SHA512 b23386616dac61295460c823bb24959e3adb926d97d1d6e188df8958089bfec20cd87b2f6090e74bba249c0006496571d3807b20edf1947655659e777423a691
27 DIST portage-mgorny-2.3.43.3.tar.gz 1254313 BLAKE2B afb5101537bfff9b05622f4357757215bbe9641f2ca058baa59316b72ad3280ca7905f75e10b3270627c0b703434691bbfbbd88c6e375ba3f405d69d983b1944 SHA512 4fe3d1a8809a91fb52a9ccccac7d66cd25e8b6ff23b0ab2b4fae5f26a2036296a1c4eba78fee819003a8a8c44a5c6fcb0f04b9eded220d124bf08019a4f2fb02
28
29 diff --git a/sys-apps/portage-mgorny/portage-mgorny-2.3.26.1.ebuild b/sys-apps/portage-mgorny/portage-mgorny-2.3.26.1.ebuild
30 deleted file mode 100644
31 index d6c166badf4..00000000000
32 --- a/sys-apps/portage-mgorny/portage-mgorny-2.3.26.1.ebuild
33 +++ /dev/null
34 @@ -1,198 +0,0 @@
35 -# Copyright 1999-2018 Gentoo Foundation
36 -# Distributed under the terms of the GNU General Public License v2
37 -
38 -EAPI=6
39 -
40 -PYTHON_COMPAT=( python{2_7,3_{4,5,6}} pypy )
41 -PYTHON_REQ_USE='bzip2(+),threads(+)'
42 -
43 -inherit distutils-r1
44 -
45 -DESCRIPTION="Fork of Portage focused on cleaning up and useful features"
46 -HOMEPAGE="https://github.com/mgorny/portage-mgorny"
47 -SRC_URI="https://github.com/mgorny/portage-mgorny/archive/v${PV}.tar.gz -> ${P}.tar.gz"
48 -
49 -LICENSE="GPL-2"
50 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd"
51 -SLOT="0"
52 -IUSE="build +ipc +native-extensions selinux xattr kernel_linux"
53 -
54 -DEPEND="!build? ( $(python_gen_impl_dep 'ssl(+)') )
55 - >=app-arch/tar-1.27
56 - >=sys-apps/sed-4.0.5
57 - sys-devel/patch"
58 -RDEPEND="
59 - >=app-arch/tar-1.27
60 - !build? (
61 - >=app-admin/eselect-1.2
62 - app-crypt/openpgp-keys-gentoo-release
63 - >=app-crypt/gnupg-2.2.4-r2[ssl(-)]
64 - >=app-portage/gemato-10
65 - app-shells/bash:0[readline]
66 - $(python_gen_cond_dep 'dev-python/pyblake2[${PYTHON_USEDEP}]' \
67 - python{2_7,3_4,3_5} pypy)
68 - >=dev-python/lxml-3.6.0[${PYTHON_USEDEP}]
69 - >=sys-apps/sed-4.0.5
70 - )
71 - elibc_FreeBSD? ( sys-freebsd/freebsd-bin )
72 - elibc_glibc? ( >=sys-apps/sandbox-2.2 )
73 - elibc_musl? ( >=sys-apps/sandbox-2.2 )
74 - elibc_uclibc? ( >=sys-apps/sandbox-2.2 )
75 - >=app-misc/pax-utils-0.1.17
76 - selinux? ( >=sys-libs/libselinux-2.0.94[python,${PYTHON_USEDEP}] )
77 - xattr? ( kernel_linux? (
78 - >=sys-apps/install-xattr-0.3
79 - $(python_gen_cond_dep 'dev-python/pyxattr[${PYTHON_USEDEP}]' \
80 - python2_7 pypy)
81 - ) )
82 - !app-portage/repoman
83 - !sys-apps/portage"
84 -PDEPEND="
85 - !build? (
86 - >=net-misc/rsync-2.6.4
87 - )"
88 -# NOTE: FEATURES=installsources requires debugedit and rsync
89 -
90 -pkg_pretend() {
91 - if [[ -f ${EROOT%/}/etc/make.conf ]]; then
92 - eerror "You seem to be using /etc/make.conf. Please migrate to the new"
93 - eerror "/etc/portage/make.conf location before upgrading."
94 - if [[ ! -f ${EROOT%/}/etc/portage/make.conf ]]; then
95 - eerror
96 - eerror " mv ${EROOT%/}/etc/make.conf ${EROOT%/}/etc/portage/make.conf"
97 - else
98 - ewarn
99 - ewarn "WARNING: You seem to have make.conf in both locations. Please take"
100 - ewarn "care not to accientally overwrite one with the other."
101 - fi
102 - die "${EROOT%/}/etc/make.conf present"
103 - fi
104 -
105 - if [[ -f ${EROOT%/}/etc/portage/package.keywords ]]; then
106 - eerror "You seem to be using /etc/portage/package.keywords. Please migrate"
107 - eerror "to the new /etc/portage/package.accept_keywords location before"
108 - eerror "upgrading."
109 - eerror
110 - if [[ -d ${EROOT%/}/etc/portage/package.accept_keywords ]]; then
111 - eerror " mv ${EROOT%/}/etc/portage/package.keywords ${EROOT%/}/etc/portage/package.accept_keywords/99old"
112 - else
113 - if [[ -f ${EROOT%/}/etc/portage/package.accept_keywords ]]; then
114 - eerror " cat ${EROOT%/}/etc/portage/package.accept_keywords >> ${EROOT%/}/etc/portage/package.keywords"
115 - fi
116 - eerror " mv ${EROOT%/}/etc/portage/package.keywords ${EROOT%/}/etc/portage/package.accept_keywords"
117 - fi
118 - die "${EROOT%/}/etc/portage/package.keywords present"
119 - fi
120 -
121 - if has_version sys-apps/portage; then
122 - ewarn "If you are migrating from sys-apps/portage to sys-apps/portage-mgorny,"
123 - ewarn "please note that Portage will abort upon having to unmerge itself."
124 - ewarn "However, sys-apps/portage-mgorny will already be installed at this"
125 - ewarn "point, so you simply have to restart emerge and it will successfully"
126 - ewarn "clean the old package afterwards."
127 - ewarn
128 - ewarn "If you did not use '--dynamic-deps n' in Portage, your VDB dependency"
129 - ewarn "graph is probably broken. You may need to use '--changed-deps y'"
130 - ewarn "for your first @world upgrade to resolve the conflicts. Afterwards,"
131 - ewarn "--changed-deps should no longer be necessary and any conflicts"
132 - ewarn "introduced afterwards should be reported to bugs.gentoo.org."
133 - fi
134 -}
135 -
136 -python_prepare_all() {
137 - distutils-r1_python_prepare_all
138 -
139 - if ! use ipc ; then
140 - einfo "Disabling ipc..."
141 - sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \
142 - -i pym/_emerge/AbstractEbuildProcess.py ||
143 - die "failed to patch AbstractEbuildProcess.py"
144 - fi
145 -
146 - if use xattr && use kernel_linux ; then
147 - einfo "Adding FEATURES=xattr to make.globals ..."
148 - echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \
149 - || die "failed to append to make.globals"
150 - fi
151 -
152 - if [[ -n ${EPREFIX} ]] ; then
153 - einfo "Setting portage.const.EPREFIX ..."
154 - sed -e "s|^\(SANDBOX_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/sandbox\"\)|\\1${EPREFIX}\\2|" \
155 - -e "s|^\(FAKEROOT_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/fakeroot\"\)|\\1${EPREFIX}\\2|" \
156 - -e "s|^\(BASH_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/bash\"\)|\\1${EPREFIX}\\2|" \
157 - -e "s|^\(MOVE_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/mv\"\)|\\1${EPREFIX}\\2|" \
158 - -e "s|^\(PRELINK_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/sbin/prelink\"\)|\\1${EPREFIX}\\2|" \
159 - -e "s|^\(EPREFIX[[:space:]]*=[[:space:]]*\"\).*|\\1${EPREFIX}\"|" \
160 - -i pym/portage/const.py ||
161 - die "Failed to patch portage.const.EPREFIX"
162 -
163 - einfo "Prefixing shebangs ..."
164 - while read -r -d $'\0' ; do
165 - local shebang=$(head -n1 "${REPLY}")
166 - if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then
167 - sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "${REPLY}" ||
168 - die "sed failed"
169 - fi
170 - done < <(find . -type f -print0)
171 -
172 - einfo "Adjusting make.globals ..."
173 - sed -e "s|\(/usr/portage\)|${EPREFIX}\\1|" \
174 - -e "s|^\(PORTAGE_TMPDIR=\"\)\(/var/tmp\"\)|\\1${EPREFIX}\\2|" \
175 - -i cnf/make.globals || die "sed failed"
176 -
177 - einfo "Adjusting repos.conf ..."
178 - sed -e "s|^\(location = \)\(/usr/portage\)|\\1${EPREFIX}\\2|" \
179 - -e "s|^\(sync-openpgp-key-path = \)\(.*\)|\\1${EPREFIX}\\2|" \
180 - -i cnf/repos.conf || die "sed failed"
181 - if prefix-guest ; then
182 - sed -e "s|^\(main-repo = \).*|\\1gentoo_prefix|" \
183 - -e "s|^\\[gentoo\\]|[gentoo_prefix]|" \
184 - -e "s|^\(sync-uri = \).*|\\1rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix|" \
185 - -i cnf/repos.conf || die "sed failed"
186 - fi
187 -
188 - einfo "Adding FEATURES=force-prefix to make.globals ..."
189 - echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \
190 - || die "failed to append to make.globals"
191 - fi
192 -
193 - cd "${S}/cnf" || die
194 - if [[ -f make.conf.example.${ARCH}.diff ]]; then
195 - patch make.conf.example "make.conf.example.${ARCH}.diff" ||
196 - die "Failed to patch make.conf.example"
197 - else
198 - eerror ""
199 - eerror "Portage does not have an arch-specific configuration for this arch."
200 - eerror "Please notify the arch maintainer about this issue. Using generic."
201 - eerror ""
202 - fi
203 -}
204 -
205 -python_configure_all() {
206 - cat >> setup.cfg <<-EOF || die
207 - [build_ext]
208 - portage-ext-modules=$(usex native-extensions true false)
209 - EOF
210 -}
211 -
212 -python_test() {
213 - esetup.py test
214 -}
215 -
216 -python_install() {
217 - distutils-r1_python_install \
218 - --system-prefix="${EPREFIX}/usr" \
219 - --bindir="$(python_get_scriptdir)" \
220 - --portage-bindir="${EPREFIX}/usr/lib/portage/${EPYTHON}" \
221 - --sysconfdir="${EPREFIX}/etc" \
222 - "${@}"
223 -
224 - keepdir /var/log/portage/elog
225 -}
226 -
227 -pkg_preinst() {
228 - # This is allowed to fail if the user/group are invalid for prefix users.
229 - if chown portage:portage "${ED%/}"/var/log/portage{,/elog} 2>/dev/null ; then
230 - chmod g+s,ug+rwx "${ED%/}"/var/log/portage{,/elog}
231 - fi
232 -}
233
234 diff --git a/sys-apps/portage-mgorny/portage-mgorny-2.3.31.1.ebuild b/sys-apps/portage-mgorny/portage-mgorny-2.3.31.1.ebuild
235 deleted file mode 100644
236 index d6c166badf4..00000000000
237 --- a/sys-apps/portage-mgorny/portage-mgorny-2.3.31.1.ebuild
238 +++ /dev/null
239 @@ -1,198 +0,0 @@
240 -# Copyright 1999-2018 Gentoo Foundation
241 -# Distributed under the terms of the GNU General Public License v2
242 -
243 -EAPI=6
244 -
245 -PYTHON_COMPAT=( python{2_7,3_{4,5,6}} pypy )
246 -PYTHON_REQ_USE='bzip2(+),threads(+)'
247 -
248 -inherit distutils-r1
249 -
250 -DESCRIPTION="Fork of Portage focused on cleaning up and useful features"
251 -HOMEPAGE="https://github.com/mgorny/portage-mgorny"
252 -SRC_URI="https://github.com/mgorny/portage-mgorny/archive/v${PV}.tar.gz -> ${P}.tar.gz"
253 -
254 -LICENSE="GPL-2"
255 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd"
256 -SLOT="0"
257 -IUSE="build +ipc +native-extensions selinux xattr kernel_linux"
258 -
259 -DEPEND="!build? ( $(python_gen_impl_dep 'ssl(+)') )
260 - >=app-arch/tar-1.27
261 - >=sys-apps/sed-4.0.5
262 - sys-devel/patch"
263 -RDEPEND="
264 - >=app-arch/tar-1.27
265 - !build? (
266 - >=app-admin/eselect-1.2
267 - app-crypt/openpgp-keys-gentoo-release
268 - >=app-crypt/gnupg-2.2.4-r2[ssl(-)]
269 - >=app-portage/gemato-10
270 - app-shells/bash:0[readline]
271 - $(python_gen_cond_dep 'dev-python/pyblake2[${PYTHON_USEDEP}]' \
272 - python{2_7,3_4,3_5} pypy)
273 - >=dev-python/lxml-3.6.0[${PYTHON_USEDEP}]
274 - >=sys-apps/sed-4.0.5
275 - )
276 - elibc_FreeBSD? ( sys-freebsd/freebsd-bin )
277 - elibc_glibc? ( >=sys-apps/sandbox-2.2 )
278 - elibc_musl? ( >=sys-apps/sandbox-2.2 )
279 - elibc_uclibc? ( >=sys-apps/sandbox-2.2 )
280 - >=app-misc/pax-utils-0.1.17
281 - selinux? ( >=sys-libs/libselinux-2.0.94[python,${PYTHON_USEDEP}] )
282 - xattr? ( kernel_linux? (
283 - >=sys-apps/install-xattr-0.3
284 - $(python_gen_cond_dep 'dev-python/pyxattr[${PYTHON_USEDEP}]' \
285 - python2_7 pypy)
286 - ) )
287 - !app-portage/repoman
288 - !sys-apps/portage"
289 -PDEPEND="
290 - !build? (
291 - >=net-misc/rsync-2.6.4
292 - )"
293 -# NOTE: FEATURES=installsources requires debugedit and rsync
294 -
295 -pkg_pretend() {
296 - if [[ -f ${EROOT%/}/etc/make.conf ]]; then
297 - eerror "You seem to be using /etc/make.conf. Please migrate to the new"
298 - eerror "/etc/portage/make.conf location before upgrading."
299 - if [[ ! -f ${EROOT%/}/etc/portage/make.conf ]]; then
300 - eerror
301 - eerror " mv ${EROOT%/}/etc/make.conf ${EROOT%/}/etc/portage/make.conf"
302 - else
303 - ewarn
304 - ewarn "WARNING: You seem to have make.conf in both locations. Please take"
305 - ewarn "care not to accientally overwrite one with the other."
306 - fi
307 - die "${EROOT%/}/etc/make.conf present"
308 - fi
309 -
310 - if [[ -f ${EROOT%/}/etc/portage/package.keywords ]]; then
311 - eerror "You seem to be using /etc/portage/package.keywords. Please migrate"
312 - eerror "to the new /etc/portage/package.accept_keywords location before"
313 - eerror "upgrading."
314 - eerror
315 - if [[ -d ${EROOT%/}/etc/portage/package.accept_keywords ]]; then
316 - eerror " mv ${EROOT%/}/etc/portage/package.keywords ${EROOT%/}/etc/portage/package.accept_keywords/99old"
317 - else
318 - if [[ -f ${EROOT%/}/etc/portage/package.accept_keywords ]]; then
319 - eerror " cat ${EROOT%/}/etc/portage/package.accept_keywords >> ${EROOT%/}/etc/portage/package.keywords"
320 - fi
321 - eerror " mv ${EROOT%/}/etc/portage/package.keywords ${EROOT%/}/etc/portage/package.accept_keywords"
322 - fi
323 - die "${EROOT%/}/etc/portage/package.keywords present"
324 - fi
325 -
326 - if has_version sys-apps/portage; then
327 - ewarn "If you are migrating from sys-apps/portage to sys-apps/portage-mgorny,"
328 - ewarn "please note that Portage will abort upon having to unmerge itself."
329 - ewarn "However, sys-apps/portage-mgorny will already be installed at this"
330 - ewarn "point, so you simply have to restart emerge and it will successfully"
331 - ewarn "clean the old package afterwards."
332 - ewarn
333 - ewarn "If you did not use '--dynamic-deps n' in Portage, your VDB dependency"
334 - ewarn "graph is probably broken. You may need to use '--changed-deps y'"
335 - ewarn "for your first @world upgrade to resolve the conflicts. Afterwards,"
336 - ewarn "--changed-deps should no longer be necessary and any conflicts"
337 - ewarn "introduced afterwards should be reported to bugs.gentoo.org."
338 - fi
339 -}
340 -
341 -python_prepare_all() {
342 - distutils-r1_python_prepare_all
343 -
344 - if ! use ipc ; then
345 - einfo "Disabling ipc..."
346 - sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \
347 - -i pym/_emerge/AbstractEbuildProcess.py ||
348 - die "failed to patch AbstractEbuildProcess.py"
349 - fi
350 -
351 - if use xattr && use kernel_linux ; then
352 - einfo "Adding FEATURES=xattr to make.globals ..."
353 - echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \
354 - || die "failed to append to make.globals"
355 - fi
356 -
357 - if [[ -n ${EPREFIX} ]] ; then
358 - einfo "Setting portage.const.EPREFIX ..."
359 - sed -e "s|^\(SANDBOX_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/sandbox\"\)|\\1${EPREFIX}\\2|" \
360 - -e "s|^\(FAKEROOT_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/fakeroot\"\)|\\1${EPREFIX}\\2|" \
361 - -e "s|^\(BASH_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/bash\"\)|\\1${EPREFIX}\\2|" \
362 - -e "s|^\(MOVE_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/mv\"\)|\\1${EPREFIX}\\2|" \
363 - -e "s|^\(PRELINK_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/sbin/prelink\"\)|\\1${EPREFIX}\\2|" \
364 - -e "s|^\(EPREFIX[[:space:]]*=[[:space:]]*\"\).*|\\1${EPREFIX}\"|" \
365 - -i pym/portage/const.py ||
366 - die "Failed to patch portage.const.EPREFIX"
367 -
368 - einfo "Prefixing shebangs ..."
369 - while read -r -d $'\0' ; do
370 - local shebang=$(head -n1 "${REPLY}")
371 - if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then
372 - sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "${REPLY}" ||
373 - die "sed failed"
374 - fi
375 - done < <(find . -type f -print0)
376 -
377 - einfo "Adjusting make.globals ..."
378 - sed -e "s|\(/usr/portage\)|${EPREFIX}\\1|" \
379 - -e "s|^\(PORTAGE_TMPDIR=\"\)\(/var/tmp\"\)|\\1${EPREFIX}\\2|" \
380 - -i cnf/make.globals || die "sed failed"
381 -
382 - einfo "Adjusting repos.conf ..."
383 - sed -e "s|^\(location = \)\(/usr/portage\)|\\1${EPREFIX}\\2|" \
384 - -e "s|^\(sync-openpgp-key-path = \)\(.*\)|\\1${EPREFIX}\\2|" \
385 - -i cnf/repos.conf || die "sed failed"
386 - if prefix-guest ; then
387 - sed -e "s|^\(main-repo = \).*|\\1gentoo_prefix|" \
388 - -e "s|^\\[gentoo\\]|[gentoo_prefix]|" \
389 - -e "s|^\(sync-uri = \).*|\\1rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix|" \
390 - -i cnf/repos.conf || die "sed failed"
391 - fi
392 -
393 - einfo "Adding FEATURES=force-prefix to make.globals ..."
394 - echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \
395 - || die "failed to append to make.globals"
396 - fi
397 -
398 - cd "${S}/cnf" || die
399 - if [[ -f make.conf.example.${ARCH}.diff ]]; then
400 - patch make.conf.example "make.conf.example.${ARCH}.diff" ||
401 - die "Failed to patch make.conf.example"
402 - else
403 - eerror ""
404 - eerror "Portage does not have an arch-specific configuration for this arch."
405 - eerror "Please notify the arch maintainer about this issue. Using generic."
406 - eerror ""
407 - fi
408 -}
409 -
410 -python_configure_all() {
411 - cat >> setup.cfg <<-EOF || die
412 - [build_ext]
413 - portage-ext-modules=$(usex native-extensions true false)
414 - EOF
415 -}
416 -
417 -python_test() {
418 - esetup.py test
419 -}
420 -
421 -python_install() {
422 - distutils-r1_python_install \
423 - --system-prefix="${EPREFIX}/usr" \
424 - --bindir="$(python_get_scriptdir)" \
425 - --portage-bindir="${EPREFIX}/usr/lib/portage/${EPYTHON}" \
426 - --sysconfdir="${EPREFIX}/etc" \
427 - "${@}"
428 -
429 - keepdir /var/log/portage/elog
430 -}
431 -
432 -pkg_preinst() {
433 - # This is allowed to fail if the user/group are invalid for prefix users.
434 - if chown portage:portage "${ED%/}"/var/log/portage{,/elog} 2>/dev/null ; then
435 - chmod g+s,ug+rwx "${ED%/}"/var/log/portage{,/elog}
436 - fi
437 -}
438
439 diff --git a/sys-apps/portage-mgorny/portage-mgorny-2.3.33.1.ebuild b/sys-apps/portage-mgorny/portage-mgorny-2.3.33.1.ebuild
440 deleted file mode 100644
441 index d6c166badf4..00000000000
442 --- a/sys-apps/portage-mgorny/portage-mgorny-2.3.33.1.ebuild
443 +++ /dev/null
444 @@ -1,198 +0,0 @@
445 -# Copyright 1999-2018 Gentoo Foundation
446 -# Distributed under the terms of the GNU General Public License v2
447 -
448 -EAPI=6
449 -
450 -PYTHON_COMPAT=( python{2_7,3_{4,5,6}} pypy )
451 -PYTHON_REQ_USE='bzip2(+),threads(+)'
452 -
453 -inherit distutils-r1
454 -
455 -DESCRIPTION="Fork of Portage focused on cleaning up and useful features"
456 -HOMEPAGE="https://github.com/mgorny/portage-mgorny"
457 -SRC_URI="https://github.com/mgorny/portage-mgorny/archive/v${PV}.tar.gz -> ${P}.tar.gz"
458 -
459 -LICENSE="GPL-2"
460 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd"
461 -SLOT="0"
462 -IUSE="build +ipc +native-extensions selinux xattr kernel_linux"
463 -
464 -DEPEND="!build? ( $(python_gen_impl_dep 'ssl(+)') )
465 - >=app-arch/tar-1.27
466 - >=sys-apps/sed-4.0.5
467 - sys-devel/patch"
468 -RDEPEND="
469 - >=app-arch/tar-1.27
470 - !build? (
471 - >=app-admin/eselect-1.2
472 - app-crypt/openpgp-keys-gentoo-release
473 - >=app-crypt/gnupg-2.2.4-r2[ssl(-)]
474 - >=app-portage/gemato-10
475 - app-shells/bash:0[readline]
476 - $(python_gen_cond_dep 'dev-python/pyblake2[${PYTHON_USEDEP}]' \
477 - python{2_7,3_4,3_5} pypy)
478 - >=dev-python/lxml-3.6.0[${PYTHON_USEDEP}]
479 - >=sys-apps/sed-4.0.5
480 - )
481 - elibc_FreeBSD? ( sys-freebsd/freebsd-bin )
482 - elibc_glibc? ( >=sys-apps/sandbox-2.2 )
483 - elibc_musl? ( >=sys-apps/sandbox-2.2 )
484 - elibc_uclibc? ( >=sys-apps/sandbox-2.2 )
485 - >=app-misc/pax-utils-0.1.17
486 - selinux? ( >=sys-libs/libselinux-2.0.94[python,${PYTHON_USEDEP}] )
487 - xattr? ( kernel_linux? (
488 - >=sys-apps/install-xattr-0.3
489 - $(python_gen_cond_dep 'dev-python/pyxattr[${PYTHON_USEDEP}]' \
490 - python2_7 pypy)
491 - ) )
492 - !app-portage/repoman
493 - !sys-apps/portage"
494 -PDEPEND="
495 - !build? (
496 - >=net-misc/rsync-2.6.4
497 - )"
498 -# NOTE: FEATURES=installsources requires debugedit and rsync
499 -
500 -pkg_pretend() {
501 - if [[ -f ${EROOT%/}/etc/make.conf ]]; then
502 - eerror "You seem to be using /etc/make.conf. Please migrate to the new"
503 - eerror "/etc/portage/make.conf location before upgrading."
504 - if [[ ! -f ${EROOT%/}/etc/portage/make.conf ]]; then
505 - eerror
506 - eerror " mv ${EROOT%/}/etc/make.conf ${EROOT%/}/etc/portage/make.conf"
507 - else
508 - ewarn
509 - ewarn "WARNING: You seem to have make.conf in both locations. Please take"
510 - ewarn "care not to accientally overwrite one with the other."
511 - fi
512 - die "${EROOT%/}/etc/make.conf present"
513 - fi
514 -
515 - if [[ -f ${EROOT%/}/etc/portage/package.keywords ]]; then
516 - eerror "You seem to be using /etc/portage/package.keywords. Please migrate"
517 - eerror "to the new /etc/portage/package.accept_keywords location before"
518 - eerror "upgrading."
519 - eerror
520 - if [[ -d ${EROOT%/}/etc/portage/package.accept_keywords ]]; then
521 - eerror " mv ${EROOT%/}/etc/portage/package.keywords ${EROOT%/}/etc/portage/package.accept_keywords/99old"
522 - else
523 - if [[ -f ${EROOT%/}/etc/portage/package.accept_keywords ]]; then
524 - eerror " cat ${EROOT%/}/etc/portage/package.accept_keywords >> ${EROOT%/}/etc/portage/package.keywords"
525 - fi
526 - eerror " mv ${EROOT%/}/etc/portage/package.keywords ${EROOT%/}/etc/portage/package.accept_keywords"
527 - fi
528 - die "${EROOT%/}/etc/portage/package.keywords present"
529 - fi
530 -
531 - if has_version sys-apps/portage; then
532 - ewarn "If you are migrating from sys-apps/portage to sys-apps/portage-mgorny,"
533 - ewarn "please note that Portage will abort upon having to unmerge itself."
534 - ewarn "However, sys-apps/portage-mgorny will already be installed at this"
535 - ewarn "point, so you simply have to restart emerge and it will successfully"
536 - ewarn "clean the old package afterwards."
537 - ewarn
538 - ewarn "If you did not use '--dynamic-deps n' in Portage, your VDB dependency"
539 - ewarn "graph is probably broken. You may need to use '--changed-deps y'"
540 - ewarn "for your first @world upgrade to resolve the conflicts. Afterwards,"
541 - ewarn "--changed-deps should no longer be necessary and any conflicts"
542 - ewarn "introduced afterwards should be reported to bugs.gentoo.org."
543 - fi
544 -}
545 -
546 -python_prepare_all() {
547 - distutils-r1_python_prepare_all
548 -
549 - if ! use ipc ; then
550 - einfo "Disabling ipc..."
551 - sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \
552 - -i pym/_emerge/AbstractEbuildProcess.py ||
553 - die "failed to patch AbstractEbuildProcess.py"
554 - fi
555 -
556 - if use xattr && use kernel_linux ; then
557 - einfo "Adding FEATURES=xattr to make.globals ..."
558 - echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \
559 - || die "failed to append to make.globals"
560 - fi
561 -
562 - if [[ -n ${EPREFIX} ]] ; then
563 - einfo "Setting portage.const.EPREFIX ..."
564 - sed -e "s|^\(SANDBOX_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/sandbox\"\)|\\1${EPREFIX}\\2|" \
565 - -e "s|^\(FAKEROOT_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/fakeroot\"\)|\\1${EPREFIX}\\2|" \
566 - -e "s|^\(BASH_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/bash\"\)|\\1${EPREFIX}\\2|" \
567 - -e "s|^\(MOVE_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/mv\"\)|\\1${EPREFIX}\\2|" \
568 - -e "s|^\(PRELINK_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/sbin/prelink\"\)|\\1${EPREFIX}\\2|" \
569 - -e "s|^\(EPREFIX[[:space:]]*=[[:space:]]*\"\).*|\\1${EPREFIX}\"|" \
570 - -i pym/portage/const.py ||
571 - die "Failed to patch portage.const.EPREFIX"
572 -
573 - einfo "Prefixing shebangs ..."
574 - while read -r -d $'\0' ; do
575 - local shebang=$(head -n1 "${REPLY}")
576 - if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then
577 - sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "${REPLY}" ||
578 - die "sed failed"
579 - fi
580 - done < <(find . -type f -print0)
581 -
582 - einfo "Adjusting make.globals ..."
583 - sed -e "s|\(/usr/portage\)|${EPREFIX}\\1|" \
584 - -e "s|^\(PORTAGE_TMPDIR=\"\)\(/var/tmp\"\)|\\1${EPREFIX}\\2|" \
585 - -i cnf/make.globals || die "sed failed"
586 -
587 - einfo "Adjusting repos.conf ..."
588 - sed -e "s|^\(location = \)\(/usr/portage\)|\\1${EPREFIX}\\2|" \
589 - -e "s|^\(sync-openpgp-key-path = \)\(.*\)|\\1${EPREFIX}\\2|" \
590 - -i cnf/repos.conf || die "sed failed"
591 - if prefix-guest ; then
592 - sed -e "s|^\(main-repo = \).*|\\1gentoo_prefix|" \
593 - -e "s|^\\[gentoo\\]|[gentoo_prefix]|" \
594 - -e "s|^\(sync-uri = \).*|\\1rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix|" \
595 - -i cnf/repos.conf || die "sed failed"
596 - fi
597 -
598 - einfo "Adding FEATURES=force-prefix to make.globals ..."
599 - echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \
600 - || die "failed to append to make.globals"
601 - fi
602 -
603 - cd "${S}/cnf" || die
604 - if [[ -f make.conf.example.${ARCH}.diff ]]; then
605 - patch make.conf.example "make.conf.example.${ARCH}.diff" ||
606 - die "Failed to patch make.conf.example"
607 - else
608 - eerror ""
609 - eerror "Portage does not have an arch-specific configuration for this arch."
610 - eerror "Please notify the arch maintainer about this issue. Using generic."
611 - eerror ""
612 - fi
613 -}
614 -
615 -python_configure_all() {
616 - cat >> setup.cfg <<-EOF || die
617 - [build_ext]
618 - portage-ext-modules=$(usex native-extensions true false)
619 - EOF
620 -}
621 -
622 -python_test() {
623 - esetup.py test
624 -}
625 -
626 -python_install() {
627 - distutils-r1_python_install \
628 - --system-prefix="${EPREFIX}/usr" \
629 - --bindir="$(python_get_scriptdir)" \
630 - --portage-bindir="${EPREFIX}/usr/lib/portage/${EPYTHON}" \
631 - --sysconfdir="${EPREFIX}/etc" \
632 - "${@}"
633 -
634 - keepdir /var/log/portage/elog
635 -}
636 -
637 -pkg_preinst() {
638 - # This is allowed to fail if the user/group are invalid for prefix users.
639 - if chown portage:portage "${ED%/}"/var/log/portage{,/elog} 2>/dev/null ; then
640 - chmod g+s,ug+rwx "${ED%/}"/var/log/portage{,/elog}
641 - fi
642 -}
643
644 diff --git a/sys-apps/portage-mgorny/portage-mgorny-2.3.36.1.ebuild b/sys-apps/portage-mgorny/portage-mgorny-2.3.36.1.ebuild
645 deleted file mode 100644
646 index ccc6052e205..00000000000
647 --- a/sys-apps/portage-mgorny/portage-mgorny-2.3.36.1.ebuild
648 +++ /dev/null
649 @@ -1,198 +0,0 @@
650 -# Copyright 1999-2018 Gentoo Foundation
651 -# Distributed under the terms of the GNU General Public License v2
652 -
653 -EAPI=6
654 -
655 -PYTHON_COMPAT=( python{2_7,3_{4,5,6}} pypy )
656 -PYTHON_REQ_USE='bzip2(+),threads(+)'
657 -
658 -inherit distutils-r1
659 -
660 -DESCRIPTION="Fork of Portage focused on cleaning up and useful features"
661 -HOMEPAGE="https://github.com/mgorny/portage-mgorny"
662 -SRC_URI="https://github.com/mgorny/portage-mgorny/archive/v${PV}.tar.gz -> ${P}.tar.gz"
663 -
664 -LICENSE="GPL-2"
665 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd"
666 -SLOT="0"
667 -IUSE="build +ipc +native-extensions selinux xattr kernel_linux"
668 -
669 -DEPEND="!build? ( $(python_gen_impl_dep 'ssl(+)') )
670 - >=app-arch/tar-1.27
671 - >=sys-apps/sed-4.0.5
672 - sys-devel/patch"
673 -RDEPEND="
674 - >=app-arch/tar-1.27
675 - !build? (
676 - >=app-admin/eselect-1.2
677 - app-crypt/openpgp-keys-gentoo-release
678 - >=app-crypt/gnupg-2.2.4-r2[ssl(-)]
679 - >=app-portage/gemato-10[${PYTHON_USEDEP}]
680 - app-shells/bash:0[readline]
681 - $(python_gen_cond_dep 'dev-python/pyblake2[${PYTHON_USEDEP}]' \
682 - python{2_7,3_4,3_5} pypy)
683 - >=dev-python/lxml-3.6.0[${PYTHON_USEDEP}]
684 - >=sys-apps/sed-4.0.5
685 - )
686 - elibc_FreeBSD? ( sys-freebsd/freebsd-bin )
687 - elibc_glibc? ( >=sys-apps/sandbox-2.2 )
688 - elibc_musl? ( >=sys-apps/sandbox-2.2 )
689 - elibc_uclibc? ( >=sys-apps/sandbox-2.2 )
690 - >=app-misc/pax-utils-0.1.17
691 - selinux? ( >=sys-libs/libselinux-2.0.94[python,${PYTHON_USEDEP}] )
692 - xattr? ( kernel_linux? (
693 - >=sys-apps/install-xattr-0.3
694 - $(python_gen_cond_dep 'dev-python/pyxattr[${PYTHON_USEDEP}]' \
695 - python2_7 pypy)
696 - ) )
697 - !app-portage/repoman
698 - !sys-apps/portage"
699 -PDEPEND="
700 - !build? (
701 - >=net-misc/rsync-2.6.4
702 - )"
703 -# NOTE: FEATURES=installsources requires debugedit and rsync
704 -
705 -pkg_pretend() {
706 - if [[ -f ${EROOT%/}/etc/make.conf ]]; then
707 - eerror "You seem to be using /etc/make.conf. Please migrate to the new"
708 - eerror "/etc/portage/make.conf location before upgrading."
709 - if [[ ! -f ${EROOT%/}/etc/portage/make.conf ]]; then
710 - eerror
711 - eerror " mv ${EROOT%/}/etc/make.conf ${EROOT%/}/etc/portage/make.conf"
712 - else
713 - ewarn
714 - ewarn "WARNING: You seem to have make.conf in both locations. Please take"
715 - ewarn "care not to accientally overwrite one with the other."
716 - fi
717 - die "${EROOT%/}/etc/make.conf present"
718 - fi
719 -
720 - if [[ -f ${EROOT%/}/etc/portage/package.keywords ]]; then
721 - eerror "You seem to be using /etc/portage/package.keywords. Please migrate"
722 - eerror "to the new /etc/portage/package.accept_keywords location before"
723 - eerror "upgrading."
724 - eerror
725 - if [[ -d ${EROOT%/}/etc/portage/package.accept_keywords ]]; then
726 - eerror " mv ${EROOT%/}/etc/portage/package.keywords ${EROOT%/}/etc/portage/package.accept_keywords/99old"
727 - else
728 - if [[ -f ${EROOT%/}/etc/portage/package.accept_keywords ]]; then
729 - eerror " cat ${EROOT%/}/etc/portage/package.accept_keywords >> ${EROOT%/}/etc/portage/package.keywords"
730 - fi
731 - eerror " mv ${EROOT%/}/etc/portage/package.keywords ${EROOT%/}/etc/portage/package.accept_keywords"
732 - fi
733 - die "${EROOT%/}/etc/portage/package.keywords present"
734 - fi
735 -
736 - if has_version sys-apps/portage; then
737 - ewarn "If you are migrating from sys-apps/portage to sys-apps/portage-mgorny,"
738 - ewarn "please note that Portage will abort upon having to unmerge itself."
739 - ewarn "However, sys-apps/portage-mgorny will already be installed at this"
740 - ewarn "point, so you simply have to restart emerge and it will successfully"
741 - ewarn "clean the old package afterwards."
742 - ewarn
743 - ewarn "If you did not use '--dynamic-deps n' in Portage, your VDB dependency"
744 - ewarn "graph is probably broken. You may need to use '--changed-deps y'"
745 - ewarn "for your first @world upgrade to resolve the conflicts. Afterwards,"
746 - ewarn "--changed-deps should no longer be necessary and any conflicts"
747 - ewarn "introduced afterwards should be reported to bugs.gentoo.org."
748 - fi
749 -}
750 -
751 -python_prepare_all() {
752 - distutils-r1_python_prepare_all
753 -
754 - if ! use ipc ; then
755 - einfo "Disabling ipc..."
756 - sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \
757 - -i pym/_emerge/AbstractEbuildProcess.py ||
758 - die "failed to patch AbstractEbuildProcess.py"
759 - fi
760 -
761 - if use xattr && use kernel_linux ; then
762 - einfo "Adding FEATURES=xattr to make.globals ..."
763 - echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \
764 - || die "failed to append to make.globals"
765 - fi
766 -
767 - if [[ -n ${EPREFIX} ]] ; then
768 - einfo "Setting portage.const.EPREFIX ..."
769 - sed -e "s|^\(SANDBOX_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/sandbox\"\)|\\1${EPREFIX}\\2|" \
770 - -e "s|^\(FAKEROOT_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/fakeroot\"\)|\\1${EPREFIX}\\2|" \
771 - -e "s|^\(BASH_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/bash\"\)|\\1${EPREFIX}\\2|" \
772 - -e "s|^\(MOVE_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/mv\"\)|\\1${EPREFIX}\\2|" \
773 - -e "s|^\(PRELINK_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/sbin/prelink\"\)|\\1${EPREFIX}\\2|" \
774 - -e "s|^\(EPREFIX[[:space:]]*=[[:space:]]*\"\).*|\\1${EPREFIX}\"|" \
775 - -i pym/portage/const.py ||
776 - die "Failed to patch portage.const.EPREFIX"
777 -
778 - einfo "Prefixing shebangs ..."
779 - while read -r -d $'\0' ; do
780 - local shebang=$(head -n1 "${REPLY}")
781 - if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then
782 - sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "${REPLY}" ||
783 - die "sed failed"
784 - fi
785 - done < <(find . -type f -print0)
786 -
787 - einfo "Adjusting make.globals ..."
788 - sed -e "s|\(/usr/portage\)|${EPREFIX}\\1|" \
789 - -e "s|^\(PORTAGE_TMPDIR=\"\)\(/var/tmp\"\)|\\1${EPREFIX}\\2|" \
790 - -i cnf/make.globals || die "sed failed"
791 -
792 - einfo "Adjusting repos.conf ..."
793 - sed -e "s|^\(location = \)\(/usr/portage\)|\\1${EPREFIX}\\2|" \
794 - -e "s|^\(sync-openpgp-key-path = \)\(.*\)|\\1${EPREFIX}\\2|" \
795 - -i cnf/repos.conf || die "sed failed"
796 - if prefix-guest ; then
797 - sed -e "s|^\(main-repo = \).*|\\1gentoo_prefix|" \
798 - -e "s|^\\[gentoo\\]|[gentoo_prefix]|" \
799 - -e "s|^\(sync-uri = \).*|\\1rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix|" \
800 - -i cnf/repos.conf || die "sed failed"
801 - fi
802 -
803 - einfo "Adding FEATURES=force-prefix to make.globals ..."
804 - echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \
805 - || die "failed to append to make.globals"
806 - fi
807 -
808 - cd "${S}/cnf" || die
809 - if [[ -f make.conf.example.${ARCH}.diff ]]; then
810 - patch make.conf.example "make.conf.example.${ARCH}.diff" ||
811 - die "Failed to patch make.conf.example"
812 - else
813 - eerror ""
814 - eerror "Portage does not have an arch-specific configuration for this arch."
815 - eerror "Please notify the arch maintainer about this issue. Using generic."
816 - eerror ""
817 - fi
818 -}
819 -
820 -python_configure_all() {
821 - cat >> setup.cfg <<-EOF || die
822 - [build_ext]
823 - portage-ext-modules=$(usex native-extensions true false)
824 - EOF
825 -}
826 -
827 -python_test() {
828 - esetup.py test
829 -}
830 -
831 -python_install() {
832 - distutils-r1_python_install \
833 - --system-prefix="${EPREFIX}/usr" \
834 - --bindir="$(python_get_scriptdir)" \
835 - --portage-bindir="${EPREFIX}/usr/lib/portage/${EPYTHON}" \
836 - --sysconfdir="${EPREFIX}/etc" \
837 - "${@}"
838 -
839 - keepdir /var/log/portage/elog
840 -}
841 -
842 -pkg_preinst() {
843 - # This is allowed to fail if the user/group are invalid for prefix users.
844 - if chown portage:portage "${ED%/}"/var/log/portage{,/elog} 2>/dev/null ; then
845 - chmod g+s,ug+rwx "${ED%/}"/var/log/portage{,/elog}
846 - fi
847 -}