1 |
commit: 4f78a86ac5ba0150aa679c7feaf64a5ad67316ef |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 1 22:03:22 2020 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 1 22:13:24 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f78a86a |
7 |
|
8 |
sys-apps/portage: Bump to version 2.3.87 |
9 |
|
10 |
#691798 emerge: treat GLEP 81 acct-* categories like virtual |
11 |
#693790 depclean sometimes wants to remove latest vala slot |
12 |
#707108 depclean: do not eliminate upgrades |
13 |
|
14 |
Bug: https://bugs.gentoo.org/706142 |
15 |
Bug: https://bugs.gentoo.org/693790 |
16 |
Closes: https://bugs.gentoo.org/707108 |
17 |
Package-Manager: Portage-2.3.87, Repoman-2.3.20 |
18 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
19 |
|
20 |
sys-apps/portage/Manifest | 1 + |
21 |
sys-apps/portage/portage-2.3.87.ebuild | 260 +++++++++++++++++++++++++++++++++ |
22 |
2 files changed, 261 insertions(+) |
23 |
|
24 |
diff --git a/sys-apps/portage/Manifest b/sys-apps/portage/Manifest |
25 |
index ed464d569b0..0e61327fe61 100644 |
26 |
--- a/sys-apps/portage/Manifest |
27 |
+++ b/sys-apps/portage/Manifest |
28 |
@@ -4,3 +4,4 @@ DIST portage-2.3.84.tar.bz2 1043069 BLAKE2B 85ccc209011ef5206e0aaf768ec0276449f5 |
29 |
DIST portage-2.3.85-bug-706186.patch 2603 BLAKE2B 6a7d236594a01514dab4fcffaec16542f1334ba8c4f14ab2e01ebed2fb1bfbdf291863132a6726cd7968bd713894970418384307aac003208dd73a50d39a67a6 SHA512 00bd251d3df04f88dc676bdda933a12534bd2d6399b588014a5bc13bf73d5b321e0635ba31083df5c47675e98644e55a1f1fec2f5a7aad86cb6c5375fc642fa7 |
30 |
DIST portage-2.3.85.tar.bz2 1046025 BLAKE2B 721999b1200b69d2fd3fdd8f4690859f44e6796bdbef1636a80f09ff7625cdff437d183b4e3bdb7d4455b4da9f067adf199106c6b7bdf9b0d5d5ae7a30c7ce03 SHA512 f42f6d87df0bde5e143b7c8b901556c325b9f8250131db400543b54040eb931f9b541ad8211b35942c4bbd99fcfdea6ead93459e57b03173f5bcb37e64a85304 |
31 |
DIST portage-2.3.86.tar.bz2 1046806 BLAKE2B 6aadfcf17eacc8f7b82645a82fce96b7d90e93d797704c5b04fe437cbe587440dea8f8e39847c2c95eacf383e4525d4f015ee26b41694c156f907bd22d6663fb SHA512 fad0e89fd2c831ebd8cfd1fe080433c4696f408008f463a151e6fd4f3a2ab2a81249dd0db76f28c7d2cdf0e14e5163c3898c7ca22e7f0edb2e882e1ab7bda95e |
32 |
+DIST portage-2.3.87.tar.bz2 1046448 BLAKE2B bbcb31a362d89bc81cdedb03be431792dab53d983d35f10853e6a68c2e2fb3da8ddd237305e78ab5946c8199f4dd7a3a41f023912a50abe9fa96bcf7ac35af75 SHA512 47a4d4901c2ecc9df8e38fa804efeb8583928a77e45a9b19dd8edd7e1323911762c357ad0bc1a182d8389225282660f4ef6e442e8addc087e404d561466c3b86 |
33 |
|
34 |
diff --git a/sys-apps/portage/portage-2.3.87.ebuild b/sys-apps/portage/portage-2.3.87.ebuild |
35 |
new file mode 100644 |
36 |
index 00000000000..566fecc2aa1 |
37 |
--- /dev/null |
38 |
+++ b/sys-apps/portage/portage-2.3.87.ebuild |
39 |
@@ -0,0 +1,260 @@ |
40 |
+# Copyright 1999-2020 Gentoo Authors |
41 |
+# Distributed under the terms of the GNU General Public License v2 |
42 |
+ |
43 |
+EAPI=5 |
44 |
+ |
45 |
+DISTUTILS_USE_SETUPTOOLS=no |
46 |
+PYTHON_COMPAT=( |
47 |
+ pypy3 |
48 |
+ python3_6 python3_7 python3_8 |
49 |
+ python2_7 |
50 |
+) |
51 |
+PYTHON_REQ_USE='bzip2(+),threads(+)' |
52 |
+ |
53 |
+inherit distutils-r1 linux-info systemd prefix |
54 |
+ |
55 |
+DESCRIPTION="Portage is the package management and distribution system for Gentoo" |
56 |
+HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage" |
57 |
+ |
58 |
+LICENSE="GPL-2" |
59 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86" |
60 |
+SLOT="0" |
61 |
+IUSE="build doc gentoo-dev +ipc +native-extensions +rsync-verify selinux xattr" |
62 |
+ |
63 |
+DEPEND="!build? ( $(python_gen_impl_dep 'ssl(+)') ) |
64 |
+ >=app-arch/tar-1.27 |
65 |
+ dev-lang/python-exec:2 |
66 |
+ >=sys-apps/sed-4.0.5 sys-devel/patch |
67 |
+ doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 )" |
68 |
+# Require sandbox-2.2 for bug #288863. |
69 |
+# For xattr, we can spawn getfattr and setfattr from sys-apps/attr, but that's |
70 |
+# quite slow, so it's not considered in the dependencies as an alternative to |
71 |
+# to python-3.3 / pyxattr. Also, xattr support is only tested with Linux, so |
72 |
+# for now, don't pull in xattr deps for other kernels. |
73 |
+# For whirlpool hash, require python[ssl] (bug #425046). |
74 |
+# For compgen, require bash[readline] (bug #445576). |
75 |
+# app-portage/gemato goes without PYTHON_USEDEP since we're calling |
76 |
+# the executable. |
77 |
+RDEPEND=" |
78 |
+ >=app-arch/tar-1.27 |
79 |
+ dev-lang/python-exec:2 |
80 |
+ !build? ( |
81 |
+ >=sys-apps/sed-4.0.5 |
82 |
+ app-shells/bash:0[readline] |
83 |
+ >=app-admin/eselect-1.2 |
84 |
+ $(python_gen_cond_dep 'dev-python/pyblake2[${PYTHON_USEDEP}]' \ |
85 |
+ python{2_7,3_5} pypy) |
86 |
+ rsync-verify? ( |
87 |
+ >=app-portage/gemato-14[${PYTHON_USEDEP}] |
88 |
+ >=app-crypt/openpgp-keys-gentoo-release-20180706 |
89 |
+ >=app-crypt/gnupg-2.2.4-r2[ssl(-)] |
90 |
+ ) |
91 |
+ ) |
92 |
+ elibc_FreeBSD? ( sys-freebsd/freebsd-bin ) |
93 |
+ elibc_glibc? ( >=sys-apps/sandbox-2.2 ) |
94 |
+ elibc_musl? ( >=sys-apps/sandbox-2.2 ) |
95 |
+ elibc_uclibc? ( >=sys-apps/sandbox-2.2 ) |
96 |
+ kernel_linux? ( sys-apps/util-linux ) |
97 |
+ >=app-misc/pax-utils-0.1.17 |
98 |
+ selinux? ( >=sys-libs/libselinux-2.0.94[python,${PYTHON_USEDEP}] ) |
99 |
+ xattr? ( kernel_linux? ( |
100 |
+ >=sys-apps/install-xattr-0.3 |
101 |
+ $(python_gen_cond_dep 'dev-python/pyxattr[${PYTHON_USEDEP}]' \ |
102 |
+ python2_7 pypy) |
103 |
+ ) ) |
104 |
+ !<app-admin/logrotate-3.8.0 |
105 |
+ !<app-portage/gentoolkit-0.4.6 |
106 |
+ !<app-portage/repoman-2.3.10" |
107 |
+PDEPEND=" |
108 |
+ !build? ( |
109 |
+ >=net-misc/rsync-2.6.4 |
110 |
+ userland_GNU? ( >=sys-apps/coreutils-6.4 ) |
111 |
+ )" |
112 |
+# coreutils-6.4 rdep is for date format in emerge-webrsync #164532 |
113 |
+# NOTE: FEATURES=installsources requires debugedit and rsync |
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 |
+python_prepare_all() { |
137 |
+ distutils-r1_python_prepare_all |
138 |
+ |
139 |
+ if use gentoo-dev; then |
140 |
+ einfo "Disabling --dynamic-deps by default for gentoo-dev..." |
141 |
+ sed -e 's:\("--dynamic-deps", \)\("y"\):\1"n":' \ |
142 |
+ -i lib/_emerge/create_depgraph_params.py || \ |
143 |
+ die "failed to patch create_depgraph_params.py" |
144 |
+ |
145 |
+ einfo "Enabling additional FEATURES for gentoo-dev..." |
146 |
+ echo 'FEATURES="${FEATURES} strict-keepdir"' \ |
147 |
+ >> cnf/make.globals || die |
148 |
+ fi |
149 |
+ |
150 |
+ if use native-extensions; then |
151 |
+ printf "[build_ext]\nportage-ext-modules=true\n" >> \ |
152 |
+ setup.cfg || die |
153 |
+ fi |
154 |
+ |
155 |
+ if ! use ipc ; then |
156 |
+ einfo "Disabling ipc..." |
157 |
+ sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \ |
158 |
+ -i lib/_emerge/AbstractEbuildProcess.py || \ |
159 |
+ die "failed to patch AbstractEbuildProcess.py" |
160 |
+ fi |
161 |
+ |
162 |
+ if use xattr && use kernel_linux ; then |
163 |
+ einfo "Adding FEATURES=xattr to make.globals ..." |
164 |
+ echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \ |
165 |
+ || die "failed to append to make.globals" |
166 |
+ fi |
167 |
+ |
168 |
+ if use build || ! use rsync-verify; then |
169 |
+ sed -e '/^sync-rsync-verify-metamanifest/s|yes|no|' \ |
170 |
+ -e '/^sync-webrsync-verify-signature/s|yes|no|' \ |
171 |
+ -i cnf/repos.conf || die "sed failed" |
172 |
+ fi |
173 |
+ |
174 |
+ if [[ -n ${EPREFIX} ]] ; then |
175 |
+ einfo "Setting portage.const.EPREFIX ..." |
176 |
+ hprefixify -e "s|^(EPREFIX[[:space:]]*=[[:space:]]*\").*|\1${EPREFIX}\"|" \ |
177 |
+ -w "/_BINARY/" lib/portage/const.py |
178 |
+ |
179 |
+ einfo "Prefixing shebangs ..." |
180 |
+ while read -r -d $'\0' ; do |
181 |
+ local shebang=$(head -n1 "$REPLY") |
182 |
+ if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then |
183 |
+ sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "$REPLY" || \ |
184 |
+ die "sed failed" |
185 |
+ fi |
186 |
+ done < <(find . -type f ! -name etc-update -print0) |
187 |
+ |
188 |
+ einfo "Adjusting make.globals, repos.conf and etc-update ..." |
189 |
+ hprefixify cnf/{make.globals,repos.conf} bin/etc-update |
190 |
+ |
191 |
+ if use prefix-guest ; then |
192 |
+ sed -e "s|^\(main-repo = \).*|\\1gentoo_prefix|" \ |
193 |
+ -e "s|^\\[gentoo\\]|[gentoo_prefix]|" \ |
194 |
+ -e "s|^\(sync-uri = \).*|\\1rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix|" \ |
195 |
+ -i cnf/repos.conf || die "sed failed" |
196 |
+ fi |
197 |
+ |
198 |
+ einfo "Adding FEATURES=force-prefix to make.globals ..." |
199 |
+ echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \ |
200 |
+ || die "failed to append to make.globals" |
201 |
+ fi |
202 |
+ |
203 |
+ cd "${S}/cnf" || die |
204 |
+ if [ -f "make.conf.example.${ARCH}".diff ]; then |
205 |
+ patch make.conf.example "make.conf.example.${ARCH}".diff || \ |
206 |
+ die "Failed to patch make.conf.example" |
207 |
+ else |
208 |
+ eerror "" |
209 |
+ eerror "Portage does not have an arch-specific configuration for this arch." |
210 |
+ eerror "Please notify the arch maintainer about this issue. Using generic." |
211 |
+ eerror "" |
212 |
+ fi |
213 |
+} |
214 |
+ |
215 |
+python_compile_all() { |
216 |
+ local targets=() |
217 |
+ use doc && targets+=( docbook ) |
218 |
+ |
219 |
+ if [[ ${targets[@]} ]]; then |
220 |
+ esetup.py "${targets[@]}" |
221 |
+ fi |
222 |
+} |
223 |
+ |
224 |
+python_test() { |
225 |
+ esetup.py test |
226 |
+} |
227 |
+ |
228 |
+python_install() { |
229 |
+ # Install sbin scripts to bindir for python-exec linking |
230 |
+ # they will be relocated in pkg_preinst() |
231 |
+ distutils-r1_python_install \ |
232 |
+ --system-prefix="${EPREFIX}/usr" \ |
233 |
+ --bindir="$(python_get_scriptdir)" \ |
234 |
+ --docdir="${EPREFIX}/usr/share/doc/${PF}" \ |
235 |
+ --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
236 |
+ --portage-bindir="${EPREFIX}/usr/lib/portage/${EPYTHON}" \ |
237 |
+ --sbindir="$(python_get_scriptdir)" \ |
238 |
+ --sysconfdir="${EPREFIX}/etc" \ |
239 |
+ "${@}" |
240 |
+} |
241 |
+ |
242 |
+python_install_all() { |
243 |
+ distutils-r1_python_install_all |
244 |
+ |
245 |
+ local targets=() |
246 |
+ use doc && targets+=( |
247 |
+ install_docbook |
248 |
+ --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
249 |
+ ) |
250 |
+ |
251 |
+ # install docs |
252 |
+ if [[ ${targets[@]} ]]; then |
253 |
+ esetup.py "${targets[@]}" |
254 |
+ fi |
255 |
+ |
256 |
+ systemd_dotmpfilesd "${FILESDIR}"/portage-ccache.conf |
257 |
+ |
258 |
+ # Due to distutils/python-exec limitations |
259 |
+ # these must be installed to /usr/bin. |
260 |
+ local sbin_relocations='archive-conf dispatch-conf emaint env-update etc-update fixpackages regenworld' |
261 |
+ einfo "Moving admin scripts to the correct directory" |
262 |
+ dodir /usr/sbin |
263 |
+ for target in ${sbin_relocations}; do |
264 |
+ einfo "Moving /usr/bin/${target} to /usr/sbin/${target}" |
265 |
+ mv "${ED}usr/bin/${target}" "${ED}usr/sbin/${target}" || die "sbin scripts move failed!" |
266 |
+ done |
267 |
+} |
268 |
+ |
269 |
+pkg_preinst() { |
270 |
+ python_setup |
271 |
+ python_export PYTHON_SITEDIR |
272 |
+ [[ -d ${D%/}${PYTHON_SITEDIR} ]] || die "${D%/}${PYTHON_SITEDIR}: No such directory" |
273 |
+ env -u DISTDIR \ |
274 |
+ -u PORTAGE_OVERRIDE_EPREFIX \ |
275 |
+ -u PORTAGE_REPOSITORIES \ |
276 |
+ -u PORTDIR \ |
277 |
+ -u PORTDIR_OVERLAY \ |
278 |
+ PYTHONPATH="${D%/}${PYTHON_SITEDIR}${PYTHONPATH:+:${PYTHONPATH}}" \ |
279 |
+ "${PYTHON}" -m portage._compat_upgrade.default_locations || die |
280 |
+ |
281 |
+ # elog dir must exist to avoid logrotate error for bug #415911. |
282 |
+ # This code runs in preinst in order to bypass the mapping of |
283 |
+ # portage:portage to root:root which happens after src_install. |
284 |
+ keepdir /var/log/portage/elog |
285 |
+ # This is allowed to fail if the user/group are invalid for prefix users. |
286 |
+ if chown portage:portage "${ED}"var/log/portage{,/elog} 2>/dev/null ; then |
287 |
+ chmod g+s,ug+rwx "${ED}"var/log/portage{,/elog} |
288 |
+ fi |
289 |
+ |
290 |
+ if has_version "<${CATEGORY}/${PN}-2.3.77"; then |
291 |
+ elog "The emerge --autounmask option is now disabled by default, except for" |
292 |
+ elog "portions of behavior which are controlled by the --autounmask-use and" |
293 |
+ elog "--autounmask-license options. For backward compatibility, previous" |
294 |
+ elog "behavior of --autounmask=y and --autounmask=n is entirely preserved." |
295 |
+ elog "Users can get the old behavior simply by adding --autounmask to the" |
296 |
+ elog "make.conf EMERGE_DEFAULT_OPTS variable. For the rationale for this" |
297 |
+ elog "change, see https://bugs.gentoo.org/658648." |
298 |
+ fi |
299 |
+} |