commit:     548c1482c748845e3dac7351d2e622fdce5727f4
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 14 19:14:46 2021 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Sun Feb 14 19:15:25 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=548c1482

dev-python/autobahn: Fix tinderbox sandbox issue

Closes: https://bugs.gentoo.org/753338
Package-Manager: Portage-3.0.10, Repoman-3.0.2
Signed-off-by: Brian Dolbec <dolsen <AT> gentoo.org>

 dev-python/autobahn/autobahn-21.2.1.ebuild | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/dev-python/autobahn/autobahn-21.2.1.ebuild 
b/dev-python/autobahn/autobahn-21.2.1.ebuild
index 8cc01e514d3..78281c5cf7a 100644
--- a/dev-python/autobahn/autobahn-21.2.1.ebuild
+++ b/dev-python/autobahn/autobahn-21.2.1.ebuild
@@ -72,6 +72,11 @@ python_prepare_all() {
                # remove xbr components
                export AUTOBAHN_STRIP_XBR="True"
        fi
+       # remove twisted plugin cache regen in setup.py
+       # to fix tinderbox sandbox issue
+       sed -e 's/# regenerate Twisted plugin cache/# DO NOT regenerate Twisted 
plugin cache in Gentoo\nexit()/' \
+               -i setup.py || die
+
        distutils-r1_python_prepare_all
 }
 
@@ -89,13 +94,6 @@ python_test() {
        rm -r .pytest_cache || die
 }
 
-python_install_all() {
-       distutils-r1_python_install_all
-
-       # delete the dropin.cache so we don't have collisions if it exists
-       rm "${D}"/usr/lib*/python*/site-packages/twisted/plugins//dropin.cache 
> /dev/null
-}
-
 pkg_postinst() {
        python_foreach_impl twisted-regen-cache || die
 }

Reply via email to