summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2020-08-12 20:51:20 -0700
committerZac Medico <zmedico@gentoo.org>2020-08-12 21:00:23 -0700
commit0b263754b766b509b59de39106371c002317897b (patch)
tree0ad07f53b9711c7d04b702dcda8233e0a414ef24
parentdev-perl/Pod-Parser: Add missing RESTRICT for IUSE="test" (diff)
downloadgentoo-0b263754b766b509b59de39106371c002317897b.tar.gz
gentoo-0b263754b766b509b59de39106371c002317897b.tar.bz2
gentoo-0b263754b766b509b59de39106371c002317897b.zip
sys-apps/portage: 3.0.2-r1 revbump for bug 736912
#736912 Tolerate broken or missing xml support in python Bug: https://bugs.gentoo.org/733180 Bug: https://bugs.gentoo.org/736912 Package-Manager: Portage-3.0.2, Repoman-2.3.23 Signed-off-by: Zac Medico <zmedico@gentoo.org>
-rw-r--r--sys-apps/portage/portage-3.0.2-r1.ebuild (renamed from sys-apps/portage/portage-3.0.2.ebuild)3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys-apps/portage/portage-3.0.2.ebuild b/sys-apps/portage/portage-3.0.2-r1.ebuild
index a8cc814a841..b4e9ffe6cf8 100644
--- a/sys-apps/portage/portage-3.0.2.ebuild
+++ b/sys-apps/portage/portage-3.0.2-r1.ebuild
@@ -89,6 +89,9 @@ pkg_pretend() {
python_prepare_all() {
distutils-r1_python_prepare_all
+ # Apply 7d891b78ec906bbd73a43d83abd296350678f002 for bug 736912
+ sed -e 's|from xml.parsers.expat import ExpatError|try:\n\t\0\nexcept Exception:\n\tExpatError = SyntaxError|' -i lib/portage/xml/metadata.py || die
+
sed -e "s:^VERSION = \"HEAD\"$:VERSION = \"${PV}\":" -i lib/portage/__init__.py || die
if use gentoo-dev; then