dev-python/carbon: fix logging with Python 3, bug #661340
authorFabian Groffen <grobian@gentoo.org>
Sun, 22 Jul 2018 16:45:19 +0000 (18:45 +0200)
committerFabian Groffen <grobian@gentoo.org>
Sun, 22 Jul 2018 16:45:53 +0000 (18:45 +0200)
Closes: https://bugs.gentoo.org/661340
Package-Manager: Portage-2.3.40, Repoman-2.3.9

dev-python/carbon/carbon-1.1.3-r1.ebuild [moved from dev-python/carbon/carbon-1.1.3.ebuild with 94% similarity]

similarity index 94%
rename from dev-python/carbon/carbon-1.1.3.ebuild
rename to dev-python/carbon/carbon-1.1.3-r1.ebuild
index 91d82b54c360bc74316d9d9f79643b038c877362..43c4daded363424e7574ebf0e18056c4fb3ea87c 100644 (file)
@@ -24,6 +24,9 @@ RDEPEND="
        =dev-python/whisper-${PV}*[${PYTHON_USEDEP}]"
 
 python_prepare_all() {
+       # bug #661340, excerpt from upstream, next release should have it
+       sed -i -e "s/'r+'/'rb+'/" lib/carbon/log.py || die
+
        # Do not install the configuration and data files. We install them
        # somewhere sensible by hand.
        sed -i -e '/data_files=install_files,/d' setup.py || die