Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fail2ban: does not compile (_2to3) is invalid #17311

Closed
BKPepe opened this issue Dec 11, 2021 · 2 comments · Fixed by #17341
Closed

fail2ban: does not compile (_2to3) is invalid #17311

BKPepe opened this issue Dec 11, 2021 · 2 comments · Fixed by #17341

Comments

@BKPepe
Copy link
Member

BKPepe commented Dec 11, 2021

Maintainer: @erdoukki
Environment: aarch64, Turris MOX, OpenWrt 21.02.1

Description:

Applying ./patches/001-fail2ban-fix-python3-script.patch using plaintext: 
patching file config/filter.d/ignorecommands/apache-fakegooglebot

Applying ./patches/CVE-2021-32749.patch using plaintext: 
patching file config/action.d/complain.conf
patching file config/action.d/dshield.conf
patching file config/action.d/mail-buffered.conf
patching file config/action.d/mail-whois-lines.conf
patching file config/action.d/mail-whois.conf
patching file config/action.d/mail.conf
error in fail2ban setup command: use_2to3 is invalid.
make[2]: *** [Makefile:84: /home/beast/beast/workspace/turris-os-packages-dragons-mox/build/build_dir/target-aarch64_cortex-a53_musl/fail2ban-0.11.2/.built] Error 1
time: package/feeds/packages/fail2ban/compile#1.82#0.20#2.86
@BKPepe
Copy link
Member Author

BKPepe commented Dec 12, 2021

I think you should take time to analyze it, prefer how you want to fix it, and share the final proposal with us instead of three comments in a row because then you are making it very difficult to read and understandable. You should also consider using edit.

erdoukki added a commit to erdoukki/packages that referenced this issue Dec 12, 2021
2to3 support has been removed in setuptools since version 58.0.0.
Upstream reported fail2ban/fail2ban#3098

Fix openwrt#17311

Signed-off-by: Kerma Gérald <gandalf@gk2.net>
erdoukki added a commit to erdoukki/packages that referenced this issue Dec 12, 2021
2to3 support has been removed in setuptools since version 58.0.0.
Upstream reported fail2ban/fail2ban#3098

Fix openwrt#17311

Signed-off-by: Kerma Gérald <gandalf@gk2.net>
erdoukki added a commit to erdoukki/packages that referenced this issue Dec 12, 2021
2to3 support has been removed in setuptools since version 58.0.0.
Upstream reported fail2ban/fail2ban#3098

Fix openwrt#17311

Signed-off-by: Kerma Gérald <gandalf@gk2.net>
erdoukki added a commit to erdoukki/packages that referenced this issue Dec 12, 2021
2to3 support has been removed in setuptools since version 58.0.0.

Upstream issue/fix:
[BR]: build fails against setuptools 58+ fail2ban/fail2ban#3098
fail2ban/fail2ban@5ac303d

Fix openwrt#17311

Signed-off-by: Kerma Gérald <gandalf@gk2.net>
erdoukki added a commit to erdoukki/packages that referenced this issue Dec 13, 2021
2to3 support has been removed in setuptools since version 58.0.0.

Upstream issue/fix:
[BR]: build fails against setuptools 58+ fail2ban/fail2ban#3098
fail2ban/fail2ban@5ac303d

Fix openwrt#17311

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

Signed-off-by: Kerma Gérald <gandalf@gk2.net>
erdoukki added a commit to erdoukki/packages that referenced this issue Dec 13, 2021
2to3 support has been removed in setuptools since version 58.0.0.

Upstream issue/fix:
[BR]: build fails against setuptools 58+ fail2ban/fail2ban#3098
fail2ban/fail2ban@5ac303d

Fix openwrt#17311

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

Signed-off-by: Kerma Gérald <gandalf@gk2.net>
erdoukki added a commit to erdoukki/packages that referenced this issue Dec 13, 2021
2to3 support has been removed in setuptools since version 58.0.0.

Upstream issue/fix:
[BR]: build fails against setuptools 58+ fail2ban/fail2ban#3098
fail2ban/fail2ban@5ac303d

Fix openwrt#17311

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

Signed-off-by: Kerma Gérald <gandalf@gk2.net>
erdoukki added a commit to erdoukki/packages that referenced this issue Dec 13, 2021
2to3 support has been removed in setuptools since version 58.0.0.

Upstream issue/fix:
[BR]: build fails against setuptools 58+ fail2ban/fail2ban#3098
fail2ban/fail2ban@5ac303d

Fix openwrt#17311

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

Signed-off-by: Kerma Gérald <gandalf@gk2.net>
erdoukki added a commit to erdoukki/packages that referenced this issue Dec 13, 2021
2to3 support has been removed in setuptools since version 58.0.0.

Upstream issue/fix:
[BR]: build fails against setuptools 58+ fail2ban/fail2ban#3098
fail2ban/fail2ban@5ac303d

Fix openwrt#17311

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

Signed-off-by: Kerma Gérald <gandalf@gk2.net>
erdoukki added a commit to erdoukki/packages that referenced this issue Dec 14, 2021
2to3 support has been removed in setuptools since version 58.0.0.

Upstream issue/fix:
[BR]: build fails against setuptools 58+ fail2ban/fail2ban#3098
fail2ban/fail2ban@5ac303d

Fix openwrt#17311

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

Signed-off-by: Kerma Gérald <gandalf@gk2.net>
erdoukki added a commit to erdoukki/packages that referenced this issue Dec 14, 2021
2to3 support has been removed in setuptools since version 58.0.0.

Upstream issue/fix:
[BR]: build fails against setuptools 58+ fail2ban/fail2ban#3098
fail2ban/fail2ban@5ac303d

Fix openwrt#17311

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

Signed-off-by: Kerma Gérald <gandalf@gk2.net>
erdoukki added a commit to erdoukki/packages that referenced this issue Dec 14, 2021
2to3 support has been removed in setuptools since version 58.0.0.

Upstream issue/fix:
[BR]: build fails against setuptools 58+ fail2ban/fail2ban#3098
fail2ban/fail2ban@5ac303d

Fix openwrt#17311

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

Signed-off-by: Kerma Gérald <gandalf@gk2.net>
(cherry picked from commit b1289c6)
Signed-off-by: Kerma Gérald <gandalf@gk2.net>
erdoukki added a commit to erdoukki/packages that referenced this issue Dec 14, 2021
2to3 support has been removed in setuptools since version 58.0.0.

Upstream issue/fix:
[BR]: build fails against setuptools 58+ fail2ban/fail2ban#3098
fail2ban/fail2ban@5ac303d

Fix openwrt#17311

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

also add packages/lang/python/host-pip-requirements/lib2to3.txt requirements

Signed-off-by: Kerma Gérald <gandalf@gk2.net>
erdoukki added a commit to erdoukki/packages that referenced this issue Dec 16, 2021
Issue: 2to3 support has been removed in setuptools since version 58.0.0.

Fix: openwrt#17311

Add: packages/lang/python/host-pip-requirements/lib2to3.txt requirements

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

Signed-off-by: Kerma Gérald <gandalf@gk2.net>
@erdoukki
Copy link
Contributor

Resolved-by: #17341

erdoukki added a commit to erdoukki/packages that referenced this issue Dec 25, 2021
2to3 is a Python program that reads Python 2.x source code and applies a
  series of fixers to transform it into valid Python 3.x code. The standard
  library contains a rich set of fixers that will handle almost all code. 2to3
  supporting library lib2to3 is, however, a flexible and generic library, so it
  is possible to write your own fixers for 2to3. lib2to3 could also be adapted
  to custom applications in which Python code needs to be edited automatically.

This tool is necessary for fail2ban package because of issue
  openwrt#17311
  openwrt#17341

Simple 2to3.py script from Debian, thanks to Matthias Klose <doko@ubuntu.com>

Signed-off-by: Kerma Gérald <gandalf@gk2.net>
erdoukki added a commit to erdoukki/packages that referenced this issue Dec 25, 2021
2to3 is a Python program that reads Python 2.x source code and applies a
  series of fixers to transform it into valid Python 3.x code. The standard
  library contains a rich set of fixers that will handle almost all code. 2to3
  supporting library lib2to3 is, however, a flexible and generic library, so it
  is possible to write your own fixers for 2to3. lib2to3 could also be adapted
  to custom applications in which Python code needs to be edited automatically.

This tool is necessary for fail2ban package because of issue
  openwrt#17311
  openwrt#17341

Simple 2to3.py script from Debian, thanks to Matthias Klose <doko@ubuntu.com>
From: https://salsa.debian.org/cpython-team/python3-defaults

Co-authored-by: Jeffery To <jeffery.to@gmail.com>
Signed-off-by: Kerma Gérald <gandalf@gk2.net>
erdoukki added a commit to erdoukki/packages that referenced this issue Dec 25, 2021
2to3 is a Python program that reads Python 2.x source code and applies a
  series of fixers to transform it into valid Python 3.x code. The standard
  library contains a rich set of fixers that will handle almost all code. 2to3
  supporting library lib2to3 is, however, a flexible and generic library, so it
  is possible to write your own fixers for 2to3. lib2to3 could also be adapted
  to custom applications in which Python code needs to be edited automatically.

This tool is necessary for fail2ban package because of issue
  openwrt#17311
  openwrt#17341

Simple 2to3.py script from Debian, thanks to Matthias Klose <doko@ubuntu.com>
From: https://salsa.debian.org/cpython-team/python3-defaults

Co-authored-by: Jeffery To <jeffery.to@gmail.com>
Signed-off-by: Kerma Gérald <gandalf@gk2.net>
erdoukki added a commit to erdoukki/packages that referenced this issue Dec 25, 2021
2to3 is a Python program that reads Python 2.x source code and applies a
  series of fixers to transform it into valid Python 3.x code. The standard
  library contains a rich set of fixers that will handle almost all code. 2to3
  supporting library lib2to3 is, however, a flexible and generic library, so it
  is possible to write your own fixers for 2to3. lib2to3 could also be adapted
  to custom applications in which Python code needs to be edited automatically.

This tool is necessary for fail2ban package because of issue
  openwrt#17311
  openwrt#17341

Simple 2to3.py script from Debian, thanks to Matthias Klose <doko@ubuntu.com>
From: https://salsa.debian.org/cpython-team/python3-defaults

Co-authored-by: Jeffery To <jeffery.to@gmail.com>
Signed-off-by: Kerma Gérald <gandalf@gk2.net>
erdoukki added a commit to erdoukki/packages that referenced this issue Dec 25, 2021
2to3 is a Python program that reads Python 2.x source code and applies a
  series of fixers to transform it into valid Python 3.x code. The standard
  library contains a rich set of fixers that will handle almost all code. 2to3
  supporting library lib2to3 is, however, a flexible and generic library, so it
  is possible to write your own fixers for 2to3. lib2to3 could also be adapted
  to custom applications in which Python code needs to be edited automatically.

This tool is necessary for fail2ban package because of issue
  openwrt#17311
  openwrt#17341

Simple 2to3.py script from Debian, thanks to Matthias Klose <doko@ubuntu.com>
From: https://salsa.debian.org/cpython-team/python3-defaults

Co-authored-by: Jeffery To <jeffery.to@gmail.com>
Signed-off-by: Kerma Gérald <gandalf@gk2.net>
erdoukki added a commit to erdoukki/packages that referenced this issue Dec 25, 2021
2to3 is a Python program that reads Python 2.x source code and applies a
  series of fixers to transform it into valid Python 3.x code. The standard
  library contains a rich set of fixers that will handle almost all code. 2to3
  supporting library lib2to3 is, however, a flexible and generic library, so it
  is possible to write your own fixers for 2to3. lib2to3 could also be adapted
  to custom applications in which Python code needs to be edited automatically.

This tool is necessary for fail2ban package because of issue
  openwrt#17311
  openwrt#17341

Simple 2to3.py script from Debian, thanks to Matthias Klose <doko@ubuntu.com>
From: https://salsa.debian.org/cpython-team/python3-defaults

Co-authored-by: Jeffery To <jeffery.to@gmail.com>
Signed-off-by: Kerma Gérald <gandalf@gk2.net>
erdoukki added a commit to erdoukki/packages that referenced this issue Dec 25, 2021
2to3 is a Python program that reads Python 2.x source code and applies a
  series of fixers to transform it into valid Python 3.x code. The standard
  library contains a rich set of fixers that will handle almost all code. 2to3
  supporting library lib2to3 is, however, a flexible and generic library, so it
  is possible to write your own fixers for 2to3. lib2to3 could also be adapted
  to custom applications in which Python code needs to be edited automatically.

This tool is necessary for fail2ban package because of issue
  openwrt#17311
  openwrt#17341

Simple 2to3.py script from Debian, thanks to Matthias Klose <doko@ubuntu.com>
From: https://salsa.debian.org/cpython-team/python3-defaults

Co-authored-by: Jeffery To <jeffery.to@gmail.com>
Signed-off-by: Kerma Gérald <gandalf@gk2.net>
erdoukki added a commit to erdoukki/packages that referenced this issue Dec 25, 2021
2to3 is a Python program that reads Python 2.x source code and applies a
  series of fixers to transform it into valid Python 3.x code. The standard
  library contains a rich set of fixers that will handle almost all code. 2to3
  supporting library lib2to3 is, however, a flexible and generic library, so it
  is possible to write your own fixers for 2to3. lib2to3 could also be adapted
  to custom applications in which Python code needs to be edited automatically.

This tool is necessary for fail2ban package because of issue
  openwrt#17311
  openwrt#17341

Simple 2to3.py script from Debian, thanks to Matthias Klose <doko@ubuntu.com>
From: https://salsa.debian.org/cpython-team/python3-defaults

Co-authored-by: Jeffery To <jeffery.to@gmail.com>
Signed-off-by: Kerma Gérald <gandalf@gk2.net>
erdoukki added a commit to erdoukki/packages that referenced this issue Dec 25, 2021
2to3 is a Python program that reads Python 2.x source code and applies a
  series of fixers to transform it into valid Python 3.x code. The standard
  library contains a rich set of fixers that will handle almost all code. 2to3
  supporting library lib2to3 is, however, a flexible and generic library, so it
  is possible to write your own fixers for 2to3. lib2to3 could also be adapted
  to custom applications in which Python code needs to be edited automatically.

This tool is necessary for fail2ban package because of issue
  openwrt#17311
  openwrt#17341

Simple 2to3.py script from Debian, thanks to Matthias Klose <doko@ubuntu.com>
From: https://salsa.debian.org/cpython-team/python3-defaults

Requirements: python-toolz (lang/python/host-pip-requirements/lib2to3.txt)

Co-authored-by: Jeffery To <jeffery.to@gmail.com>
Signed-off-by: Kerma Gérald <gandalf@gk2.net>
erdoukki added a commit to erdoukki/packages that referenced this issue Dec 25, 2021
Issue: 2to3 support has been removed in setuptools since version 58.0.0.

Fix: openwrt#17311

Requirements: 2to3/host

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

Signed-off-by: Kerma Gérald <gandalf@gk2.net>
erdoukki added a commit to erdoukki/packages that referenced this issue Jan 1, 2022
2to3 is a Python program that reads Python 2.x source code and applies a
  series of fixers to transform it into valid Python 3.x code. The standard
  library contains a rich set of fixers that will handle almost all code. 2to3
  supporting library lib2to3 is, however, a flexible and generic library, so it
  is possible to write your own fixers for 2to3. lib2to3 could also be adapted
  to custom applications in which Python code needs to be edited automatically.

This tool is necessary for fail2ban package because of issue
  openwrt#17311
  openwrt#17341

Simple 2to3.py script from Debian, thanks to Matthias Klose <doko@ubuntu.com>
From: https://salsa.debian.org/cpython-team/python3-defaults

Co-authored-by: Jeffery To <jeffery.to@gmail.com>
Signed-off-by: Kerma Gérald <gandalf@gk2.net>
erdoukki added a commit to erdoukki/packages that referenced this issue Jan 1, 2022
2to3 is a Python program that reads Python 2.x source code and applies a
  series of fixers to transform it into valid Python 3.x code. The standard
  library contains a rich set of fixers that will handle almost all code. 2to3
  supporting library lib2to3 is, however, a flexible and generic library, so it
  is possible to write your own fixers for 2to3. lib2to3 could also be adapted
  to custom applications in which Python code needs to be edited automatically.

This tool is necessary for fail2ban package because of issue
  openwrt#17311
  openwrt#17341

Simple 2to3.py script from Debian, thanks to Matthias Klose <doko@ubuntu.com>
From: https://salsa.debian.org/cpython-team/python3-defaults

Co-authored-by: Jeffery To <jeffery.to@gmail.com>
Signed-off-by: Kerma Gérald <gandalf@gk2.net>
erdoukki added a commit to erdoukki/packages that referenced this issue Jan 3, 2022
2to3 is a Python program that reads Python 2.x source code and applies a
  series of fixers to transform it into valid Python 3.x code. The standard
  library contains a rich set of fixers that will handle almost all code. 2to3
  supporting library lib2to3 is, however, a flexible and generic library, so it
  is possible to write your own fixers for 2to3. lib2to3 could also be adapted
  to custom applications in which Python code needs to be edited automatically.

This tool is necessary for fail2ban package because of issue
  openwrt#17311
  openwrt#17341

Simple 2to3.py script from Debian, thanks to Matthias Klose <doko@ubuntu.com>
From: https://salsa.debian.org/cpython-team/python3-defaults

Co-authored-by: Jeffery To <jeffery.to@gmail.com>
Signed-off-by: Kerma Gérald <gandalf@gk2.net>
erdoukki added a commit to erdoukki/packages that referenced this issue Jan 5, 2022
2to3 is a Python program that reads Python 2.x source code and applies a
  series of fixers to transform it into valid Python 3.x code. The standard
  library contains a rich set of fixers that will handle almost all code. 2to3
  supporting library lib2to3 is, however, a flexible and generic library, so it
  is possible to write your own fixers for 2to3. lib2to3 could also be adapted
  to custom applications in which Python code needs to be edited automatically.

This tool is necessary for fail2ban package because of issue
  openwrt#17311
  openwrt#17341

Simple 2to3.py script from Debian, thanks to Matthias Klose <doko@ubuntu.com>
From: https://salsa.debian.org/cpython-team/python3-defaults

Co-authored-by: Jeffery To <jeffery.to@gmail.com>
Signed-off-by: Kerma Gérald <gandalf@gk2.net>
erdoukki added a commit to erdoukki/packages that referenced this issue Jan 6, 2022
Issue: 2to3 support has been removed in setuptools since version 58.0.0.

Fix: openwrt#17311

Requirements: 2to3/host openwrt#17429

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

Signed-off-by: Kerma Gérald <gandalf@gk2.net>
erdoukki added a commit to erdoukki/packages that referenced this issue Jan 7, 2022
Issue: 2to3 support has been removed in setuptools since version 58.0.0.

Fix: openwrt#17311

Requirements: 2to3/host openwrt#17429

Add upstream patch: 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

Signed-off-by: Kerma Gérald <gandalf@gk2.net>
erdoukki added a commit to erdoukki/packages that referenced this issue Jan 7, 2022
Issue: 2to3 support has been removed in setuptools since version 58.0.0.

Fix: openwrt#17311

Requirements: 2to3/host openwrt#17429

Add upstream patch: fail2ban/fail2ban@196c55e

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

Signed-off-by: Kerma Gérald <gandalf@gk2.net>
erdoukki added a commit to erdoukki/packages that referenced this issue Jan 8, 2022
Issue: 2to3 support has been removed in setuptools since version 58.0.0.

Fix: openwrt#17311

Requirements: 2to3/host openwrt#17429

Add upstream patch: fail2ban/fail2ban@196c55e

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

Signed-off-by: Kerma Gérald <gandalf@gk2.net>
erdoukki added a commit to erdoukki/packages that referenced this issue Jan 8, 2022
Issue: 2to3 support has been removed in setuptools since version 58.0.0.

Fix: openwrt#17311

Requirements: 2to3/host openwrt#17429

Add upstream patch: fail2ban/fail2ban@196c55e

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

Signed-off-by: Kerma Gérald <gandalf@gk2.net>
erdoukki added a commit to erdoukki/packages that referenced this issue Jan 8, 2022
Issue: 2to3 support has been removed in setuptools since version 58.0.0.

Fix: openwrt#17311

Requirements: 2to3/host openwrt#17429

Add upstream patch: fail2ban/fail2ban@196c55e

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

Signed-off-by: Kerma Gérald <gandalf@gk2.net>
erdoukki added a commit to erdoukki/packages that referenced this issue Jan 8, 2022
Issue: 2to3 support has been removed in setuptools since version 58.0.0.

Fix: openwrt#17311

Requirements: 2to3/host openwrt#17429

Add upstream patch: fail2ban/fail2ban@196c55e

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

Signed-off-by: Kerma Gérald <gandalf@gk2.net>
erdoukki added a commit to erdoukki/packages that referenced this issue Jan 10, 2022
Issue: 2to3 support has been removed in setuptools since version 58.0.0.

Fix: openwrt#17311

Requirements: 2to3/host openwrt#17429

Add upstream patch: fail2ban/fail2ban@196c55e

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 ad0e1a1)
Signed-off-by: Kerma Gérald <gandalf@gk2.net>
BKPepe pushed a commit that referenced this issue Jan 10, 2022
Issue: 2to3 support has been removed in setuptools since version 58.0.0.

Fix: #17311

Requirements: 2to3/host #17429

Add upstream patch: fail2ban/fail2ban@196c55e

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 ad0e1a1)
Signed-off-by: Kerma Gérald <gandalf@gk2.net>
clayface pushed a commit to clayface/packages that referenced this issue Jan 12, 2022
Issue: 2to3 support has been removed in setuptools since version 58.0.0.

Fix: openwrt#17311

Requirements: 2to3/host openwrt#17429

Add upstream patch: fail2ban/fail2ban@196c55e

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

Signed-off-by: Kerma Gérald <gandalf@gk2.net>
1715173329 pushed a commit to immortalwrt/packages that referenced this issue Jan 12, 2022
2to3 is a Python program that reads Python 2.x source code and applies a
  series of fixers to transform it into valid Python 3.x code. The standard
  library contains a rich set of fixers that will handle almost all code. 2to3
  supporting library lib2to3 is, however, a flexible and generic library, so it
  is possible to write your own fixers for 2to3. lib2to3 could also be adapted
  to custom applications in which Python code needs to be edited automatically.

This tool is necessary for fail2ban package because of issue
  openwrt/packages#17311
  openwrt/packages#17341

Simple 2to3.py script from Debian, thanks to Matthias Klose <doko@ubuntu.com>
From: https://salsa.debian.org/cpython-team/python3-defaults

Co-authored-by: Jeffery To <jeffery.to@gmail.com>
Signed-off-by: Kerma Gérald <gandalf@gk2.net>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
1715173329 pushed a commit to immortalwrt/packages that referenced this issue Jan 12, 2022
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: fail2ban/fail2ban@196c55e

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

Signed-off-by: Kerma Gérald <gandalf@gk2.net>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
erdoukki added a commit to erdoukki/packages that referenced this issue Jan 15, 2022
2to3 is a Python program that reads Python 2.x source code and applies a
  series of fixers to transform it into valid Python 3.x code. The standard
  library contains a rich set of fixers that will handle almost all code. 2to3
  supporting library lib2to3 is, however, a flexible and generic library, so it
  is possible to write your own fixers for 2to3. lib2to3 could also be adapted
  to custom applications in which Python code needs to be edited automatically.

This tool is necessary for fail2ban package because of issue
  openwrt#17311
  openwrt#17341

Simple 2to3.py script from Debian, thanks to Matthias Klose <doko@ubuntu.com>
From: https://salsa.debian.org/cpython-team/python3-defaults

(cherry picked from commit 2f91e1c)
Co-authored-by: Jeffery To <jeffery.to@gmail.com>
Signed-off-by: Kerma Gérald <gandalf@gk2.net>
utoni pushed a commit to utoni/openwrt-packages that referenced this issue Jan 21, 2022
2to3 is a Python program that reads Python 2.x source code and applies a
  series of fixers to transform it into valid Python 3.x code. The standard
  library contains a rich set of fixers that will handle almost all code. 2to3
  supporting library lib2to3 is, however, a flexible and generic library, so it
  is possible to write your own fixers for 2to3. lib2to3 could also be adapted
  to custom applications in which Python code needs to be edited automatically.

This tool is necessary for fail2ban package because of issue
  openwrt#17311
  openwrt#17341

Simple 2to3.py script from Debian, thanks to Matthias Klose <doko@ubuntu.com>
From: https://salsa.debian.org/cpython-team/python3-defaults

Co-authored-by: Jeffery To <jeffery.to@gmail.com>
Signed-off-by: Kerma Gérald <gandalf@gk2.net>
utoni pushed a commit to utoni/openwrt-packages that referenced this issue Jan 21, 2022
Issue: 2to3 support has been removed in setuptools since version 58.0.0.

Fix: openwrt#17311

Requirements: 2to3/host openwrt#17429

Add upstream patch: fail2ban/fail2ban@196c55e

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

Signed-off-by: Kerma Gérald <gandalf@gk2.net>
Beginner-Go pushed a commit to coolsnowwolf/packages that referenced this issue Feb 6, 2022
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: fail2ban/fail2ban@196c55e

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

Signed-off-by: Kerma Gérald <gandalf@gk2.net>
Beginner-Go pushed a commit to coolsnowwolf/packages that referenced this issue Feb 6, 2022
2to3 is a Python program that reads Python 2.x source code and applies a
  series of fixers to transform it into valid Python 3.x code. The standard
  library contains a rich set of fixers that will handle almost all code. 2to3
  supporting library lib2to3 is, however, a flexible and generic library, so it
  is possible to write your own fixers for 2to3. lib2to3 could also be adapted
  to custom applications in which Python code needs to be edited automatically.

This tool is necessary for fail2ban package because of issue
  openwrt/packages#17311
  openwrt/packages#17341

Simple 2to3.py script from Debian, thanks to Matthias Klose <doko@ubuntu.com>
From: https://salsa.debian.org/cpython-team/python3-defaults

Co-authored-by: Jeffery To <jeffery.to@gmail.com>
Signed-off-by: Kerma Gérald <gandalf@gk2.net>
graysky2 pushed a commit to graysky2/packages that referenced this issue Feb 6, 2022
2to3 is a Python program that reads Python 2.x source code and applies a
  series of fixers to transform it into valid Python 3.x code. The standard
  library contains a rich set of fixers that will handle almost all code. 2to3
  supporting library lib2to3 is, however, a flexible and generic library, so it
  is possible to write your own fixers for 2to3. lib2to3 could also be adapted
  to custom applications in which Python code needs to be edited automatically.

This tool is necessary for fail2ban package because of issue
  openwrt#17311
  openwrt#17341

Simple 2to3.py script from Debian, thanks to Matthias Klose <doko@ubuntu.com>
From: https://salsa.debian.org/cpython-team/python3-defaults

Co-authored-by: Jeffery To <jeffery.to@gmail.com>
Signed-off-by: Kerma Gérald <gandalf@gk2.net>
graysky2 pushed a commit to graysky2/packages that referenced this issue Feb 6, 2022
Issue: 2to3 support has been removed in setuptools since version 58.0.0.

Fix: openwrt#17311

Requirements: 2to3/host openwrt#17429

Add upstream patch: fail2ban/fail2ban@196c55e

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

Signed-off-by: Kerma Gérald <gandalf@gk2.net>
theatischbein pushed a commit to theatischbein/packages that referenced this issue Mar 24, 2022
2to3 is a Python program that reads Python 2.x source code and applies a
  series of fixers to transform it into valid Python 3.x code. The standard
  library contains a rich set of fixers that will handle almost all code. 2to3
  supporting library lib2to3 is, however, a flexible and generic library, so it
  is possible to write your own fixers for 2to3. lib2to3 could also be adapted
  to custom applications in which Python code needs to be edited automatically.

This tool is necessary for fail2ban package because of issue
  openwrt#17311
  openwrt#17341

Simple 2to3.py script from Debian, thanks to Matthias Klose <doko@ubuntu.com>
From: https://salsa.debian.org/cpython-team/python3-defaults

(cherry picked from commit 2f91e1c)
Co-authored-by: Jeffery To <jeffery.to@gmail.com>
Signed-off-by: Kerma Gérald <gandalf@gk2.net>
utoni pushed a commit to utoni/openwrt-packages that referenced this issue May 30, 2022
2to3 is a Python program that reads Python 2.x source code and applies a
  series of fixers to transform it into valid Python 3.x code. The standard
  library contains a rich set of fixers that will handle almost all code. 2to3
  supporting library lib2to3 is, however, a flexible and generic library, so it
  is possible to write your own fixers for 2to3. lib2to3 could also be adapted
  to custom applications in which Python code needs to be edited automatically.

This tool is necessary for fail2ban package because of issue
  openwrt#17311
  openwrt#17341

Simple 2to3.py script from Debian, thanks to Matthias Klose <doko@ubuntu.com>
From: https://salsa.debian.org/cpython-team/python3-defaults

Co-authored-by: Jeffery To <jeffery.to@gmail.com>
Signed-off-by: Kerma Gérald <gandalf@gk2.net>
utoni pushed a commit to utoni/openwrt-packages that referenced this issue May 30, 2022
Issue: 2to3 support has been removed in setuptools since version 58.0.0.

Fix: openwrt#17311

Requirements: 2to3/host openwrt#17429

Add upstream patch: fail2ban/fail2ban@196c55e

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

Signed-off-by: Kerma Gérald <gandalf@gk2.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants