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