Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jan 2026 06:51:50 -0800
From:      Cy Schubert <Cy.Schubert@cschubert.com>
To:        Cy Schubert <cy@FreeBSD.org>
Cc:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   Re: git: 4fde322e29b7 - main - security/py-fail2ban: Remove  redundant 2to3 invocation
Message-ID:  <20260113145150.F2304540@slippy.cwsent.com>
In-Reply-To: <69665a95.cfbe.13a3eed1@gitrepo.freebsd.org>

index | next in thread | previous in thread | raw e-mail

In message <69665a95.cfbe.13a3eed1@gitrepo.freebsd.org>, Cy Schubert writes:
> The branch main has been updated by cy:
>
> URL: https://cgit.FreeBSD.org/ports/commit/?id=4fde322e29b7c70526c4a720939bee
> 7ffb245c8b
>
> commit 4fde322e29b7c70526c4a720939bee7ffb245c8b
> Author:     Cy Schubert <cy@FreeBSD.org>
> AuthorDate: 2026-01-13 14:43:43 +0000
> Commit:     Cy Schubert <cy@FreeBSD.org>
> CommitDate: 2026-01-13 14:45:23 +0000
>
>     security/py-fail2ban: Remove redundant 2to3 invocation
>     
>     As of upstream 9c5f6eea fail2ban is Python 3.x based. We no longer need
>     2to3 anymore.
>     
>     PR:             9c5f6eea
                      292424

Oops.

>     MFH:            2026Q1
> ---
>  security/py-fail2ban/Makefile | 9 +--------
>  1 file changed, 1 insertion(+), 8 deletions(-)
>
> diff --git a/security/py-fail2ban/Makefile b/security/py-fail2ban/Makefile
> index 2d4f78da12c4..53d3749f7f53 100644
> --- a/security/py-fail2ban/Makefile
> +++ b/security/py-fail2ban/Makefile
> @@ -1,6 +1,6 @@
>  PORTNAME=	fail2ban
>  DISTVERSION=	1.1.0
> -PORTREVISION=	7
> +PORTREVISION=	8
>  CATEGORIES=	security python
>  PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
>  
> @@ -50,9 +50,6 @@ MAN_FILES=	${WRKSRC}/man/fail2ban-client.1 \
>  FAIL2BAN_DBDIR=	/var/db/${PORTNAME}
>  PLIST_SUB=	FAIL2BAN_DBDIR=${FAIL2BAN_DBDIR}
>  
> -PY2TO3_CMD=	${LOCALBASE}/bin/2to3-${PYTHON_VER}
> -PY2TO3_ARG=	--no-diffs --write --nobackups --fix=all
> -
>  post-patch:
>  	@${REINPLACE_CMD} -e 's,/etc/fail2ban,${ETCDIR},g' ${FILES}
>  	@${REINPLACE_CMD} -e 's,paths-debian.conf,paths-freebsd.conf,g' \
> @@ -64,10 +61,6 @@ post-patch:
>  	@${REINPLACE_CMD} -e 's, sed , ${SED} ,g' \
>  		${WRKSRC}/config/action.d/hostsdeny.conf
>  
> -	# XXX Ideally this should be in do-build but it only works in
> -	# XXX post-patch
> -	(cd ${WRKSRC}/ && ${PY2TO3_CMD} ${PY2TO3_ARG} bin/* fail2ban)
> -
>  post-install:
>  	@${MKDIR} ${STAGEDIR}${FAIL2BAN_DBDIR} ${STAGEDIR}/var/run/fail2ban
>  .for file in fail2ban-client fail2ban-regex fail2ban-server fail2ban


-- 
Cheers,
Cy Schubert <Cy.Schubert@cschubert.com>
FreeBSD UNIX:  <cy@FreeBSD.org>   Web:  https://FreeBSD.org
NTP:           <cy@nwtime.org>    Web:  https://nwtime.org

			e**(i*pi)+1=0




home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20260113145150.F2304540>