Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/prefix:master commit in: sys-apps/portage/
Date: Sat, 12 Jan 2019 09:13:22
Message-Id: 1547284390.7c9b7493663d6656f9d9e8c060f71e0ec72b0a13.grobian@gentoo
1 commit: 7c9b7493663d6656f9d9e8c060f71e0ec72b0a13
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 12 09:13:10 2019 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 12 09:13:10 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=7c9b7493
7
8 sys-apps/portage: bump for Darwin backtrace
9
10 Package-Manager: Portage-2.3.55-prefix, Repoman-2.3.12
11 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
12
13 sys-apps/portage/Manifest | 3 +-
14 ...rtage-2.3.54.ebuild => portage-2.3.55.1.ebuild} | 0
15 sys-apps/portage/portage-2.3.55.ebuild | 272 ---------------------
16 3 files changed, 1 insertion(+), 274 deletions(-)
17
18 diff --git a/sys-apps/portage/Manifest b/sys-apps/portage/Manifest
19 index 49bff9efbb..e314960b4d 100644
20 --- a/sys-apps/portage/Manifest
21 +++ b/sys-apps/portage/Manifest
22 @@ -1,3 +1,2 @@
23 DIST prefix-portage-2.3.52.2.tar.bz2 1258301 BLAKE2B 1334532e50df0c35a4694242f091395721ff8c6c5cd525c32d0b26cf11b207b17f42198ded88a49d7f2599fa3ad34feef0de2ac4219efe806e24913cb061a236 SHA512 d5f199b6c7545f49a8faa3ccdfcdecdb4bc3723513dad2c683db9d3a89a662c474aea0c95fead521f7dc8db71dd38cc55ac0cac9973710364032d8fc7877fbc2
24 -DIST prefix-portage-2.3.54.tar.bz2 1257276 BLAKE2B 6ed45b075261944e9aad237b7f525a2ad0b924f60e6f5a8fe1faca4c958412178360706c9cef61f5727b9e98bec3e9ff19a48617711a8c7170e321e1fecb1e1f SHA512 c4c4cfc9133c011df0953c6c984f3f914c27a36ff98bc01083f53d9e8169e63ec5a1333b04b092257c6f8f98ebf191f19cbec21c7a79006a2156115c37aefb1b
25 -DIST prefix-portage-2.3.55.tar.bz2 1288259 BLAKE2B aeefb168797d474a15b6ff9e5a988f1c905f805c904620a43cfd31174ce110b564081ec6ac73a360547ae5f418ca4ed43b6ef0022901086efb159f31e7a0d607 SHA512 a9d65c3cb4c32cff6ebb6742bb48fac346bb7e841f064e481830ef78deeed16c0b832d89b8b8ef27f208fc141828643ec1ca10e30c0d4730d4c7150357a6403b
26 +DIST prefix-portage-2.3.55.1.tar.bz2 1240409 BLAKE2B db6d62768382f93fbe933ba1dcbe8ac203529d3fcbe3e53063bdd9e5b67ec7ab10e99fcd8a2ad0d83494fa838b8b2e17f16ad16f45cc9dc4cf9801793babffe7 SHA512 11a6c80edd9e4a22e2996ad02ea7d9c5e88f074526d0350d0944d70c31087db11a1357026b2e2987e40e6f9d155524e5cae63aff7348a5692c5e7dcf16ac7a1b
27
28 diff --git a/sys-apps/portage/portage-2.3.54.ebuild b/sys-apps/portage/portage-2.3.55.1.ebuild
29 similarity index 100%
30 rename from sys-apps/portage/portage-2.3.54.ebuild
31 rename to sys-apps/portage/portage-2.3.55.1.ebuild
32
33 diff --git a/sys-apps/portage/portage-2.3.55.ebuild b/sys-apps/portage/portage-2.3.55.ebuild
34 deleted file mode 100644
35 index 9528084055..0000000000
36 --- a/sys-apps/portage/portage-2.3.55.ebuild
37 +++ /dev/null
38 @@ -1,272 +0,0 @@
39 -# Copyright 1999-2019 Gentoo Authors
40 -# Distributed under the terms of the GNU General Public License v2
41 -
42 -EAPI=5
43 -
44 -PYTHON_COMPAT=(
45 - pypy
46 - python3_4 python3_5 python3_6 python3_7
47 - python2_7
48 -)
49 -PYTHON_REQ_USE='bzip2(+),threads(+)'
50 -
51 -inherit eutils distutils-r1 multilib
52 -
53 -DESCRIPTION="Portage package manager used in Gentoo Prefix"
54 -HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage"
55 -LICENSE="GPL-2"
56 -KEYWORDS="~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
57 -SLOT="0"
58 -IUSE="build doc epydoc +ipc +native-extensions selinux xattr prefix-chaining"
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 -RDEPEND="
74 - >=app-arch/tar-1.27
75 - dev-lang/python-exec:2
76 - !build? (
77 - >=sys-apps/sed-4.0.5
78 - app-shells/bash:0[readline]
79 - >=app-admin/eselect-1.2
80 - $(python_gen_cond_dep 'dev-python/pyblake2[${PYTHON_USEDEP}]' \
81 - python{2_7,3_4,3_5} pypy)
82 - )
83 - elibc_FreeBSD? ( !prefix? ( sys-freebsd/freebsd-bin ) )
84 - elibc_glibc? ( !prefix? ( >=sys-apps/sandbox-2.2 ) )
85 - elibc_uclibc? ( !prefix? ( >=sys-apps/sandbox-2.2 ) )
86 - kernel_linux? ( >=app-misc/pax-utils-0.1.17 )
87 - kernel_SunOS? ( >=app-misc/pax-utils-0.1.17 )
88 - kernel_FreeBSD? ( >=app-misc/pax-utils-0.1.17 )
89 - kernel_Darwin? ( >=app-misc/pax-utils-0.1.18 )
90 - kernel_AIX? ( >=sys-apps/aix-miscutils-0.1.1634 )
91 - selinux? ( >=sys-libs/libselinux-2.0.94[python,${PYTHON_USEDEP}] )
92 - xattr? ( kernel_linux? (
93 - >=sys-apps/install-xattr-0.3
94 - $(python_gen_cond_dep 'dev-python/pyxattr[${PYTHON_USEDEP}]' \
95 - python2_7 pypy)
96 - ) )
97 - !<app-admin/logrotate-3.8.0"
98 -PDEPEND="
99 - !build? (
100 - >=net-misc/rsync-2.6.4
101 - userland_GNU? ( >=sys-apps/coreutils-6.4 )
102 - )"
103 -# coreutils-6.4 rdep is for date format in emerge-webrsync #164532
104 -# NOTE: FEATURES=installsources requires debugedit and rsync
105 -
106 -REQUIRED_USE="epydoc? ( $(python_gen_useflags 'python2*') )"
107 -
108 -SRC_ARCHIVES="https://dev.gentoo.org/~zmedico/portage/archives https://dev.gentoo.org/~grobian/distfiles"
109 -
110 -prefix_src_archives() {
111 - local x y
112 - for x in ${@}; do
113 - for y in ${SRC_ARCHIVES}; do
114 - echo ${y}/${x}
115 - done
116 - done
117 -}
118 -
119 -TARBALL_PV=${PV}
120 -SRC_URI="mirror://gentoo/prefix-${PN}-${TARBALL_PV}.tar.bz2
121 - $(prefix_src_archives prefix-${PN}-${TARBALL_PV}.tar.bz2)"
122 -
123 -S="${WORKDIR}"/prefix-${PN}-${TARBALL_PV}
124 -
125 -pkg_setup() {
126 - use epydoc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2.7 )
127 -}
128 -
129 -python_prepare_all() {
130 - distutils-r1_python_prepare_all
131 -
132 - epatch "${FILESDIR}"/${PN}-2.3.45-ebuildshell.patch # 155161
133 - use prefix-chaining && # maybe useful even with stacked-prefix
134 - epatch "${FILESDIR}"/${PN}-2.3.40-prefix-chaining.patch
135 -
136 - if use native-extensions; then
137 - printf "[build_ext]\nportage-ext-modules=true\n" >> \
138 - setup.cfg || die
139 - fi
140 -
141 - if ! use ipc ; then
142 - einfo "Disabling ipc..."
143 - sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \
144 - -i lib/_emerge/AbstractEbuildProcess.py || \
145 - die "failed to patch AbstractEbuildProcess.py"
146 - fi
147 -
148 - if use xattr && use kernel_linux ; then
149 - einfo "Adding FEATURES=xattr to make.globals ..."
150 - echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \
151 - || die "failed to append to make.globals"
152 - fi
153 -
154 - if [[ -n ${EPREFIX} ]] ; then
155 - # PREFIX LOCAL: only hack const_autotool
156 - local extrapath="/usr/sbin:/usr/bin:/sbin:/bin"
157 - # ok, we can't rely on PORTAGE_ROOT_USER being there yet, as people
158 - # tend not to update that often, as long as we are a separate ebuild
159 - # we can assume when unset, it's time for some older trick
160 - if [[ -z ${PORTAGE_ROOT_USER} ]] ; then
161 - PORTAGE_ROOT_USER=$(python -c 'from portage.const import rootuser; print rootuser')
162 - fi
163 - # We need to probe for bash in the Prefix, because it may not
164 - # exist, in which case we fall back to the currently in use
165 - # bash. This logic is necessary in particular during bootstrap,
166 - # where we pull ourselves out of a temporary place with tools
167 - local bash="${EPREFIX}/bin/bash"
168 - [[ ! -x ${bash} ]] && bash=${BASH}
169 -
170 - einfo "Adjusting sources for ${EPREFIX}"
171 - find . -type f -exec \
172 - sed -e "s|@PORTAGE_EPREFIX@|${EPREFIX}|" \
173 - -e "s|@PORTAGE_MV@|$(type -P mv)|" \
174 - -e "s|@PORTAGE_BASH@|${bash}|" \
175 - -e "s|@PREFIX_PORTAGE_PYTHON@|$(type -P python)|" \
176 - -e "s|@EXTRA_PATH@|${extrapath}|" \
177 - -e "s|@portagegroup@|${PORTAGE_GROUP:-portage}|" \
178 - -e "s|@portageuser@|${PORTAGE_USER:-portage}|" \
179 - -e "s|@rootuser@|${PORTAGE_ROOT_USER:-root}|" \
180 - -e "s|@rootuid@|$(id -u ${PORTAGE_ROOT_USER:-root})|" \
181 - -e "s|@rootgid@|$(id -g ${PORTAGE_ROOT_USER:-root})|" \
182 - -e "s|@sysconfdir@|${EPREFIX}/etc|" \
183 - -i '{}' + || \
184 - die "Failed to patch sources"
185 - # We don't need the below, since setup.py deals with this (and
186 - # more) so we don't have to make this correct
187 - # -e "s|@PORTAGE_BASE@|${EPREFIX}/usr/lib/portage/${EPYTHON}|" \
188 -
189 - # remove Makefiles, or else they will get installed
190 - find . -name "Makefile.*" -delete
191 -
192 - einfo "Prefixing shebangs ..."
193 - while read -r -d $'\0' ; do
194 - local shebang=$(head -n1 "$REPLY")
195 - if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then
196 - sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "$REPLY" || \
197 - die "sed failed"
198 - fi
199 - done < <(find . -type f -print0)
200 -
201 - einfo "Setting gentoo_prefix as reponame for emerge-webrsync"
202 - sed -i -e 's/repo_name=gentoo/repo_name=gentoo_prefix/' \
203 - bin/emerge-webrsync || die
204 -
205 - einfo "Making absent gemato non-fatal"
206 - sed -i -e '/exitcode = 127/d' \
207 - lib/portage/sync/modules/rsync/rsync.py || die
208 -
209 - if [[ ${CHOST} == powerpc*-darwin* ]] ; then
210 - # asyncio triggers some python bug, not worth fixing on
211 - # ppc-macos, bug #656830
212 - sed -i -e '/^_asyncio_enabled/s/=.*$/= False/' \
213 - lib/portage/util/_eventloop/global_event_loop.py || die
214 - fi
215 - # END PREFIX LOCAL
216 - fi
217 -
218 - # PREFIX LOCAL: make.conf is written by bootstrap-prefix.sh
219 - if use !prefix ; then
220 - cd "${S}/cnf" || die
221 - if [ -f "make.conf.example.${ARCH}".diff ]; then
222 - patch make.conf.example "make.conf.example.${ARCH}".diff || \
223 - die "Failed to patch make.conf.example"
224 - else
225 - eerror ""
226 - eerror "Portage does not have an arch-specific configuration for this arch."
227 - eerror "Please notify the arch maintainer about this issue. Using generic."
228 - eerror ""
229 - fi
230 - fi
231 -}
232 -
233 -python_compile_all() {
234 - local targets=()
235 - use doc && targets+=( docbook )
236 - use epydoc && targets+=( epydoc )
237 -
238 - if [[ ${targets[@]} ]]; then
239 - esetup.py "${targets[@]}"
240 - fi
241 -}
242 -
243 -python_test() {
244 - esetup.py test
245 -}
246 -
247 -python_install() {
248 - # Install sbin scripts to bindir for python-exec linking
249 - # they will be relocated in pkg_preinst()
250 - distutils-r1_python_install \
251 - --system-prefix="${EPREFIX}/usr" \
252 - --bindir="$(python_get_scriptdir)" \
253 - --docdir="${EPREFIX}/usr/share/doc/${PF}" \
254 - --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \
255 - --portage-bindir="${EPREFIX}/usr/lib/portage/${EPYTHON}" \
256 - --sbindir="$(python_get_scriptdir)" \
257 - --sysconfdir="${EPREFIX}/etc" \
258 - "${@}"
259 -}
260 -
261 -python_install_all() {
262 - distutils-r1_python_install_all
263 -
264 - local targets=()
265 - use doc && targets+=(
266 - install_docbook
267 - --htmldir="${EPREFIX}/usr/share/doc/${PF}/html"
268 - )
269 - use epydoc && targets+=(
270 - install_epydoc
271 - --htmldir="${EPREFIX}/usr/share/doc/${PF}/html"
272 - )
273 -
274 - # install docs
275 - if [[ ${targets[@]} ]]; then
276 - esetup.py "${targets[@]}"
277 - fi
278 -
279 - # Due to distutils/python-exec limitations
280 - # these must be installed to /usr/bin.
281 - local sbin_relocations='archive-conf dispatch-conf emaint env-update etc-update fixpackages regenworld'
282 - einfo "Moving admin scripts to the correct directory"
283 - dodir /usr/sbin
284 - for target in ${sbin_relocations}; do
285 - einfo "Moving /usr/bin/${target} to /usr/sbin/${target}"
286 - mv "${ED}usr/bin/${target}" "${ED}usr/sbin/${target}" || die "sbin scripts move failed!"
287 - done
288 -}
289 -
290 -pkg_preinst() {
291 - # comment out sanity test until it is fixed to work
292 - # with the new PORTAGE_PYM_PATH
293 - #if [[ $ROOT == / ]] ; then
294 - ## Run some minimal tests as a sanity check.
295 - #local test_runner=$(find "${ED}" -name runTests)
296 - #if [[ -n $test_runner && -x $test_runner ]] ; then
297 - #einfo "Running preinst sanity tests..."
298 - #"$test_runner" || die "preinst sanity tests failed"
299 - #fi
300 - #fi
301 -
302 - # elog dir must exist to avoid logrotate error for bug #415911.
303 - # This code runs in preinst in order to bypass the mapping of
304 - # portage:portage to root:root which happens after src_install.
305 - keepdir /var/log/portage/elog
306 - # This is allowed to fail if the user/group are invalid for prefix users.
307 - if chown ${PORTAGE_USER}:${PORTAGE_GROUP} "${ED}"var/log/portage{,/elog} 2>/dev/null ; then
308 - chmod g+s,ug+rwx "${ED}"var/log/portage{,/elog}
309 - fi
310 -}