1 |
commit: a931a268d96910397d3bfcf761b43b88325a853c |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 10 07:06:13 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 10 07:06:45 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=a931a268 |
7 |
|
8 |
sys-apps/portage: clena up EAPI 5 version (2.3.100-r1) |
9 |
|
10 |
Broken by EAPI 5 support removal from python-utils-r1. |
11 |
|
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
sys-apps/portage/Manifest | 1 - |
15 |
sys-apps/portage/portage-2.3.100-r1.ebuild | 296 ----------------------------- |
16 |
2 files changed, 297 deletions(-) |
17 |
|
18 |
diff --git a/sys-apps/portage/Manifest b/sys-apps/portage/Manifest |
19 |
index 3510a9dbf2..2bcf934896 100644 |
20 |
--- a/sys-apps/portage/Manifest |
21 |
+++ b/sys-apps/portage/Manifest |
22 |
@@ -1,4 +1,3 @@ |
23 |
-DIST prefix-portage-2.3.100.tar.bz2 1331695 BLAKE2B 165f113041da8ad1150cc59d25a420effaa163a7694ba8ff36ce1e5fa75669b8fde31ad74594b28b987f9ec5685b9a31aa5228419afd476726ba17ec8f7575db SHA512 8163bfd4e83e48d560dd07150dd468d3b4a63d1507d23226107479bd5de9da3cd94308851b64c63851572288877cb2774f986f8c1a5163521a341ce4c72fbf0c |
24 |
DIST prefix-portage-3.0.12.0.2.tar.bz2 1321851 BLAKE2B 80e8596531800d690083bddc8363f74d295839d70c6f86da0b5c385260836e593136e5baa5bd07d745e8eb82c894d0c97441aa2a0eb28bab8f1b83876a9aa3e5 SHA512 7dc1167058eb9aec756b59479a055c85037f4a7924a7a2dccbaf405a5d8464e04aef8796b02c8b7402e1f3446676d4d94789a170ef6b7e597c09a9600c2d2dae |
25 |
DIST prefix-portage-3.0.12.tar.bz2 1309809 BLAKE2B 04b037b7d2d5077845f7d37d8dcedc03758191804d2dd44af4d87b5bbd94c8108ea673f9e06fce45342a5f8c26890bf2aa2dd482103fecb774cb14e314351d4c SHA512 8fc179f571c6094b12fabca5e371e7d91d86d2799d282bc4ce2acf096950b18462a0c8dc766e7f4dc29ebba5f188c66375573f8539f8d1d0b1edf385a1d4078e |
26 |
DIST prefix-portage-3.0.14.tar.bz2 1314909 BLAKE2B 5e5e0390466e5073795fece5d75800e7181f691d9fb81affdf5eb291b72a917a51976a83b9df5db6f5069a567c4c96e94e4ddb485cbff8b6827d281770006f2a SHA512 a41dee35ae3e5eb1c77801640d6cedd75a706993a38d3260348ad13d570c128101443bc761ef6f207a305c0d03aa45fb8a88c29237e116c426382f2e2fd265e6 |
27 |
|
28 |
diff --git a/sys-apps/portage/portage-2.3.100-r1.ebuild b/sys-apps/portage/portage-2.3.100-r1.ebuild |
29 |
deleted file mode 100644 |
30 |
index 8677cb5462..0000000000 |
31 |
--- a/sys-apps/portage/portage-2.3.100-r1.ebuild |
32 |
+++ /dev/null |
33 |
@@ -1,296 +0,0 @@ |
34 |
-# Copyright 1999-2021 Gentoo Authors |
35 |
-# Distributed under the terms of the GNU General Public License v2 |
36 |
- |
37 |
-EAPI=5 |
38 |
- |
39 |
-DISTUTILS_USE_SETUPTOOLS=no |
40 |
-PYTHON_COMPAT=( pypy3 python3_{7..9} ) |
41 |
-PYTHON_REQ_USE='bzip2(+),threads(+)' |
42 |
- |
43 |
-inherit distutils-r1 epatch linux-info prefix |
44 |
- |
45 |
-DESCRIPTION="Portage package manager used in Gentoo Prefix" |
46 |
-HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage" |
47 |
- |
48 |
-LICENSE="GPL-2" |
49 |
-KEYWORDS="~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
50 |
-SLOT="0" |
51 |
-IUSE="apidoc build doc gentoo-dev +ipc +native-extensions rsync-verify selinux xattr" |
52 |
- |
53 |
-DEPEND="!build? ( $(python_gen_impl_dep 'ssl(+)') ) |
54 |
- >=app-arch/tar-1.27 |
55 |
- dev-lang/python-exec:2 |
56 |
- >=sys-apps/sed-4.0.5 sys-devel/patch |
57 |
- doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 ) |
58 |
- apidoc? ( |
59 |
- dev-python/sphinx |
60 |
- dev-python/sphinx-epytext |
61 |
- )" |
62 |
-# Require sandbox-2.2 for bug #288863. |
63 |
-# For whirlpool hash, require python[ssl] (bug #425046). |
64 |
-# For compgen, require bash[readline] (bug #445576). |
65 |
-# app-portage/gemato goes without PYTHON_USEDEP since we're calling |
66 |
-# the executable. |
67 |
-RDEPEND=" |
68 |
- app-arch/zstd |
69 |
- >=app-arch/tar-1.27 |
70 |
- dev-lang/python-exec:2 |
71 |
- !build? ( |
72 |
- >=sys-apps/sed-4.0.5 |
73 |
- app-shells/bash:0[readline] |
74 |
- >=app-admin/eselect-1.2 |
75 |
- rsync-verify? ( |
76 |
- >=app-portage/gemato-14[${PYTHON_USEDEP}] |
77 |
- >=app-crypt/openpgp-keys-gentoo-release-20180706 |
78 |
- >=app-crypt/gnupg-2.2.4-r2[ssl(-)] |
79 |
- ) |
80 |
- ) |
81 |
- elibc_FreeBSD? ( !prefix? ( sys-freebsd/freebsd-bin ) ) |
82 |
- elibc_glibc? ( !prefix? ( >=sys-apps/sandbox-2.2 ) ) |
83 |
- elibc_uclibc? ( !prefix? ( >=sys-apps/sandbox-2.2 ) ) |
84 |
- kernel_linux? ( >=app-misc/pax-utils-0.1.17 ) |
85 |
- kernel_SunOS? ( >=app-misc/pax-utils-0.1.17 ) |
86 |
- kernel_FreeBSD? ( >=app-misc/pax-utils-0.1.17 ) |
87 |
- kernel_Darwin? ( >=app-misc/pax-utils-0.1.18 ) |
88 |
- selinux? ( >=sys-libs/libselinux-2.0.94[python,${PYTHON_USEDEP}] ) |
89 |
- xattr? ( kernel_linux? ( |
90 |
- >=sys-apps/install-xattr-0.3 |
91 |
- ) ) |
92 |
- !<app-admin/logrotate-3.8.0 |
93 |
- !<app-portage/gentoolkit-0.4.6 |
94 |
- !<app-portage/repoman-2.3.10" |
95 |
-PDEPEND=" |
96 |
- !build? ( |
97 |
- >=net-misc/rsync-2.6.4 |
98 |
- userland_GNU? ( >=sys-apps/coreutils-6.4 ) |
99 |
- )" |
100 |
-# coreutils-6.4 rdep is for date format in emerge-webrsync #164532 |
101 |
-# NOTE: FEATURES=installsources requires debugedit and rsync |
102 |
- |
103 |
-SRC_ARCHIVES="https://dev.gentoo.org/~zmedico/portage/archives https://dev.gentoo.org/~grobian/distfiles" |
104 |
- |
105 |
-prefix_src_archives() { |
106 |
- local x y |
107 |
- for x in ${@}; do |
108 |
- for y in ${SRC_ARCHIVES}; do |
109 |
- echo ${y}/${x} |
110 |
- done |
111 |
- done |
112 |
-} |
113 |
- |
114 |
-TARBALL_PV=${PV} |
115 |
-SRC_URI="mirror://gentoo/prefix-${PN}-${TARBALL_PV}.tar.bz2 |
116 |
- $(prefix_src_archives prefix-${PN}-${TARBALL_PV}.tar.bz2)" |
117 |
- |
118 |
-S="${WORKDIR}"/prefix-${PN}-${TARBALL_PV} |
119 |
- |
120 |
-pkg_pretend() { |
121 |
- local CONFIG_CHECK="~IPC_NS ~PID_NS ~NET_NS ~UTS_NS" |
122 |
- |
123 |
- check_extra_config |
124 |
-} |
125 |
- |
126 |
-python_prepare_all() { |
127 |
- distutils-r1_python_prepare_all |
128 |
- |
129 |
- epatch "${FILESDIR}"/${PN}-2.3.62-prefix-stack.patch # 658572 |
130 |
- epatch "${FILESDIR}"/${PN}-2.3.45-ebuildshell.patch # 155161 |
131 |
- if use gentoo-dev; then |
132 |
- einfo "Disabling --dynamic-deps by default for gentoo-dev..." |
133 |
- sed -e 's:\("--dynamic-deps", \)\("y"\):\1"n":' \ |
134 |
- -i lib/_emerge/create_depgraph_params.py || \ |
135 |
- die "failed to patch create_depgraph_params.py" |
136 |
- |
137 |
- einfo "Enabling additional FEATURES for gentoo-dev..." |
138 |
- echo 'FEATURES="${FEATURES} strict-keepdir"' \ |
139 |
- >> cnf/make.globals || die |
140 |
- fi |
141 |
- |
142 |
- if use native-extensions; then |
143 |
- printf "[build_ext]\nportage-ext-modules=true\n" >> \ |
144 |
- setup.cfg || die |
145 |
- fi |
146 |
- |
147 |
- if ! use ipc ; then |
148 |
- einfo "Disabling ipc..." |
149 |
- sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \ |
150 |
- -i lib/_emerge/AbstractEbuildProcess.py || \ |
151 |
- die "failed to patch AbstractEbuildProcess.py" |
152 |
- fi |
153 |
- |
154 |
- if use xattr && use kernel_linux ; then |
155 |
- einfo "Adding FEATURES=xattr to make.globals ..." |
156 |
- echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \ |
157 |
- || die "failed to append to make.globals" |
158 |
- fi |
159 |
- |
160 |
- if use build || ! use rsync-verify; then |
161 |
- sed -e '/^sync-rsync-verify-metamanifest/s|yes|no|' \ |
162 |
- -e '/^sync-webrsync-verify-signature/s|yes|no|' \ |
163 |
- -i cnf/repos.conf || die "sed failed" |
164 |
- fi |
165 |
- |
166 |
- if [[ -n ${EPREFIX} ]] ; then |
167 |
- # PREFIX LOCAL: only hack const_autotool |
168 |
- local extrapath="/usr/sbin:/usr/bin:/sbin:/bin" |
169 |
- # ok, we can't rely on PORTAGE_ROOT_USER being there yet, as people |
170 |
- # tend not to update that often, as long as we are a separate ebuild |
171 |
- # we can assume when unset, it's time for some older trick |
172 |
- if [[ -z ${PORTAGE_ROOT_USER} ]] ; then |
173 |
- PORTAGE_ROOT_USER=$(python -c 'from portage.const import rootuser; print rootuser') |
174 |
- fi |
175 |
- # We need to probe for bash in the Prefix, because it may not |
176 |
- # exist, in which case we fall back to the currently in use |
177 |
- # bash. This logic is necessary in particular during bootstrap, |
178 |
- # where we pull ourselves out of a temporary place with tools |
179 |
- local bash="${EPREFIX}/bin/bash" |
180 |
- [[ ! -x ${bash} ]] && bash=${BASH} |
181 |
- |
182 |
- einfo "Adjusting sources for ${EPREFIX}" |
183 |
- find . -type f -exec \ |
184 |
- sed -e "s|@PORTAGE_EPREFIX@|${EPREFIX}|" \ |
185 |
- -e "s|@PORTAGE_MV@|$(type -P mv)|" \ |
186 |
- -e "s|@PORTAGE_BASH@|${bash}|" \ |
187 |
- -e "s|@PREFIX_PORTAGE_PYTHON@|$(type -P python)|" \ |
188 |
- -e "s|@EXTRA_PATH@|${extrapath}|" \ |
189 |
- -e "s|@portagegroup@|${PORTAGE_GROUP:-portage}|" \ |
190 |
- -e "s|@portageuser@|${PORTAGE_USER:-portage}|" \ |
191 |
- -e "s|@rootuser@|${PORTAGE_ROOT_USER:-root}|" \ |
192 |
- -e "s|@rootuid@|$(id -u ${PORTAGE_ROOT_USER:-root})|" \ |
193 |
- -e "s|@rootgid@|$(id -g ${PORTAGE_ROOT_USER:-root})|" \ |
194 |
- -e "s|@sysconfdir@|${EPREFIX}/etc|" \ |
195 |
- -i '{}' + || \ |
196 |
- die "Failed to patch sources" |
197 |
- # We don't need the below, since setup.py deals with this (and |
198 |
- # more) so we don't have to make this correct |
199 |
- # -e "s|@PORTAGE_BASE@|${EPREFIX}/usr/lib/portage/${EPYTHON}|" \ |
200 |
- |
201 |
- # remove Makefiles, or else they will get installed |
202 |
- find . -name "Makefile.*" -delete |
203 |
- |
204 |
- einfo "Prefixing shebangs ..." |
205 |
- while read -r -d $'\0' ; do |
206 |
- local shebang=$(head -n1 "$REPLY") |
207 |
- if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then |
208 |
- sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "$REPLY" || \ |
209 |
- die "sed failed" |
210 |
- fi |
211 |
- done < <(find . -type f ! -name etc-update -print0) |
212 |
- |
213 |
- einfo "Setting gentoo_prefix as reponame for emerge-webrsync" |
214 |
- sed -i -e 's/repo_name=gentoo/repo_name=gentoo_prefix/' \ |
215 |
- bin/emerge-webrsync || die |
216 |
- |
217 |
- einfo "Making absent gemato non-fatal" |
218 |
- sed -i -e '/exitcode = 127/d' \ |
219 |
- lib/portage/sync/modules/rsync/rsync.py || die |
220 |
- # END PREFIX LOCAL |
221 |
- fi |
222 |
- |
223 |
- # PREFIX LOCAL: make.conf is written by bootstrap-prefix.sh |
224 |
- if use !prefix ; then |
225 |
- cd "${S}/cnf" || die |
226 |
- if [ -f "make.conf.example.${ARCH}".diff ]; then |
227 |
- patch make.conf.example "make.conf.example.${ARCH}".diff || \ |
228 |
- die "Failed to patch make.conf.example" |
229 |
- else |
230 |
- eerror "" |
231 |
- eerror "Portage does not have an arch-specific configuration for this arch." |
232 |
- eerror "Please notify the arch maintainer about this issue. Using generic." |
233 |
- eerror "" |
234 |
- fi |
235 |
- fi |
236 |
-} |
237 |
- |
238 |
-python_compile_all() { |
239 |
- local targets=() |
240 |
- use doc && targets+=( docbook ) |
241 |
- use apidoc && targets+=( apidoc ) |
242 |
- |
243 |
- if [[ ${targets[@]} ]]; then |
244 |
- esetup.py "${targets[@]}" |
245 |
- fi |
246 |
-} |
247 |
- |
248 |
-python_test() { |
249 |
- esetup.py test |
250 |
-} |
251 |
- |
252 |
-python_install() { |
253 |
- # Install sbin scripts to bindir for python-exec linking |
254 |
- # they will be relocated in pkg_preinst() |
255 |
- distutils-r1_python_install \ |
256 |
- --system-prefix="${EPREFIX}/usr" \ |
257 |
- --bindir="$(python_get_scriptdir)" \ |
258 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}" \ |
259 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
260 |
- --portage-bindir="${EPREFIX}/usr/lib/portage/${EPYTHON}" \ |
261 |
- --sbindir="$(python_get_scriptdir)" \ |
262 |
- --sysconfdir="${EPREFIX}/etc" \ |
263 |
- "${@}" |
264 |
-} |
265 |
- |
266 |
-python_install_all() { |
267 |
- distutils-r1_python_install_all |
268 |
- |
269 |
- local targets=() |
270 |
- use doc && targets+=( |
271 |
- install_docbook |
272 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
273 |
- ) |
274 |
- use apidoc && targets+=( |
275 |
- install_apidoc |
276 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
277 |
- ) |
278 |
- |
279 |
- # install docs |
280 |
- if [[ ${targets[@]} ]]; then |
281 |
- esetup.py "${targets[@]}" |
282 |
- fi |
283 |
- |
284 |
- # Due to distutils/python-exec limitations |
285 |
- # these must be installed to /usr/bin. |
286 |
- local sbin_relocations='archive-conf dispatch-conf emaint env-update etc-update fixpackages regenworld' |
287 |
- einfo "Moving admin scripts to the correct directory" |
288 |
- dodir /usr/sbin |
289 |
- for target in ${sbin_relocations}; do |
290 |
- einfo "Moving /usr/bin/${target} to /usr/sbin/${target}" |
291 |
- mv "${ED}usr/bin/${target}" "${ED}usr/sbin/${target}" || die "sbin scripts move failed!" |
292 |
- done |
293 |
-} |
294 |
- |
295 |
-pkg_preinst() { |
296 |
- python_setup |
297 |
- local sitedir=$(python_get_sitedir) |
298 |
- [[ -d ${D%/}${sitedir} ]] || die "${D%/}${sitedir}: No such directory" |
299 |
- env -u DISTDIR \ |
300 |
- -u PORTAGE_OVERRIDE_EPREFIX \ |
301 |
- -u PORTAGE_REPOSITORIES \ |
302 |
- -u PORTDIR \ |
303 |
- -u PORTDIR_OVERLAY \ |
304 |
- PYTHONPATH="${D%/}${sitedir}${PYTHONPATH:+:${PYTHONPATH}}" \ |
305 |
- "${PYTHON}" -m portage._compat_upgrade.default_locations || die |
306 |
- |
307 |
- env -u BINPKG_COMPRESS \ |
308 |
- PYTHONPATH="${D%/}${sitedir}${PYTHONPATH:+:${PYTHONPATH}}" \ |
309 |
- "${PYTHON}" -m portage._compat_upgrade.binpkg_compression || die |
310 |
- |
311 |
- # elog dir must exist to avoid logrotate error for bug #415911. |
312 |
- # This code runs in preinst in order to bypass the mapping of |
313 |
- # portage:portage to root:root which happens after src_install. |
314 |
- keepdir /var/log/portage/elog |
315 |
- # This is allowed to fail if the user/group are invalid for prefix users. |
316 |
- if chown ${PORTAGE_USER}:${PORTAGE_GROUP} "${ED}"var/log/portage{,/elog} 2>/dev/null ; then |
317 |
- chmod g+s,ug+rwx "${ED}"var/log/portage{,/elog} |
318 |
- fi |
319 |
- |
320 |
- if has_version "<${CATEGORY}/${PN}-2.3.77"; then |
321 |
- elog "The emerge --autounmask option is now disabled by default, except for" |
322 |
- elog "portions of behavior which are controlled by the --autounmask-use and" |
323 |
- elog "--autounmask-license options. For backward compatibility, previous" |
324 |
- elog "behavior of --autounmask=y and --autounmask=n is entirely preserved." |
325 |
- elog "Users can get the old behavior simply by adding --autounmask to the" |
326 |
- elog "make.conf EMERGE_DEFAULT_OPTS variable. For the rationale for this" |
327 |
- elog "change, see https://bugs.gentoo.org/658648." |
328 |
- fi |
329 |
-} |