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