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: Mon, 05 Feb 2018 17:49:10
Message-Id: 1517852907.3e3f1963e8e81bfd3888e017babd801ab88b4dce.zmedico@gentoo
1 commit: 3e3f1963e8e81bfd3888e017babd801ab88b4dce
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 5 17:48:27 2018 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 5 17:48:27 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e3f1963
7
8 sys-apps/portage: remove old versions
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 sys-apps/portage/Manifest | 3 -
13 sys-apps/portage/portage-2.3.14.ebuild | 262 -------------------------------
14 sys-apps/portage/portage-2.3.20.ebuild | 260 -------------------------------
15 sys-apps/portage/portage-2.3.6.ebuild | 277 ---------------------------------
16 4 files changed, 802 deletions(-)
17
18 diff --git a/sys-apps/portage/Manifest b/sys-apps/portage/Manifest
19 index c8d99f2f072..c166e991e4d 100644
20 --- a/sys-apps/portage/Manifest
21 +++ b/sys-apps/portage/Manifest
22 @@ -1,8 +1,5 @@
23 DIST portage-2.3.13.tar.bz2 945477 BLAKE2B 0ad44859f04db529713cc80a51e6dadc767ed6b6d0aef1d070650d82133c05e161eaa9fd1e208b3078c513ccf6f73136b8bf865542f0dc9396de9142bad1d32c SHA512 71d9ea6c9a889572f60e7e501e9f8739db588cffd98a431303906eb90c1f7bb85c55f6779cbfb921630149d1b3174539fe2357fbeffbbe9857998907e3215ad3
24 -DIST portage-2.3.14.tar.bz2 948535 BLAKE2B 765c9eabb64c3b095993bb244481df2d243f57ad97029d7bb3d9ac89fd0ee939fb3a2aaa624a0f40959820903d70e6c209518d97df6b82501325963c963db9df SHA512 36daf3b9425e08a8e136e87dbb7be43d4688b5505203f11938a07b916da441e1f802b1cbd2e97505c0dc1c249ba5fda2a059a4ad515c2887f8199d1e130a2732
25 DIST portage-2.3.16.tar.bz2 949134 BLAKE2B f8e7b6f13dfbf9aecdec444705042c6584c324522c0d131bf3c10f8fbfd5f6eeb97134afa42ed23da37f36ad4e2a0fc27129aebeb100aed2e3fd650c360ed060 SHA512 5847904b3262adcef04c7d6781cf2d03130480a49c5343a3a2d5cc36ddc7245ac30b1ba152329f96e2e4ca8d62ef387554cb228798db60f6f8141830d147dfaf
26 DIST portage-2.3.19.tar.bz2 954921 BLAKE2B e1bb3606ff2c5ba7b2123c61469b99f4d5d89f534a9af26065ac03bb2accd00cd363e4027e33546fc9b6d01b2fb65ca0d4311c6e2e8cc518c09030c979a69240 SHA512 94899bdfa4d22c846234bd28d4744613202cf67d3f32c242cb7fb60b17419419a2a29912e584ade7df52fba4c6a58774c5859148352221c978f34b4e7680981d
27 -DIST portage-2.3.20.tar.bz2 956633 BLAKE2B cf166a10522c5fab6b273674be4d7a673b961fe1c2ca649c7fa6d3759364dd1454ea57edd1e99fd2648b47244fde6f311fb925f50b9a118a1d2880048eb9f39e SHA512 e4fde56f5293b25ef5f484cf601c1db71c350603987e1b2736d9b8434158e8778c637dd5891401e6d484c7a11f1982bbe8213a352c185fc4c6b0039006756764
28 DIST portage-2.3.24.tar.bz2 959266 BLAKE2B bc15f10599c694ad29f5a55264e929d0a04a9c5211e9cafd4f1a35de1d77e655d99df0ceb352fd431a8cefd40c733064422d8f41099edf7263aa36ef8cfd2ba8 SHA512 fca250d4afc1819a27b67daff770132ed4e88fb067038992a6b3f8aac63604536366ea628dd30c24f93db19ae55e88da372598ccc489bcf445038dfe860ce0ec
29 -DIST portage-2.3.6.tar.bz2 943085 BLAKE2B 5c649ec5f5a82b5f55c71425d13ee3335a773c7f78500d6ec963594c95eba5d9fc49c37ab5ca1bde7621398443d526a8a1485b67748f859726f7f581e2d88091 SHA512 5bcfb678c1ea0cd97a983ee7520c9ecabd07d5bb0fd01c70b74fd7b6ce478f4a109aac84d40b82426719ca7c9ee6aed3affb3b9754045e62b4c664ae113cf055
30 DIST portage-2.3.8.tar.bz2 938062 BLAKE2B 3f7bedf6268131a3b3539d53c8a7bb069b533b3a78e5eec521b6201439c8ee5e66996e798fe295561d0a94bfcd32adf414d4f8b5e7a93035cea09749406e64a3 SHA512 4b4b2de20323799b9b0f7a8812f939aa9a96d2744a0f65ad5287ba49744c491b55169cdb21f2885317a6a7c960d2070775ffd798f247b44eebc677c33c271eb8
31
32 diff --git a/sys-apps/portage/portage-2.3.14.ebuild b/sys-apps/portage/portage-2.3.14.ebuild
33 deleted file mode 100644
34 index c60736c0528..00000000000
35 --- a/sys-apps/portage/portage-2.3.14.ebuild
36 +++ /dev/null
37 @@ -1,262 +0,0 @@
38 -# Copyright 1999-2018 Gentoo Foundation
39 -# Distributed under the terms of the GNU General Public License v2
40 -
41 -EAPI=5
42 -
43 -PYTHON_COMPAT=(
44 - pypy
45 - python3_4 python3_5 python3_6
46 - python2_7
47 -)
48 -PYTHON_REQ_USE='bzip2(+),threads(+)'
49 -
50 -inherit distutils-r1
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 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
57 -SLOT="0"
58 -IUSE="build doc epydoc +ipc +native-extensions 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 -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? ( sys-freebsd/freebsd-bin )
84 - elibc_glibc? ( >=sys-apps/sandbox-2.2 )
85 - elibc_musl? ( >=sys-apps/sandbox-2.2 )
86 - elibc_uclibc? ( >=sys-apps/sandbox-2.2 )
87 - >=app-misc/pax-utils-0.1.17
88 - selinux? ( >=sys-libs/libselinux-2.0.94[python,${PYTHON_USEDEP}] )
89 - xattr? ( kernel_linux? (
90 - >=sys-apps/install-xattr-0.3
91 - $(python_gen_cond_dep 'dev-python/pyxattr[${PYTHON_USEDEP}]' \
92 - python2_7 pypy)
93 - ) )
94 - !<app-admin/logrotate-3.8.0"
95 -PDEPEND="
96 - !build? (
97 - >=net-misc/rsync-2.6.4
98 - userland_GNU? ( >=sys-apps/coreutils-6.4 )
99 - )"
100 -# coreutils-6.4 rdep is for date format in emerge-webrsync #164532
101 -# NOTE: FEATURES=installsources requires debugedit and rsync
102 -
103 -REQUIRED_USE="epydoc? ( $(python_gen_useflags 'python2*') )"
104 -
105 -SRC_ARCHIVES="https://dev.gentoo.org/~zmedico/portage/archives"
106 -
107 -prefix_src_archives() {
108 - local x y
109 - for x in ${@}; do
110 - for y in ${SRC_ARCHIVES}; do
111 - echo ${y}/${x}
112 - done
113 - done
114 -}
115 -
116 -TARBALL_PV=${PV}
117 -SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2
118 - $(prefix_src_archives ${PN}-${TARBALL_PV}.tar.bz2)"
119 -
120 -pkg_setup() {
121 - use epydoc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2.7 )
122 -}
123 -
124 -python_prepare_all() {
125 - distutils-r1_python_prepare_all
126 -
127 - sed -e "s|user_options = install_data.user_options$|\0 + [\n\
128 - ('htmldir=', None, 'HTML documentation install directory')]|" -i \
129 - setup.py || die #638046
130 -
131 - if use native-extensions; then
132 - printf "[build_ext]\nportage-ext-modules=true\n" >> \
133 - setup.cfg || die
134 - fi
135 -
136 - if ! use ipc ; then
137 - einfo "Disabling ipc..."
138 - sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \
139 - -i pym/_emerge/AbstractEbuildProcess.py || \
140 - die "failed to patch AbstractEbuildProcess.py"
141 - fi
142 -
143 - if use xattr && use kernel_linux ; then
144 - einfo "Adding FEATURES=xattr to make.globals ..."
145 - echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \
146 - || die "failed to append to make.globals"
147 - fi
148 -
149 - if [[ -n ${EPREFIX} ]] ; then
150 - einfo "Setting portage.const.EPREFIX ..."
151 - sed -e "s|^\(SANDBOX_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/sandbox\"\)|\\1${EPREFIX}\\2|" \
152 - -e "s|^\(FAKEROOT_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/fakeroot\"\)|\\1${EPREFIX}\\2|" \
153 - -e "s|^\(BASH_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/bash\"\)|\\1${EPREFIX}\\2|" \
154 - -e "s|^\(MOVE_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/mv\"\)|\\1${EPREFIX}\\2|" \
155 - -e "s|^\(PRELINK_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/sbin/prelink\"\)|\\1${EPREFIX}\\2|" \
156 - -e "s|^\(EPREFIX[[:space:]]*=[[:space:]]*\"\).*|\\1${EPREFIX}\"|" \
157 - -i pym/portage/const.py || \
158 - die "Failed to patch portage.const.EPREFIX"
159 -
160 - einfo "Prefixing shebangs ..."
161 - while read -r -d $'\0' ; do
162 - local shebang=$(head -n1 "$REPLY")
163 - if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then
164 - sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "$REPLY" || \
165 - die "sed failed"
166 - fi
167 - done < <(find . -type f -print0)
168 -
169 - einfo "Adjusting make.globals ..."
170 - sed -e "s|\(/usr/portage\)|${EPREFIX}\\1|" \
171 - -e "s|^\(PORTAGE_TMPDIR=\"\)\(/var/tmp\"\)|\\1${EPREFIX}\\2|" \
172 - -i cnf/make.globals || die "sed failed"
173 -
174 - einfo "Adjusting repos.conf ..."
175 - sed -e "s|^\(location = \)\(/usr/portage\)|\\1${EPREFIX}\\2|" \
176 - -i cnf/repos.conf || die "sed failed"
177 - if use prefix-guest ; then
178 - sed -e "s|^\(main-repo = \).*|\\1gentoo_prefix|" \
179 - -e "s|^\\[gentoo\\]|[gentoo_prefix]|" \
180 - -e "s|^\(sync-uri = \).*|\\1rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix|" \
181 - -i cnf/repos.conf || die "sed failed"
182 - fi
183 -
184 - einfo "Adding FEATURES=force-prefix to make.globals ..."
185 - echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \
186 - || die "failed to append to make.globals"
187 - fi
188 -
189 - cd "${S}/cnf" || die
190 - if [ -f "make.conf.example.${ARCH}".diff ]; then
191 - patch make.conf.example "make.conf.example.${ARCH}".diff || \
192 - die "Failed to patch make.conf.example"
193 - else
194 - eerror ""
195 - eerror "Portage does not have an arch-specific configuration for this arch."
196 - eerror "Please notify the arch maintainer about this issue. Using generic."
197 - eerror ""
198 - fi
199 -}
200 -
201 -python_compile_all() {
202 - local targets=()
203 - use doc && targets+=( docbook )
204 - use epydoc && targets+=( epydoc )
205 -
206 - if [[ ${targets[@]} ]]; then
207 - esetup.py "${targets[@]}"
208 - fi
209 -}
210 -
211 -python_test() {
212 - esetup.py test
213 -}
214 -
215 -python_install() {
216 - # Install sbin scripts to bindir for python-exec linking
217 - # they will be relocated in pkg_preinst()
218 - distutils-r1_python_install \
219 - --system-prefix="${EPREFIX}/usr" \
220 - --bindir="$(python_get_scriptdir)" \
221 - --docdir="${EPREFIX}/usr/share/doc/${PF}" \
222 - --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \
223 - --portage-bindir="${EPREFIX}/usr/lib/portage/${EPYTHON}" \
224 - --sbindir="$(python_get_scriptdir)" \
225 - --sysconfdir="${EPREFIX}/etc" \
226 - "${@}"
227 -}
228 -
229 -python_install_all() {
230 - distutils-r1_python_install_all
231 -
232 - local targets=()
233 - use doc && targets+=(
234 - install_docbook
235 - --htmldir="${EPREFIX}/usr/share/doc/${PF}/html"
236 - )
237 - use epydoc && targets+=(
238 - install_epydoc
239 - --htmldir="${EPREFIX}/usr/share/doc/${PF}/html"
240 - )
241 -
242 - # install docs
243 - if [[ ${targets[@]} ]]; then
244 - esetup.py "${targets[@]}"
245 - fi
246 -
247 - # Due to distutils/python-exec limitations
248 - # these must be installed to /usr/bin.
249 - local sbin_relocations='archive-conf dispatch-conf emaint env-update etc-update fixpackages regenworld'
250 - einfo "Moving admin scripts to the correct directory"
251 - dodir /usr/sbin
252 - for target in ${sbin_relocations}; do
253 - einfo "Moving /usr/bin/${target} to /usr/sbin/${target}"
254 - mv "${ED}usr/bin/${target}" "${ED}usr/sbin/${target}" || die "sbin scripts move failed!"
255 - done
256 -}
257 -
258 -pkg_preinst() {
259 - # comment out sanity test until it is fixed to work
260 - # with the new PORTAGE_PYM_PATH
261 - #if [[ $ROOT == / ]] ; then
262 - ## Run some minimal tests as a sanity check.
263 - #local test_runner=$(find "${ED}" -name runTests)
264 - #if [[ -n $test_runner && -x $test_runner ]] ; then
265 - #einfo "Running preinst sanity tests..."
266 - #"$test_runner" || die "preinst sanity tests failed"
267 - #fi
268 - #fi
269 -
270 - # elog dir must exist to avoid logrotate error for bug #415911.
271 - # This code runs in preinst in order to bypass the mapping of
272 - # portage:portage to root:root which happens after src_install.
273 - keepdir /var/log/portage/elog
274 - # This is allowed to fail if the user/group are invalid for prefix users.
275 - if chown portage:portage "${ED}"var/log/portage{,/elog} 2>/dev/null ; then
276 - chmod g+s,ug+rwx "${ED}"var/log/portage{,/elog}
277 - fi
278 -
279 - if has_version ">=${CATEGORY}/${PN}-2.3.1" && \
280 - has_version "<${CATEGORY}/${PN}-2.3.3"; then
281 - SYNC_DEPTH_UPGRADE=true
282 - else
283 - SYNC_DEPTH_UPGRADE=false
284 - fi
285 -}
286 -
287 -pkg_postinst() {
288 - if ${SYNC_DEPTH_UPGRADE}; then
289 - ewarn "Please note that this release no longer respects sync-depth for"
290 - ewarn "git repositories. There have been too many problems and"
291 - ewarn "performance issues. See bugs 552814, 559008"
292 - fi
293 - einfo ""
294 - einfo "This release of portage NO LONGER contains the repoman code base."
295 - einfo "Repoman has its own ebuild and release package."
296 - einfo "For repoman functionality please emerge app-portage/repoman"
297 - einfo "Please report any bugs you may encounter."
298 - einfo ""
299 -}
300
301 diff --git a/sys-apps/portage/portage-2.3.20.ebuild b/sys-apps/portage/portage-2.3.20.ebuild
302 deleted file mode 100644
303 index 777f27ef0d5..00000000000
304 --- a/sys-apps/portage/portage-2.3.20.ebuild
305 +++ /dev/null
306 @@ -1,260 +0,0 @@
307 -# Copyright 1999-2018 Gentoo Foundation
308 -# Distributed under the terms of the GNU General Public License v2
309 -
310 -EAPI=5
311 -
312 -PYTHON_COMPAT=(
313 - pypy
314 - python3_4 python3_5 python3_6
315 - python2_7
316 -)
317 -PYTHON_REQ_USE='bzip2(+),threads(+)'
318 -
319 -inherit distutils-r1 systemd
320 -
321 -DESCRIPTION="Portage is the package management and distribution system for Gentoo"
322 -HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage"
323 -
324 -LICENSE="GPL-2"
325 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
326 -SLOT="0"
327 -IUSE="build doc epydoc +ipc +native-extensions selinux xattr"
328 -
329 -DEPEND="!build? ( $(python_gen_impl_dep 'ssl(+)') )
330 - >=app-arch/tar-1.27
331 - dev-lang/python-exec:2
332 - >=sys-apps/sed-4.0.5 sys-devel/patch
333 - doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 )
334 - epydoc? ( >=dev-python/epydoc-2.0[$(python_gen_usedep 'python2*')] )"
335 -# Require sandbox-2.2 for bug #288863.
336 -# For xattr, we can spawn getfattr and setfattr from sys-apps/attr, but that's
337 -# quite slow, so it's not considered in the dependencies as an alternative to
338 -# to python-3.3 / pyxattr. Also, xattr support is only tested with Linux, so
339 -# for now, don't pull in xattr deps for other kernels.
340 -# For whirlpool hash, require python[ssl] (bug #425046).
341 -# For compgen, require bash[readline] (bug #445576).
342 -RDEPEND="
343 - >=app-arch/tar-1.27
344 - dev-lang/python-exec:2
345 - !build? (
346 - >=sys-apps/sed-4.0.5
347 - app-shells/bash:0[readline]
348 - >=app-admin/eselect-1.2
349 - $(python_gen_cond_dep 'dev-python/pyblake2[${PYTHON_USEDEP}]' \
350 - python{2_7,3_4,3_5} pypy)
351 - )
352 - elibc_FreeBSD? ( sys-freebsd/freebsd-bin )
353 - elibc_glibc? ( >=sys-apps/sandbox-2.2 )
354 - elibc_musl? ( >=sys-apps/sandbox-2.2 )
355 - elibc_uclibc? ( >=sys-apps/sandbox-2.2 )
356 - >=app-misc/pax-utils-0.1.17
357 - selinux? ( >=sys-libs/libselinux-2.0.94[python,${PYTHON_USEDEP}] )
358 - xattr? ( kernel_linux? (
359 - >=sys-apps/install-xattr-0.3
360 - $(python_gen_cond_dep 'dev-python/pyxattr[${PYTHON_USEDEP}]' \
361 - python2_7 pypy)
362 - ) )
363 - !<app-admin/logrotate-3.8.0"
364 -PDEPEND="
365 - !build? (
366 - >=net-misc/rsync-2.6.4
367 - userland_GNU? ( >=sys-apps/coreutils-6.4 )
368 - )"
369 -# coreutils-6.4 rdep is for date format in emerge-webrsync #164532
370 -# NOTE: FEATURES=installsources requires debugedit and rsync
371 -
372 -REQUIRED_USE="epydoc? ( $(python_gen_useflags 'python2*') )"
373 -
374 -SRC_ARCHIVES="https://dev.gentoo.org/~zmedico/portage/archives"
375 -
376 -prefix_src_archives() {
377 - local x y
378 - for x in ${@}; do
379 - for y in ${SRC_ARCHIVES}; do
380 - echo ${y}/${x}
381 - done
382 - done
383 -}
384 -
385 -TARBALL_PV=${PV}
386 -SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2
387 - $(prefix_src_archives ${PN}-${TARBALL_PV}.tar.bz2)"
388 -
389 -pkg_setup() {
390 - use epydoc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2.7 )
391 -}
392 -
393 -python_prepare_all() {
394 - distutils-r1_python_prepare_all
395 -
396 - if use native-extensions; then
397 - printf "[build_ext]\nportage-ext-modules=true\n" >> \
398 - setup.cfg || die
399 - fi
400 -
401 - if ! use ipc ; then
402 - einfo "Disabling ipc..."
403 - sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \
404 - -i pym/_emerge/AbstractEbuildProcess.py || \
405 - die "failed to patch AbstractEbuildProcess.py"
406 - fi
407 -
408 - if use xattr && use kernel_linux ; then
409 - einfo "Adding FEATURES=xattr to make.globals ..."
410 - echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \
411 - || die "failed to append to make.globals"
412 - fi
413 -
414 - if [[ -n ${EPREFIX} ]] ; then
415 - einfo "Setting portage.const.EPREFIX ..."
416 - sed -e "s|^\(SANDBOX_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/sandbox\"\)|\\1${EPREFIX}\\2|" \
417 - -e "s|^\(FAKEROOT_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/fakeroot\"\)|\\1${EPREFIX}\\2|" \
418 - -e "s|^\(BASH_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/bash\"\)|\\1${EPREFIX}\\2|" \
419 - -e "s|^\(MOVE_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/mv\"\)|\\1${EPREFIX}\\2|" \
420 - -e "s|^\(PRELINK_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/sbin/prelink\"\)|\\1${EPREFIX}\\2|" \
421 - -e "s|^\(EPREFIX[[:space:]]*=[[:space:]]*\"\).*|\\1${EPREFIX}\"|" \
422 - -i pym/portage/const.py || \
423 - die "Failed to patch portage.const.EPREFIX"
424 -
425 - einfo "Prefixing shebangs ..."
426 - while read -r -d $'\0' ; do
427 - local shebang=$(head -n1 "$REPLY")
428 - if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then
429 - sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "$REPLY" || \
430 - die "sed failed"
431 - fi
432 - done < <(find . -type f -print0)
433 -
434 - einfo "Adjusting make.globals ..."
435 - sed -e "s|\(/usr/portage\)|${EPREFIX}\\1|" \
436 - -e "s|^\(PORTAGE_TMPDIR=\"\)\(/var/tmp\"\)|\\1${EPREFIX}\\2|" \
437 - -i cnf/make.globals || die "sed failed"
438 -
439 - einfo "Adjusting repos.conf ..."
440 - sed -e "s|^\(location = \)\(/usr/portage\)|\\1${EPREFIX}\\2|" \
441 - -i cnf/repos.conf || die "sed failed"
442 - if use prefix-guest ; then
443 - sed -e "s|^\(main-repo = \).*|\\1gentoo_prefix|" \
444 - -e "s|^\\[gentoo\\]|[gentoo_prefix]|" \
445 - -e "s|^\(sync-uri = \).*|\\1rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix|" \
446 - -i cnf/repos.conf || die "sed failed"
447 - fi
448 -
449 - einfo "Adding FEATURES=force-prefix to make.globals ..."
450 - echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \
451 - || die "failed to append to make.globals"
452 - fi
453 -
454 - cd "${S}/cnf" || die
455 - if [ -f "make.conf.example.${ARCH}".diff ]; then
456 - patch make.conf.example "make.conf.example.${ARCH}".diff || \
457 - die "Failed to patch make.conf.example"
458 - else
459 - eerror ""
460 - eerror "Portage does not have an arch-specific configuration for this arch."
461 - eerror "Please notify the arch maintainer about this issue. Using generic."
462 - eerror ""
463 - fi
464 -}
465 -
466 -python_compile_all() {
467 - local targets=()
468 - use doc && targets+=( docbook )
469 - use epydoc && targets+=( epydoc )
470 -
471 - if [[ ${targets[@]} ]]; then
472 - esetup.py "${targets[@]}"
473 - fi
474 -}
475 -
476 -python_test() {
477 - esetup.py test
478 -}
479 -
480 -python_install() {
481 - # Install sbin scripts to bindir for python-exec linking
482 - # they will be relocated in pkg_preinst()
483 - distutils-r1_python_install \
484 - --system-prefix="${EPREFIX}/usr" \
485 - --bindir="$(python_get_scriptdir)" \
486 - --docdir="${EPREFIX}/usr/share/doc/${PF}" \
487 - --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \
488 - --portage-bindir="${EPREFIX}/usr/lib/portage/${EPYTHON}" \
489 - --sbindir="$(python_get_scriptdir)" \
490 - --sysconfdir="${EPREFIX}/etc" \
491 - "${@}"
492 -}
493 -
494 -python_install_all() {
495 - distutils-r1_python_install_all
496 -
497 - local targets=()
498 - use doc && targets+=(
499 - install_docbook
500 - --htmldir="${EPREFIX}/usr/share/doc/${PF}/html"
501 - )
502 - use epydoc && targets+=(
503 - install_epydoc
504 - --htmldir="${EPREFIX}/usr/share/doc/${PF}/html"
505 - )
506 -
507 - # install docs
508 - if [[ ${targets[@]} ]]; then
509 - esetup.py "${targets[@]}"
510 - fi
511 -
512 - systemd_dotmpfilesd "${FILESDIR}"/portage-ccache.conf
513 -
514 - # Due to distutils/python-exec limitations
515 - # these must be installed to /usr/bin.
516 - local sbin_relocations='archive-conf dispatch-conf emaint env-update etc-update fixpackages regenworld'
517 - einfo "Moving admin scripts to the correct directory"
518 - dodir /usr/sbin
519 - for target in ${sbin_relocations}; do
520 - einfo "Moving /usr/bin/${target} to /usr/sbin/${target}"
521 - mv "${ED}usr/bin/${target}" "${ED}usr/sbin/${target}" || die "sbin scripts move failed!"
522 - done
523 -}
524 -
525 -pkg_preinst() {
526 - # comment out sanity test until it is fixed to work
527 - # with the new PORTAGE_PYM_PATH
528 - #if [[ $ROOT == / ]] ; then
529 - ## Run some minimal tests as a sanity check.
530 - #local test_runner=$(find "${ED}" -name runTests)
531 - #if [[ -n $test_runner && -x $test_runner ]] ; then
532 - #einfo "Running preinst sanity tests..."
533 - #"$test_runner" || die "preinst sanity tests failed"
534 - #fi
535 - #fi
536 -
537 - # elog dir must exist to avoid logrotate error for bug #415911.
538 - # This code runs in preinst in order to bypass the mapping of
539 - # portage:portage to root:root which happens after src_install.
540 - keepdir /var/log/portage/elog
541 - # This is allowed to fail if the user/group are invalid for prefix users.
542 - if chown portage:portage "${ED}"var/log/portage{,/elog} 2>/dev/null ; then
543 - chmod g+s,ug+rwx "${ED}"var/log/portage{,/elog}
544 - fi
545 -
546 - if has_version ">=${CATEGORY}/${PN}-2.3.1" && \
547 - has_version "<${CATEGORY}/${PN}-2.3.3"; then
548 - SYNC_DEPTH_UPGRADE=true
549 - else
550 - SYNC_DEPTH_UPGRADE=false
551 - fi
552 -}
553 -
554 -pkg_postinst() {
555 - if ${SYNC_DEPTH_UPGRADE}; then
556 - ewarn "Please note that this release no longer respects sync-depth for"
557 - ewarn "git repositories. There have been too many problems and"
558 - ewarn "performance issues. See bugs 552814, 559008"
559 - fi
560 - einfo ""
561 - einfo "This release of portage NO LONGER contains the repoman code base."
562 - einfo "Repoman has its own ebuild and release package."
563 - einfo "For repoman functionality please emerge app-portage/repoman"
564 - einfo "Please report any bugs you may encounter."
565 - einfo ""
566 -}
567
568 diff --git a/sys-apps/portage/portage-2.3.6.ebuild b/sys-apps/portage/portage-2.3.6.ebuild
569 deleted file mode 100644
570 index 6ed03281333..00000000000
571 --- a/sys-apps/portage/portage-2.3.6.ebuild
572 +++ /dev/null
573 @@ -1,277 +0,0 @@
574 -# Copyright 1999-2018 Gentoo Foundation
575 -# Distributed under the terms of the GNU General Public License v2
576 -
577 -EAPI=5
578 -
579 -PYTHON_COMPAT=(
580 - pypy
581 - python3_4 python3_5 python3_6
582 - python2_7
583 -)
584 -PYTHON_REQ_USE='bzip2(+),threads(+)'
585 -
586 -inherit distutils-r1 multilib
587 -
588 -DESCRIPTION="Portage is the package management and distribution system for Gentoo"
589 -HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage"
590 -
591 -LICENSE="GPL-2"
592 -KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd"
593 -SLOT="0"
594 -IUSE="build doc epydoc +ipc +native-extensions selinux xattr"
595 -
596 -DEPEND="!build? ( $(python_gen_impl_dep 'ssl(+)') )
597 - >=app-arch/tar-1.27
598 - dev-lang/python-exec:2
599 - >=sys-apps/sed-4.0.5 sys-devel/patch
600 - doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 )
601 - epydoc? ( >=dev-python/epydoc-2.0[$(python_gen_usedep 'python2*')] )"
602 -# Require sandbox-2.2 for bug #288863.
603 -# For xattr, we can spawn getfattr and setfattr from sys-apps/attr, but that's
604 -# quite slow, so it's not considered in the dependencies as an alternative to
605 -# to python-3.3 / pyxattr. Also, xattr support is only tested with Linux, so
606 -# for now, don't pull in xattr deps for other kernels.
607 -# For whirlpool hash, require python[ssl] (bug #425046).
608 -# For compgen, require bash[readline] (bug #445576).
609 -RDEPEND="
610 - >=app-arch/tar-1.27
611 - dev-lang/python-exec:2
612 - !build? (
613 - >=sys-apps/sed-4.0.5
614 - app-shells/bash:0[readline]
615 - >=app-admin/eselect-1.2
616 - )
617 - elibc_FreeBSD? ( sys-freebsd/freebsd-bin )
618 - elibc_glibc? ( >=sys-apps/sandbox-2.2 )
619 - elibc_musl? ( >=sys-apps/sandbox-2.2 )
620 - elibc_uclibc? ( >=sys-apps/sandbox-2.2 )
621 - >=app-misc/pax-utils-0.1.17
622 - selinux? ( >=sys-libs/libselinux-2.0.94[python,${PYTHON_USEDEP}] )
623 - xattr? ( kernel_linux? (
624 - >=sys-apps/install-xattr-0.3
625 - $(python_gen_cond_dep 'dev-python/pyxattr[${PYTHON_USEDEP}]' \
626 - python2_7 pypy)
627 - ) )
628 - !<app-admin/logrotate-3.8.0"
629 -PDEPEND="
630 - !build? (
631 - >=net-misc/rsync-2.6.4
632 - userland_GNU? ( >=sys-apps/coreutils-6.4 )
633 - )"
634 -# coreutils-6.4 rdep is for date format in emerge-webrsync #164532
635 -# NOTE: FEATURES=installsources requires debugedit and rsync
636 -
637 -REQUIRED_USE="epydoc? ( $(python_gen_useflags 'python2*') )"
638 -
639 -SRC_ARCHIVES="https://dev.gentoo.org/~dolsen/releases/portage"
640 -
641 -prefix_src_archives() {
642 - local x y
643 - for x in ${@}; do
644 - for y in ${SRC_ARCHIVES}; do
645 - echo ${y}/${x}
646 - done
647 - done
648 -}
649 -
650 -TARBALL_PV=${PV}
651 -SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2
652 - $(prefix_src_archives ${PN}-${TARBALL_PV}.tar.bz2)"
653 -
654 -pkg_setup() {
655 - use epydoc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2.7 )
656 -}
657 -
658 -python_prepare_all() {
659 - distutils-r1_python_prepare_all
660 -
661 - if use native-extensions; then
662 - printf "[build_ext]\nportage-ext-modules=true\n" >> \
663 - setup.cfg || die
664 - fi
665 -
666 - if ! use ipc ; then
667 - einfo "Disabling ipc..."
668 - sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \
669 - -i pym/_emerge/AbstractEbuildProcess.py || \
670 - die "failed to patch AbstractEbuildProcess.py"
671 - fi
672 -
673 - if use xattr && use kernel_linux ; then
674 - einfo "Adding FEATURES=xattr to make.globals ..."
675 - echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \
676 - || die "failed to append to make.globals"
677 - fi
678 -
679 - if [[ -n ${EPREFIX} ]] ; then
680 - einfo "Setting portage.const.EPREFIX ..."
681 - sed -e "s|^\(SANDBOX_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/sandbox\"\)|\\1${EPREFIX}\\2|" \
682 - -e "s|^\(FAKEROOT_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/fakeroot\"\)|\\1${EPREFIX}\\2|" \
683 - -e "s|^\(BASH_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/bash\"\)|\\1${EPREFIX}\\2|" \
684 - -e "s|^\(MOVE_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/mv\"\)|\\1${EPREFIX}\\2|" \
685 - -e "s|^\(PRELINK_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/sbin/prelink\"\)|\\1${EPREFIX}\\2|" \
686 - -e "s|^\(EPREFIX[[:space:]]*=[[:space:]]*\"\).*|\\1${EPREFIX}\"|" \
687 - -i pym/portage/const.py || \
688 - die "Failed to patch portage.const.EPREFIX"
689 -
690 - einfo "Prefixing shebangs ..."
691 - while read -r -d $'\0' ; do
692 - local shebang=$(head -n1 "$REPLY")
693 - if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then
694 - sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "$REPLY" || \
695 - die "sed failed"
696 - fi
697 - done < <(find . -type f -print0)
698 -
699 - einfo "Adjusting make.globals ..."
700 - sed -e "s|\(/usr/portage\)|${EPREFIX}\\1|" \
701 - -e "s|^\(PORTAGE_TMPDIR=\"\)\(/var/tmp\"\)|\\1${EPREFIX}\\2|" \
702 - -i cnf/make.globals || die "sed failed"
703 -
704 - einfo "Adjusting repos.conf ..."
705 - sed -e "s|^\(main-repo = \).*|\\1gentoo_prefix|" \
706 - -e "s|^\\[gentoo\\]|[gentoo_prefix]|" \
707 - -e "s|^\(location = \)\(/usr/portage\)|\\1${EPREFIX}\\2|" \
708 - -e "s|^\(sync-uri = \).*|\\1rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix|" \
709 - -i cnf/repos.conf || die "sed failed"
710 -
711 - einfo "Adding FEATURES=force-prefix to make.globals ..."
712 - echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \
713 - || die "failed to append to make.globals"
714 - fi
715 -
716 - cd "${S}/cnf" || die
717 - if [ -f "make.conf.example.${ARCH}".diff ]; then
718 - patch make.conf.example "make.conf.example.${ARCH}".diff || \
719 - die "Failed to patch make.conf.example"
720 - else
721 - eerror ""
722 - eerror "Portage does not have an arch-specific configuration for this arch."
723 - eerror "Please notify the arch maintainer about this issue. Using generic."
724 - eerror ""
725 - fi
726 -}
727 -
728 -python_compile_all() {
729 - local targets=()
730 - use doc && targets+=( docbook )
731 - use epydoc && targets+=( epydoc )
732 -
733 - if [[ ${targets[@]} ]]; then
734 - esetup.py "${targets[@]}"
735 - fi
736 -}
737 -
738 -python_test() {
739 - esetup.py test
740 -}
741 -
742 -python_install() {
743 - # Install sbin scripts to bindir for python-exec linking
744 - # they will be relocated in pkg_preinst()
745 - distutils-r1_python_install \
746 - --system-prefix="${EPREFIX}/usr" \
747 - --bindir="$(python_get_scriptdir)" \
748 - --docdir="${EPREFIX}/usr/share/doc/${PF}" \
749 - --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \
750 - --portage-bindir="${EPREFIX}/usr/lib/portage/${EPYTHON}" \
751 - --sbindir="$(python_get_scriptdir)" \
752 - --sysconfdir="${EPREFIX}/etc" \
753 - "${@}"
754 -}
755 -
756 -python_install_all() {
757 - distutils-r1_python_install_all
758 -
759 - local targets=()
760 - use doc && targets+=( install_docbook )
761 - use epydoc && targets+=( install_epydoc )
762 -
763 - # install docs
764 - if [[ ${targets[@]} ]]; then
765 - esetup.py "${targets[@]}"
766 - fi
767 -
768 - # Due to distutils/python-exec limitations
769 - # these must be installed to /usr/bin.
770 - local sbin_relocations='archive-conf dispatch-conf emaint env-update etc-update fixpackages regenworld'
771 - einfo "Moving admin scripts to the correct directory"
772 - dodir /usr/sbin
773 - for target in ${sbin_relocations}; do
774 - einfo "Moving /usr/bin/${target} to /usr/sbin/${target}"
775 - mv "${ED}usr/bin/${target}" "${ED}usr/sbin/${target}" || die "sbin scripts move failed!"
776 - done
777 -}
778 -
779 -pkg_preinst() {
780 - # comment out sanity test until it is fixed to work
781 - # with the new PORTAGE_PYM_PATH
782 - #if [[ $ROOT == / ]] ; then
783 - ## Run some minimal tests as a sanity check.
784 - #local test_runner=$(find "${ED}" -name runTests)
785 - #if [[ -n $test_runner && -x $test_runner ]] ; then
786 - #einfo "Running preinst sanity tests..."
787 - #"$test_runner" || die "preinst sanity tests failed"
788 - #fi
789 - #fi
790 -
791 - # elog dir must exist to avoid logrotate error for bug #415911.
792 - # This code runs in preinst in order to bypass the mapping of
793 - # portage:portage to root:root which happens after src_install.
794 - keepdir /var/log/portage/elog
795 - # This is allowed to fail if the user/group are invalid for prefix users.
796 - if chown portage:portage "${ED}"var/log/portage{,/elog} 2>/dev/null ; then
797 - chmod g+s,ug+rwx "${ED}"var/log/portage{,/elog}
798 - fi
799 -
800 - if has_version ">=${CATEGORY}/${PN}-2.3.1" && \
801 - has_version "<${CATEGORY}/${PN}-2.3.3"; then
802 - SYNC_DEPTH_UPGRADE=true
803 - else
804 - SYNC_DEPTH_UPGRADE=false
805 - fi
806 -}
807 -
808 -get_ownership() {
809 - case ${USERLAND} in
810 - BSD)
811 - stat -f '%Su:%Sg' "${1}"
812 - ;;
813 - *)
814 - stat -c '%U:%G' "${1}"
815 - ;;
816 - esac
817 -}
818 -
819 -new_config_protect() {
820 - # Generate a ._cfg file even if the target file
821 - # does not exist, ensuring that the user will
822 - # notice the config change.
823 - local basename=${1##*/}
824 - local dirname=${1%/*}
825 - local i=0
826 - while true ; do
827 - local filename=$(
828 - echo -n "${dirname}/._cfg"
829 - printf "%04d" ${i}
830 - echo -n "_${basename}"
831 - )
832 - [[ -e ${filename} ]] || break
833 - (( i++ ))
834 - done
835 - echo "${filename}"
836 -}
837 -
838 -pkg_postinst() {
839 - if ${SYNC_DEPTH_UPGRADE}; then
840 - ewarn "Please note that this release no longer respects sync-depth for"
841 - ewarn "git repositories. There have been too many problems and"
842 - ewarn "performance issues. See bugs 552814, 559008"
843 - fi
844 - einfo ""
845 - einfo "This release of portage NO LONGER contains the repoman code base."
846 - einfo "Repoman has its own ebuild and release package."
847 - einfo "For repoman functionality please emerge app-portage/repoman"
848 - einfo "Please report any bugs you may encounter."
849 - einfo ""
850 -}