commit:     c2f936993e512259febd1361c64579350071301d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 23 00:50:14 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jan 23 15:19:55 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2f93699

net-analyzer/fail2ban: fix installation of .egg-info if tests used

Need to revbump as anyone who ran tests will have a dodgy installation of
fail2ban.

mgorny explains fully in the bug (and thanks to him for investigating this),
but the gist is that the test runner sets umask but never unsets it/reverts it,
so it ends up affecting the rest of the installed files by the package.

Closes: https://bugs.gentoo.org/790251
Thanks-to: Michał Górny <mgorny <AT> gentoo.org>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../fail2ban/{fail2ban-0.11.2-r3.ebuild => fail2ban-0.11.2-r4.ebuild}  | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/net-analyzer/fail2ban/fail2ban-0.11.2-r3.ebuild 
b/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild
similarity index 98%
rename from net-analyzer/fail2ban/fail2ban-0.11.2-r3.ebuild
rename to net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild
index 1390bc1bdc39..fe1a7dcfa4cb 100644
--- a/net-analyzer/fail2ban/fail2ban-0.11.2-r3.ebuild
+++ b/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild
@@ -64,6 +64,9 @@ python_test() {
                --no-network \
                --no-gamin \
                --verbosity=4 || die "Tests failed with ${EPYTHON}"
+
+       # Workaround for bug #790251
+       rm -r fail2ban.egg-info || die
 }
 
 python_install_all() {

Reply via email to