1 |
commit: 23a3048f68bf00f48a677433c787a21e87b83516 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 9 09:15:29 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 9 09:15:49 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23a3048f |
7 |
|
8 |
sys-apps/portage: add 3.0.29 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
sys-apps/portage/Manifest | 1 + |
13 |
sys-apps/portage/portage-3.0.29.ebuild | 267 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 268 insertions(+) |
15 |
|
16 |
diff --git a/sys-apps/portage/Manifest b/sys-apps/portage/Manifest |
17 |
index d4fec5b8daf2..265188aa45ba 100644 |
18 |
--- a/sys-apps/portage/Manifest |
19 |
+++ b/sys-apps/portage/Manifest |
20 |
@@ -7,3 +7,4 @@ DIST portage-3.0.20-bug-796959-c8a52e1-c3e4919.patch 10306 BLAKE2B 9ffcf396b983a |
21 |
DIST portage-3.0.20.tar.gz 1348818 BLAKE2B e8af0662d073110a921ef23865872b0440f5e549da92b828af3dc71010d0f49d98c429c52c90ed683407fcfee7bf17a504082166f2fcad9590d7435dd43dfb83 SHA512 69c1846dedf0cfa3f57b2748cf8e077ead05ab0185e785dfc6310439b8624cdd72449209a807f12f59a5175ba065f8cca1409d43bee6012900b2c8b1e7f9b7e9 |
22 |
DIST portage-3.0.28-setuptools-install-depr.patch 1191 BLAKE2B 1601b8943be27fbebea8bfc5e927e9ba6c5e18b6b76a89f8b2b8525595f4693fe014d0bfd936b513a5d03524aba64797ef1bb1e85b0965426a6f36b6c9e9e07c SHA512 bb06c3f705e4a3e6fcc170fe36aa522184c573ef6e05dea3678ff9158472722d1b68fc480b89f4656786e024be6c5f6f656c386aeda467744bf8e9acdb6ffef5 |
23 |
DIST portage-3.0.28.tar.bz2 1153994 BLAKE2B 8d9e3af04acd9bb5fdb3cff5b928abbf707db13f6c25afdac4399ea47adb67b2621ebb733927b4f9386e3f285fa7daac0423ae3fb0509a9df747b41c82865313 SHA512 148484b0384672116f2f2187eaddb56f646548324cd5f6c8e187a02bc965fb2bea6632214aed9b40c615acb89eb6124ab831ad85c59bac9a416b02a07506669b |
24 |
+DIST portage-3.0.29.tar.bz2 1156653 BLAKE2B 515b35ed8f3c318af63e2bec0accf4f346e5dc45cb3a38201822d550818ba64101d2d7f5c7837af6b3e7df247548c0630fde09b63916614ba3e8f8d596d156b1 SHA512 460ecda26fcfaa5d794889167853bd68ffde167d0423db1fdc3102d75ad06bad373749bd49654c5e3805eb237f1670cf91d0f180926d33a0993ba06a45786794 |
25 |
|
26 |
diff --git a/sys-apps/portage/portage-3.0.29.ebuild b/sys-apps/portage/portage-3.0.29.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..a6ed977e6163 |
29 |
--- /dev/null |
30 |
+++ b/sys-apps/portage/portage-3.0.29.ebuild |
31 |
@@ -0,0 +1,267 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+PYTHON_COMPAT=( pypy3 python3_{8..10} ) |
38 |
+PYTHON_REQ_USE='bzip2(+),threads(+)' |
39 |
+TMPFILES_OPTIONAL=1 |
40 |
+ |
41 |
+inherit distutils-r1 linux-info tmpfiles prefix |
42 |
+ |
43 |
+DESCRIPTION="The package management and distribution system for Gentoo" |
44 |
+HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage" |
45 |
+SRC_URI="https://gitweb.gentoo.org/proj/portage.git/snapshot/${P}.tar.bz2" |
46 |
+ |
47 |
+LICENSE="GPL-2" |
48 |
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86" |
49 |
+SLOT="0" |
50 |
+IUSE="apidoc build doc gentoo-dev +ipc +native-extensions +rsync-verify selinux test xattr" |
51 |
+RESTRICT="!test? ( test )" |
52 |
+ |
53 |
+BDEPEND=" |
54 |
+ app-arch/xz-utils |
55 |
+ test? ( dev-vcs/git )" |
56 |
+DEPEND="!build? ( $(python_gen_impl_dep 'ssl(+)') ) |
57 |
+ >=app-arch/tar-1.27 |
58 |
+ dev-lang/python-exec:2 |
59 |
+ >=sys-apps/sed-4.0.5 sys-devel/patch |
60 |
+ doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 ) |
61 |
+ apidoc? ( |
62 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
63 |
+ dev-python/sphinx-epytext[${PYTHON_USEDEP}] |
64 |
+ )" |
65 |
+# Require sandbox-2.2 for bug #288863. |
66 |
+# For whirlpool hash, require python[ssl] (bug #425046). |
67 |
+# For compgen, require bash[readline] (bug #445576). |
68 |
+# app-portage/gemato goes without PYTHON_USEDEP since we're calling |
69 |
+# the executable. |
70 |
+RDEPEND=" |
71 |
+ acct-user/portage |
72 |
+ app-arch/zstd |
73 |
+ >=app-arch/tar-1.27 |
74 |
+ dev-lang/python-exec:2 |
75 |
+ >=sys-apps/findutils-4.4 |
76 |
+ !build? ( |
77 |
+ >=sys-apps/sed-4.0.5 |
78 |
+ >=app-shells/bash-5.0:0[readline] |
79 |
+ >=app-admin/eselect-1.2 |
80 |
+ rsync-verify? ( |
81 |
+ >=app-portage/gemato-14.5[${PYTHON_USEDEP}] |
82 |
+ >=app-crypt/openpgp-keys-gentoo-release-20180706 |
83 |
+ >=app-crypt/gnupg-2.2.4-r2[ssl(-)] |
84 |
+ ) |
85 |
+ ) |
86 |
+ elibc_glibc? ( >=sys-apps/sandbox-2.2 ) |
87 |
+ elibc_musl? ( >=sys-apps/sandbox-2.2 ) |
88 |
+ elibc_uclibc? ( >=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 |
+ userland_GNU? ( >=sys-apps/coreutils-6.4 ) |
103 |
+ )" |
104 |
+# coreutils-6.4 rdep is for date format in emerge-webrsync #164532 |
105 |
+# NOTE: FEATURES=installsources requires debugedit and rsync |
106 |
+ |
107 |
+pkg_pretend() { |
108 |
+ local CONFIG_CHECK="~IPC_NS ~PID_NS ~NET_NS ~UTS_NS" |
109 |
+ |
110 |
+ check_extra_config |
111 |
+} |
112 |
+ |
113 |
+python_prepare_all() { |
114 |
+ local PATCHES=( |
115 |
+ ) |
116 |
+ |
117 |
+ distutils-r1_python_prepare_all |
118 |
+ |
119 |
+ sed -e "s:^VERSION = \"HEAD\"$:VERSION = \"${PV}\":" -i lib/portage/__init__.py || die |
120 |
+ |
121 |
+ if use gentoo-dev; then |
122 |
+ einfo "Disabling --dynamic-deps by default for gentoo-dev..." |
123 |
+ sed -e 's:\("--dynamic-deps", \)\("y"\):\1"n":' \ |
124 |
+ -i lib/_emerge/create_depgraph_params.py || \ |
125 |
+ die "failed to patch create_depgraph_params.py" |
126 |
+ |
127 |
+ einfo "Enabling additional FEATURES for gentoo-dev..." |
128 |
+ echo 'FEATURES="${FEATURES} ipc-sandbox network-sandbox strict-keepdir"' \ |
129 |
+ >> cnf/make.globals || die |
130 |
+ fi |
131 |
+ |
132 |
+ if use native-extensions; then |
133 |
+ printf "[build_ext]\nportage_ext_modules=true\n" >> \ |
134 |
+ setup.cfg || die |
135 |
+ fi |
136 |
+ |
137 |
+ if ! use ipc ; then |
138 |
+ einfo "Disabling ipc..." |
139 |
+ sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \ |
140 |
+ -i lib/_emerge/AbstractEbuildProcess.py || \ |
141 |
+ die "failed to patch AbstractEbuildProcess.py" |
142 |
+ fi |
143 |
+ |
144 |
+ if use xattr && use kernel_linux ; then |
145 |
+ einfo "Adding FEATURES=xattr to make.globals ..." |
146 |
+ echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \ |
147 |
+ || die "failed to append to make.globals" |
148 |
+ fi |
149 |
+ |
150 |
+ if use build || ! use rsync-verify; then |
151 |
+ sed -e '/^sync-rsync-verify-metamanifest/s|yes|no|' \ |
152 |
+ -e '/^sync-webrsync-verify-signature/s|yes|no|' \ |
153 |
+ -i cnf/repos.conf || die "sed failed" |
154 |
+ fi |
155 |
+ |
156 |
+ if [[ -n ${EPREFIX} ]] ; then |
157 |
+ einfo "Setting portage.const.EPREFIX ..." |
158 |
+ hprefixify -e "s|^(EPREFIX[[:space:]]*=[[:space:]]*\").*|\1${EPREFIX}\"|" \ |
159 |
+ -w "/_BINARY/" lib/portage/const.py |
160 |
+ |
161 |
+ einfo "Prefixing shebangs ..." |
162 |
+ > "${T}/shebangs" || die |
163 |
+ while read -r -d $'\0' ; do |
164 |
+ local shebang=$(head -n1 "$REPLY") |
165 |
+ if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then |
166 |
+ echo "${REPLY}" >> "${T}/shebangs" || die |
167 |
+ fi |
168 |
+ done < <(find . -type f -executable ! -name etc-update -print0) |
169 |
+ |
170 |
+ if [[ -s ${T}/shebangs ]]; then |
171 |
+ xargs sed -i -e "1s:^#!:#!${EPREFIX}:" < "${T}/shebangs" || die "sed failed" |
172 |
+ fi |
173 |
+ |
174 |
+ einfo "Adjusting make.globals, repos.conf and etc-update ..." |
175 |
+ hprefixify cnf/{make.globals,repos.conf} bin/etc-update |
176 |
+ |
177 |
+ if use prefix-guest ; then |
178 |
+ sed -e "s|^\(main-repo = \).*|\\1gentoo_prefix|" \ |
179 |
+ -e "s|^\\[gentoo\\]|[gentoo_prefix]|" \ |
180 |
+ -e "s|^\(sync-uri = \).*|\\1rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix|" \ |
181 |
+ -i cnf/repos.conf || die "sed failed" |
182 |
+ fi |
183 |
+ |
184 |
+ einfo "Adding FEATURES=force-prefix to make.globals ..." |
185 |
+ echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \ |
186 |
+ || die "failed to append to make.globals" |
187 |
+ fi |
188 |
+ |
189 |
+ cd "${S}/cnf" || die |
190 |
+ if [ -f "make.conf.example.${ARCH}".diff ]; then |
191 |
+ patch make.conf.example "make.conf.example.${ARCH}".diff || \ |
192 |
+ die "Failed to patch make.conf.example" |
193 |
+ else |
194 |
+ eerror "" |
195 |
+ eerror "Portage does not have an arch-specific configuration for this arch." |
196 |
+ eerror "Please notify the arch maintainer about this issue. Using generic." |
197 |
+ eerror "" |
198 |
+ fi |
199 |
+} |
200 |
+ |
201 |
+python_compile_all() { |
202 |
+ local targets=() |
203 |
+ use doc && targets+=( docbook ) |
204 |
+ use apidoc && targets+=( apidoc ) |
205 |
+ |
206 |
+ if [[ ${targets[@]} ]]; then |
207 |
+ esetup.py "${targets[@]}" |
208 |
+ fi |
209 |
+} |
210 |
+ |
211 |
+python_test() { |
212 |
+ esetup.py test |
213 |
+} |
214 |
+ |
215 |
+python_install() { |
216 |
+ # Install sbin scripts to bindir for python-exec linking |
217 |
+ # they will be relocated in pkg_preinst() |
218 |
+ distutils-r1_python_install \ |
219 |
+ --system-prefix="${EPREFIX}/usr" \ |
220 |
+ --bindir="$(python_get_scriptdir)" \ |
221 |
+ --docdir="${EPREFIX}/usr/share/doc/${PF}" \ |
222 |
+ --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
223 |
+ --portage-bindir="${EPREFIX}/usr/lib/portage/${EPYTHON}" \ |
224 |
+ --sbindir="$(python_get_scriptdir)" \ |
225 |
+ --sysconfdir="${EPREFIX}/etc" \ |
226 |
+ "${@}" |
227 |
+} |
228 |
+ |
229 |
+python_install_all() { |
230 |
+ distutils-r1_python_install_all |
231 |
+ |
232 |
+ local targets=() |
233 |
+ use doc && targets+=( |
234 |
+ install_docbook |
235 |
+ --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
236 |
+ ) |
237 |
+ use apidoc && targets+=( |
238 |
+ install_apidoc |
239 |
+ --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
240 |
+ ) |
241 |
+ |
242 |
+ # install docs |
243 |
+ if [[ ${targets[@]} ]]; then |
244 |
+ esetup.py "${targets[@]}" |
245 |
+ fi |
246 |
+ |
247 |
+ dotmpfiles "${FILESDIR}"/portage-ccache.conf |
248 |
+ |
249 |
+ # Due to distutils/python-exec limitations |
250 |
+ # these must be installed to /usr/bin. |
251 |
+ local sbin_relocations='archive-conf dispatch-conf emaint env-update etc-update fixpackages regenworld' |
252 |
+ einfo "Moving admin scripts to the correct directory" |
253 |
+ dodir /usr/sbin |
254 |
+ for target in ${sbin_relocations}; do |
255 |
+ einfo "Moving /usr/bin/${target} to /usr/sbin/${target}" |
256 |
+ mv "${ED}/usr/bin/${target}" "${ED}/usr/sbin/${target}" || die "sbin scripts move failed!" |
257 |
+ done |
258 |
+} |
259 |
+ |
260 |
+pkg_preinst() { |
261 |
+ python_setup |
262 |
+ local sitedir=$(python_get_sitedir) |
263 |
+ [[ -d ${D}${sitedir} ]] || die "${D}${sitedir}: No such directory" |
264 |
+ env -u DISTDIR \ |
265 |
+ -u PORTAGE_OVERRIDE_EPREFIX \ |
266 |
+ -u PORTAGE_REPOSITORIES \ |
267 |
+ -u PORTDIR \ |
268 |
+ -u PORTDIR_OVERLAY \ |
269 |
+ PYTHONPATH="${D}${sitedir}${PYTHONPATH:+:${PYTHONPATH}}" \ |
270 |
+ "${PYTHON}" -m portage._compat_upgrade.default_locations || die |
271 |
+ |
272 |
+ env -u BINPKG_COMPRESS -u PORTAGE_REPOSITORIES \ |
273 |
+ PYTHONPATH="${D}${sitedir}${PYTHONPATH:+:${PYTHONPATH}}" \ |
274 |
+ "${PYTHON}" -m portage._compat_upgrade.binpkg_compression || die |
275 |
+ |
276 |
+ env -u FEATURES -u PORTAGE_REPOSITORIES \ |
277 |
+ PYTHONPATH="${D}${sitedir}${PYTHONPATH:+:${PYTHONPATH}}" \ |
278 |
+ "${PYTHON}" -m portage._compat_upgrade.binpkg_multi_instance || die |
279 |
+ |
280 |
+ # elog dir must exist to avoid logrotate error for bug #415911. |
281 |
+ # This code runs in preinst in order to bypass the mapping of |
282 |
+ # portage:portage to root:root which happens after src_install. |
283 |
+ keepdir /var/log/portage/elog |
284 |
+ # This is allowed to fail if the user/group are invalid for prefix users. |
285 |
+ if chown portage:portage "${ED}"/var/log/portage{,/elog} 2>/dev/null ; then |
286 |
+ chmod g+s,ug+rwx "${ED}"/var/log/portage{,/elog} |
287 |
+ fi |
288 |
+ |
289 |
+ if has_version "<${CATEGORY}/${PN}-2.3.77"; then |
290 |
+ elog "The emerge --autounmask option is now disabled by default, except for" |
291 |
+ elog "portions of behavior which are controlled by the --autounmask-use and" |
292 |
+ elog "--autounmask-license options. For backward compatibility, previous" |
293 |
+ elog "behavior of --autounmask=y and --autounmask=n is entirely preserved." |
294 |
+ elog "Users can get the old behavior simply by adding --autounmask to the" |
295 |
+ elog "make.conf EMERGE_DEFAULT_OPTS variable. For the rationale for this" |
296 |
+ elog "change, see https://bugs.gentoo.org/658648." |
297 |
+ fi |
298 |
+} |