Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/portage/
Date: Sun, 01 Sep 2019 21:21:02
Message-Id: 1567372836.fc1ee19f135a3446d16deac8f783472b464e3a2e.zmedico@gentoo
1 commit: fc1ee19f135a3446d16deac8f783472b464e3a2e
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 1 21:12:24 2019 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 1 21:20:36 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc1ee19f
7
8 sys-apps/portage: Bump to version 2.3.75
9
10 #235970 glsa-check: add --reverse option
11 #692134 glsa-check: fix truncated CVE ids in listmode
12 #692746 missed virtual/libmysqlclient update
13 #693242 premature backtracking termination
14
15 Bug: https://bugs.gentoo.org/691278
16 Bug: https://bugs.gentoo.org/235970
17 Bug: https://bugs.gentoo.org/692134
18 Bug: https://bugs.gentoo.org/692746
19 Bug: https://bugs.gentoo.org/693242
20 Package-Manager: Portage-2.3.75, Repoman-2.3.17
21 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
22
23 sys-apps/portage/Manifest | 1 +
24 sys-apps/portage/portage-2.3.75.ebuild | 261 +++++++++++++++++++++++++++++++++
25 2 files changed, 262 insertions(+)
26
27 diff --git a/sys-apps/portage/Manifest b/sys-apps/portage/Manifest
28 index e0f9fe93faa..1193bf222f1 100644
29 --- a/sys-apps/portage/Manifest
30 +++ b/sys-apps/portage/Manifest
31 @@ -3,4 +3,5 @@ DIST portage-2.3.69.tar.bz2 1027945 BLAKE2B 22a06370d9db8f8954f609a4435983b914f0
32 DIST portage-2.3.72.tar.bz2 1030924 BLAKE2B 84ecb1cda83a33f7159b86edc915810460f85dd6c97e971a054b5c1cc685077cb784313a666d1867c671e6324a25ea64b0032bb1924af560bd60d261b199c479 SHA512 cc42030bee07b2addc7977a5f206ab35a76ac98d37215d2ee2952d47408c0de1c74387436b85b08f94be5fd01b422cb68bcf908fa8acac8fb9dda0e5caa39f86
33 DIST portage-2.3.73.tar.bz2 1031001 BLAKE2B f08a639ae587cae8c87670c6d8f8b8f5a860a3d1d8ad960d6da7fac7c0e170d0f19c352d6a31de20de60a4504766724901ef7d2ba026f959ef8dd6bb8e095c73 SHA512 5edda4b235a9bb7574fb5bce79c4a226200ba077580ce0e0237ef209cc935ab94eef24859bf450443a92a6cb9d31a754e1e06c8fd0293efe7e5fa87e4d21652a
34 DIST portage-2.3.74.tar.bz2 1033130 BLAKE2B e3dc7c994ad2e35a8a8f421d972d4ff12fa2c56241b9a7d374204b0fbea1f457b8a365b56daa7a642383fc2653d7a223f12cf14936c86b5c8856411e286973bd SHA512 947805ca47445de49105867f66ac2b77426511040d3f1936ec5e169219bcf45d320ebabb7455d318043405b043ba4808ce3962af431776ae152c203343607bf9
35 +DIST portage-2.3.75.tar.bz2 1032575 BLAKE2B c4f3e9a7e7056af19da6a56599fb79a26331d6ab88981f966b77e2d17ee5dac1a585f54b1185f64855c9c2af544684b759143f657a529878a4e6eb9df4757340 SHA512 06dabc9bff2992b197575ceab5b4f117aca01a10d2556bb006bb28bd4c1d99edfbff753e83aba706782da1e365b923e081ce2037053fed31e18baa5fab6da4a2
36 DIST repoman-bug-685482-fbebef9677d6.patch 3350 BLAKE2B f715267e2731c1ec7c780aa9c6cffe1f848b3ad050273646579677a0522483df6fef844ffd87fb22f7dad53f1ec60221acd0d81a813569baf768ba62a6c1921c SHA512 0e44625aeec7c239d7db8fdcf6a13313f4a8c1275e0e474cc2f05e5476d86214881cec2917d816c8b63f69d508c0bfa69e6a8e05b614b405463c998a4fb7ce12
37
38 diff --git a/sys-apps/portage/portage-2.3.75.ebuild b/sys-apps/portage/portage-2.3.75.ebuild
39 new file mode 100644
40 index 00000000000..b45fedf3529
41 --- /dev/null
42 +++ b/sys-apps/portage/portage-2.3.75.ebuild
43 @@ -0,0 +1,261 @@
44 +# Copyright 1999-2019 Gentoo Authors
45 +# Distributed under the terms of the GNU General Public License v2
46 +
47 +EAPI=5
48 +
49 +PYTHON_COMPAT=(
50 + pypy
51 + python3_5 python3_6 python3_7
52 + python2_7
53 +)
54 +PYTHON_REQ_USE='bzip2(+),threads(+)'
55 +
56 +inherit distutils-r1 linux-info systemd prefix
57 +
58 +DESCRIPTION="Portage is the package management and distribution system for Gentoo"
59 +HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage"
60 +
61 +LICENSE="GPL-2"
62 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~amd64-fbsd"
63 +SLOT="0"
64 +IUSE="build doc epydoc gentoo-dev +ipc +native-extensions +rsync-verify selinux xattr"
65 +
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 + epydoc? ( >=dev-python/epydoc-2.0[$(python_gen_usedep 'python2*')] )"
72 +# Require sandbox-2.2 for bug #288863.
73 +# For xattr, we can spawn getfattr and setfattr from sys-apps/attr, but that's
74 +# quite slow, so it's not considered in the dependencies as an alternative to
75 +# to python-3.3 / pyxattr. Also, xattr support is only tested with Linux, so
76 +# for now, don't pull in xattr deps for other kernels.
77 +# For whirlpool hash, require python[ssl] (bug #425046).
78 +# For compgen, require bash[readline] (bug #445576).
79 +# app-portage/gemato goes without PYTHON_USEDEP since we're calling
80 +# the executable.
81 +RDEPEND="
82 + >=app-arch/tar-1.27
83 + dev-lang/python-exec:2
84 + !build? (
85 + >=sys-apps/sed-4.0.5
86 + app-shells/bash:0[readline]
87 + >=app-admin/eselect-1.2
88 + $(python_gen_cond_dep 'dev-python/pyblake2[${PYTHON_USEDEP}]' \
89 + python{2_7,3_5} pypy)
90 + rsync-verify? (
91 + >=app-portage/gemato-14[${PYTHON_USEDEP}]
92 + >=app-crypt/openpgp-keys-gentoo-release-20180706
93 + >=app-crypt/gnupg-2.2.4-r2[ssl(-)]
94 + )
95 + )
96 + elibc_FreeBSD? ( sys-freebsd/freebsd-bin )
97 + elibc_glibc? ( >=sys-apps/sandbox-2.2 )
98 + elibc_musl? ( >=sys-apps/sandbox-2.2 )
99 + elibc_uclibc? ( >=sys-apps/sandbox-2.2 )
100 + kernel_linux? ( sys-apps/util-linux )
101 + >=app-misc/pax-utils-0.1.17
102 + selinux? ( >=sys-libs/libselinux-2.0.94[python,${PYTHON_USEDEP}] )
103 + xattr? ( kernel_linux? (
104 + >=sys-apps/install-xattr-0.3
105 + $(python_gen_cond_dep 'dev-python/pyxattr[${PYTHON_USEDEP}]' \
106 + python2_7 pypy)
107 + ) )
108 + !<app-admin/logrotate-3.8.0
109 + !<app-portage/gentoolkit-0.4.6
110 + !<app-portage/repoman-2.3.10"
111 +PDEPEND="
112 + !build? (
113 + >=net-misc/rsync-2.6.4
114 + userland_GNU? ( >=sys-apps/coreutils-6.4 )
115 + )"
116 +# coreutils-6.4 rdep is for date format in emerge-webrsync #164532
117 +# NOTE: FEATURES=installsources requires debugedit and rsync
118 +
119 +REQUIRED_USE="epydoc? ( $(python_gen_useflags 'python2*') )"
120 +
121 +SRC_ARCHIVES="https://dev.gentoo.org/~zmedico/portage/archives"
122 +
123 +prefix_src_archives() {
124 + local x y
125 + for x in ${@}; do
126 + for y in ${SRC_ARCHIVES}; do
127 + echo ${y}/${x}
128 + done
129 + done
130 +}
131 +
132 +TARBALL_PV=${PV}
133 +SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2
134 + $(prefix_src_archives ${PN}-${TARBALL_PV}.tar.bz2)"
135 +
136 +pkg_pretend() {
137 + local CONFIG_CHECK="~IPC_NS ~PID_NS ~NET_NS"
138 +
139 + check_extra_config
140 +}
141 +
142 +pkg_setup() {
143 + use epydoc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2.7 )
144 +}
145 +
146 +python_prepare_all() {
147 + distutils-r1_python_prepare_all
148 +
149 + if use gentoo-dev; then
150 + einfo "Disabling --dynamic-deps by default for gentoo-dev..."
151 + sed -e 's:\("--dynamic-deps", \)\("y"\):\1"n":' \
152 + -i lib/_emerge/create_depgraph_params.py || \
153 + die "failed to patch create_depgraph_params.py"
154 +
155 + einfo "Enabling additional FEATURES for gentoo-dev..."
156 + echo 'FEATURES="${FEATURES} strict-keepdir"' \
157 + >> cnf/make.globals || die
158 + fi
159 +
160 + if use native-extensions; then
161 + printf "[build_ext]\nportage-ext-modules=true\n" >> \
162 + setup.cfg || die
163 + fi
164 +
165 + if ! use ipc ; then
166 + einfo "Disabling ipc..."
167 + sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \
168 + -i lib/_emerge/AbstractEbuildProcess.py || \
169 + die "failed to patch AbstractEbuildProcess.py"
170 + fi
171 +
172 + if use xattr && use kernel_linux ; then
173 + einfo "Adding FEATURES=xattr to make.globals ..."
174 + echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \
175 + || die "failed to append to make.globals"
176 + fi
177 +
178 + if use build || ! use rsync-verify; then
179 + sed -e '/^sync-rsync-verify-metamanifest/s|yes|no|' \
180 + -e '/^sync-webrsync-verify-signature/s|yes|no|' \
181 + -i cnf/repos.conf || die "sed failed"
182 + fi
183 +
184 + if [[ -n ${EPREFIX} ]] ; then
185 + einfo "Setting portage.const.EPREFIX ..."
186 + hprefixify -e "s|^(EPREFIX[[:space:]]*=[[:space:]]*\").*|\1${EPREFIX}\"|" \
187 + -w "/_BINARY/" lib/portage/const.py
188 +
189 + einfo "Prefixing shebangs ..."
190 + while read -r -d $'\0' ; do
191 + local shebang=$(head -n1 "$REPLY")
192 + if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then
193 + sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "$REPLY" || \
194 + die "sed failed"
195 + fi
196 + done < <(find . -type f ! -name etc-update -print0)
197 +
198 + einfo "Adjusting make.globals, repos.conf and etc-update ..."
199 + hprefixify cnf/{make.globals,repos.conf} bin/etc-update
200 +
201 + if use prefix-guest ; then
202 + sed -e "s|^\(main-repo = \).*|\\1gentoo_prefix|" \
203 + -e "s|^\\[gentoo\\]|[gentoo_prefix]|" \
204 + -e "s|^\(sync-uri = \).*|\\1rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix|" \
205 + -i cnf/repos.conf || die "sed failed"
206 + fi
207 +
208 + einfo "Adding FEATURES=force-prefix to make.globals ..."
209 + echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \
210 + || die "failed to append to make.globals"
211 + fi
212 +
213 + cd "${S}/cnf" || die
214 + if [ -f "make.conf.example.${ARCH}".diff ]; then
215 + patch make.conf.example "make.conf.example.${ARCH}".diff || \
216 + die "Failed to patch make.conf.example"
217 + else
218 + eerror ""
219 + eerror "Portage does not have an arch-specific configuration for this arch."
220 + eerror "Please notify the arch maintainer about this issue. Using generic."
221 + eerror ""
222 + fi
223 +}
224 +
225 +python_compile_all() {
226 + local targets=()
227 + use doc && targets+=( docbook )
228 + use epydoc && targets+=( epydoc )
229 +
230 + if [[ ${targets[@]} ]]; then
231 + esetup.py "${targets[@]}"
232 + fi
233 +}
234 +
235 +python_test() {
236 + esetup.py test
237 +}
238 +
239 +python_install() {
240 + # Install sbin scripts to bindir for python-exec linking
241 + # they will be relocated in pkg_preinst()
242 + distutils-r1_python_install \
243 + --system-prefix="${EPREFIX}/usr" \
244 + --bindir="$(python_get_scriptdir)" \
245 + --docdir="${EPREFIX}/usr/share/doc/${PF}" \
246 + --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \
247 + --portage-bindir="${EPREFIX}/usr/lib/portage/${EPYTHON}" \
248 + --sbindir="$(python_get_scriptdir)" \
249 + --sysconfdir="${EPREFIX}/etc" \
250 + "${@}"
251 +}
252 +
253 +python_install_all() {
254 + distutils-r1_python_install_all
255 +
256 + local targets=()
257 + use doc && targets+=(
258 + install_docbook
259 + --htmldir="${EPREFIX}/usr/share/doc/${PF}/html"
260 + )
261 + use epydoc && targets+=(
262 + install_epydoc
263 + --htmldir="${EPREFIX}/usr/share/doc/${PF}/html"
264 + )
265 +
266 + # install docs
267 + if [[ ${targets[@]} ]]; then
268 + esetup.py "${targets[@]}"
269 + fi
270 +
271 + systemd_dotmpfilesd "${FILESDIR}"/portage-ccache.conf
272 +
273 + # Due to distutils/python-exec limitations
274 + # these must be installed to /usr/bin.
275 + local sbin_relocations='archive-conf dispatch-conf emaint env-update etc-update fixpackages regenworld'
276 + einfo "Moving admin scripts to the correct directory"
277 + dodir /usr/sbin
278 + for target in ${sbin_relocations}; do
279 + einfo "Moving /usr/bin/${target} to /usr/sbin/${target}"
280 + mv "${ED}usr/bin/${target}" "${ED}usr/sbin/${target}" || die "sbin scripts move failed!"
281 + done
282 +}
283 +
284 +pkg_preinst() {
285 + python_setup
286 + python_export PYTHON_SITEDIR
287 + [[ -d ${D%/}${PYTHON_SITEDIR} ]] || die "${D%/}${PYTHON_SITEDIR}: No such directory"
288 + env -u DISTDIR \
289 + -u PORTAGE_OVERRIDE_EPREFIX \
290 + -u PORTAGE_REPOSITORIES \
291 + -u PORTDIR \
292 + -u PORTDIR_OVERLAY \
293 + PYTHONPATH="${D%/}${PYTHON_SITEDIR}${PYTHONPATH:+:${PYTHONPATH}}" \
294 + "${PYTHON}" -m portage._compat_upgrade.default_locations || die
295 +
296 + # elog dir must exist to avoid logrotate error for bug #415911.
297 + # This code runs in preinst in order to bypass the mapping of
298 + # portage:portage to root:root which happens after src_install.
299 + keepdir /var/log/portage/elog
300 + # This is allowed to fail if the user/group are invalid for prefix users.
301 + if chown portage:portage "${ED}"var/log/portage{,/elog} 2>/dev/null ; then
302 + chmod g+s,ug+rwx "${ED}"var/log/portage{,/elog}
303 + fi
304 +}