fail2ban: fix 2to3 error
authorKerma Gérald <gandalf@gk2.net>
Sun, 12 Dec 2021 10:59:39 +0000 (11:59 +0100)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Mon, 10 Jan 2022 20:54:33 +0000 (21:54 +0100)
commitcaa72e5c5410dd45798a0449817d2ccfce42e622
tree43bd11acdeb058e80b24de5c80613f04ef3d0671
parentb3764db33ce85d7edafa836c725ffd319dfd147c
fail2ban: fix 2to3 error

Issue: 2to3 support has been removed in setuptools since version 58.0.0.

Fix: openwrt/packages#17311

Requirements: 2to3/host openwrt/packages#17429

Add upstream patch: https://github.com/fail2ban/fail2ban/commit/196c55e93103d1e56d1336f27a5f2591b4e54fef

To install/build for python3 from source, it is necessary to convert to py3
codebase before setup (invoke 2to3 or ./fail2ban-2to3 firstly).
> ./fail2ban-2to3
> python3 setup.py build

(cherry picked from commit ad0e1a1c3ce871da079779bf9ac706859445f3c5)
Signed-off-by: Kerma Gérald <gandalf@gk2.net>
net/fail2ban/Makefile
net/fail2ban/patches/020-fix-2to3.patch [new file with mode: 0644]