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

[WIP] fail2ban: update to 1.1.0. #48297

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AnInternetTroll
Copy link
Contributor

Testing the changes

  • I tested the changes in this PR: YES

Local build testing

  • I built this PR locally for my native architecture, (x86_64-glibc)

@dkwo
Copy link
Contributor

dkwo commented Jan 20, 2024

This badly needs a release upstream, but for now this passes tests for me (mostly taken from Fedora). cc @ahesford

@@ -1,10 +1,11 @@
 # Template file for 'fail2ban'
 pkgname=fail2ban
 version=1.0.2
-revision=3
+revision=4
 build_style=python3-module
 hostmakedepends="pkg-config python3-setuptools"
-depends="python3-pyasynchat"
+depends="python3-pyasynchat python3-pyasyncore"
+checkdepends="python3-utils ${depends}"
 short_desc="Authentication failure monitor system"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-2.0-only"
@@ -23,6 +24,16 @@ pre_build() {
        ./fail2ban-2to3
 }
 
+do_check() {
+       # this test uses smtpd which is removed in Python 3.12
+       # https://github.com/fail2ban/fail2ban/issues/3487
+       rm -f fail2ban/tests/action_d/test_smtp.py
+
+       # testRepairDb does not work with sqlite 3.42.0+
+       # https://github.com/fail2ban/fail2ban/issues/3586
+       python3 bin/fail2ban-testcases -i testRepairDb
+}
+
 post_install() {
        rm -rf ${DESTDIR}/${py3_sitelib}/fail2ban/tests
        vsv fail2ban

@AnInternetTroll AnInternetTroll marked this pull request as ready for review January 20, 2024 21:45
@AnInternetTroll
Copy link
Contributor Author

AnInternetTroll commented Jan 20, 2024 via email

@AnInternetTroll AnInternetTroll force-pushed the user/luca/fail2ban-man branch 3 times, most recently from 9ba3957 to 85ff366 Compare May 31, 2024 21:58
@AnInternetTroll
Copy link
Contributor Author

AnInternetTroll commented May 31, 2024 via email

@AnInternetTroll AnInternetTroll changed the title fail2ban: add man pages [WIP] fail2ban: update to 1.1.0. May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants