Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 907350 - net-analyzer/fail2ban: ? (was: dev-python/wsgiproxy2-0.5.1-r1 - error: [Errno 13] Permission denied: /usr/lib/python3.11/site-packages/fail2ban-1.0.2-py3.11.egg-)
Summary: net-analyzer/fail2ban: ? (was: dev-python/wsgiproxy2-0.5.1-r1 - error: [Errno...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sam James
URL:
Whiteboard:
Keywords:
: 805362 907349 909536 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-05-29 10:22 UTC by Toralf Förster
Modified: 2023-07-02 20:36 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,19.06 KB, text/plain)
2023-05-29 10:22 UTC, Toralf Förster
Details
dev-python:wsgiproxy2-0.5.1-r1:20230529-102107.log (dev-python:wsgiproxy2-0.5.1-r1:20230529-102107.log,4.75 KB, text/plain)
2023-05-29 10:22 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,196.33 KB, text/plain)
2023-05-29 10:22 UTC, Toralf Förster
Details
environment (environment,141.70 KB, text/plain)
2023-05-29 10:22 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,732 bytes, application/x-bzip)
2023-05-29 10:22 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,25.76 KB, application/x-bzip)
2023-05-29 10:22 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,31.61 KB, application/x-bzip)
2023-05-29 10:22 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-05-29 10:22:23 UTC
2023-05-29 10:21:10,353 root INFO running egg_info
2023-05-29 10:21:10,467 root INFO writing WSGIProxy2.egg-info/PKG-INFO
2023-05-29 10:21:10,467 root INFO writing dependency_links to WSGIProxy2.egg-info/dependency_links.txt
2023-05-29 10:21:10,468 root INFO deleting WSGIProxy2.egg-info/entry_points.txt
2023-05-29 10:21:10,468 root INFO writing requirements to WSGIProxy2.egg-info/requires.txt
2023-05-29 10:21:10,468 root INFO writing top-level names to WSGIProxy2.egg-info/top_level.txt
error: [Errno 13] Permission denied: '/usr/lib/python3.11/site-packages/fail2ban-1.0.2-py3.11.egg-info/PKG-INFO'
 * ERROR: dev-python/wsgiproxy2-0.5.1-r1::gentoo failed (compile phase):
 *   Wheel build failed

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib-j5_test-20230525-172553

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 16.0.4
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/16/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/16
16.0.4
Python 3.11.3
Available Rust versions:
  [1]   rust-1.69.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.18_p10 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.6_p10 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.362_p09 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17  system-vm

php cli (if any):
  [1]   php8.2 *
go version go1.20.4 linux/amd64

  HEAD of ::gentoo
commit 7e2f4851535e9796f9bf1eb8f61a5d092e63eead
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon May 29 10:02:02 2023 +0000

    2023-05-29 10:02:01 UTC

emerge -qpvO dev-python/wsgiproxy2
[ebuild  N    ] dev-python/wsgiproxy2-0.5.1-r1  USE="-doc -test" PYTHON_TARGETS="python3_11 -pypy3 -python3_10"
Comment 1 Toralf Förster gentoo-dev 2023-05-29 10:22:24 UTC
Created attachment 862808 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-05-29 10:22:25 UTC
Created attachment 862809 [details]
dev-python:wsgiproxy2-0.5.1-r1:20230529-102107.log
Comment 3 Toralf Förster gentoo-dev 2023-05-29 10:22:26 UTC
Created attachment 862810 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2023-05-29 10:22:27 UTC
Created attachment 862811 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-05-29 10:22:28 UTC
Created attachment 862812 [details]
etc.clang.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2023-05-29 10:22:29 UTC
Created attachment 862813 [details]
etc.portage.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2023-05-29 10:22:30 UTC
Created attachment 862814 [details]
temp.tar.bz2
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-05-29 10:38:28 UTC
Either fail2ban is installing broken files or the test system is tainted.
Comment 9 Toralf Förster gentoo-dev 2023-05-29 10:57:22 UTC
(In reply to Michał Górny from comment #8)
> Either fail2ban is installing broken files or the test system is tainted.

I stopped that image after getting the next hit:

bug clang similar dev-python/vncdotool-1.0.0-r1 - error: [Errno 13] Permission denied: /usr/lib/python3.11/site-packages/fail2ban-1.0.2-py3.11.egg-i @ 17.1_no_multilib-j5_test-20230525-172553
Comment 10 Toralf Förster gentoo-dev 2023-05-29 14:13:36 UTC
OTOH any chance that this is related to +test itself ?
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-04 06:45:38 UTC
https://bugs.gentoo.org/659010#c11 although I think mgorny analysed it somewhere too
Comment 12 ahudson.news 2023-06-04 09:59:04 UTC
(In reply to Toralf Förster from comment #10)
> OTOH any chance that this is related to +test itself ?

I can confirm fail2ban definitely has a history of causing permission problems to
/usr/lib*/python3.*/site-packages/fail2ban-*-py3*.egg-info/*
when tests are enabled.

However I think it is a different issue than https://bugs.gentoo.org/856727 , as the latter only started coming up much later (and is a problem of tests not getting executed for _unknown_ reasons, with our ebuild script then dying because it fails to clean up a non-existent test artifact).
Comment 13 ahudson.news 2023-06-04 10:02:44 UTC
(In reply to Sam James from comment #11)
> https://bugs.gentoo.org/659010#c11 although I think mgorny analysed it
> somewhere too

You might be thinking of https://bugs.gentoo.org/790251#c10
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-02 19:19:34 UTC
*** Bug 909536 has been marked as a duplicate of this bug. ***
Comment 15 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-02 19:19:45 UTC
*** Bug 805362 has been marked as a duplicate of this bug. ***
Comment 16 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-02 19:19:55 UTC
*** Bug 907349 has been marked as a duplicate of this bug. ***
Comment 17 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-02 19:26:00 UTC
Thanks, that was indeed it. Right, let me finally get this sorted.
Comment 18 Larry the Git Cow gentoo-dev 2023-07-02 20:32:59 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56503f6777856b3e3b37ae6046c2ef39d4addbb8

commit 56503f6777856b3e3b37ae6046c2ef39d4addbb8
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-07-02 20:31:54 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-07-02 20:32:52 +0000

    net-analyzer/fail2ban: avoid test umask affecting installed files
    
    Bug: https://bugs.gentoo.org/790251
    Closes: https://bugs.gentoo.org/907350
    Signed-off-by: Sam James <sam@gentoo.org>

 net-analyzer/fail2ban/fail2ban-1.0.2-r2.ebuild     | 129 +++++++++++++++++++++
 net-analyzer/fail2ban/fail2ban-9999.ebuild         |   1 +
 .../files/fail2ban-1.0.2-umask-tests.patch         |  45 +++++++
 3 files changed, 175 insertions(+)
Comment 19 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-02 20:36:28 UTC
Really hope that is indeed it. I wish I could actually reproduce this.