1 |
commit: f3b7e067f4d4d65aa99c043f26b8e3888a2b981b |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Apr 2 17:00:59 2018 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 2 17:17:01 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3b7e067 |
7 |
|
8 |
sys-apps/portage: version bump to 2.3.28 |
9 |
|
10 |
#649276 - gpg key refresh needs exponential backoff with jitter |
11 |
|
12 |
Package-Manager: Portage-2.3.28, Repoman-2.3.9 |
13 |
|
14 |
sys-apps/portage/Manifest | 1 + |
15 |
sys-apps/portage/portage-2.3.28.ebuild | 284 +++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 285 insertions(+) |
17 |
|
18 |
diff --git a/sys-apps/portage/Manifest b/sys-apps/portage/Manifest |
19 |
index 6d263c9755b..14ba1b5806f 100644 |
20 |
--- a/sys-apps/portage/Manifest |
21 |
+++ b/sys-apps/portage/Manifest |
22 |
@@ -4,4 +4,5 @@ DIST portage-2.3.19.tar.bz2 954921 BLAKE2B e1bb3606ff2c5ba7b2123c61469b99f4d5d89 |
23 |
DIST portage-2.3.24.tar.bz2 959266 BLAKE2B bc15f10599c694ad29f5a55264e929d0a04a9c5211e9cafd4f1a35de1d77e655d99df0ceb352fd431a8cefd40c733064422d8f41099edf7263aa36ef8cfd2ba8 SHA512 fca250d4afc1819a27b67daff770132ed4e88fb067038992a6b3f8aac63604536366ea628dd30c24f93db19ae55e88da372598ccc489bcf445038dfe860ce0ec |
24 |
DIST portage-2.3.26.tar.bz2 970245 BLAKE2B b854bef894327b9e4beabca55d70368d326548d96efdc5b63e47f77971da195d041c8e8412bbb308ef6922be02964727c99f9dcc92a2a4b0a7372e0a1c774ffe SHA512 5acb8a00fdbc72a8c3e79f8b1c2ba17c9b469205edf1e56592db9ccfeb54b4dc83a98548ff0e01c408456a1c962262377967f6d70510c8d1b0e7ab15eab51079 |
25 |
DIST portage-2.3.27.tar.bz2 970480 BLAKE2B dc46362773544102d9a07e686759d454a37177e9ac6e88d664c1aeb1676b9fb4e12662500f1de63644ad5eaf69d58bf85f38339c18d695cdc42930746dedb731 SHA512 791c87ffe958e883fe16562e69e606dd7ff860c13b2262b3eaa665f78acacdcb547c5e124b69d2c0faa36147fdc7c1d60669dee43b7401ea4f89784a619f81fe |
26 |
+DIST portage-2.3.28.tar.bz2 975684 BLAKE2B 70f944700bba66e369877ffdb76c829d6521d429c65ded482482058639478c1c6e27366cb509252e59a4c3d2d295211f4efc2cecd84f7790674429a42a399a72 SHA512 208237faeee844bca829adc42b0407c246e09e91d5c5850c27696eb201f1009a87dce0b28cbbca4a27f2c9d58c0c102387a41483c976642acade83679a980777 |
27 |
DIST portage-2.3.8.tar.bz2 938062 BLAKE2B 3f7bedf6268131a3b3539d53c8a7bb069b533b3a78e5eec521b6201439c8ee5e66996e798fe295561d0a94bfcd32adf414d4f8b5e7a93035cea09749406e64a3 SHA512 4b4b2de20323799b9b0f7a8812f939aa9a96d2744a0f65ad5287ba49744c491b55169cdb21f2885317a6a7c960d2070775ffd798f247b44eebc677c33c271eb8 |
28 |
|
29 |
diff --git a/sys-apps/portage/portage-2.3.28.ebuild b/sys-apps/portage/portage-2.3.28.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..376030121e0 |
32 |
--- /dev/null |
33 |
+++ b/sys-apps/portage/portage-2.3.28.ebuild |
34 |
@@ -0,0 +1,284 @@ |
35 |
+# Copyright 1999-2018 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=5 |
39 |
+ |
40 |
+PYTHON_COMPAT=( |
41 |
+ pypy |
42 |
+ python3_4 python3_5 python3_6 |
43 |
+ python2_7 |
44 |
+) |
45 |
+PYTHON_REQ_USE='bzip2(+),threads(+)' |
46 |
+ |
47 |
+inherit distutils-r1 systemd |
48 |
+ |
49 |
+DESCRIPTION="Portage is the package management and distribution system for Gentoo" |
50 |
+HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage" |
51 |
+ |
52 |
+LICENSE="GPL-2" |
53 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd" |
54 |
+SLOT="0" |
55 |
+IUSE="build doc epydoc gentoo-dev +ipc +native-extensions +rsync-verify selinux xattr" |
56 |
+ |
57 |
+DEPEND="!build? ( $(python_gen_impl_dep 'ssl(+)') ) |
58 |
+ >=app-arch/tar-1.27 |
59 |
+ dev-lang/python-exec:2 |
60 |
+ >=sys-apps/sed-4.0.5 sys-devel/patch |
61 |
+ doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 ) |
62 |
+ epydoc? ( >=dev-python/epydoc-2.0[$(python_gen_usedep 'python2*')] )" |
63 |
+# Require sandbox-2.2 for bug #288863. |
64 |
+# For xattr, we can spawn getfattr and setfattr from sys-apps/attr, but that's |
65 |
+# quite slow, so it's not considered in the dependencies as an alternative to |
66 |
+# to python-3.3 / pyxattr. Also, xattr support is only tested with Linux, so |
67 |
+# for now, don't pull in xattr deps for other kernels. |
68 |
+# For whirlpool hash, require python[ssl] (bug #425046). |
69 |
+# For compgen, require bash[readline] (bug #445576). |
70 |
+# app-portage/gemato goes without PYTHON_USEDEP since we're calling |
71 |
+# the executable. |
72 |
+RDEPEND=" |
73 |
+ >=app-arch/tar-1.27 |
74 |
+ dev-lang/python-exec:2 |
75 |
+ !build? ( |
76 |
+ >=sys-apps/sed-4.0.5 |
77 |
+ app-shells/bash:0[readline] |
78 |
+ >=app-admin/eselect-1.2 |
79 |
+ $(python_gen_cond_dep 'dev-python/pyblake2[${PYTHON_USEDEP}]' \ |
80 |
+ python{2_7,3_4,3_5} pypy) |
81 |
+ rsync-verify? ( |
82 |
+ >=app-portage/gemato-12.1 |
83 |
+ app-crypt/gentoo-keys |
84 |
+ >=app-crypt/gnupg-2.2.4-r2[ssl(-)] |
85 |
+ ) |
86 |
+ ) |
87 |
+ elibc_FreeBSD? ( sys-freebsd/freebsd-bin ) |
88 |
+ elibc_glibc? ( >=sys-apps/sandbox-2.2 ) |
89 |
+ elibc_musl? ( >=sys-apps/sandbox-2.2 ) |
90 |
+ elibc_uclibc? ( >=sys-apps/sandbox-2.2 ) |
91 |
+ >=app-misc/pax-utils-0.1.17 |
92 |
+ selinux? ( >=sys-libs/libselinux-2.0.94[python,${PYTHON_USEDEP}] ) |
93 |
+ xattr? ( kernel_linux? ( |
94 |
+ >=sys-apps/install-xattr-0.3 |
95 |
+ $(python_gen_cond_dep 'dev-python/pyxattr[${PYTHON_USEDEP}]' \ |
96 |
+ python2_7 pypy) |
97 |
+ ) ) |
98 |
+ !<app-admin/logrotate-3.8.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 |
+REQUIRED_USE="epydoc? ( $(python_gen_useflags 'python2*') )" |
108 |
+ |
109 |
+SRC_ARCHIVES="https://dev.gentoo.org/~zmedico/portage/archives" |
110 |
+ |
111 |
+prefix_src_archives() { |
112 |
+ local x y |
113 |
+ for x in ${@}; do |
114 |
+ for y in ${SRC_ARCHIVES}; do |
115 |
+ echo ${y}/${x} |
116 |
+ done |
117 |
+ done |
118 |
+} |
119 |
+ |
120 |
+TARBALL_PV=${PV} |
121 |
+SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2 |
122 |
+ $(prefix_src_archives ${PN}-${TARBALL_PV}.tar.bz2)" |
123 |
+ |
124 |
+pkg_setup() { |
125 |
+ use epydoc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2.7 ) |
126 |
+} |
127 |
+ |
128 |
+python_prepare_all() { |
129 |
+ distutils-r1_python_prepare_all |
130 |
+ |
131 |
+ if use gentoo-dev; then |
132 |
+ einfo "Disabling --dynamic-deps by default for gentoo-dev..." |
133 |
+ sed -e 's:\("--dynamic-deps", \)\("y"\):\1"n":' \ |
134 |
+ -i pym/_emerge/create_depgraph_params.py || \ |
135 |
+ die "failed to patch create_depgraph_params.py" |
136 |
+ |
137 |
+ einfo "Enabling additional FEATURES for gentoo-dev..." |
138 |
+ echo 'FEATURES="${FEATURES} ipc-sandbox network-sandbox strict-keepdir"' \ |
139 |
+ >> cnf/make.globals || die |
140 |
+ fi |
141 |
+ |
142 |
+ if use native-extensions; then |
143 |
+ printf "[build_ext]\nportage-ext-modules=true\n" >> \ |
144 |
+ setup.cfg || die |
145 |
+ fi |
146 |
+ |
147 |
+ if ! use ipc ; then |
148 |
+ einfo "Disabling ipc..." |
149 |
+ sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \ |
150 |
+ -i pym/_emerge/AbstractEbuildProcess.py || \ |
151 |
+ die "failed to patch AbstractEbuildProcess.py" |
152 |
+ fi |
153 |
+ |
154 |
+ if use xattr && use kernel_linux ; then |
155 |
+ einfo "Adding FEATURES=xattr to make.globals ..." |
156 |
+ echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \ |
157 |
+ || die "failed to append to make.globals" |
158 |
+ fi |
159 |
+ |
160 |
+ if use build || ! use rsync-verify; then |
161 |
+ sed -e '/^sync-rsync-verify-metamanifest/s|yes|no|' \ |
162 |
+ -i cnf/repos.conf || die "sed failed" |
163 |
+ fi |
164 |
+ |
165 |
+ if [[ -n ${EPREFIX} ]] ; then |
166 |
+ einfo "Setting portage.const.EPREFIX ..." |
167 |
+ sed -e "s|^\(SANDBOX_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/sandbox\"\)|\\1${EPREFIX}\\2|" \ |
168 |
+ -e "s|^\(FAKEROOT_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/fakeroot\"\)|\\1${EPREFIX}\\2|" \ |
169 |
+ -e "s|^\(BASH_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/bash\"\)|\\1${EPREFIX}\\2|" \ |
170 |
+ -e "s|^\(MOVE_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/mv\"\)|\\1${EPREFIX}\\2|" \ |
171 |
+ -e "s|^\(PRELINK_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/sbin/prelink\"\)|\\1${EPREFIX}\\2|" \ |
172 |
+ -e "s|^\(EPREFIX[[:space:]]*=[[:space:]]*\"\).*|\\1${EPREFIX}\"|" \ |
173 |
+ -i pym/portage/const.py || \ |
174 |
+ die "Failed to patch portage.const.EPREFIX" |
175 |
+ |
176 |
+ einfo "Prefixing shebangs ..." |
177 |
+ while read -r -d $'\0' ; do |
178 |
+ local shebang=$(head -n1 "$REPLY") |
179 |
+ if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then |
180 |
+ sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "$REPLY" || \ |
181 |
+ die "sed failed" |
182 |
+ fi |
183 |
+ done < <(find . -type f -print0) |
184 |
+ |
185 |
+ einfo "Adjusting make.globals ..." |
186 |
+ sed -e "s|\(/usr/portage\)|${EPREFIX}\\1|" \ |
187 |
+ -e "s|^\(PORTAGE_TMPDIR=\"\)\(/var/tmp\"\)|\\1${EPREFIX}\\2|" \ |
188 |
+ -i cnf/make.globals || die "sed failed" |
189 |
+ |
190 |
+ einfo "Adjusting repos.conf ..." |
191 |
+ sed -e "s|^\(location = \)\(/usr/portage\)|\\1${EPREFIX}\\2|" \ |
192 |
+ -e "s|^\(sync-openpgp-key-path = \)\(.*\)|\\1${EPREFIX}\\2|" \ |
193 |
+ -i cnf/repos.conf || die "sed failed" |
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 epydoc && targets+=( epydoc ) |
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 epydoc && targets+=( |
255 |
+ install_epydoc |
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 |
+ systemd_dotmpfilesd "${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 |
+ # comment out sanity test until it is fixed to work |
279 |
+ # with the new PORTAGE_PYM_PATH |
280 |
+ #if [[ $ROOT == / ]] ; then |
281 |
+ ## Run some minimal tests as a sanity check. |
282 |
+ #local test_runner=$(find "${ED}" -name runTests) |
283 |
+ #if [[ -n $test_runner && -x $test_runner ]] ; then |
284 |
+ #einfo "Running preinst sanity tests..." |
285 |
+ #"$test_runner" || die "preinst sanity tests failed" |
286 |
+ #fi |
287 |
+ #fi |
288 |
+ |
289 |
+ # elog dir must exist to avoid logrotate error for bug #415911. |
290 |
+ # This code runs in preinst in order to bypass the mapping of |
291 |
+ # portage:portage to root:root which happens after src_install. |
292 |
+ keepdir /var/log/portage/elog |
293 |
+ # This is allowed to fail if the user/group are invalid for prefix users. |
294 |
+ if chown portage:portage "${ED}"var/log/portage{,/elog} 2>/dev/null ; then |
295 |
+ chmod g+s,ug+rwx "${ED}"var/log/portage{,/elog} |
296 |
+ fi |
297 |
+ |
298 |
+ if has_version ">=${CATEGORY}/${PN}-2.3.1" && \ |
299 |
+ has_version "<${CATEGORY}/${PN}-2.3.3"; then |
300 |
+ SYNC_DEPTH_UPGRADE=true |
301 |
+ else |
302 |
+ SYNC_DEPTH_UPGRADE=false |
303 |
+ fi |
304 |
+} |
305 |
+ |
306 |
+pkg_postinst() { |
307 |
+ if ${SYNC_DEPTH_UPGRADE}; then |
308 |
+ ewarn "Please note that this release no longer respects sync-depth for" |
309 |
+ ewarn "git repositories. There have been too many problems and" |
310 |
+ ewarn "performance issues. See bugs 552814, 559008" |
311 |
+ fi |
312 |
+ einfo "" |
313 |
+ einfo "This release of portage NO LONGER contains the repoman code base." |
314 |
+ einfo "Repoman has its own ebuild and release package." |
315 |
+ einfo "For repoman functionality please emerge app-portage/repoman" |
316 |
+ einfo "Please report any bugs you may encounter." |
317 |
+ einfo "" |
318 |
+} |