summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-10-10 22:16:49 +0000
committerZac Medico <zmedico@gentoo.org>2012-10-10 22:16:49 +0000
commit69b54e185c6049999076e9d772450c4fdeb33555 (patch)
tree249d467b9a66d1c4df62e0f28ca2db251a27e688 /sys-apps
parent2.1.11.26 version bump. This fixes bug #437872 (support *_beta* wildcard (diff)
downloadhistorical-69b54e185c6049999076e9d772450c4fdeb33555.tar.gz
historical-69b54e185c6049999076e9d772450c4fdeb33555.tar.bz2
historical-69b54e185c6049999076e9d772450c4fdeb33555.zip
2.2.0_alpha137 version bump. This includes all of the fixes in 2.1.11.26.
Bug #210077 tracks all bugs fixed since portage-2.1.x. Also, sync 9999 ebuild with latest. Package-Manager: portage-2.2.0_alpha137/cvs/Linux i686
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/portage/ChangeLog10
-rw-r--r--sys-apps/portage/Manifest12
-rw-r--r--sys-apps/portage/portage-2.2.0_alpha137.ebuild340
-rw-r--r--sys-apps/portage/portage-9999.ebuild4
4 files changed, 358 insertions, 8 deletions
diff --git a/sys-apps/portage/ChangeLog b/sys-apps/portage/ChangeLog
index 92d1141a0aab..7a557c3cafcc 100644
--- a/sys-apps/portage/ChangeLog
+++ b/sys-apps/portage/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for sys-apps/portage
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.1118 2012/10/10 22:13:35 zmedico Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.1119 2012/10/10 22:16:47 zmedico Exp $
+
+*portage-2.2.0_alpha137 (10 Oct 2012)
+
+ 10 Oct 2012; Zac Medico <zmedico@gentoo.org> +portage-2.2.0_alpha137.ebuild,
+ portage-9999.ebuild:
+ 2.2.0_alpha137 version bump. This includes all of the fixes in 2.1.11.26. Bug
+ #210077 tracks all bugs fixed since portage-2.1.x. Also, sync 9999 ebuild with
+ latest.
*portage-2.1.11.26 (10 Oct 2012)
diff --git a/sys-apps/portage/Manifest b/sys-apps/portage/Manifest
index 59e88b065ffc..7508960dd801 100644
--- a/sys-apps/portage/Manifest
+++ b/sys-apps/portage/Manifest
@@ -12,6 +12,7 @@ DIST portage-2.2.0_alpha111.tar.bz2 836193 SHA256 3187c6915aaab681e444eca0cbe050
DIST portage-2.2.0_alpha120.patch.bz2 33973 SHA256 24a5447e9af37013e30c3372e3eef799e1de17884f6328f08396e8f50c9527d1 SHA512 397114af03680734ba95de42087ead7b8cb122c4952407fb0b0c86c510c65be487d0578a3e5052f8c03c0ed9487b6f8138a4d6fb54b9025c16bd393800b67b59 WHIRLPOOL 440e5796f53be19b4a3af8dacfba576b8bd3cf7fa01bfe1b5d0f1af8fb15fb9daa8efe5d9d909d37712c7a381c3811a8dc213106f19cb87fad3faec75c4c8e9d
DIST portage-2.2.0_alpha135.tar.bz2 837081 SHA256 2b5fad75d428b9529e97d0484204bf0079b458ff63d8f2008dcdd5585595ffb2 SHA512 ee4bce1dbdb044214d5a660c5d60f5a2ada14b03ca7cc257b9c1f7bc645ddb4c8bd51afd2d58babc0515ac149f4c5b6f5548ed00dec5ffb5a52628031cfc07fe WHIRLPOOL 583021917dcbf19ccb95afc59d9e4687f1d5635f333cf2ffdac0528cc70832d35509a82fc709462d4f7ca89712ceb6931728589eed6a4f1c4983d5cecaaaf601
DIST portage-2.2.0_alpha136.patch.bz2 20633 SHA256 d0b6277101ba76daa0a6fbf06cd59cc37d22047bafddec9e1a89f6abf222bfad SHA512 1a7563fd6c788cd20f4cb7123a47dcecc07a78563330549290a847431717a57bc28517880fd39389d2d0246c9fbebfbe5814c0c7b98b51ab66f7c92b136154d6 WHIRLPOOL b4b379ef452018edd8beb18967539cb553a958623f7ad957aee16ab54d744787c2b2f07c500cf972394741db3ac06c4f1c915442ec73d04a281ee25c50dea989
+DIST portage-2.2.0_alpha137.patch.bz2 22185 SHA256 255aac252e32c57e36590a0d288391dd1ca80cb5d462238335b975262743c330 SHA512 31790bbd5623a4f3ee3b23382d95ee9d1ebeb1669b32a60c06c0145be493d16c60bbed053b530849b2f2c23d0f2bf68ab7ff0e49f72cdc57a3dbc67193828941 WHIRLPOOL 84aab937b4a177d48c548fb25a7925bc3e24744c8a13cbcdd47c669223a6343756f6168a909ab0de976685add6b9980ca30aa65d46d08b03214593dd4945d91a
DIST portage-man-pl-2.1.2.tar.bz2 53893 SHA256 960eaa7c6f3a2af44bdc665266a8e884628a562373cc477d301597ecc5ef961f SHA512 5f5c8dd1559048546633b1e7291ff8c0f5d637595f1a4c98405424b08c30c089fc9359e0214f78fbe358754f20d327794f4692b9b67639585c29b755975ee853 WHIRLPOOL 756e267b84077501d976f46fa448cda5368cd52aeca6ec43d109c81fe8e2364e0cd0f35630d68a4186c70e3b440b7c870b86ac7ef83cc0afa43e10f9f8e1f422
EBUILD portage-2.1.11.25.ebuild 9793 SHA256 27bff731ebe5635aab135fc2f7a045e115602a0cdd927a8f2f9eb7f07e44b076 SHA512 4f0166f829f572e6e5050ba4b670d1d3a8ab94d72f40d2bae1edffdbbcc9b6851bd64957a0dde1dd3ee3cc256ece689e3b73650bc27d423fb079458675e161ec WHIRLPOOL 2fb2bd791b9f942ed155ae5d12c7813b6b786ceb1cb4d1d8341693deccff9b1f0075f8ed337c2dfdb470cd18c998d295149b60536f441ec80ce24974cefb1146
EBUILD portage-2.1.11.26.ebuild 9793 SHA256 5280c53e79845f495ed58bdbab1cba4ecb3b93c70fd196f23c20106624e1fb63 SHA512 2d01c13ed0a3de06c55d68646c06bf419ffc7b5c01c7bc9768ada9662c33882194c1de4314af7d212753400f9dfb0b884414b96fbc043935d829ea28b5d6a814 WHIRLPOOL d865e88ffadb0951439a91563150a57f0a1f31cfaed8ad819f98dac533d1428f6c9a623db664a9f95c0c303decadae2e4dd7a2bea1980015d144a383b2c8dd61
@@ -19,13 +20,14 @@ EBUILD portage-2.1.11.9.ebuild 9833 SHA256 4b4e3df3e35a4cfba3fd3134d1dc16514e382
EBUILD portage-2.1.6.7_p1.ebuild 8392 SHA256 75dfa3bdb1100ca28ba46eb83e34ffc196cb3e57204e7b4f451cfb19a1644e62 SHA512 ac70b4ba9d658c4d79953088b2fdaeed8d0e31986ff7c649272c39a743ddfdf112e44d3f0f8078941c47a06b373002cfcd454100585d5bbaa807a2079b19eb8c WHIRLPOOL 57c26b40de86f3d6969fe66d5b1fd6df55f5478e03c855813ff83b1e485f99d1b34cbf30422b5b60986263cae4d4ee066daaa01c0166a04f53c7bb829fd214e1
EBUILD portage-2.2.0_alpha120.ebuild 11951 SHA256 9530b793174de796ecf951a2808cb163005b605630b0455c57194e97f2a36dd2 SHA512 f6af265d8d9b1cbf884787105abb32335727c179d904fbdecba598878083f7384088a5db063aee4282afd4daa4d20f02466911d6c5625bf538c7cdb437026866 WHIRLPOOL 93daa1caa5b31023b1fbb11e8baabf1abced715c879acdc1bb578f75dc58d3737e23bba2c9fa3bd69702810640e47a1debbf3464d16db7a6f68a3d37799b3b76
EBUILD portage-2.2.0_alpha136.ebuild 11895 SHA256 944355b1d104c53c813c84edf0c5382bae9ace9f042c70303705a903ed2e1e0e SHA512 2fc89043c1133348ddf68630e10f4fb243707c679a8aa7311554be16e0aaab66dd780c8dc560c98bb9717e2c0bda1eb5d199554bbb5a4b082e49e56876935472 WHIRLPOOL b287c628ae4a47b287808733191479a8d7316b6711529d268ea16f1d849fc0fd0aad0831e58baa253c5cffbc5ef992a85b31ebe4c5eadf66142f54e1caac021e
-EBUILD portage-9999.ebuild 11141 SHA256 405b865834a9b488c82559f9ad1f6f2440d66ee51ae6d1ed94309c1ccae46b5e SHA512 35b09d2d32e4c42c787ad85f155f74e47f0cd39e736f7b8998f4c4fef6e899d93b19903df97ba0ec357365ae9616f55047896d168a2cdfafd2355cc1f529328e WHIRLPOOL 3d437abd7bf8e21cdf519ec17dd5e6133f51ad09b495af6694bf58e524c44c489ff817f4615982d65e72e0ca4869d824f5fa17609d7b375f1b8518bcc88e4177
-MISC ChangeLog 122572 SHA256 a0b8b30e2713c60e53f8399c0e8b52e80434845cd6ff9f48f899183221b5369a SHA512 a14ea8d4a0113a9df348113677b931d8cfab23c7a26c0ddfebcf901b6a6f302081c8af4d5ccfd6f8bcf6e22c31f6149a803e8b8cee10643e9d85e5a46298b140 WHIRLPOOL 28ed2cc36c9d1554bc7bd8d83c234735979e89de2ab90ed14e2c3ff67815e2e18e7db50e3b6c53efae2a73fda779fb3402e3853457c73c79f806c9dbec10def3
+EBUILD portage-2.2.0_alpha137.ebuild 11895 SHA256 0c61668d5eb39a7bb75db7b3d1af2b9d44fa68502f75d9cdff4854d9fd1e33e7 SHA512 9e1cbf68542f877434454ebcd9099e5ec7afd357c8ccd17cd8dc3dc7148702993243664a8e429707e80ef407c425bbbdd10637295f903d51818615092f29e4c6 WHIRLPOOL 66538b432a5b77f6fdf2373993e702fb53c7a10fa08306f4f0103391bdd77b85c93fb04db38d7d57b3b7da154716d3b5a18231f74d2e890dfafb2a2840c5597a
+EBUILD portage-9999.ebuild 11145 SHA256 959e0a67b6c2d5398a961e9b63a37e47ec57e648b4ec0abce653e5f63bf8c448 SHA512 4977bce3b1ecc068125b8b076e265820aa1f12e52bcd129eb9e8a698b9ad4ee0d688c448edfb78b73367e89dd1ed2ad296466bf008843d4cfe13513c66c689c9 WHIRLPOOL 40f322b179564c36844cb54d167746a0f81de32dd5dcda2242cc6421a1e25a5a4f0fe17328f7734dd64032749fabed2d985b1a0c74e58972d1c3a43475a52d0b
+MISC ChangeLog 122885 SHA256 753befd1bbed031f041a99a1ed2af2cecdae436413f95b034b593d0d3abb5fd7 SHA512 6b906dab147ff1c5b293b1bfef677442cd4c0a02aa23ffa61d2cf18823dbe8ef40879f85fd4a359cdc951dbab72ac9e4eb80fe3ded0b4d146ba7fe00298a075c WHIRLPOOL f7497a208706d5f8b38ee943c20c478445aa109e1d63f0cfcafd1768505395954b97b30bdeecb6b1254787d818b9e060c57895260c194904967500cebe0c8f32
MISC metadata.xml 926 SHA256 23463fa1d9a37979e2dffb502fffdd4dcd5dc932f4b5b3053999609012e4fc65 SHA512 41478467f90c58d8044471ed85ad6365e976b8cdb43556f024345861d08f1e9ae2f2fc728d114521adece630793248f2598fa330233eb98ae7b42950cf056d08 WHIRLPOOL 1aff07692c1fbca18cd3498f1cac2e64749b784a3135d881fc4cb95040bdfb93af079df1e053a547cfe08ea4384268e36ec98fc25160ad94e6ef65c6d04e5452
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iEYEAREIAAYFAlB18xIACgkQ/ejvha5XGaOiZQCZAXhpiNQirhwYJ1yGZS4MWNTO
-g34AoJSZRoRdZ45lHxySboAtmJImgD4x
-=SgPC
+iEYEAREIAAYFAlB189EACgkQ/ejvha5XGaNgvwCfefyHaM+Mx+3XvJbfDJG6HX0G
+yB0AoM19Yv5K0ArnYnM3BVMjNi9hRo5r
+=HUgu
-----END PGP SIGNATURE-----
diff --git a/sys-apps/portage/portage-2.2.0_alpha137.ebuild b/sys-apps/portage/portage-2.2.0_alpha137.ebuild
new file mode 100644
index 000000000000..81f443d905d5
--- /dev/null
+++ b/sys-apps/portage/portage-2.2.0_alpha137.ebuild
@@ -0,0 +1,340 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.2.0_alpha137.ebuild,v 1.1 2012/10/10 22:16:47 zmedico Exp $
+
+# Require EAPI 2 since we now require at least python-2.6 (for python 3
+# syntax support) which also requires EAPI 2.
+EAPI=3
+inherit eutils python
+
+DESCRIPTION="Portage is the package management and distribution system for Gentoo"
+HOMEPAGE="http://www.gentoo.org/proj/en/portage/index.xml"
+LICENSE="GPL-2"
+KEYWORDS="~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
+SLOT="0"
+IUSE="build doc epydoc +ipc linguas_pl pypy1_9 python2 python3 selinux xattr"
+
+# Import of the io module in python-2.6 raises ImportError for the
+# thread module if threading is disabled.
+python_dep_ssl="python3? ( =dev-lang/python-3*[ssl] )
+ !pypy1_9? ( !python2? ( !python3? (
+ || ( >=dev-lang/python-2.7[ssl] dev-lang/python:2.6[threads,ssl] )
+ ) ) )
+ pypy1_9? ( !python2? ( !python3? ( dev-python/pypy:1.9[bzip2,ssl] ) ) )
+ python2? ( !python3? ( || ( dev-lang/python:2.7[ssl] dev-lang/python:2.6[ssl,threads] ) ) )"
+python_dep="${python_dep_ssl//\[ssl\]}"
+python_dep="${python_dep//,ssl}"
+python_dep="${python_dep//ssl,}"
+
+# The pysqlite blocker is for bug #282760.
+DEPEND="${python_dep}
+ >=sys-apps/sed-4.0.5 sys-devel/patch
+ doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 )
+ epydoc? ( >=dev-python/epydoc-2.0 !<=dev-python/pysqlite-2.4.1 )"
+# Require sandbox-2.2 for bug #288863.
+# For xattr, we can spawn getfattr and setfattr from sys-apps/attr, but that's
+# quite slow, so it's not considered in the dependencies as an alternative to
+# to python-3.3 / pyxattr. Also, xattr support is only tested with Linux, so
+# for now, don't pull in xattr deps for other kernels.
+# For whirlpool hash, require python[ssl] or python-mhash (bug #425046).
+RDEPEND="${python_dep}
+ !build? ( >=sys-apps/sed-4.0.5
+ >=app-shells/bash-3.2_p17
+ >=app-admin/eselect-1.2
+ || ( ${python_dep_ssl} dev-python/python-mhash )
+ )
+ elibc_FreeBSD? ( sys-freebsd/freebsd-bin )
+ elibc_glibc? ( >=sys-apps/sandbox-2.2 )
+ elibc_uclibc? ( >=sys-apps/sandbox-2.2 )
+ >=app-misc/pax-utils-0.1.17
+ xattr? ( kernel_linux? ( || ( >=dev-lang/python-3.3_pre20110902 dev-python/pyxattr ) ) )
+ selinux? ( || ( >=sys-libs/libselinux-2.0.94[python] <sys-libs/libselinux-2.0.94 ) )
+ !<app-shells/bash-3.2_p17
+ !<app-admin/logrotate-3.8.0"
+PDEPEND="
+ !build? (
+ >=net-misc/rsync-2.6.4
+ userland_GNU? ( >=sys-apps/coreutils-6.4 )
+ )"
+# coreutils-6.4 rdep is for date format in emerge-webrsync #164532
+# NOTE: FEATURES=install-sources requires debugedit and rsync
+
+SRC_ARCHIVES="http://dev.gentoo.org/~zmedico/portage/archives"
+
+prefix_src_archives() {
+ local x y
+ for x in ${@}; do
+ for y in ${SRC_ARCHIVES}; do
+ echo ${y}/${x}
+ done
+ done
+}
+
+PV_PL="2.1.2"
+PATCHVER_PL=""
+TARBALL_PV=2.2.0_alpha135
+SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2
+ $(prefix_src_archives ${PN}-${TARBALL_PV}.tar.bz2)
+ linguas_pl? ( mirror://gentoo/${PN}-man-pl-${PV_PL}.tar.bz2
+ $(prefix_src_archives ${PN}-man-pl-${PV_PL}.tar.bz2) )"
+
+PATCHVER=
+[[ $TARBALL_PV = $PV ]] || PATCHVER=$PV
+if [ -n "${PATCHVER}" ]; then
+ SRC_URI="${SRC_URI} mirror://gentoo/${PN}-${PATCHVER}.patch.bz2
+ $(prefix_src_archives ${PN}-${PATCHVER}.patch.bz2)"
+fi
+
+S="${WORKDIR}"/${PN}-${TARBALL_PV}
+S_PL="${WORKDIR}"/${PN}-${PV_PL}
+
+compatible_python_is_selected() {
+ [[ $("${EPREFIX}/usr/bin/python" -c 'import sys ; sys.stdout.write(sys.hexversion >= 0x2060000 and "good" or "bad")') = good ]]
+}
+
+current_python_has_xattr() {
+ [[ $("${EPREFIX}/usr/bin/python" -c 'import sys ; sys.stdout.write(sys.hexversion >= 0x3030000 and "yes" or "no")') = yes ]] || \
+ "${EPREFIX}/usr/bin/python" -c 'import xattr' 2>/dev/null
+}
+
+pkg_setup() {
+ if use python2 && use python3 ; then
+ ewarn "Both python2 and python3 USE flags are enabled, but only one"
+ ewarn "can be in the shebangs. Using python3."
+ fi
+ if use pypy1_9 && use python3 ; then
+ ewarn "Both pypy1_9 and python3 USE flags are enabled, but only one"
+ ewarn "can be in the shebangs. Using python3."
+ fi
+ if use pypy1_9 && use python2 ; then
+ ewarn "Both pypy1_9 and python2 USE flags are enabled, but only one"
+ ewarn "can be in the shebangs. Using python2"
+ fi
+ if ! use pypy1_9 && ! use python2 && ! use python3 && \
+ ! compatible_python_is_selected ; then
+ ewarn "Attempting to select a compatible default python interpreter"
+ local x success=0
+ for x in /usr/bin/python2.* ; do
+ x=${x#/usr/bin/python2.}
+ if [[ $x -ge 6 ]] 2>/dev/null ; then
+ eselect python set python2.$x
+ if compatible_python_is_selected ; then
+ elog "Default python interpreter is now set to python-2.$x"
+ success=1
+ break
+ fi
+ fi
+ done
+ if [ $success != 1 ] ; then
+ eerror "Unable to select a compatible default python interpreter!"
+ die "This version of portage requires at least python-2.6 to be selected as the default python interpreter (see \`eselect python --help\`)."
+ fi
+ fi
+
+ if use python3; then
+ python_set_active_version 3
+ elif use python2; then
+ python_set_active_version 2
+ elif use pypy1_9; then
+ python_set_active_version 2.7-pypy-1.9
+ fi
+}
+
+src_prepare() {
+ if [ -n "${PATCHVER}" ] ; then
+ if [[ -L $S/bin/ebuild-helpers/portageq ]] ; then
+ rm "$S/bin/ebuild-helpers/portageq" \
+ || die "failed to remove portageq helper symlink"
+ fi
+ epatch "${WORKDIR}/${PN}-${PATCHVER}.patch"
+ fi
+ einfo "Setting portage.VERSION to ${PVR} ..."
+ sed -e "s/^VERSION=.*/VERSION=\"${PVR}\"/" -i pym/portage/__init__.py || \
+ die "Failed to patch portage.VERSION"
+ sed -e "1s/VERSION/${PVR}/" -i doc/fragment/version || \
+ die "Failed to patch VERSION in doc/fragment/version"
+ sed -e "1s/VERSION/${PVR}/" -i man/* || \
+ die "Failed to patch VERSION in man page headers"
+
+ if ! use ipc ; then
+ einfo "Disabling ipc..."
+ sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \
+ -i pym/_emerge/AbstractEbuildProcess.py || \
+ die "failed to patch AbstractEbuildProcess.py"
+ fi
+
+ if use xattr && use kernel_linux ; then
+ einfo "Adding FEATURES=xattr to make.globals ..."
+ echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \
+ || die "failed to append to make.globals"
+ fi
+
+ if use python3; then
+ einfo "Converting shebangs for python3..."
+ python_convert_shebangs -r 3 .
+ elif use python2; then
+ einfo "Converting shebangs for python2..."
+ python_convert_shebangs -r 2 .
+ elif use pypy1_9; then
+ einfo "Converting shebangs for pypy-c1.9..."
+ python_convert_shebangs -r 2.7-pypy-1.9 .
+ fi
+
+ if [[ -n ${EPREFIX} ]] ; then
+ einfo "Setting portage.const.EPREFIX ..."
+ sed -e "s|^\(SANDBOX_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/sandbox\"\)|\\1${EPREFIX}\\2|" \
+ -e "s|^\(FAKEROOT_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/fakeroot\"\)|\\1${EPREFIX}\\2|" \
+ -e "s|^\(BASH_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/bash\"\)|\\1${EPREFIX}\\2|" \
+ -e "s|^\(MOVE_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/mv\"\)|\\1${EPREFIX}\\2|" \
+ -e "s|^\(PRELINK_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/sbin/prelink\"\)|\\1${EPREFIX}\\2|" \
+ -e "s|^\(EPREFIX[[:space:]]*=[[:space:]]*\"\).*|\\1${EPREFIX}\"|" \
+ -i pym/portage/const.py || \
+ die "Failed to patch portage.const.EPREFIX"
+
+ einfo "Prefixing shebangs ..."
+ find . -type f -print0 | \
+ while read -r -d $'\0' ; do
+ local shebang=$(head -n1 "$REPLY")
+ if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then
+ sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "$REPLY" || \
+ die "sed failed"
+ fi
+ done
+
+ einfo "Adjusting make.globals ..."
+ sed -e 's|^SYNC=.*|SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"|' \
+ -e "s|^\(PORTDIR=\)\(/usr/portage\)|\\1\"${EPREFIX}\\2\"|" \
+ -e "s|^\(PORTAGE_TMPDIR=\)\(/var/tmp\)|\\1\"${EPREFIX}\\2\"|" \
+ -i cnf/make.globals || die "sed failed"
+
+ einfo "Adding FEATURES=force-prefix to make.globals ..."
+ echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \
+ || die "failed to append to make.globals"
+ fi
+
+ echo -e '\nFEATURES="${FEATURES} preserve-libs"' >> cnf/make.globals \
+ || die "failed to append to make.globals"
+
+ cd "${S}/cnf" || die
+ if [ -f "make.conf.${ARCH}".diff ]; then
+ patch make.conf "make.conf.${ARCH}".diff || \
+ die "Failed to patch make.conf.example"
+ else
+ eerror ""
+ eerror "Portage does not have an arch-specific configuration for this arch."
+ eerror "Please notify the arch maintainer about this issue. Using generic."
+ eerror ""
+ fi
+}
+
+src_compile() {
+ if use doc; then
+ emake docbook || die
+ fi
+
+ if use epydoc; then
+ einfo "Generating api docs"
+ emake epydoc || die
+ fi
+}
+
+src_test() {
+ # make files executable, in case they were created by patch
+ find bin -type f | xargs chmod +x
+ emake test || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" \
+ sysconfdir="${EPREFIX}/etc" \
+ prefix="${EPREFIX}/usr" \
+ install || die
+
+ # Use dodoc for compression, since the Makefile doesn't do that.
+ dodoc "${S}"/{ChangeLog,NEWS,RELEASE-NOTES} || die
+
+ if use linguas_pl; then
+ doman -i18n=pl "${S_PL}"/man/pl/*.[0-9] || die
+ doman -i18n=pl_PL.UTF-8 "${S_PL}"/man/pl_PL.UTF-8/*.[0-9] || die
+ fi
+
+ # Set PYTHONPATH for portage API consumers. This way we don't have
+ # to rely on patched python having the correct path, since it has
+ # been known to incorrectly add /usr/libx32/portage/pym to sys.path.
+ echo "PYTHONPATH=\"${EPREFIX}/usr/lib/portage/pym\"" > \
+ "${T}/05portage" || die
+ doenvd "${T}/05portage" || die
+}
+
+pkg_preinst() {
+ if [[ $ROOT == / ]] ; then
+ # Run some minimal tests as a sanity check.
+ local test_runner=$(find "$ED" -name runTests)
+ if [[ -n $test_runner && -x $test_runner ]] ; then
+ einfo "Running preinst sanity tests..."
+ "$test_runner" || die "preinst sanity tests failed"
+ fi
+ fi
+
+ if use xattr && ! current_python_has_xattr ; then
+ ewarn "For optimal performance in xattr handling, install"
+ ewarn "dev-python/pyxattr, or install >=dev-lang/python-3.3 and"
+ ewarn "enable USE=python3 for $CATEGORY/$PN."
+ fi
+
+ if ! use build && ! has_version dev-python/pycrypto && \
+ ! has_version '>=dev-lang/python-2.6[ssl]' ; then
+ ewarn "If you are an ebuild developer and you plan to commit ebuilds"
+ ewarn "with this system then please install dev-python/pycrypto or"
+ ewarn "enable the ssl USE flag for >=dev-lang/python-2.6 in order"
+ ewarn "to enable RMD160 hash support."
+ ewarn "See bug #198398 for more information."
+ fi
+
+ has_version "<=${CATEGORY}/${PN}-2.2_pre5" \
+ && WORLD_MIGRATION_UPGRADE=true || WORLD_MIGRATION_UPGRADE=false
+
+ # If portage-2.1.6 is installed and the preserved_libs_registry exists,
+ # assume that the NEEDED.ELF.2 files have already been generated.
+ has_version "<=${CATEGORY}/${PN}-2.2_pre7" && \
+ ! ( [ -e "${EROOT}"var/lib/portage/preserved_libs_registry ] && \
+ has_version ">=${CATEGORY}/${PN}-2.1.6_rc" ) \
+ && NEEDED_REBUILD_UPGRADE=true || NEEDED_REBUILD_UPGRADE=false
+}
+
+pkg_postinst() {
+ # Compile all source files recursively. Any orphans
+ # will be identified and removed in postrm.
+ python_mod_optimize /usr/lib/portage/pym
+
+ if $WORLD_MIGRATION_UPGRADE && \
+ grep -q "^@" "${EROOT}/var/lib/portage/world"; then
+ einfo "moving set references from the worldfile into world_sets"
+ cd "${EROOT}/var/lib/portage/"
+ grep "^@" world >> world_sets
+ sed -i -e '/^@/d' world
+ fi
+
+ if $NEEDED_REBUILD_UPGRADE ; then
+ einfo "rebuilding NEEDED.ELF.2 files"
+ for cpv in "${EROOT}/var/db/pkg"/*/*; do
+ if [ -f "${cpv}/NEEDED" ]; then
+ rm -f "${cpv}/NEEDED.ELF.2"
+ while read line; do
+ filename=${line% *}
+ needed=${line#* }
+ needed=${needed//+/++}
+ needed=${needed//#/##}
+ needed=${needed//%/%%}
+ newline=$(scanelf -BF "%a;%F;%S;%r;${needed}" $filename)
+ newline=${newline// - }
+ echo "${newline:3}" >> "${cpv}/NEEDED.ELF.2"
+ done < "${cpv}/NEEDED"
+ fi
+ done
+ fi
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/lib/portage/pym
+}
diff --git a/sys-apps/portage/portage-9999.ebuild b/sys-apps/portage/portage-9999.ebuild
index d12eca914065..e5dbc06a8691 100644
--- a/sys-apps/portage/portage-9999.ebuild
+++ b/sys-apps/portage/portage-9999.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-9999.ebuild,v 1.59 2012/09/21 22:49:15 zmedico Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-9999.ebuild,v 1.60 2012/10/10 22:16:47 zmedico Exp $
EAPI=3
inherit git-2 eutils python
@@ -240,7 +240,7 @@ src_install() {
# Set PYTHONPATH for portage API consumers. This way we don't have
# to rely on patched python having the correct path, since it has
# been known to incorrectly add /usr/libx32/portage/pym to sys.path.
- echo "PYTHONPATH=${EPREFIX}/usr/lib/portage/pym" > \
+ echo "PYTHONPATH=\"${EPREFIX}/usr/lib/portage/pym\"" > \
"${T}/05portage" || die
doenvd "${T}/05portage"
}