1 |
commit: 3fef4707c62d42d985830750383f7b1f7aeec654 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 30 23:00:51 2019 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 30 23:10:41 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3fef4707 |
7 |
|
8 |
sys-apps/portage: Bump to version 2.3.68 |
9 |
|
10 |
#687814 config: don't swallow IOError for "packages" files |
11 |
#688124 fix emerge fetch download size calculation for resume |
12 |
#688648 fix emerge --sync keyserver None message |
13 |
|
14 |
Package-Manager: Portage-2.3.68, Repoman-2.3.16 |
15 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
16 |
|
17 |
sys-apps/portage/Manifest | 1 + |
18 |
sys-apps/portage/portage-2.3.68.ebuild | 259 +++++++++++++++++++++++++++++++++ |
19 |
2 files changed, 260 insertions(+) |
20 |
|
21 |
diff --git a/sys-apps/portage/Manifest b/sys-apps/portage/Manifest |
22 |
index cfdc1fbe5ce..6bcde4ae066 100644 |
23 |
--- a/sys-apps/portage/Manifest |
24 |
+++ b/sys-apps/portage/Manifest |
25 |
@@ -1,4 +1,5 @@ |
26 |
DIST portage-2.3.62.tar.bz2 1021442 BLAKE2B 37d5dab0e678ced78e0ff4dc9907af3d20370a4b0f52cea9118be3d06bb14e24fe6597d86c9bbd9d3ed2fc51f9e031d4e9ba84f354b945f7a399da3cbb95d74a SHA512 d4eca7e70573aae07a0522b4bf361191fded00fa02c5e6d8f70cf72c19c4dcfa9be7169a267afdc58cdd0a8ee333774a7779ac08dee3490aa8e8a1ebd39deb49 |
27 |
DIST portage-2.3.66.tar.bz2 1023966 BLAKE2B dc378b714101b287fa33defeb778e586da83275cdc2d0bc7a98e9f2ea568568313d6a2767f693f3111fc41f0c6f07451315021186a1719bd52520da327c103d6 SHA512 f8642237e0127d9838c6e91430a19b8886295f8ce6b18cf915d6eb63204c7a8c65783f1554eec90b7ce7d0b613ef4206643eec8751b0594de1dcb4ede4491779 |
28 |
DIST portage-2.3.67.tar.bz2 1025172 BLAKE2B 4557f11eca511766532214630b948f884149a6cae2e7110813a2a3700be448c057500c1708daeca5419e4bcdfcdf4a26e8002a2437f5c0a7731e20d201124021 SHA512 921b8647bd6cb879320b5ca3edf42cbff1e64bdb13a922a4fc2be6e2868dc94966734c1c2b508c75552b95f7e9b970a2ec8f93d02602ce6c351bd700613392d9 |
29 |
+DIST portage-2.3.68.tar.bz2 1025806 BLAKE2B 70d5011548a11f3f8859fba407603c34162274698d5a4351e7ed10addf6cf5df88261ab3a1aed73dd7600d9038aa0cf3bb67705e78a51103a5e355c7fa615d8b SHA512 4dc9ac1e03c267b280c932fbcde14f74cac1fb111fe75f21521d156696ab9a7aab2ca175a35615375b097196ad998ae774e8535a6c6205398b10596fb9d1a859 |
30 |
DIST repoman-bug-685482-fbebef9677d6.patch 3350 BLAKE2B f715267e2731c1ec7c780aa9c6cffe1f848b3ad050273646579677a0522483df6fef844ffd87fb22f7dad53f1ec60221acd0d81a813569baf768ba62a6c1921c SHA512 0e44625aeec7c239d7db8fdcf6a13313f4a8c1275e0e474cc2f05e5476d86214881cec2917d816c8b63f69d508c0bfa69e6a8e05b614b405463c998a4fb7ce12 |
31 |
|
32 |
diff --git a/sys-apps/portage/portage-2.3.68.ebuild b/sys-apps/portage/portage-2.3.68.ebuild |
33 |
new file mode 100644 |
34 |
index 00000000000..841947dcfff |
35 |
--- /dev/null |
36 |
+++ b/sys-apps/portage/portage-2.3.68.ebuild |
37 |
@@ -0,0 +1,259 @@ |
38 |
+# Copyright 1999-2019 Gentoo Authors |
39 |
+# Distributed under the terms of the GNU General Public License v2 |
40 |
+ |
41 |
+EAPI=5 |
42 |
+ |
43 |
+PYTHON_COMPAT=( |
44 |
+ pypy |
45 |
+ python3_5 python3_6 python3_7 |
46 |
+ python2_7 |
47 |
+) |
48 |
+PYTHON_REQ_USE='bzip2(+),threads(+)' |
49 |
+ |
50 |
+inherit distutils-r1 linux-info systemd prefix |
51 |
+ |
52 |
+DESCRIPTION="Portage is the package management and distribution system for Gentoo" |
53 |
+HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage" |
54 |
+ |
55 |
+LICENSE="GPL-2" |
56 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-fbsd" |
57 |
+SLOT="0" |
58 |
+IUSE="build doc epydoc gentoo-dev +ipc +native-extensions +rsync-verify selinux xattr" |
59 |
+ |
60 |
+DEPEND="!build? ( $(python_gen_impl_dep 'ssl(+)') ) |
61 |
+ >=app-arch/tar-1.27 |
62 |
+ dev-lang/python-exec:2 |
63 |
+ >=sys-apps/sed-4.0.5 sys-devel/patch |
64 |
+ doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 ) |
65 |
+ epydoc? ( >=dev-python/epydoc-2.0[$(python_gen_usedep 'python2*')] )" |
66 |
+# Require sandbox-2.2 for bug #288863. |
67 |
+# For xattr, we can spawn getfattr and setfattr from sys-apps/attr, but that's |
68 |
+# quite slow, so it's not considered in the dependencies as an alternative to |
69 |
+# to python-3.3 / pyxattr. Also, xattr support is only tested with Linux, so |
70 |
+# for now, don't pull in xattr deps for other kernels. |
71 |
+# For whirlpool hash, require python[ssl] (bug #425046). |
72 |
+# For compgen, require bash[readline] (bug #445576). |
73 |
+# app-portage/gemato goes without PYTHON_USEDEP since we're calling |
74 |
+# the executable. |
75 |
+RDEPEND=" |
76 |
+ >=app-arch/tar-1.27 |
77 |
+ dev-lang/python-exec:2 |
78 |
+ !build? ( |
79 |
+ >=sys-apps/sed-4.0.5 |
80 |
+ app-shells/bash:0[readline] |
81 |
+ >=app-admin/eselect-1.2 |
82 |
+ $(python_gen_cond_dep 'dev-python/pyblake2[${PYTHON_USEDEP}]' \ |
83 |
+ python{2_7,3_5} pypy) |
84 |
+ rsync-verify? ( |
85 |
+ >=app-portage/gemato-14[${PYTHON_USEDEP}] |
86 |
+ >=app-crypt/openpgp-keys-gentoo-release-20180706 |
87 |
+ >=app-crypt/gnupg-2.2.4-r2[ssl(-)] |
88 |
+ ) |
89 |
+ ) |
90 |
+ elibc_FreeBSD? ( sys-freebsd/freebsd-bin ) |
91 |
+ elibc_glibc? ( >=sys-apps/sandbox-2.2 ) |
92 |
+ elibc_musl? ( >=sys-apps/sandbox-2.2 ) |
93 |
+ elibc_uclibc? ( >=sys-apps/sandbox-2.2 ) |
94 |
+ kernel_linux? ( sys-apps/util-linux ) |
95 |
+ >=app-misc/pax-utils-0.1.17 |
96 |
+ selinux? ( >=sys-libs/libselinux-2.0.94[python,${PYTHON_USEDEP}] ) |
97 |
+ xattr? ( kernel_linux? ( |
98 |
+ >=sys-apps/install-xattr-0.3 |
99 |
+ $(python_gen_cond_dep 'dev-python/pyxattr[${PYTHON_USEDEP}]' \ |
100 |
+ python2_7 pypy) |
101 |
+ ) ) |
102 |
+ !<app-admin/logrotate-3.8.0 |
103 |
+ !<app-portage/repoman-2.3.10" |
104 |
+PDEPEND=" |
105 |
+ !build? ( |
106 |
+ >=net-misc/rsync-2.6.4 |
107 |
+ userland_GNU? ( >=sys-apps/coreutils-6.4 ) |
108 |
+ )" |
109 |
+# coreutils-6.4 rdep is for date format in emerge-webrsync #164532 |
110 |
+# NOTE: FEATURES=installsources requires debugedit and rsync |
111 |
+ |
112 |
+REQUIRED_USE="epydoc? ( $(python_gen_useflags 'python2*') )" |
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" |
131 |
+ |
132 |
+ check_extra_config |
133 |
+} |
134 |
+ |
135 |
+pkg_setup() { |
136 |
+ use epydoc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2.7 ) |
137 |
+} |
138 |
+ |
139 |
+python_prepare_all() { |
140 |
+ distutils-r1_python_prepare_all |
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} ipc-sandbox network-sandbox 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 |
+ -i cnf/repos.conf || die "sed failed" |
174 |
+ fi |
175 |
+ |
176 |
+ if [[ -n ${EPREFIX} ]] ; then |
177 |
+ einfo "Setting portage.const.EPREFIX ..." |
178 |
+ hprefixify -e "s|^(EPREFIX[[:space:]]*=[[:space:]]*\").*|\1${EPREFIX}\"|" \ |
179 |
+ -w "/_BINARY/" lib/portage/const.py |
180 |
+ |
181 |
+ einfo "Prefixing shebangs ..." |
182 |
+ while read -r -d $'\0' ; do |
183 |
+ local shebang=$(head -n1 "$REPLY") |
184 |
+ if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then |
185 |
+ sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "$REPLY" || \ |
186 |
+ die "sed failed" |
187 |
+ fi |
188 |
+ done < <(find . -type f ! -name etc-update -print0) |
189 |
+ |
190 |
+ einfo "Adjusting make.globals, repos.conf and etc-update ..." |
191 |
+ hprefixify cnf/{make.globals,repos.conf} bin/etc-update |
192 |
+ |
193 |
+ if use prefix-guest ; then |
194 |
+ sed -e "s|^\(main-repo = \).*|\\1gentoo_prefix|" \ |
195 |
+ -e "s|^\\[gentoo\\]|[gentoo_prefix]|" \ |
196 |
+ -e "s|^\(sync-uri = \).*|\\1rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix|" \ |
197 |
+ -i cnf/repos.conf || die "sed failed" |
198 |
+ fi |
199 |
+ |
200 |
+ einfo "Adding FEATURES=force-prefix to make.globals ..." |
201 |
+ echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \ |
202 |
+ || die "failed to append to make.globals" |
203 |
+ fi |
204 |
+ |
205 |
+ cd "${S}/cnf" || die |
206 |
+ if [ -f "make.conf.example.${ARCH}".diff ]; then |
207 |
+ patch make.conf.example "make.conf.example.${ARCH}".diff || \ |
208 |
+ die "Failed to patch make.conf.example" |
209 |
+ else |
210 |
+ eerror "" |
211 |
+ eerror "Portage does not have an arch-specific configuration for this arch." |
212 |
+ eerror "Please notify the arch maintainer about this issue. Using generic." |
213 |
+ eerror "" |
214 |
+ fi |
215 |
+} |
216 |
+ |
217 |
+python_compile_all() { |
218 |
+ local targets=() |
219 |
+ use doc && targets+=( docbook ) |
220 |
+ use epydoc && targets+=( epydoc ) |
221 |
+ |
222 |
+ if [[ ${targets[@]} ]]; then |
223 |
+ esetup.py "${targets[@]}" |
224 |
+ fi |
225 |
+} |
226 |
+ |
227 |
+python_test() { |
228 |
+ esetup.py test |
229 |
+} |
230 |
+ |
231 |
+python_install() { |
232 |
+ # Install sbin scripts to bindir for python-exec linking |
233 |
+ # they will be relocated in pkg_preinst() |
234 |
+ distutils-r1_python_install \ |
235 |
+ --system-prefix="${EPREFIX}/usr" \ |
236 |
+ --bindir="$(python_get_scriptdir)" \ |
237 |
+ --docdir="${EPREFIX}/usr/share/doc/${PF}" \ |
238 |
+ --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
239 |
+ --portage-bindir="${EPREFIX}/usr/lib/portage/${EPYTHON}" \ |
240 |
+ --sbindir="$(python_get_scriptdir)" \ |
241 |
+ --sysconfdir="${EPREFIX}/etc" \ |
242 |
+ "${@}" |
243 |
+} |
244 |
+ |
245 |
+python_install_all() { |
246 |
+ distutils-r1_python_install_all |
247 |
+ |
248 |
+ local targets=() |
249 |
+ use doc && targets+=( |
250 |
+ install_docbook |
251 |
+ --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
252 |
+ ) |
253 |
+ use epydoc && targets+=( |
254 |
+ install_epydoc |
255 |
+ --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
256 |
+ ) |
257 |
+ |
258 |
+ # install docs |
259 |
+ if [[ ${targets[@]} ]]; then |
260 |
+ esetup.py "${targets[@]}" |
261 |
+ fi |
262 |
+ |
263 |
+ systemd_dotmpfilesd "${FILESDIR}"/portage-ccache.conf |
264 |
+ |
265 |
+ # Due to distutils/python-exec limitations |
266 |
+ # these must be installed to /usr/bin. |
267 |
+ local sbin_relocations='archive-conf dispatch-conf emaint env-update etc-update fixpackages regenworld' |
268 |
+ einfo "Moving admin scripts to the correct directory" |
269 |
+ dodir /usr/sbin |
270 |
+ for target in ${sbin_relocations}; do |
271 |
+ einfo "Moving /usr/bin/${target} to /usr/sbin/${target}" |
272 |
+ mv "${ED}usr/bin/${target}" "${ED}usr/sbin/${target}" || die "sbin scripts move failed!" |
273 |
+ done |
274 |
+} |
275 |
+ |
276 |
+pkg_preinst() { |
277 |
+ python_setup |
278 |
+ python_export PYTHON_SITEDIR |
279 |
+ [[ -d ${D%/}${PYTHON_SITEDIR} ]] || die "${D%/}${PYTHON_SITEDIR}: No such directory" |
280 |
+ env -u DISTDIR \ |
281 |
+ -u PORTAGE_OVERRIDE_EPREFIX \ |
282 |
+ -u PORTAGE_REPOSITORIES \ |
283 |
+ -u PORTDIR \ |
284 |
+ -u PORTDIR_OVERLAY \ |
285 |
+ PYTHONPATH="${D%/}${PYTHON_SITEDIR}${PYTHONPATH:+:${PYTHONPATH}}" \ |
286 |
+ "${PYTHON}" -m portage._compat_upgrade.default_locations || die |
287 |
+ |
288 |
+ # elog dir must exist to avoid logrotate error for bug #415911. |
289 |
+ # This code runs in preinst in order to bypass the mapping of |
290 |
+ # portage:portage to root:root which happens after src_install. |
291 |
+ keepdir /var/log/portage/elog |
292 |
+ # This is allowed to fail if the user/group are invalid for prefix users. |
293 |
+ if chown portage:portage "${ED}"var/log/portage{,/elog} 2>/dev/null ; then |
294 |
+ chmod g+s,ug+rwx "${ED}"var/log/portage{,/elog} |
295 |
+ fi |
296 |
+} |