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