Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/portage/
Date: Mon, 12 Sep 2022 16:10:28
Message-Id: 1662999013.e972f5481cb84f9c6e6fefe63826fdae74d62bc6.sam@gentoo
1 commit: e972f5481cb84f9c6e6fefe63826fdae74d62bc6
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 12 16:10:13 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 12 16:10:13 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e972f548
7
8 sys-apps/portage: drop 3.0.34, 3.0.35
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 sys-apps/portage/Manifest | 2 -
13 sys-apps/portage/portage-3.0.34.ebuild | 273 ---------------------------------
14 sys-apps/portage/portage-3.0.35.ebuild | 273 ---------------------------------
15 3 files changed, 548 deletions(-)
16
17 diff --git a/sys-apps/portage/Manifest b/sys-apps/portage/Manifest
18 index 3434e32fea7f..62e23d8bef0b 100644
19 --- a/sys-apps/portage/Manifest
20 +++ b/sys-apps/portage/Manifest
21 @@ -1,4 +1,2 @@
22 DIST portage-3.0.30.tar.bz2 1157316 BLAKE2B 56939618f4915f77dca6bb85d4a7cf98e50133b524f68a0b192c0a928ca209a0cb944c174dda78f1b5a071c02c190857ea8a7ecd514301c45e897b302542f52e SHA512 accec770f63180b6d5d4cd08ef50f0cd01aa5701104156523f1a735d8ec3313a3b513629a33d8863285736515b6a3d56fc21498404da3a0f89b196655a98db7d
23 -DIST portage-3.0.34.tar.bz2 1110794 BLAKE2B 32239a8319448e63fa249296b492c88504039cf5aabe3e1ffcb2423c95fd26a048d9717c8f673d670acf0f9fa290d12dbf194df08a5a0f11311db856e41ba714 SHA512 c3566a6bed5a87b7dc6882eeafe77b2511e5be3e4919159309303477ca97e1b5c1eb134fe5fc0d8a5f5c2880f1eb5c72592b8104a726bad5ed83b4ed2eed5193
24 -DIST portage-3.0.35.tar.bz2 1112935 BLAKE2B 1226cc5808628a0d6c3c71aaacf87b7447205a1716beff198627693b22304b1e11b1d91e277c97794235690f17c0e3ae76f9546668d3459916caaa17c04eb9c5 SHA512 975d8e942014c2fb01971292ed0882291aef1d28ceba95250d0b593ed76fa9692adafecbf2326499dadd42d55be3d3f4fb634552b99d5e5392ef723413a2e3dd
25 DIST portage-3.0.36.tar.bz2 1114026 BLAKE2B a8a535ae309c32955eae6a491cbc97f809fb67111688087aa98ac28df4bc97fcb3d9a4ce7c5dbdfbb7f21891a7524f671ff3e3ccbed425503c66bde591266957 SHA512 94b39718871e895c1170271ad072eaa72c995a7e7a06bda9ee76cde2e3949682da7a996780a83cc33c4647915f942fe9d4a7b9b6dfd9319143eb1453cee3b3de
26
27 diff --git a/sys-apps/portage/portage-3.0.34.ebuild b/sys-apps/portage/portage-3.0.34.ebuild
28 deleted file mode 100644
29 index 26815216586a..000000000000
30 --- a/sys-apps/portage/portage-3.0.34.ebuild
31 +++ /dev/null
32 @@ -1,273 +0,0 @@
33 -# Copyright 1999-2022 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=7
37 -
38 -PYTHON_COMPAT=( pypy3 python3_{8..11} )
39 -PYTHON_REQ_USE='bzip2(+),threads(+)'
40 -TMPFILES_OPTIONAL=1
41 -
42 -inherit distutils-r1 linux-info toolchain-funcs tmpfiles prefix
43 -
44 -DESCRIPTION="The package management and distribution system for Gentoo"
45 -HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage"
46 -SRC_URI="https://gitweb.gentoo.org/proj/portage.git/snapshot/${P}.tar.bz2"
47 -
48 -LICENSE="GPL-2"
49 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
50 -SLOT="0"
51 -IUSE="apidoc build doc gentoo-dev +ipc +native-extensions +rsync-verify selinux test xattr"
52 -RESTRICT="!test? ( test )"
53 -
54 -BDEPEND="
55 - app-arch/xz-utils
56 - test? ( dev-vcs/git )"
57 -DEPEND="!build? ( $(python_gen_impl_dep 'ssl(+)') )
58 - >=app-arch/tar-1.27
59 - dev-lang/python-exec:2
60 - >=sys-apps/sed-4.0.5 sys-devel/patch
61 - doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 )
62 - apidoc? (
63 - dev-python/sphinx[${PYTHON_USEDEP}]
64 - dev-python/sphinx-epytext[${PYTHON_USEDEP}]
65 - )"
66 -# Require sandbox-2.2 for bug #288863.
67 -# For whirlpool hash, require python[ssl] (bug #425046).
68 -# For compgen, require bash[readline] (bug #445576).
69 -# app-portage/gemato goes without PYTHON_USEDEP since we're calling
70 -# the executable.
71 -RDEPEND="
72 - acct-user/portage
73 - app-arch/zstd
74 - >=app-arch/tar-1.27
75 - dev-lang/python-exec:2
76 - >=sys-apps/findutils-4.4
77 - !build? (
78 - >=sys-apps/sed-4.0.5
79 - >=app-shells/bash-5.0:0[readline]
80 - >=app-admin/eselect-1.2
81 - rsync-verify? (
82 - >=app-portage/gemato-14.5[${PYTHON_USEDEP}]
83 - >=sec-keys/openpgp-keys-gentoo-release-20180706
84 - >=app-crypt/gnupg-2.2.4-r2[ssl(-)]
85 - )
86 - )
87 - elibc_glibc? ( >=sys-apps/sandbox-2.2 )
88 - elibc_musl? ( >=sys-apps/sandbox-2.2 )
89 - kernel_linux? ( sys-apps/util-linux )
90 - >=app-misc/pax-utils-0.1.17
91 - selinux? ( >=sys-libs/libselinux-2.0.94[python,${PYTHON_USEDEP}] )
92 - xattr? ( kernel_linux? (
93 - >=sys-apps/install-xattr-0.3
94 - ) )
95 - !<app-admin/logrotate-3.8.0
96 - !<app-portage/gentoolkit-0.4.6
97 - !<app-portage/repoman-2.3.10
98 - !~app-portage/repoman-3.0.0"
99 -PDEPEND="
100 - !build? (
101 - >=net-misc/rsync-2.6.4
102 - >=sys-apps/file-5.41
103 - >=sys-apps/coreutils-6.4
104 - )"
105 -# coreutils-6.4 rdep is for date format in emerge-webrsync #164532
106 -# NOTE: FEATURES=installsources requires debugedit and rsync
107 -
108 -pkg_pretend() {
109 - local CONFIG_CHECK="~IPC_NS ~PID_NS ~NET_NS ~UTS_NS"
110 -
111 - if use native-extensions && tc-is-cross-compiler; then
112 - einfo "Disabling USE=native-extensions for cross-compilation (bug #612158)"
113 - fi
114 -
115 - check_extra_config
116 -}
117 -
118 -python_prepare_all() {
119 - local PATCHES=(
120 - )
121 -
122 - distutils-r1_python_prepare_all
123 -
124 - sed -e "s:^VERSION = \"HEAD\"$:VERSION = \"${PV}\":" -i lib/portage/__init__.py || die
125 -
126 - if use gentoo-dev; then
127 - einfo "Disabling --dynamic-deps by default for gentoo-dev..."
128 - sed -e 's:\("--dynamic-deps", \)\("y"\):\1"n":' \
129 - -i lib/_emerge/create_depgraph_params.py || \
130 - die "failed to patch create_depgraph_params.py"
131 -
132 - einfo "Enabling additional FEATURES for gentoo-dev..."
133 - echo 'FEATURES="${FEATURES} ipc-sandbox network-sandbox strict-keepdir"' \
134 - >> cnf/make.globals || die
135 - fi
136 -
137 - if use native-extensions && ! tc-is-cross-compiler; then
138 - printf "[build_ext]\nportage_ext_modules=true\n" >> \
139 - setup.cfg || die
140 - fi
141 -
142 - if ! use ipc ; then
143 - einfo "Disabling ipc..."
144 - sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \
145 - -i lib/_emerge/AbstractEbuildProcess.py || \
146 - die "failed to patch AbstractEbuildProcess.py"
147 - fi
148 -
149 - if use xattr && use kernel_linux ; then
150 - einfo "Adding FEATURES=xattr to make.globals ..."
151 - echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \
152 - || die "failed to append to make.globals"
153 - fi
154 -
155 - if use build || ! use rsync-verify; then
156 - sed -e '/^sync-rsync-verify-metamanifest/s|yes|no|' \
157 - -e '/^sync-webrsync-verify-signature/s|yes|no|' \
158 - -i cnf/repos.conf || die "sed failed"
159 - fi
160 -
161 - if [[ -n ${EPREFIX} ]] ; then
162 - einfo "Setting portage.const.EPREFIX ..."
163 - hprefixify -e "s|^(EPREFIX[[:space:]]*=[[:space:]]*\").*|\1${EPREFIX}\"|" \
164 - -w "/_BINARY/" lib/portage/const.py
165 -
166 - einfo "Prefixing shebangs ..."
167 - > "${T}/shebangs" || die
168 - while read -r -d $'\0' ; do
169 - local shebang=$(head -n1 "$REPLY")
170 - if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then
171 - echo "${REPLY}" >> "${T}/shebangs" || die
172 - fi
173 - done < <(find . -type f -executable ! -name etc-update -print0)
174 -
175 - if [[ -s ${T}/shebangs ]]; then
176 - xargs sed -i -e "1s:^#!:#!${EPREFIX}:" < "${T}/shebangs" || die "sed failed"
177 - fi
178 -
179 - einfo "Adjusting make.globals, repos.conf and etc-update ..."
180 - hprefixify cnf/{make.globals,repos.conf} bin/etc-update
181 -
182 - if use prefix-guest ; then
183 - sed -e "s|^\(main-repo = \).*|\\1gentoo_prefix|" \
184 - -e "s|^\\[gentoo\\]|[gentoo_prefix]|" \
185 - -e "s|^\(sync-uri = \).*|\\1rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix|" \
186 - -i cnf/repos.conf || die "sed failed"
187 - fi
188 -
189 - einfo "Adding FEATURES=force-prefix to make.globals ..."
190 - echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \
191 - || die "failed to append to make.globals"
192 - fi
193 -
194 - cd "${S}/cnf" || die
195 - if [ -f "make.conf.example.${ARCH}".diff ]; then
196 - patch make.conf.example "make.conf.example.${ARCH}".diff || \
197 - die "Failed to patch make.conf.example"
198 - else
199 - eerror ""
200 - eerror "Portage does not have an arch-specific configuration for this arch."
201 - eerror "Please notify the arch maintainer about this issue. Using generic."
202 - eerror ""
203 - fi
204 -}
205 -
206 -python_compile_all() {
207 - local targets=()
208 - use doc && targets+=( docbook )
209 - use apidoc && targets+=( apidoc )
210 -
211 - if [[ ${targets[@]} ]]; then
212 - esetup.py "${targets[@]}"
213 - fi
214 -}
215 -
216 -python_test() {
217 - esetup.py test
218 -}
219 -
220 -python_install() {
221 - # Install sbin scripts to bindir for python-exec linking
222 - # they will be relocated in pkg_preinst()
223 - distutils-r1_python_install \
224 - --system-prefix="${EPREFIX}/usr" \
225 - --bindir="$(python_get_scriptdir)" \
226 - --docdir="${EPREFIX}/usr/share/doc/${PF}" \
227 - --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \
228 - --portage-bindir="${EPREFIX}/usr/lib/portage/${EPYTHON}" \
229 - --sbindir="$(python_get_scriptdir)" \
230 - --sysconfdir="${EPREFIX}/etc" \
231 - "${@}"
232 -}
233 -
234 -python_install_all() {
235 - distutils-r1_python_install_all
236 -
237 - local targets=()
238 - use doc && targets+=(
239 - install_docbook
240 - --htmldir="${EPREFIX}/usr/share/doc/${PF}/html"
241 - )
242 - use apidoc && targets+=(
243 - install_apidoc
244 - --htmldir="${EPREFIX}/usr/share/doc/${PF}/html"
245 - )
246 -
247 - # install docs
248 - if [[ ${targets[@]} ]]; then
249 - esetup.py "${targets[@]}"
250 - fi
251 -
252 - dotmpfiles "${FILESDIR}"/portage-ccache.conf
253 -
254 - # Due to distutils/python-exec limitations
255 - # these must be installed to /usr/bin.
256 - local sbin_relocations='archive-conf dispatch-conf emaint env-update etc-update fixpackages regenworld'
257 - einfo "Moving admin scripts to the correct directory"
258 - dodir /usr/sbin
259 - for target in ${sbin_relocations}; do
260 - einfo "Moving /usr/bin/${target} to /usr/sbin/${target}"
261 - mv "${ED}/usr/bin/${target}" "${ED}/usr/sbin/${target}" || die "sbin scripts move failed!"
262 - done
263 -}
264 -
265 -pkg_preinst() {
266 - if ! use build; then
267 - python_setup
268 - local sitedir=$(python_get_sitedir)
269 - [[ -d ${D}${sitedir} ]] || die "${D}${sitedir}: No such directory"
270 - env -u DISTDIR \
271 - -u PORTAGE_OVERRIDE_EPREFIX \
272 - -u PORTAGE_REPOSITORIES \
273 - -u PORTDIR \
274 - -u PORTDIR_OVERLAY \
275 - PYTHONPATH="${D}${sitedir}${PYTHONPATH:+:${PYTHONPATH}}" \
276 - "${PYTHON}" -m portage._compat_upgrade.default_locations || die
277 -
278 - env -u BINPKG_COMPRESS -u PORTAGE_REPOSITORIES \
279 - PYTHONPATH="${D}${sitedir}${PYTHONPATH:+:${PYTHONPATH}}" \
280 - "${PYTHON}" -m portage._compat_upgrade.binpkg_compression || die
281 -
282 - env -u FEATURES -u PORTAGE_REPOSITORIES \
283 - PYTHONPATH="${D}${sitedir}${PYTHONPATH:+:${PYTHONPATH}}" \
284 - "${PYTHON}" -m portage._compat_upgrade.binpkg_multi_instance || die
285 - fi
286 -
287 - # elog dir must exist to avoid logrotate error for bug #415911.
288 - # This code runs in preinst in order to bypass the mapping of
289 - # portage:portage to root:root which happens after src_install.
290 - keepdir /var/log/portage/elog
291 - # This is allowed to fail if the user/group are invalid for prefix users.
292 - if chown portage:portage "${ED}"/var/log/portage{,/elog} 2>/dev/null ; then
293 - chmod g+s,ug+rwx "${ED}"/var/log/portage{,/elog}
294 - fi
295 -
296 - if has_version "<${CATEGORY}/${PN}-2.3.77"; then
297 - elog "The emerge --autounmask option is now disabled by default, except for"
298 - elog "portions of behavior which are controlled by the --autounmask-use and"
299 - elog "--autounmask-license options. For backward compatibility, previous"
300 - elog "behavior of --autounmask=y and --autounmask=n is entirely preserved."
301 - elog "Users can get the old behavior simply by adding --autounmask to the"
302 - elog "make.conf EMERGE_DEFAULT_OPTS variable. For the rationale for this"
303 - elog "change, see https://bugs.gentoo.org/658648."
304 - fi
305 -}
306
307 diff --git a/sys-apps/portage/portage-3.0.35.ebuild b/sys-apps/portage/portage-3.0.35.ebuild
308 deleted file mode 100644
309 index 26815216586a..000000000000
310 --- a/sys-apps/portage/portage-3.0.35.ebuild
311 +++ /dev/null
312 @@ -1,273 +0,0 @@
313 -# Copyright 1999-2022 Gentoo Authors
314 -# Distributed under the terms of the GNU General Public License v2
315 -
316 -EAPI=7
317 -
318 -PYTHON_COMPAT=( pypy3 python3_{8..11} )
319 -PYTHON_REQ_USE='bzip2(+),threads(+)'
320 -TMPFILES_OPTIONAL=1
321 -
322 -inherit distutils-r1 linux-info toolchain-funcs tmpfiles prefix
323 -
324 -DESCRIPTION="The package management and distribution system for Gentoo"
325 -HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage"
326 -SRC_URI="https://gitweb.gentoo.org/proj/portage.git/snapshot/${P}.tar.bz2"
327 -
328 -LICENSE="GPL-2"
329 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
330 -SLOT="0"
331 -IUSE="apidoc build doc gentoo-dev +ipc +native-extensions +rsync-verify selinux test xattr"
332 -RESTRICT="!test? ( test )"
333 -
334 -BDEPEND="
335 - app-arch/xz-utils
336 - test? ( dev-vcs/git )"
337 -DEPEND="!build? ( $(python_gen_impl_dep 'ssl(+)') )
338 - >=app-arch/tar-1.27
339 - dev-lang/python-exec:2
340 - >=sys-apps/sed-4.0.5 sys-devel/patch
341 - doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 )
342 - apidoc? (
343 - dev-python/sphinx[${PYTHON_USEDEP}]
344 - dev-python/sphinx-epytext[${PYTHON_USEDEP}]
345 - )"
346 -# Require sandbox-2.2 for bug #288863.
347 -# For whirlpool hash, require python[ssl] (bug #425046).
348 -# For compgen, require bash[readline] (bug #445576).
349 -# app-portage/gemato goes without PYTHON_USEDEP since we're calling
350 -# the executable.
351 -RDEPEND="
352 - acct-user/portage
353 - app-arch/zstd
354 - >=app-arch/tar-1.27
355 - dev-lang/python-exec:2
356 - >=sys-apps/findutils-4.4
357 - !build? (
358 - >=sys-apps/sed-4.0.5
359 - >=app-shells/bash-5.0:0[readline]
360 - >=app-admin/eselect-1.2
361 - rsync-verify? (
362 - >=app-portage/gemato-14.5[${PYTHON_USEDEP}]
363 - >=sec-keys/openpgp-keys-gentoo-release-20180706
364 - >=app-crypt/gnupg-2.2.4-r2[ssl(-)]
365 - )
366 - )
367 - elibc_glibc? ( >=sys-apps/sandbox-2.2 )
368 - elibc_musl? ( >=sys-apps/sandbox-2.2 )
369 - kernel_linux? ( sys-apps/util-linux )
370 - >=app-misc/pax-utils-0.1.17
371 - selinux? ( >=sys-libs/libselinux-2.0.94[python,${PYTHON_USEDEP}] )
372 - xattr? ( kernel_linux? (
373 - >=sys-apps/install-xattr-0.3
374 - ) )
375 - !<app-admin/logrotate-3.8.0
376 - !<app-portage/gentoolkit-0.4.6
377 - !<app-portage/repoman-2.3.10
378 - !~app-portage/repoman-3.0.0"
379 -PDEPEND="
380 - !build? (
381 - >=net-misc/rsync-2.6.4
382 - >=sys-apps/file-5.41
383 - >=sys-apps/coreutils-6.4
384 - )"
385 -# coreutils-6.4 rdep is for date format in emerge-webrsync #164532
386 -# NOTE: FEATURES=installsources requires debugedit and rsync
387 -
388 -pkg_pretend() {
389 - local CONFIG_CHECK="~IPC_NS ~PID_NS ~NET_NS ~UTS_NS"
390 -
391 - if use native-extensions && tc-is-cross-compiler; then
392 - einfo "Disabling USE=native-extensions for cross-compilation (bug #612158)"
393 - fi
394 -
395 - check_extra_config
396 -}
397 -
398 -python_prepare_all() {
399 - local PATCHES=(
400 - )
401 -
402 - distutils-r1_python_prepare_all
403 -
404 - sed -e "s:^VERSION = \"HEAD\"$:VERSION = \"${PV}\":" -i lib/portage/__init__.py || die
405 -
406 - if use gentoo-dev; then
407 - einfo "Disabling --dynamic-deps by default for gentoo-dev..."
408 - sed -e 's:\("--dynamic-deps", \)\("y"\):\1"n":' \
409 - -i lib/_emerge/create_depgraph_params.py || \
410 - die "failed to patch create_depgraph_params.py"
411 -
412 - einfo "Enabling additional FEATURES for gentoo-dev..."
413 - echo 'FEATURES="${FEATURES} ipc-sandbox network-sandbox strict-keepdir"' \
414 - >> cnf/make.globals || die
415 - fi
416 -
417 - if use native-extensions && ! tc-is-cross-compiler; then
418 - printf "[build_ext]\nportage_ext_modules=true\n" >> \
419 - setup.cfg || die
420 - fi
421 -
422 - if ! use ipc ; then
423 - einfo "Disabling ipc..."
424 - sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \
425 - -i lib/_emerge/AbstractEbuildProcess.py || \
426 - die "failed to patch AbstractEbuildProcess.py"
427 - fi
428 -
429 - if use xattr && use kernel_linux ; then
430 - einfo "Adding FEATURES=xattr to make.globals ..."
431 - echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \
432 - || die "failed to append to make.globals"
433 - fi
434 -
435 - if use build || ! use rsync-verify; then
436 - sed -e '/^sync-rsync-verify-metamanifest/s|yes|no|' \
437 - -e '/^sync-webrsync-verify-signature/s|yes|no|' \
438 - -i cnf/repos.conf || die "sed failed"
439 - fi
440 -
441 - if [[ -n ${EPREFIX} ]] ; then
442 - einfo "Setting portage.const.EPREFIX ..."
443 - hprefixify -e "s|^(EPREFIX[[:space:]]*=[[:space:]]*\").*|\1${EPREFIX}\"|" \
444 - -w "/_BINARY/" lib/portage/const.py
445 -
446 - einfo "Prefixing shebangs ..."
447 - > "${T}/shebangs" || die
448 - while read -r -d $'\0' ; do
449 - local shebang=$(head -n1 "$REPLY")
450 - if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then
451 - echo "${REPLY}" >> "${T}/shebangs" || die
452 - fi
453 - done < <(find . -type f -executable ! -name etc-update -print0)
454 -
455 - if [[ -s ${T}/shebangs ]]; then
456 - xargs sed -i -e "1s:^#!:#!${EPREFIX}:" < "${T}/shebangs" || die "sed failed"
457 - fi
458 -
459 - einfo "Adjusting make.globals, repos.conf and etc-update ..."
460 - hprefixify cnf/{make.globals,repos.conf} bin/etc-update
461 -
462 - if use prefix-guest ; then
463 - sed -e "s|^\(main-repo = \).*|\\1gentoo_prefix|" \
464 - -e "s|^\\[gentoo\\]|[gentoo_prefix]|" \
465 - -e "s|^\(sync-uri = \).*|\\1rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix|" \
466 - -i cnf/repos.conf || die "sed failed"
467 - fi
468 -
469 - einfo "Adding FEATURES=force-prefix to make.globals ..."
470 - echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \
471 - || die "failed to append to make.globals"
472 - fi
473 -
474 - cd "${S}/cnf" || die
475 - if [ -f "make.conf.example.${ARCH}".diff ]; then
476 - patch make.conf.example "make.conf.example.${ARCH}".diff || \
477 - die "Failed to patch make.conf.example"
478 - else
479 - eerror ""
480 - eerror "Portage does not have an arch-specific configuration for this arch."
481 - eerror "Please notify the arch maintainer about this issue. Using generic."
482 - eerror ""
483 - fi
484 -}
485 -
486 -python_compile_all() {
487 - local targets=()
488 - use doc && targets+=( docbook )
489 - use apidoc && targets+=( apidoc )
490 -
491 - if [[ ${targets[@]} ]]; then
492 - esetup.py "${targets[@]}"
493 - fi
494 -}
495 -
496 -python_test() {
497 - esetup.py test
498 -}
499 -
500 -python_install() {
501 - # Install sbin scripts to bindir for python-exec linking
502 - # they will be relocated in pkg_preinst()
503 - distutils-r1_python_install \
504 - --system-prefix="${EPREFIX}/usr" \
505 - --bindir="$(python_get_scriptdir)" \
506 - --docdir="${EPREFIX}/usr/share/doc/${PF}" \
507 - --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \
508 - --portage-bindir="${EPREFIX}/usr/lib/portage/${EPYTHON}" \
509 - --sbindir="$(python_get_scriptdir)" \
510 - --sysconfdir="${EPREFIX}/etc" \
511 - "${@}"
512 -}
513 -
514 -python_install_all() {
515 - distutils-r1_python_install_all
516 -
517 - local targets=()
518 - use doc && targets+=(
519 - install_docbook
520 - --htmldir="${EPREFIX}/usr/share/doc/${PF}/html"
521 - )
522 - use apidoc && targets+=(
523 - install_apidoc
524 - --htmldir="${EPREFIX}/usr/share/doc/${PF}/html"
525 - )
526 -
527 - # install docs
528 - if [[ ${targets[@]} ]]; then
529 - esetup.py "${targets[@]}"
530 - fi
531 -
532 - dotmpfiles "${FILESDIR}"/portage-ccache.conf
533 -
534 - # Due to distutils/python-exec limitations
535 - # these must be installed to /usr/bin.
536 - local sbin_relocations='archive-conf dispatch-conf emaint env-update etc-update fixpackages regenworld'
537 - einfo "Moving admin scripts to the correct directory"
538 - dodir /usr/sbin
539 - for target in ${sbin_relocations}; do
540 - einfo "Moving /usr/bin/${target} to /usr/sbin/${target}"
541 - mv "${ED}/usr/bin/${target}" "${ED}/usr/sbin/${target}" || die "sbin scripts move failed!"
542 - done
543 -}
544 -
545 -pkg_preinst() {
546 - if ! use build; then
547 - python_setup
548 - local sitedir=$(python_get_sitedir)
549 - [[ -d ${D}${sitedir} ]] || die "${D}${sitedir}: No such directory"
550 - env -u DISTDIR \
551 - -u PORTAGE_OVERRIDE_EPREFIX \
552 - -u PORTAGE_REPOSITORIES \
553 - -u PORTDIR \
554 - -u PORTDIR_OVERLAY \
555 - PYTHONPATH="${D}${sitedir}${PYTHONPATH:+:${PYTHONPATH}}" \
556 - "${PYTHON}" -m portage._compat_upgrade.default_locations || die
557 -
558 - env -u BINPKG_COMPRESS -u PORTAGE_REPOSITORIES \
559 - PYTHONPATH="${D}${sitedir}${PYTHONPATH:+:${PYTHONPATH}}" \
560 - "${PYTHON}" -m portage._compat_upgrade.binpkg_compression || die
561 -
562 - env -u FEATURES -u PORTAGE_REPOSITORIES \
563 - PYTHONPATH="${D}${sitedir}${PYTHONPATH:+:${PYTHONPATH}}" \
564 - "${PYTHON}" -m portage._compat_upgrade.binpkg_multi_instance || die
565 - fi
566 -
567 - # elog dir must exist to avoid logrotate error for bug #415911.
568 - # This code runs in preinst in order to bypass the mapping of
569 - # portage:portage to root:root which happens after src_install.
570 - keepdir /var/log/portage/elog
571 - # This is allowed to fail if the user/group are invalid for prefix users.
572 - if chown portage:portage "${ED}"/var/log/portage{,/elog} 2>/dev/null ; then
573 - chmod g+s,ug+rwx "${ED}"/var/log/portage{,/elog}
574 - fi
575 -
576 - if has_version "<${CATEGORY}/${PN}-2.3.77"; then
577 - elog "The emerge --autounmask option is now disabled by default, except for"
578 - elog "portions of behavior which are controlled by the --autounmask-use and"
579 - elog "--autounmask-license options. For backward compatibility, previous"
580 - elog "behavior of --autounmask=y and --autounmask=n is entirely preserved."
581 - elog "Users can get the old behavior simply by adding --autounmask to the"
582 - elog "make.conf EMERGE_DEFAULT_OPTS variable. For the rationale for this"
583 - elog "change, see https://bugs.gentoo.org/658648."
584 - fi
585 -}