1 |
commit: a9ce6681b0f4fb85ba03a8ee99425e9c00a74bdb |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Dec 30 21:38:47 2019 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 30 22:07:50 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9ce6681 |
7 |
|
8 |
sys-apps/portage: Remove old versions |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
11 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
12 |
|
13 |
sys-apps/portage/Manifest | 3 - |
14 |
sys-apps/portage/portage-2.3.76-r1.ebuild | 269 ----------------------------- |
15 |
sys-apps/portage/portage-2.3.82.ebuild | 276 ------------------------------ |
16 |
sys-apps/portage/portage-2.3.83.ebuild | 276 ------------------------------ |
17 |
4 files changed, 824 deletions(-) |
18 |
|
19 |
diff --git a/sys-apps/portage/Manifest b/sys-apps/portage/Manifest |
20 |
index 03354dd47e3..612cb32a1b2 100644 |
21 |
--- a/sys-apps/portage/Manifest |
22 |
+++ b/sys-apps/portage/Manifest |
23 |
@@ -1,6 +1,3 @@ |
24 |
DIST portage-2.3.69.tar.bz2 1027945 BLAKE2B 22a06370d9db8f8954f609a4435983b914f03c11fa1c4c857089738db574e3346fc286c77bb62103d868742b423484b3a186cbc22545cccca0f516a5724e331e SHA512 20a6c9d26829e9d3738da824aa3fcc0bc8f01019ae9631871ce56e5ff37d91ed27d7b9505c433cc3b7441290abf98bf0897bbb66c099cbb982854047e6c8f045 |
25 |
-DIST portage-2.3.76.tar.bz2 1033462 BLAKE2B 1be0641337cd7d2a55f8aaba6f84bbfa7182503050e669fb28cd00e4de13cce31ec6e33cc2794e372d1a67b7d2f27e6bb85969f720f2ed449c619598b708b903 SHA512 e7774cf89e3865cb1ca5465fc961b452cc8529ccf09e86b7ebd16cca049f1efb527dca9aba892392d5909283cf12930117b1d33fa58e1e429f4408cf50181921 |
26 |
DIST portage-2.3.79.tar.bz2 1038675 BLAKE2B 7a6cff28fa1d4b54607e9416914ab534d250718b082a9789a36be057933867a8a3befd7c99d404b058f67b92c6ee975323c37251fe89d3e3e46865daf0fea25e SHA512 23101644185fb7c6eff12f015d442599b3af744f7b13dcb630f47a7f27c1392c46bd4aa5fa32d403dcf058cc3cc1d56cef00fd8c34dda811388eb268761c0797 |
27 |
-DIST portage-2.3.82.tar.bz2 1042836 BLAKE2B 97fc32b988863497564f64bb22ecdb787f6d6075ec3f5a35c27f7c8b0610892c0516236eba238deec59ee5f9c42e0f10c6ef6c9a2f193ff54e24d86706afd814 SHA512 cee59744bba8bb429689dde899df2d84a42ac68b1e0f4a65f8f14c6db04a26a805095b54a807fa95dfe4032e8a637660a9aec88f70b36ba785228ed0db9c1144 |
28 |
-DIST portage-2.3.83.tar.bz2 1043583 BLAKE2B aaeaae19c9ec677f2c35451a4c223dbe26c696b2742e186e45512ef75484deeb55f9127a040c3aa389b1d66ffba9c0c6fb30e86b6977a16c7f46adaf86d1f671 SHA512 172dcbd6383918c83b370164d7b6e0e0039250b15d48db0a7e616afaf29ecd2490d6f2ef3b2b68c7138f475c802f7e147255bf50459565ca328233e0e1d5ae67 |
29 |
DIST portage-2.3.84.tar.bz2 1043069 BLAKE2B 85ccc209011ef5206e0aaf768ec0276449f5a691f62f8dd65b812b6a285030796180acce89e9f2c8ae05fe4f59505133535f0374bf076846f819477d0a62d231 SHA512 49797ded65091ea7450f3c37e4ca1efb4205bc67e873295b5060ee6d39c1c63313fc1caa8c2f6c7afa6b352cef6d7ef04b8371c66a3ade05ac734b46f807bfd7 |
30 |
|
31 |
diff --git a/sys-apps/portage/portage-2.3.76-r1.ebuild b/sys-apps/portage/portage-2.3.76-r1.ebuild |
32 |
deleted file mode 100644 |
33 |
index 28afff0ae72..00000000000 |
34 |
--- a/sys-apps/portage/portage-2.3.76-r1.ebuild |
35 |
+++ /dev/null |
36 |
@@ -1,269 +0,0 @@ |
37 |
-# Copyright 1999-2019 Gentoo Authors |
38 |
-# Distributed under the terms of the GNU General Public License v2 |
39 |
- |
40 |
-EAPI=5 |
41 |
- |
42 |
-DISTUTILS_USE_SETUPTOOLS=no |
43 |
-PYTHON_COMPAT=( |
44 |
- pypy |
45 |
- python3_5 python3_6 python3_7 |
46 |
- python2_7 |
47 |
-) |
48 |
-PYTHON_REQ_USE='bzip2(+),threads(+)' |
49 |
- |
50 |
-inherit distutils-r1 linux-info systemd prefix |
51 |
- |
52 |
-DESCRIPTION="Portage is the package management and distribution system for Gentoo" |
53 |
-HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage" |
54 |
- |
55 |
-LICENSE="GPL-2" |
56 |
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~riscv s390 ~sh sparc x86" |
57 |
-SLOT="0" |
58 |
-IUSE="build doc epydoc gentoo-dev +ipc +native-extensions +rsync-verify selinux xattr" |
59 |
- |
60 |
-DEPEND="!build? ( $(python_gen_impl_dep 'ssl(+)') ) |
61 |
- >=app-arch/tar-1.27 |
62 |
- dev-lang/python-exec:2 |
63 |
- >=sys-apps/sed-4.0.5 sys-devel/patch |
64 |
- doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 ) |
65 |
- epydoc? ( >=dev-python/epydoc-2.0[$(python_gen_usedep 'python2*')] )" |
66 |
-# Require sandbox-2.2 for bug #288863. |
67 |
-# For xattr, we can spawn getfattr and setfattr from sys-apps/attr, but that's |
68 |
-# quite slow, so it's not considered in the dependencies as an alternative to |
69 |
-# to python-3.3 / pyxattr. Also, xattr support is only tested with Linux, so |
70 |
-# for now, don't pull in xattr deps for other kernels. |
71 |
-# For whirlpool hash, require python[ssl] (bug #425046). |
72 |
-# For compgen, require bash[readline] (bug #445576). |
73 |
-# app-portage/gemato goes without PYTHON_USEDEP since we're calling |
74 |
-# the executable. |
75 |
-RDEPEND=" |
76 |
- >=app-arch/tar-1.27 |
77 |
- dev-lang/python-exec:2 |
78 |
- !build? ( |
79 |
- >=sys-apps/sed-4.0.5 |
80 |
- app-shells/bash:0[readline] |
81 |
- >=app-admin/eselect-1.2 |
82 |
- $(python_gen_cond_dep 'dev-python/pyblake2[${PYTHON_USEDEP}]' \ |
83 |
- python{2_7,3_5} pypy) |
84 |
- rsync-verify? ( |
85 |
- >=app-portage/gemato-14[${PYTHON_USEDEP}] |
86 |
- >=app-crypt/openpgp-keys-gentoo-release-20180706 |
87 |
- >=app-crypt/gnupg-2.2.4-r2[ssl(-)] |
88 |
- ) |
89 |
- ) |
90 |
- elibc_FreeBSD? ( sys-freebsd/freebsd-bin ) |
91 |
- elibc_glibc? ( >=sys-apps/sandbox-2.2 ) |
92 |
- elibc_musl? ( >=sys-apps/sandbox-2.2 ) |
93 |
- elibc_uclibc? ( >=sys-apps/sandbox-2.2 ) |
94 |
- kernel_linux? ( sys-apps/util-linux ) |
95 |
- >=app-misc/pax-utils-0.1.17 |
96 |
- selinux? ( >=sys-libs/libselinux-2.0.94[python,${PYTHON_USEDEP}] ) |
97 |
- xattr? ( kernel_linux? ( |
98 |
- >=sys-apps/install-xattr-0.3 |
99 |
- $(python_gen_cond_dep 'dev-python/pyxattr[${PYTHON_USEDEP}]' \ |
100 |
- python2_7 pypy) |
101 |
- ) ) |
102 |
- !<app-admin/logrotate-3.8.0 |
103 |
- !<app-portage/gentoolkit-0.4.6 |
104 |
- !<app-portage/repoman-2.3.10" |
105 |
-PDEPEND=" |
106 |
- !build? ( |
107 |
- >=net-misc/rsync-2.6.4 |
108 |
- userland_GNU? ( >=sys-apps/coreutils-6.4 ) |
109 |
- )" |
110 |
-# coreutils-6.4 rdep is for date format in emerge-webrsync #164532 |
111 |
-# NOTE: FEATURES=installsources requires debugedit and rsync |
112 |
- |
113 |
-REQUIRED_USE="epydoc? ( $(python_gen_useflags 'python2*') )" |
114 |
- |
115 |
-SRC_ARCHIVES="https://dev.gentoo.org/~zmedico/portage/archives" |
116 |
- |
117 |
-prefix_src_archives() { |
118 |
- local x y |
119 |
- for x in ${@}; do |
120 |
- for y in ${SRC_ARCHIVES}; do |
121 |
- echo ${y}/${x} |
122 |
- done |
123 |
- done |
124 |
-} |
125 |
- |
126 |
-TARBALL_PV=${PV} |
127 |
-SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2 |
128 |
- $(prefix_src_archives ${PN}-${TARBALL_PV}.tar.bz2)" |
129 |
- |
130 |
-pkg_pretend() { |
131 |
- local CONFIG_CHECK="~IPC_NS ~PID_NS ~NET_NS" |
132 |
- |
133 |
- check_extra_config |
134 |
-} |
135 |
- |
136 |
-pkg_setup() { |
137 |
- use epydoc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2.7 ) |
138 |
-} |
139 |
- |
140 |
-python_prepare_all() { |
141 |
- distutils-r1_python_prepare_all |
142 |
- |
143 |
- # Apply 03c54e340073620f489ca85bca94267a198174fe, |
144 |
- # 0299aedef74e47c0a68acf7905d8714c9578f125, and |
145 |
- # 1ca5b822133171b131cef3dc15dc43583893ad6b for bug 698046. |
146 |
- sed -e 's|rsync -avP|rsync -LtvP|' -i cnf/make.globals lib/portage/tests/util/test_getconfig.py || die |
147 |
- sed -e 's|if os.stat(download_path).st_size == 0:|mystat = os.lstat(download_path)\n\t\t\t\t\t\tif mystat.st_size == 0 or (stat.S_ISLNK(mystat.st_mode) and not os.path.exists(download_path)):|' \ |
148 |
- -i lib/portage/package/ebuild/fetch.py || die |
149 |
- |
150 |
- if use gentoo-dev; then |
151 |
- einfo "Disabling --dynamic-deps by default for gentoo-dev..." |
152 |
- sed -e 's:\("--dynamic-deps", \)\("y"\):\1"n":' \ |
153 |
- -i lib/_emerge/create_depgraph_params.py || \ |
154 |
- die "failed to patch create_depgraph_params.py" |
155 |
- |
156 |
- einfo "Enabling additional FEATURES for gentoo-dev..." |
157 |
- echo 'FEATURES="${FEATURES} strict-keepdir"' \ |
158 |
- >> cnf/make.globals || die |
159 |
- fi |
160 |
- |
161 |
- if use native-extensions; then |
162 |
- printf "[build_ext]\nportage-ext-modules=true\n" >> \ |
163 |
- setup.cfg || die |
164 |
- fi |
165 |
- |
166 |
- if ! use ipc ; then |
167 |
- einfo "Disabling ipc..." |
168 |
- sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \ |
169 |
- -i lib/_emerge/AbstractEbuildProcess.py || \ |
170 |
- die "failed to patch AbstractEbuildProcess.py" |
171 |
- fi |
172 |
- |
173 |
- if use xattr && use kernel_linux ; then |
174 |
- einfo "Adding FEATURES=xattr to make.globals ..." |
175 |
- echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \ |
176 |
- || die "failed to append to make.globals" |
177 |
- fi |
178 |
- |
179 |
- if use build || ! use rsync-verify; then |
180 |
- sed -e '/^sync-rsync-verify-metamanifest/s|yes|no|' \ |
181 |
- -e '/^sync-webrsync-verify-signature/s|yes|no|' \ |
182 |
- -i cnf/repos.conf || die "sed failed" |
183 |
- fi |
184 |
- |
185 |
- if [[ -n ${EPREFIX} ]] ; then |
186 |
- einfo "Setting portage.const.EPREFIX ..." |
187 |
- hprefixify -e "s|^(EPREFIX[[:space:]]*=[[:space:]]*\").*|\1${EPREFIX}\"|" \ |
188 |
- -w "/_BINARY/" lib/portage/const.py |
189 |
- |
190 |
- einfo "Prefixing shebangs ..." |
191 |
- while read -r -d $'\0' ; do |
192 |
- local shebang=$(head -n1 "$REPLY") |
193 |
- if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then |
194 |
- sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "$REPLY" || \ |
195 |
- die "sed failed" |
196 |
- fi |
197 |
- done < <(find . -type f ! -name etc-update -print0) |
198 |
- |
199 |
- einfo "Adjusting make.globals, repos.conf and etc-update ..." |
200 |
- hprefixify cnf/{make.globals,repos.conf} bin/etc-update |
201 |
- |
202 |
- if use prefix-guest ; then |
203 |
- sed -e "s|^\(main-repo = \).*|\\1gentoo_prefix|" \ |
204 |
- -e "s|^\\[gentoo\\]|[gentoo_prefix]|" \ |
205 |
- -e "s|^\(sync-uri = \).*|\\1rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix|" \ |
206 |
- -i cnf/repos.conf || die "sed failed" |
207 |
- fi |
208 |
- |
209 |
- einfo "Adding FEATURES=force-prefix to make.globals ..." |
210 |
- echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \ |
211 |
- || die "failed to append to make.globals" |
212 |
- fi |
213 |
- |
214 |
- cd "${S}/cnf" || die |
215 |
- if [ -f "make.conf.example.${ARCH}".diff ]; then |
216 |
- patch make.conf.example "make.conf.example.${ARCH}".diff || \ |
217 |
- die "Failed to patch make.conf.example" |
218 |
- else |
219 |
- eerror "" |
220 |
- eerror "Portage does not have an arch-specific configuration for this arch." |
221 |
- eerror "Please notify the arch maintainer about this issue. Using generic." |
222 |
- eerror "" |
223 |
- fi |
224 |
-} |
225 |
- |
226 |
-python_compile_all() { |
227 |
- local targets=() |
228 |
- use doc && targets+=( docbook ) |
229 |
- use epydoc && targets+=( epydoc ) |
230 |
- |
231 |
- if [[ ${targets[@]} ]]; then |
232 |
- esetup.py "${targets[@]}" |
233 |
- fi |
234 |
-} |
235 |
- |
236 |
-python_test() { |
237 |
- esetup.py test |
238 |
-} |
239 |
- |
240 |
-python_install() { |
241 |
- # Install sbin scripts to bindir for python-exec linking |
242 |
- # they will be relocated in pkg_preinst() |
243 |
- distutils-r1_python_install \ |
244 |
- --system-prefix="${EPREFIX}/usr" \ |
245 |
- --bindir="$(python_get_scriptdir)" \ |
246 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}" \ |
247 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
248 |
- --portage-bindir="${EPREFIX}/usr/lib/portage/${EPYTHON}" \ |
249 |
- --sbindir="$(python_get_scriptdir)" \ |
250 |
- --sysconfdir="${EPREFIX}/etc" \ |
251 |
- "${@}" |
252 |
-} |
253 |
- |
254 |
-python_install_all() { |
255 |
- distutils-r1_python_install_all |
256 |
- |
257 |
- local targets=() |
258 |
- use doc && targets+=( |
259 |
- install_docbook |
260 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
261 |
- ) |
262 |
- use epydoc && targets+=( |
263 |
- install_epydoc |
264 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
265 |
- ) |
266 |
- |
267 |
- # install docs |
268 |
- if [[ ${targets[@]} ]]; then |
269 |
- esetup.py "${targets[@]}" |
270 |
- fi |
271 |
- |
272 |
- systemd_dotmpfilesd "${FILESDIR}"/portage-ccache.conf |
273 |
- |
274 |
- # Due to distutils/python-exec limitations |
275 |
- # these must be installed to /usr/bin. |
276 |
- local sbin_relocations='archive-conf dispatch-conf emaint env-update etc-update fixpackages regenworld' |
277 |
- einfo "Moving admin scripts to the correct directory" |
278 |
- dodir /usr/sbin |
279 |
- for target in ${sbin_relocations}; do |
280 |
- einfo "Moving /usr/bin/${target} to /usr/sbin/${target}" |
281 |
- mv "${ED}usr/bin/${target}" "${ED}usr/sbin/${target}" || die "sbin scripts move failed!" |
282 |
- done |
283 |
-} |
284 |
- |
285 |
-pkg_preinst() { |
286 |
- python_setup |
287 |
- python_export PYTHON_SITEDIR |
288 |
- [[ -d ${D%/}${PYTHON_SITEDIR} ]] || die "${D%/}${PYTHON_SITEDIR}: No such directory" |
289 |
- env -u DISTDIR \ |
290 |
- -u PORTAGE_OVERRIDE_EPREFIX \ |
291 |
- -u PORTAGE_REPOSITORIES \ |
292 |
- -u PORTDIR \ |
293 |
- -u PORTDIR_OVERLAY \ |
294 |
- PYTHONPATH="${D%/}${PYTHON_SITEDIR}${PYTHONPATH:+:${PYTHONPATH}}" \ |
295 |
- "${PYTHON}" -m portage._compat_upgrade.default_locations || die |
296 |
- |
297 |
- # elog dir must exist to avoid logrotate error for bug #415911. |
298 |
- # This code runs in preinst in order to bypass the mapping of |
299 |
- # portage:portage to root:root which happens after src_install. |
300 |
- keepdir /var/log/portage/elog |
301 |
- # This is allowed to fail if the user/group are invalid for prefix users. |
302 |
- if chown portage:portage "${ED}"var/log/portage{,/elog} 2>/dev/null ; then |
303 |
- chmod g+s,ug+rwx "${ED}"var/log/portage{,/elog} |
304 |
- fi |
305 |
-} |
306 |
|
307 |
diff --git a/sys-apps/portage/portage-2.3.82.ebuild b/sys-apps/portage/portage-2.3.82.ebuild |
308 |
deleted file mode 100644 |
309 |
index bd5bc590071..00000000000 |
310 |
--- a/sys-apps/portage/portage-2.3.82.ebuild |
311 |
+++ /dev/null |
312 |
@@ -1,276 +0,0 @@ |
313 |
-# Copyright 1999-2019 Gentoo Authors |
314 |
-# Distributed under the terms of the GNU General Public License v2 |
315 |
- |
316 |
-EAPI=5 |
317 |
- |
318 |
-DISTUTILS_USE_SETUPTOOLS=no |
319 |
-PYTHON_COMPAT=( |
320 |
- pypy |
321 |
- python3_5 python3_6 python3_7 python3_8 |
322 |
- python2_7 |
323 |
-) |
324 |
-PYTHON_REQ_USE='bzip2(+),threads(+)' |
325 |
- |
326 |
-inherit distutils-r1 linux-info systemd prefix |
327 |
- |
328 |
-DESCRIPTION="Portage is the package management and distribution system for Gentoo" |
329 |
-HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage" |
330 |
- |
331 |
-LICENSE="GPL-2" |
332 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86" |
333 |
-SLOT="0" |
334 |
-IUSE="build doc epydoc gentoo-dev +ipc +native-extensions +rsync-verify selinux xattr" |
335 |
- |
336 |
-DEPEND="!build? ( $(python_gen_impl_dep 'ssl(+)') ) |
337 |
- >=app-arch/tar-1.27 |
338 |
- dev-lang/python-exec:2 |
339 |
- >=sys-apps/sed-4.0.5 sys-devel/patch |
340 |
- doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 ) |
341 |
- epydoc? ( |
342 |
- $(python_gen_cond_dep ' |
343 |
- >=dev-python/epydoc-2.0[${PYTHON_USEDEP}] |
344 |
- ' 'python2*') |
345 |
- )" |
346 |
-# Require sandbox-2.2 for bug #288863. |
347 |
-# For xattr, we can spawn getfattr and setfattr from sys-apps/attr, but that's |
348 |
-# quite slow, so it's not considered in the dependencies as an alternative to |
349 |
-# to python-3.3 / pyxattr. Also, xattr support is only tested with Linux, so |
350 |
-# for now, don't pull in xattr deps for other kernels. |
351 |
-# For whirlpool hash, require python[ssl] (bug #425046). |
352 |
-# For compgen, require bash[readline] (bug #445576). |
353 |
-# app-portage/gemato goes without PYTHON_USEDEP since we're calling |
354 |
-# the executable. |
355 |
-RDEPEND=" |
356 |
- >=app-arch/tar-1.27 |
357 |
- dev-lang/python-exec:2 |
358 |
- !build? ( |
359 |
- >=sys-apps/sed-4.0.5 |
360 |
- app-shells/bash:0[readline] |
361 |
- >=app-admin/eselect-1.2 |
362 |
- $(python_gen_cond_dep 'dev-python/pyblake2[${PYTHON_USEDEP}]' \ |
363 |
- python{2_7,3_5} pypy) |
364 |
- rsync-verify? ( |
365 |
- >=app-portage/gemato-14[${PYTHON_USEDEP}] |
366 |
- >=app-crypt/openpgp-keys-gentoo-release-20180706 |
367 |
- >=app-crypt/gnupg-2.2.4-r2[ssl(-)] |
368 |
- ) |
369 |
- ) |
370 |
- elibc_FreeBSD? ( sys-freebsd/freebsd-bin ) |
371 |
- elibc_glibc? ( >=sys-apps/sandbox-2.2 ) |
372 |
- elibc_musl? ( >=sys-apps/sandbox-2.2 ) |
373 |
- elibc_uclibc? ( >=sys-apps/sandbox-2.2 ) |
374 |
- kernel_linux? ( sys-apps/util-linux ) |
375 |
- >=app-misc/pax-utils-0.1.17 |
376 |
- selinux? ( >=sys-libs/libselinux-2.0.94[python,${PYTHON_USEDEP}] ) |
377 |
- xattr? ( kernel_linux? ( |
378 |
- >=sys-apps/install-xattr-0.3 |
379 |
- $(python_gen_cond_dep 'dev-python/pyxattr[${PYTHON_USEDEP}]' \ |
380 |
- python2_7 pypy) |
381 |
- ) ) |
382 |
- !<app-admin/logrotate-3.8.0 |
383 |
- !<app-portage/gentoolkit-0.4.6 |
384 |
- !<app-portage/repoman-2.3.10" |
385 |
-PDEPEND=" |
386 |
- !build? ( |
387 |
- >=net-misc/rsync-2.6.4 |
388 |
- userland_GNU? ( >=sys-apps/coreutils-6.4 ) |
389 |
- )" |
390 |
-# coreutils-6.4 rdep is for date format in emerge-webrsync #164532 |
391 |
-# NOTE: FEATURES=installsources requires debugedit and rsync |
392 |
- |
393 |
-REQUIRED_USE="epydoc? ( $(python_gen_useflags 'python2*') )" |
394 |
- |
395 |
-SRC_ARCHIVES="https://dev.gentoo.org/~zmedico/portage/archives" |
396 |
- |
397 |
-prefix_src_archives() { |
398 |
- local x y |
399 |
- for x in ${@}; do |
400 |
- for y in ${SRC_ARCHIVES}; do |
401 |
- echo ${y}/${x} |
402 |
- done |
403 |
- done |
404 |
-} |
405 |
- |
406 |
-TARBALL_PV=${PV} |
407 |
-SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2 |
408 |
- $(prefix_src_archives ${PN}-${TARBALL_PV}.tar.bz2)" |
409 |
- |
410 |
-pkg_pretend() { |
411 |
- local CONFIG_CHECK="~IPC_NS ~PID_NS ~NET_NS" |
412 |
- |
413 |
- check_extra_config |
414 |
-} |
415 |
- |
416 |
-pkg_setup() { |
417 |
- use epydoc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2.7 ) |
418 |
-} |
419 |
- |
420 |
-python_prepare_all() { |
421 |
- distutils-r1_python_prepare_all |
422 |
- |
423 |
- if use gentoo-dev; then |
424 |
- einfo "Disabling --dynamic-deps by default for gentoo-dev..." |
425 |
- sed -e 's:\("--dynamic-deps", \)\("y"\):\1"n":' \ |
426 |
- -i lib/_emerge/create_depgraph_params.py || \ |
427 |
- die "failed to patch create_depgraph_params.py" |
428 |
- |
429 |
- einfo "Enabling additional FEATURES for gentoo-dev..." |
430 |
- echo 'FEATURES="${FEATURES} strict-keepdir"' \ |
431 |
- >> cnf/make.globals || die |
432 |
- fi |
433 |
- |
434 |
- if use native-extensions; then |
435 |
- printf "[build_ext]\nportage-ext-modules=true\n" >> \ |
436 |
- setup.cfg || die |
437 |
- fi |
438 |
- |
439 |
- if ! use ipc ; then |
440 |
- einfo "Disabling ipc..." |
441 |
- sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \ |
442 |
- -i lib/_emerge/AbstractEbuildProcess.py || \ |
443 |
- die "failed to patch AbstractEbuildProcess.py" |
444 |
- fi |
445 |
- |
446 |
- if use xattr && use kernel_linux ; then |
447 |
- einfo "Adding FEATURES=xattr to make.globals ..." |
448 |
- echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \ |
449 |
- || die "failed to append to make.globals" |
450 |
- fi |
451 |
- |
452 |
- if use build || ! use rsync-verify; then |
453 |
- sed -e '/^sync-rsync-verify-metamanifest/s|yes|no|' \ |
454 |
- -e '/^sync-webrsync-verify-signature/s|yes|no|' \ |
455 |
- -i cnf/repos.conf || die "sed failed" |
456 |
- fi |
457 |
- |
458 |
- if [[ -n ${EPREFIX} ]] ; then |
459 |
- einfo "Setting portage.const.EPREFIX ..." |
460 |
- hprefixify -e "s|^(EPREFIX[[:space:]]*=[[:space:]]*\").*|\1${EPREFIX}\"|" \ |
461 |
- -w "/_BINARY/" lib/portage/const.py |
462 |
- |
463 |
- einfo "Prefixing shebangs ..." |
464 |
- while read -r -d $'\0' ; do |
465 |
- local shebang=$(head -n1 "$REPLY") |
466 |
- if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then |
467 |
- sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "$REPLY" || \ |
468 |
- die "sed failed" |
469 |
- fi |
470 |
- done < <(find . -type f ! -name etc-update -print0) |
471 |
- |
472 |
- einfo "Adjusting make.globals, repos.conf and etc-update ..." |
473 |
- hprefixify cnf/{make.globals,repos.conf} bin/etc-update |
474 |
- |
475 |
- if use prefix-guest ; then |
476 |
- sed -e "s|^\(main-repo = \).*|\\1gentoo_prefix|" \ |
477 |
- -e "s|^\\[gentoo\\]|[gentoo_prefix]|" \ |
478 |
- -e "s|^\(sync-uri = \).*|\\1rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix|" \ |
479 |
- -i cnf/repos.conf || die "sed failed" |
480 |
- fi |
481 |
- |
482 |
- einfo "Adding FEATURES=force-prefix to make.globals ..." |
483 |
- echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \ |
484 |
- || die "failed to append to make.globals" |
485 |
- fi |
486 |
- |
487 |
- cd "${S}/cnf" || die |
488 |
- if [ -f "make.conf.example.${ARCH}".diff ]; then |
489 |
- patch make.conf.example "make.conf.example.${ARCH}".diff || \ |
490 |
- die "Failed to patch make.conf.example" |
491 |
- else |
492 |
- eerror "" |
493 |
- eerror "Portage does not have an arch-specific configuration for this arch." |
494 |
- eerror "Please notify the arch maintainer about this issue. Using generic." |
495 |
- eerror "" |
496 |
- fi |
497 |
-} |
498 |
- |
499 |
-python_compile_all() { |
500 |
- local targets=() |
501 |
- use doc && targets+=( docbook ) |
502 |
- use epydoc && targets+=( epydoc ) |
503 |
- |
504 |
- if [[ ${targets[@]} ]]; then |
505 |
- esetup.py "${targets[@]}" |
506 |
- fi |
507 |
-} |
508 |
- |
509 |
-python_test() { |
510 |
- esetup.py test |
511 |
-} |
512 |
- |
513 |
-python_install() { |
514 |
- # Install sbin scripts to bindir for python-exec linking |
515 |
- # they will be relocated in pkg_preinst() |
516 |
- distutils-r1_python_install \ |
517 |
- --system-prefix="${EPREFIX}/usr" \ |
518 |
- --bindir="$(python_get_scriptdir)" \ |
519 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}" \ |
520 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
521 |
- --portage-bindir="${EPREFIX}/usr/lib/portage/${EPYTHON}" \ |
522 |
- --sbindir="$(python_get_scriptdir)" \ |
523 |
- --sysconfdir="${EPREFIX}/etc" \ |
524 |
- "${@}" |
525 |
-} |
526 |
- |
527 |
-python_install_all() { |
528 |
- distutils-r1_python_install_all |
529 |
- |
530 |
- local targets=() |
531 |
- use doc && targets+=( |
532 |
- install_docbook |
533 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
534 |
- ) |
535 |
- use epydoc && targets+=( |
536 |
- install_epydoc |
537 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
538 |
- ) |
539 |
- |
540 |
- # install docs |
541 |
- if [[ ${targets[@]} ]]; then |
542 |
- esetup.py "${targets[@]}" |
543 |
- fi |
544 |
- |
545 |
- systemd_dotmpfilesd "${FILESDIR}"/portage-ccache.conf |
546 |
- |
547 |
- # Due to distutils/python-exec limitations |
548 |
- # these must be installed to /usr/bin. |
549 |
- local sbin_relocations='archive-conf dispatch-conf emaint env-update etc-update fixpackages regenworld' |
550 |
- einfo "Moving admin scripts to the correct directory" |
551 |
- dodir /usr/sbin |
552 |
- for target in ${sbin_relocations}; do |
553 |
- einfo "Moving /usr/bin/${target} to /usr/sbin/${target}" |
554 |
- mv "${ED}usr/bin/${target}" "${ED}usr/sbin/${target}" || die "sbin scripts move failed!" |
555 |
- done |
556 |
-} |
557 |
- |
558 |
-pkg_preinst() { |
559 |
- python_setup |
560 |
- python_export PYTHON_SITEDIR |
561 |
- [[ -d ${D%/}${PYTHON_SITEDIR} ]] || die "${D%/}${PYTHON_SITEDIR}: No such directory" |
562 |
- env -u DISTDIR \ |
563 |
- -u PORTAGE_OVERRIDE_EPREFIX \ |
564 |
- -u PORTAGE_REPOSITORIES \ |
565 |
- -u PORTDIR \ |
566 |
- -u PORTDIR_OVERLAY \ |
567 |
- PYTHONPATH="${D%/}${PYTHON_SITEDIR}${PYTHONPATH:+:${PYTHONPATH}}" \ |
568 |
- "${PYTHON}" -m portage._compat_upgrade.default_locations || die |
569 |
- |
570 |
- # elog dir must exist to avoid logrotate error for bug #415911. |
571 |
- # This code runs in preinst in order to bypass the mapping of |
572 |
- # portage:portage to root:root which happens after src_install. |
573 |
- keepdir /var/log/portage/elog |
574 |
- # This is allowed to fail if the user/group are invalid for prefix users. |
575 |
- if chown portage:portage "${ED}"var/log/portage{,/elog} 2>/dev/null ; then |
576 |
- chmod g+s,ug+rwx "${ED}"var/log/portage{,/elog} |
577 |
- fi |
578 |
- |
579 |
- if has_version "<${CATEGORY}/${PN}-2.3.77"; then |
580 |
- elog "The emerge --autounmask option is now disabled by default, except for" |
581 |
- elog "portions of behavior which are controlled by the --autounmask-use and" |
582 |
- elog "--autounmask-license options. For backward compatibility, previous" |
583 |
- elog "behavior of --autounmask=y and --autounmask=n is entirely preserved." |
584 |
- elog "Users can get the old behavior simply by adding --autounmask to the" |
585 |
- elog "make.conf EMERGE_DEFAULT_OPTS variable. For the rationale for this" |
586 |
- elog "change, see https://bugs.gentoo.org/658648." |
587 |
- fi |
588 |
-} |
589 |
|
590 |
diff --git a/sys-apps/portage/portage-2.3.83.ebuild b/sys-apps/portage/portage-2.3.83.ebuild |
591 |
deleted file mode 100644 |
592 |
index bd5bc590071..00000000000 |
593 |
--- a/sys-apps/portage/portage-2.3.83.ebuild |
594 |
+++ /dev/null |
595 |
@@ -1,276 +0,0 @@ |
596 |
-# Copyright 1999-2019 Gentoo Authors |
597 |
-# Distributed under the terms of the GNU General Public License v2 |
598 |
- |
599 |
-EAPI=5 |
600 |
- |
601 |
-DISTUTILS_USE_SETUPTOOLS=no |
602 |
-PYTHON_COMPAT=( |
603 |
- pypy |
604 |
- python3_5 python3_6 python3_7 python3_8 |
605 |
- python2_7 |
606 |
-) |
607 |
-PYTHON_REQ_USE='bzip2(+),threads(+)' |
608 |
- |
609 |
-inherit distutils-r1 linux-info systemd prefix |
610 |
- |
611 |
-DESCRIPTION="Portage is the package management and distribution system for Gentoo" |
612 |
-HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage" |
613 |
- |
614 |
-LICENSE="GPL-2" |
615 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86" |
616 |
-SLOT="0" |
617 |
-IUSE="build doc epydoc gentoo-dev +ipc +native-extensions +rsync-verify selinux xattr" |
618 |
- |
619 |
-DEPEND="!build? ( $(python_gen_impl_dep 'ssl(+)') ) |
620 |
- >=app-arch/tar-1.27 |
621 |
- dev-lang/python-exec:2 |
622 |
- >=sys-apps/sed-4.0.5 sys-devel/patch |
623 |
- doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 ) |
624 |
- epydoc? ( |
625 |
- $(python_gen_cond_dep ' |
626 |
- >=dev-python/epydoc-2.0[${PYTHON_USEDEP}] |
627 |
- ' 'python2*') |
628 |
- )" |
629 |
-# Require sandbox-2.2 for bug #288863. |
630 |
-# For xattr, we can spawn getfattr and setfattr from sys-apps/attr, but that's |
631 |
-# quite slow, so it's not considered in the dependencies as an alternative to |
632 |
-# to python-3.3 / pyxattr. Also, xattr support is only tested with Linux, so |
633 |
-# for now, don't pull in xattr deps for other kernels. |
634 |
-# For whirlpool hash, require python[ssl] (bug #425046). |
635 |
-# For compgen, require bash[readline] (bug #445576). |
636 |
-# app-portage/gemato goes without PYTHON_USEDEP since we're calling |
637 |
-# the executable. |
638 |
-RDEPEND=" |
639 |
- >=app-arch/tar-1.27 |
640 |
- dev-lang/python-exec:2 |
641 |
- !build? ( |
642 |
- >=sys-apps/sed-4.0.5 |
643 |
- app-shells/bash:0[readline] |
644 |
- >=app-admin/eselect-1.2 |
645 |
- $(python_gen_cond_dep 'dev-python/pyblake2[${PYTHON_USEDEP}]' \ |
646 |
- python{2_7,3_5} pypy) |
647 |
- rsync-verify? ( |
648 |
- >=app-portage/gemato-14[${PYTHON_USEDEP}] |
649 |
- >=app-crypt/openpgp-keys-gentoo-release-20180706 |
650 |
- >=app-crypt/gnupg-2.2.4-r2[ssl(-)] |
651 |
- ) |
652 |
- ) |
653 |
- elibc_FreeBSD? ( sys-freebsd/freebsd-bin ) |
654 |
- elibc_glibc? ( >=sys-apps/sandbox-2.2 ) |
655 |
- elibc_musl? ( >=sys-apps/sandbox-2.2 ) |
656 |
- elibc_uclibc? ( >=sys-apps/sandbox-2.2 ) |
657 |
- kernel_linux? ( sys-apps/util-linux ) |
658 |
- >=app-misc/pax-utils-0.1.17 |
659 |
- selinux? ( >=sys-libs/libselinux-2.0.94[python,${PYTHON_USEDEP}] ) |
660 |
- xattr? ( kernel_linux? ( |
661 |
- >=sys-apps/install-xattr-0.3 |
662 |
- $(python_gen_cond_dep 'dev-python/pyxattr[${PYTHON_USEDEP}]' \ |
663 |
- python2_7 pypy) |
664 |
- ) ) |
665 |
- !<app-admin/logrotate-3.8.0 |
666 |
- !<app-portage/gentoolkit-0.4.6 |
667 |
- !<app-portage/repoman-2.3.10" |
668 |
-PDEPEND=" |
669 |
- !build? ( |
670 |
- >=net-misc/rsync-2.6.4 |
671 |
- userland_GNU? ( >=sys-apps/coreutils-6.4 ) |
672 |
- )" |
673 |
-# coreutils-6.4 rdep is for date format in emerge-webrsync #164532 |
674 |
-# NOTE: FEATURES=installsources requires debugedit and rsync |
675 |
- |
676 |
-REQUIRED_USE="epydoc? ( $(python_gen_useflags 'python2*') )" |
677 |
- |
678 |
-SRC_ARCHIVES="https://dev.gentoo.org/~zmedico/portage/archives" |
679 |
- |
680 |
-prefix_src_archives() { |
681 |
- local x y |
682 |
- for x in ${@}; do |
683 |
- for y in ${SRC_ARCHIVES}; do |
684 |
- echo ${y}/${x} |
685 |
- done |
686 |
- done |
687 |
-} |
688 |
- |
689 |
-TARBALL_PV=${PV} |
690 |
-SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2 |
691 |
- $(prefix_src_archives ${PN}-${TARBALL_PV}.tar.bz2)" |
692 |
- |
693 |
-pkg_pretend() { |
694 |
- local CONFIG_CHECK="~IPC_NS ~PID_NS ~NET_NS" |
695 |
- |
696 |
- check_extra_config |
697 |
-} |
698 |
- |
699 |
-pkg_setup() { |
700 |
- use epydoc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2.7 ) |
701 |
-} |
702 |
- |
703 |
-python_prepare_all() { |
704 |
- distutils-r1_python_prepare_all |
705 |
- |
706 |
- if use gentoo-dev; then |
707 |
- einfo "Disabling --dynamic-deps by default for gentoo-dev..." |
708 |
- sed -e 's:\("--dynamic-deps", \)\("y"\):\1"n":' \ |
709 |
- -i lib/_emerge/create_depgraph_params.py || \ |
710 |
- die "failed to patch create_depgraph_params.py" |
711 |
- |
712 |
- einfo "Enabling additional FEATURES for gentoo-dev..." |
713 |
- echo 'FEATURES="${FEATURES} strict-keepdir"' \ |
714 |
- >> cnf/make.globals || die |
715 |
- fi |
716 |
- |
717 |
- if use native-extensions; then |
718 |
- printf "[build_ext]\nportage-ext-modules=true\n" >> \ |
719 |
- setup.cfg || die |
720 |
- fi |
721 |
- |
722 |
- if ! use ipc ; then |
723 |
- einfo "Disabling ipc..." |
724 |
- sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \ |
725 |
- -i lib/_emerge/AbstractEbuildProcess.py || \ |
726 |
- die "failed to patch AbstractEbuildProcess.py" |
727 |
- fi |
728 |
- |
729 |
- if use xattr && use kernel_linux ; then |
730 |
- einfo "Adding FEATURES=xattr to make.globals ..." |
731 |
- echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \ |
732 |
- || die "failed to append to make.globals" |
733 |
- fi |
734 |
- |
735 |
- if use build || ! use rsync-verify; then |
736 |
- sed -e '/^sync-rsync-verify-metamanifest/s|yes|no|' \ |
737 |
- -e '/^sync-webrsync-verify-signature/s|yes|no|' \ |
738 |
- -i cnf/repos.conf || die "sed failed" |
739 |
- fi |
740 |
- |
741 |
- if [[ -n ${EPREFIX} ]] ; then |
742 |
- einfo "Setting portage.const.EPREFIX ..." |
743 |
- hprefixify -e "s|^(EPREFIX[[:space:]]*=[[:space:]]*\").*|\1${EPREFIX}\"|" \ |
744 |
- -w "/_BINARY/" lib/portage/const.py |
745 |
- |
746 |
- einfo "Prefixing shebangs ..." |
747 |
- while read -r -d $'\0' ; do |
748 |
- local shebang=$(head -n1 "$REPLY") |
749 |
- if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then |
750 |
- sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "$REPLY" || \ |
751 |
- die "sed failed" |
752 |
- fi |
753 |
- done < <(find . -type f ! -name etc-update -print0) |
754 |
- |
755 |
- einfo "Adjusting make.globals, repos.conf and etc-update ..." |
756 |
- hprefixify cnf/{make.globals,repos.conf} bin/etc-update |
757 |
- |
758 |
- if use prefix-guest ; then |
759 |
- sed -e "s|^\(main-repo = \).*|\\1gentoo_prefix|" \ |
760 |
- -e "s|^\\[gentoo\\]|[gentoo_prefix]|" \ |
761 |
- -e "s|^\(sync-uri = \).*|\\1rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix|" \ |
762 |
- -i cnf/repos.conf || die "sed failed" |
763 |
- fi |
764 |
- |
765 |
- einfo "Adding FEATURES=force-prefix to make.globals ..." |
766 |
- echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \ |
767 |
- || die "failed to append to make.globals" |
768 |
- fi |
769 |
- |
770 |
- cd "${S}/cnf" || die |
771 |
- if [ -f "make.conf.example.${ARCH}".diff ]; then |
772 |
- patch make.conf.example "make.conf.example.${ARCH}".diff || \ |
773 |
- die "Failed to patch make.conf.example" |
774 |
- else |
775 |
- eerror "" |
776 |
- eerror "Portage does not have an arch-specific configuration for this arch." |
777 |
- eerror "Please notify the arch maintainer about this issue. Using generic." |
778 |
- eerror "" |
779 |
- fi |
780 |
-} |
781 |
- |
782 |
-python_compile_all() { |
783 |
- local targets=() |
784 |
- use doc && targets+=( docbook ) |
785 |
- use epydoc && targets+=( epydoc ) |
786 |
- |
787 |
- if [[ ${targets[@]} ]]; then |
788 |
- esetup.py "${targets[@]}" |
789 |
- fi |
790 |
-} |
791 |
- |
792 |
-python_test() { |
793 |
- esetup.py test |
794 |
-} |
795 |
- |
796 |
-python_install() { |
797 |
- # Install sbin scripts to bindir for python-exec linking |
798 |
- # they will be relocated in pkg_preinst() |
799 |
- distutils-r1_python_install \ |
800 |
- --system-prefix="${EPREFIX}/usr" \ |
801 |
- --bindir="$(python_get_scriptdir)" \ |
802 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}" \ |
803 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
804 |
- --portage-bindir="${EPREFIX}/usr/lib/portage/${EPYTHON}" \ |
805 |
- --sbindir="$(python_get_scriptdir)" \ |
806 |
- --sysconfdir="${EPREFIX}/etc" \ |
807 |
- "${@}" |
808 |
-} |
809 |
- |
810 |
-python_install_all() { |
811 |
- distutils-r1_python_install_all |
812 |
- |
813 |
- local targets=() |
814 |
- use doc && targets+=( |
815 |
- install_docbook |
816 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
817 |
- ) |
818 |
- use epydoc && targets+=( |
819 |
- install_epydoc |
820 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
821 |
- ) |
822 |
- |
823 |
- # install docs |
824 |
- if [[ ${targets[@]} ]]; then |
825 |
- esetup.py "${targets[@]}" |
826 |
- fi |
827 |
- |
828 |
- systemd_dotmpfilesd "${FILESDIR}"/portage-ccache.conf |
829 |
- |
830 |
- # Due to distutils/python-exec limitations |
831 |
- # these must be installed to /usr/bin. |
832 |
- local sbin_relocations='archive-conf dispatch-conf emaint env-update etc-update fixpackages regenworld' |
833 |
- einfo "Moving admin scripts to the correct directory" |
834 |
- dodir /usr/sbin |
835 |
- for target in ${sbin_relocations}; do |
836 |
- einfo "Moving /usr/bin/${target} to /usr/sbin/${target}" |
837 |
- mv "${ED}usr/bin/${target}" "${ED}usr/sbin/${target}" || die "sbin scripts move failed!" |
838 |
- done |
839 |
-} |
840 |
- |
841 |
-pkg_preinst() { |
842 |
- python_setup |
843 |
- python_export PYTHON_SITEDIR |
844 |
- [[ -d ${D%/}${PYTHON_SITEDIR} ]] || die "${D%/}${PYTHON_SITEDIR}: No such directory" |
845 |
- env -u DISTDIR \ |
846 |
- -u PORTAGE_OVERRIDE_EPREFIX \ |
847 |
- -u PORTAGE_REPOSITORIES \ |
848 |
- -u PORTDIR \ |
849 |
- -u PORTDIR_OVERLAY \ |
850 |
- PYTHONPATH="${D%/}${PYTHON_SITEDIR}${PYTHONPATH:+:${PYTHONPATH}}" \ |
851 |
- "${PYTHON}" -m portage._compat_upgrade.default_locations || die |
852 |
- |
853 |
- # elog dir must exist to avoid logrotate error for bug #415911. |
854 |
- # This code runs in preinst in order to bypass the mapping of |
855 |
- # portage:portage to root:root which happens after src_install. |
856 |
- keepdir /var/log/portage/elog |
857 |
- # This is allowed to fail if the user/group are invalid for prefix users. |
858 |
- if chown portage:portage "${ED}"var/log/portage{,/elog} 2>/dev/null ; then |
859 |
- chmod g+s,ug+rwx "${ED}"var/log/portage{,/elog} |
860 |
- fi |
861 |
- |
862 |
- if has_version "<${CATEGORY}/${PN}-2.3.77"; then |
863 |
- elog "The emerge --autounmask option is now disabled by default, except for" |
864 |
- elog "portions of behavior which are controlled by the --autounmask-use and" |
865 |
- elog "--autounmask-license options. For backward compatibility, previous" |
866 |
- elog "behavior of --autounmask=y and --autounmask=n is entirely preserved." |
867 |
- elog "Users can get the old behavior simply by adding --autounmask to the" |
868 |
- elog "make.conf EMERGE_DEFAULT_OPTS variable. For the rationale for this" |
869 |
- elog "change, see https://bugs.gentoo.org/658648." |
870 |
- fi |
871 |
-} |