summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2013-05-06 21:42:28 +0000
committerZac Medico <zmedico@gentoo.org>2013-05-06 21:42:28 +0000
commit128ad95f7a36790a0753557fd463a07a25bc7310 (patch)
treed93472efec885c4a527af2bda3ae3194ab8285e5 /sys-apps
parentRemove old (diff)
downloadhistorical-128ad95f7a36790a0753557fd463a07a25bc7310.tar.gz
historical-128ad95f7a36790a0753557fd463a07a25bc7310.tar.bz2
historical-128ad95f7a36790a0753557fd463a07a25bc7310.zip
Install /var/log/portage/elog for bug #415911.
Package-Manager: portage-2.2.0_alpha174/cvs/Linux i686 Manifest-Sign-Key: 0xFDE8EF85AE5719A3
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/portage/ChangeLog8
-rw-r--r--sys-apps/portage/Manifest20
-rw-r--r--sys-apps/portage/portage-2.1.11.55.ebuild11
-rw-r--r--sys-apps/portage/portage-2.1.11.62.ebuild11
-rw-r--r--sys-apps/portage/portage-2.1.11.63.ebuild11
-rw-r--r--sys-apps/portage/portage-2.2.0_alpha173.ebuild11
-rw-r--r--sys-apps/portage/portage-2.2.0_alpha174.ebuild11
-rw-r--r--sys-apps/portage/portage-9999.ebuild11
8 files changed, 77 insertions, 17 deletions
diff --git a/sys-apps/portage/ChangeLog b/sys-apps/portage/ChangeLog
index 2b2e5d30df29..446885a110fe 100644
--- a/sys-apps/portage/ChangeLog
+++ b/sys-apps/portage/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-apps/portage
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.1262 2013/05/03 21:09:58 zmedico Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.1263 2013/05/06 21:42:24 zmedico Exp $
+
+ 06 May 2013; Zac Medico <zmedico@gentoo.org> portage-2.1.11.55.ebuild,
+ portage-2.1.11.62.ebuild, portage-2.1.11.63.ebuild,
+ portage-2.2.0_alpha173.ebuild, portage-2.2.0_alpha174.ebuild,
+ portage-9999.ebuild:
+ Install /var/log/portage/elog for bug #415911.
*portage-2.2.0_alpha174 (03 May 2013)
diff --git a/sys-apps/portage/Manifest b/sys-apps/portage/Manifest
index fc5ab354c760..d6ab4916cb64 100644
--- a/sys-apps/portage/Manifest
+++ b/sys-apps/portage/Manifest
@@ -12,20 +12,20 @@ DIST portage-2.2.0_alpha170.tar.bz2 913726 SHA256 4b08d9c5369a14655cb4236d2ed0c4
DIST portage-2.2.0_alpha173.patch.bz2 6958 SHA256 1c7fe7108e86387fbeb566c2277ca5fa28412820bf31148eee5efca028446007 SHA512 f21d2ae221bee21ee6120e3a1e804712f27ad874b1aa631be9bb4d7fcc8466a4fc158051567d91b1810cd77a5c350a90bb5bd7cf553f96769b7f9c1b2b96e982 WHIRLPOOL bd22135defd36703a0d14267d3265e9c9ea69e20114d2ef220e64841e7b4d6937d5063423306988e695ff450f71c4ed0f9ef9eb0e99db5f5d433cf3481c0875a
DIST portage-2.2.0_alpha174.patch.bz2 38028 SHA256 6bcfd191a64c6b7d541a894afe34e99b9f9feae4d81c36c3a1e32bf1afa9e398 SHA512 87be89536c110988ba0de667b101641e189c523c25142fda4249a7f635118c7b1bf8a7dade59abf684e863aee90af8712f47339e8a082a8ceb1b80d15e4cffe2 WHIRLPOOL 9312f52a8515a087e78de8d51d919b40918b931c0d30a689b61efffb8e56313c96a6d22dd200982acef8b934fc8ba8e5f5615eb549f06d40dd063c2d08daf044
DIST portage-man-pl-2.1.2.tar.bz2 53893 SHA256 960eaa7c6f3a2af44bdc665266a8e884628a562373cc477d301597ecc5ef961f SHA512 5f5c8dd1559048546633b1e7291ff8c0f5d637595f1a4c98405424b08c30c089fc9359e0214f78fbe358754f20d327794f4692b9b67639585c29b755975ee853 WHIRLPOOL 756e267b84077501d976f46fa448cda5368cd52aeca6ec43d109c81fe8e2364e0cd0f35630d68a4186c70e3b440b7c870b86ac7ef83cc0afa43e10f9f8e1f422
-EBUILD portage-2.1.11.55.ebuild 10561 SHA256 96aea2c66f6b40da539e1169154338bfe117cf4ceefca544189c979bd610a7ab SHA512 0ace12e68af49972fcaaab13b621496c4f3b763826410ae56931310c2fa9e989d823ee02113e14f5238ec2e385169c8757b9ed6adbbcdcbbd325b6f8a39717df WHIRLPOOL 31c393cbf89b4f0a9c1fce372c5dde70f4b00861e4251a52792794211485bf275204200a1a858c5bc8db563428a69e27ab846cbc2049b2c119acc594003a5fb5
-EBUILD portage-2.1.11.62.ebuild 13160 SHA256 45edaf5657c15bfd8817e6c5ef472329bf3f838a9b494e85ab02419a3f3dc28a SHA512 294f95d3bf9469494826d9dd3fc3716cfcd8372c346c1eba95f66af74ea13c88c9e430a199e581a2f2a872df91b1192b7cf34bbf910b1dae1e547bb5fde196c7 WHIRLPOOL 8eebfb2eb0eba1de3c5e2dff83865e85715966ebf0ae12704fe2f4b6f2730a85f3345073ca8430693bd7976015ac823bc0ee5b09e8918bed44ef95fd68126f28
-EBUILD portage-2.1.11.63.ebuild 13175 SHA256 2eba2c37c348cb80311423d449a1989865171f0147e3606e5eac040e9025383d SHA512 ed4c9b6290920935ca0bbf5903bada9b384b9c4aadaa1ba5909d5d0a7dd58d8d7b5380acfe384394c3f8ebdca78182655e465295884730df666d32806621a8cd WHIRLPOOL 43f877c074676076f9d4e154cb3fee6b485d34bb8acca87d68fdf6961e085d0db8020cbbb7c2c982c7be96d0cfe93d7b46f49e782c7854f173d209e960ba4174
+EBUILD portage-2.1.11.55.ebuild 10989 SHA256 686afe1b6f528ded33f914828b637ed0dec1983b3f7ed72485c918c0362af8c4 SHA512 1f815b9fc7bccec376065309455f63dd704b2388de996c1d36de15626c2f5e8e6c235cc9fcf8eb2eb0c8199f8a4d8b0a2e1ab17f2daa59da202eed22c129c950 WHIRLPOOL 8fed2d305ad930b345071149e901482d0210b0bcb9818773e3077a142f4f708ee3e704d0f00e49e4b7bc66333b22d1c16bb7ea60a78c26eec12939c683338d29
+EBUILD portage-2.1.11.62.ebuild 13593 SHA256 04e9222038bd66b61ea43e1b31a033d8de541cb5f55ca6fd0b093e378278c010 SHA512 dcce3640c68f2e7d76c6f3467b3ff79b30711e60346728c2eed04fdf351ce7d6c3ea6ea7a67ea5a395b0bd4b378720161f3c5a20fd883b15b7f6f477cf62792b WHIRLPOOL a71351363a0505780d353e8a82b048916fe5dd4aa57df79fc9d5b87fe3927e65a02560150393811794abf49f7f024701ef5b98e2c25e28156b2b2d8be8d09ce4
+EBUILD portage-2.1.11.63.ebuild 13603 SHA256 1b8f23add59aa6f79ea44d5cdab1870cd894132c5425d2dba26e518ba6324159 SHA512 959ca457cca76b185c443fc03fad510423e0d72805b900117646083d321694f548819a1566fbb05559bf4f54e6102ec3373e0b1cf399040d4054f5ed656f678e WHIRLPOOL 3b01c433460ecebe0dd13878b26fdfa2c31dc67ee333cdafd77ae37f65f2305ce56a3f5332d261bf07fa3e74da7f9516a0ebad6aa78f34423af1db6b8eb2c464
EBUILD portage-2.1.6.7_p1.ebuild 8362 SHA256 6be861ce5b12d79387b8970d78818371bb87f7f64d9e8b0cde06a4b0506f7ea7 SHA512 81c8382a826a65e96608d7f3dc8b2f6901e7518757d0f2375bfe2847cea8398c0f9bc6fac70eb44a17ad38fabba3bd1a05ac56433e178e3974f3412f4dccd831 WHIRLPOOL 33333059c1dadca596134a0cea382aee44a529dcadaffcf26f3e0b0a709eafce84a3725b4306070ac87ffa197f6f4082f2eddb171747bc0972bfc141458f6327
-EBUILD portage-2.2.0_alpha173.ebuild 15327 SHA256 78d95fd85f3902b9874f78756fd49b31f28f95c56fdd667aace5f5458f6a304f SHA512 fd7c12306815d8ff9f1a89d9b0780f2913781d651b756fce1864b7d7cd0736565c36d0f298538ea2c7e5033d9436d2e5d072718e39abd985e43f28a0b68ef259 WHIRLPOOL 4e884c2b137d45163144f958461d0fb91271ce7965e3d7d6ba46f13b0b9a071d8884d40ef12c9b1ccd3ac2e19df19e992e8bbacfad5798aaad846844ab7cf51e
-EBUILD portage-2.2.0_alpha174.ebuild 15327 SHA256 94d43263c9d6865e11e4b4ab97748c3cea525736a13dc5355423962e4578ad3e SHA512 5bc3cf172217aa63c825236e7055bdd933a3b225a2aefcef5ceb08ab511153f17ccfce8d705d1c98815b397ea75cf9c0c0d2a56db0c1b9beab83a39843ff4f78 WHIRLPOOL 899e3d0a0a48bc770612692d78b33af4575850a10956c769dffc29906e997015d07e299ae1ae1f29867d1c272aa4a7ebbb4ee3192f30d6e00db070808a028d12
-EBUILD portage-9999.ebuild 14559 SHA256 669df9f23a4f17297cb1fb92b2f32d9e6d31de3e1dd3b2b9dcf95acaf37427d5 SHA512 b6c26b56f1ce39ab1b0ffee9da9ecc0af9a99dea49980386f3ff158594a2c97a8cd7e53e3bc32e88c74134d8510d9a759696129778dc39c6eef7519c93e99fc0 WHIRLPOOL bb51e7a51404cb759a1fce327d4dda33ab15f7970db622d8504500598d113b11a46349c7b220243d5bb1888b6d08af98394600fe56ff91f628edfe2059307a83
-MISC ChangeLog 25861 SHA256 2eace414f4e0f637f2a046136f6aea137a427684f26638e5138c8a41f7017bfc SHA512 741cbb43f669ffbb19b45fea9e87584eb3e9ea4bbbe831fab7db222c7e878e3040cce78db61418ad29a11e0c9c7c5ea2e4f3684f4a08631da5b3d7727d0f8b87 WHIRLPOOL 020d52ebe1403b495b1ecb6bd09b2f329dd1df68aa7f1b0100ed9107dba75e9a8b9b2f904c00975e308b86dd96db8a8c64b47d18f6cff015a960a55b405ebd11
+EBUILD portage-2.2.0_alpha173.ebuild 15757 SHA256 bfed439e5e9ac00da13284eba8457e6a7dc2ecc4783bbeb753e509c0bde5fa1b SHA512 d86f4d9e2d6a20b8a6e418d7fa88dcd3d8b7db163cf9c10b28cf1f564031770b98f973bb1bb09bc4089041ddf14439af983248709e1e80d0bf8a019a0fef6eb3 WHIRLPOOL 6c3486077b4ff2b0e154146e7c32b76832adf24906266d1be146e0fa3ccb5d0de24e1e7c269521d59ffae43507336cf88bf1cdea2838d7dfde3aa2ae03c70d9b
+EBUILD portage-2.2.0_alpha174.ebuild 15757 SHA256 7766dace1ed801c4788800921b5686d366572070c69fc312cdf957f765195fa9 SHA512 09d3f6c4d9a1a5b23bc45df462dfe1d88e31e60179e4c323e82bc6198ddb90f19ce92e96e6ef87d3bd119f19e44ed4e417769f70180b068a584b8eb3ec423a49 WHIRLPOOL e3ddcc72b00d96c91dd2b9d624bfe12ebbfecad0db74a4f14d325624559524500cd8c335c4330fb287307ce10a6d4dc2a1a17cd44a21f0841da33f52a2472e2e
+EBUILD portage-9999.ebuild 14989 SHA256 06e0295024c6aa32f933f02ca4f3172c9ce43dc8ed30cdd9053e6ff922ec46f7 SHA512 d9c95cf63065e3a847639d1ebbc89aeed4896143cbf0a30f9a503383d5ae5bba39ef2c3bcd622f180e07d83c9c55cf33cb1d130379c692c709677b463afed4ae WHIRLPOOL 0222e169cef35e982babcedb20246f59fc8a57dba690ca82298de5af233897ab014d0770c69d3880c7135ae6ce68671141255cdd132ae5ebd7334082c60fe7b1
+MISC ChangeLog 26125 SHA256 9216082a22742441be892bdf1b389387a5f4e445c6aa48279bbefbf51de79a6f SHA512 4ac252703abb5b6693a026ed8a30f7a73a201321865ccd75f0c3bf496012496dbdf1afdf12cfd7dd2fe50bd7a7ae4a2d36e5f49fd84b6bec522acbac611a830f WHIRLPOOL c19efbae7977d4802de97b874982a1cfdf2f180cac941bb23846369ecd25d5127c34196eeffabc0f5502ab8794e6b467383924a13f18315af49eaa6f32ce6dcc
MISC ChangeLog-2012 133873 SHA256 157a7eb13d4cf2e2c94bfcb7e91f218af1ea88f5ff20c24a50546950a9839c94 SHA512 1241f4ccd7b31bdd340649417257b0e95202992feb66e0cd4d41fc2d35bf0baeac19680f34a831d2fefce0c0fec03aa6e7a191f783e59cf9b93aaf266f010a3f WHIRLPOOL b027bdba0f5ccc1b3a2dc18df92d82b473af5e55536816b7177071c1ae1a89e4d50d42c2093fa1bbe28b92a42014fbefbfc9e7daa4e6426ebecbd5bffc3d479f
MISC metadata.xml 926 SHA256 8736b6884463a876892a4fd45f6239a123c1229d2372ce47d5dff719f0eba2b9 SHA512 38d3c969b49012a94bfadecd1d48936513391a305eee5e5e55eb6c4a6b82e05b6ebf1dd6dfe6fbb5a96ba5fffc33fddcfda8d41f3d367ff4ad030859a655ef8b WHIRLPOOL 6f9afcacb628f75f84d03e812ed93b4e3613fcfc4e1180bcb0551c1c8025050ebd3b21fcdef79358aaad3606558345fcd6f914928eb62155e5b9a50bde0d3bf4
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iEYEAREIAAYFAlGEJ6gACgkQ/ejvha5XGaMKtACgzbyFDy9eauZKTViRPk/RAeQj
-meYAoOGjkM7IyogMBVv3p7JfVOUNL7J2
-=nc+1
+iEYEAREIAAYFAlGII8QACgkQ/ejvha5XGaOdWwCgzOux7j5bUjAEDX5cVbeFqfPB
+laUAoOg8v7z8XpwTuJeK9biPME3eis0s
+=12sV
-----END PGP SIGNATURE-----
diff --git a/sys-apps/portage/portage-2.1.11.55.ebuild b/sys-apps/portage/portage-2.1.11.55.ebuild
index 6d0cd9bbbe31..edf340e1e8b8 100644
--- a/sys-apps/portage/portage-2.1.11.55.ebuild
+++ b/sys-apps/portage/portage-2.1.11.55.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.1.11.55.ebuild,v 1.7 2013/04/28 18:39:20 zmedico Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.1.11.55.ebuild,v 1.8 2013/05/06 21:42:24 zmedico Exp $
# Require EAPI 2 since we now require at least python-2.6 (for python 3
# syntax support) which also requires EAPI 2.
@@ -294,6 +294,15 @@ pkg_preinst() {
ewarn "enable USE=python3 for $CATEGORY/$PN."
fi
+ # elog dir must exist to avoid logrotate error for bug #415911.
+ # This code runs in preinst in order to bypass the mapping of
+ # portage:portage to root:root which happens after src_install.
+ keepdir /var/log/portage/elog
+ # This is allowed to fail if the user/group are invalid for prefix users.
+ if chown portage:portage "${D}"var/log/portage{,/elog} 2>/dev/null ; then
+ chmod g+s,ug+rwx "${D}"var/log/portage{,/elog}
+ fi
+
if [[ -d ${ROOT}var/log/portage && \
$(ls -ld "${ROOT}var/log/portage") != *" portage portage "* ]] && \
has_version '<sys-apps/portage-2.1.10.11' ; then
diff --git a/sys-apps/portage/portage-2.1.11.62.ebuild b/sys-apps/portage/portage-2.1.11.62.ebuild
index 6aef86b558de..45f86c25b4c8 100644
--- a/sys-apps/portage/portage-2.1.11.62.ebuild
+++ b/sys-apps/portage/portage-2.1.11.62.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.1.11.62.ebuild,v 1.9 2013/04/25 09:25:02 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.1.11.62.ebuild,v 1.10 2013/05/06 21:42:24 zmedico Exp $
# Require EAPI 2 since we now require at least python-2.6 (for python 3
# syntax support) which also requires EAPI 2.
@@ -376,6 +376,15 @@ pkg_preinst() {
ewarn "enable USE=python3 for $CATEGORY/$PN."
fi
+ # elog dir must exist to avoid logrotate error for bug #415911.
+ # This code runs in preinst in order to bypass the mapping of
+ # portage:portage to root:root which happens after src_install.
+ keepdir /var/log/portage/elog
+ # This is allowed to fail if the user/group are invalid for prefix users.
+ if chown portage:portage "${D}"var/log/portage{,/elog} 2>/dev/null ; then
+ chmod g+s,ug+rwx "${D}"var/log/portage{,/elog}
+ fi
+
if [[ -d ${ROOT}var/log/portage && \
$(ls -ld "${ROOT}var/log/portage") != *" portage portage "* ]] && \
has_version '<sys-apps/portage-2.1.10.11' ; then
diff --git a/sys-apps/portage/portage-2.1.11.63.ebuild b/sys-apps/portage/portage-2.1.11.63.ebuild
index 21ae13fdc61f..46b05d58dc15 100644
--- a/sys-apps/portage/portage-2.1.11.63.ebuild
+++ b/sys-apps/portage/portage-2.1.11.63.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.1.11.63.ebuild,v 1.1 2013/05/03 21:08:22 zmedico Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.1.11.63.ebuild,v 1.2 2013/05/06 21:42:24 zmedico Exp $
# Require EAPI 2 since we now require at least python-2.6 (for python 3
# syntax support) which also requires EAPI 2.
@@ -376,6 +376,15 @@ pkg_preinst() {
ewarn "enable USE=python3 for $CATEGORY/$PN."
fi
+ # elog dir must exist to avoid logrotate error for bug #415911.
+ # This code runs in preinst in order to bypass the mapping of
+ # portage:portage to root:root which happens after src_install.
+ keepdir /var/log/portage/elog
+ # This is allowed to fail if the user/group are invalid for prefix users.
+ if chown portage:portage "${D}"var/log/portage{,/elog} 2>/dev/null ; then
+ chmod g+s,ug+rwx "${D}"var/log/portage{,/elog}
+ fi
+
if [[ -d ${ROOT}var/log/portage && \
$(ls -ld "${ROOT}var/log/portage") != *" portage portage "* ]] && \
has_version '<sys-apps/portage-2.1.10.11' ; then
diff --git a/sys-apps/portage/portage-2.2.0_alpha173.ebuild b/sys-apps/portage/portage-2.2.0_alpha173.ebuild
index 42ff491a8729..2bc067d53578 100644
--- a/sys-apps/portage/portage-2.2.0_alpha173.ebuild
+++ b/sys-apps/portage/portage-2.2.0_alpha173.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2013 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_alpha173.ebuild,v 1.1 2013/04/12 07:48:03 zmedico Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.2.0_alpha173.ebuild,v 1.2 2013/05/06 21:42:24 zmedico Exp $
# Require EAPI 2 since we now require at least python-2.6 (for python 3
# syntax support) which also requires EAPI 2.
@@ -409,6 +409,15 @@ pkg_preinst() {
ewarn "enable USE=python3 for $CATEGORY/$PN."
fi
+ # elog dir must exist to avoid logrotate error for bug #415911.
+ # This code runs in preinst in order to bypass the mapping of
+ # portage:portage to root:root which happens after src_install.
+ keepdir /var/log/portage/elog
+ # This is allowed to fail if the user/group are invalid for prefix users.
+ if chown portage:portage "${ED}"var/log/portage{,/elog} 2>/dev/null ; then
+ chmod g+s,ug+rwx "${ED}"var/log/portage{,/elog}
+ fi
+
has_version "<=${CATEGORY}/${PN}-2.2_pre5" \
&& WORLD_MIGRATION_UPGRADE=true || WORLD_MIGRATION_UPGRADE=false
diff --git a/sys-apps/portage/portage-2.2.0_alpha174.ebuild b/sys-apps/portage/portage-2.2.0_alpha174.ebuild
index 84a7e224a996..28553590e334 100644
--- a/sys-apps/portage/portage-2.2.0_alpha174.ebuild
+++ b/sys-apps/portage/portage-2.2.0_alpha174.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2013 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_alpha174.ebuild,v 1.1 2013/05/03 21:09:58 zmedico Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.2.0_alpha174.ebuild,v 1.2 2013/05/06 21:42:24 zmedico Exp $
# Require EAPI 2 since we now require at least python-2.6 (for python 3
# syntax support) which also requires EAPI 2.
@@ -409,6 +409,15 @@ pkg_preinst() {
ewarn "enable USE=python3 for $CATEGORY/$PN."
fi
+ # elog dir must exist to avoid logrotate error for bug #415911.
+ # This code runs in preinst in order to bypass the mapping of
+ # portage:portage to root:root which happens after src_install.
+ keepdir /var/log/portage/elog
+ # This is allowed to fail if the user/group are invalid for prefix users.
+ if chown portage:portage "${ED}"var/log/portage{,/elog} 2>/dev/null ; then
+ chmod g+s,ug+rwx "${ED}"var/log/portage{,/elog}
+ fi
+
has_version "<=${CATEGORY}/${PN}-2.2_pre5" \
&& WORLD_MIGRATION_UPGRADE=true || WORLD_MIGRATION_UPGRADE=false
diff --git a/sys-apps/portage/portage-9999.ebuild b/sys-apps/portage/portage-9999.ebuild
index a7690bfccc74..24c5427e71ca 100644
--- a/sys-apps/portage/portage-9999.ebuild
+++ b/sys-apps/portage/portage-9999.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2013 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.74 2013/04/04 17:45:27 zmedico Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-9999.ebuild,v 1.75 2013/05/06 21:42:24 zmedico Exp $
EAPI=3
PYTHON_COMPAT=(
@@ -387,6 +387,15 @@ pkg_preinst() {
ewarn "enable USE=python3 for $CATEGORY/$PN."
fi
+ # elog dir must exist to avoid logrotate error for bug #415911.
+ # This code runs in preinst in order to bypass the mapping of
+ # portage:portage to root:root which happens after src_install.
+ keepdir /var/log/portage/elog
+ # This is allowed to fail if the user/group are invalid for prefix users.
+ if chown portage:portage "${ED}"var/log/portage{,/elog} 2>/dev/null ; then
+ chmod g+s,ug+rwx "${ED}"var/log/portage{,/elog}
+ fi
+
has_version "<=${CATEGORY}/${PN}-2.2_pre5" \
&& WORLD_MIGRATION_UPGRADE=true || WORLD_MIGRATION_UPGRADE=false