Re: git: 0ab0e977bc85 - main - www/gitea: Update 1.23.8 => 1.24.2

From: Cy Schubert <Cy.Schubert_at_cschubert.com>
Date: Sun, 22 Jun 2025 13:44:02 UTC
In message <202506212120.55LLKhju002318@gitrepo.freebsd.org>, Vladimir 
Druzenko
 writes:
> The branch main has been updated by vvd:
>
> URL: https://cgit.FreeBSD.org/ports/commit/?id=0ab0e977bc85db64e3387354474cc4
> e27911ed02
>
> commit 0ab0e977bc85db64e3387354474cc4e27911ed02
> Author:     Stefan Bethke <stb@lassitu.de>
> AuthorDate: 2025-06-21 21:18:18 +0000
> Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
> CommitDate: 2025-06-21 21:20:27 +0000
>
>     www/gitea: Update 1.23.8 => 1.24.2
>     
>     Release notes:
>     * https://blog.gitea.com/release-of-1.24.0/
>     * https://blog.gitea.com/release-of-1.24.1/
>     * https://blog.gitea.com/release-of-1.24.2/
>     
>     While here replaece 6 MKDIRs with 1.
>     
>     PR:     286828
> ---
>  www/gitea/Makefile  | 14 +++++++-------
>  www/gitea/distinfo  |  6 +++---
>  www/gitea/pkg-plist |  1 +
>  3 files changed, 11 insertions(+), 10 deletions(-)
>
> diff --git a/www/gitea/Makefile b/www/gitea/Makefile
> index 37cb50915293..b378c3cc68f3 100644
> --- a/www/gitea/Makefile
> +++ b/www/gitea/Makefile
> @@ -1,7 +1,6 @@
>  PORTNAME=	gitea
>  DISTVERSIONPREFIX=	v
> -DISTVERSION=	1.23.8
> -PORTREVISION=	1
> +DISTVERSION=	1.24.2
>  CATEGORIES=	www
>  MASTER_SITES=	https://github.com/go-gitea/gitea/releases/download/${D
> ISTVERSIONPREFIX}${DISTVERSION}/ \
>  		https://dl.gitea.io/gitea/${DISTVERSION}/
> @@ -68,13 +67,14 @@ do-install:
>  	# Go binary is statically linked and cannot be stripped, so use
>  	# INSTALL_SCRIPT.
>  	${INSTALL_SCRIPT} ${WRKSRC}/gitea ${STAGEDIR}${PREFIX}/sbin
> -	@${MKDIR} ${STAGEDIR}${ETCDIR}/conf
> +	${MKDIR} ${STAGEDIR}${ETCDIR}/conf \
> +		 ${STAGEDIR}${DATADIR} \
> +		 ${STAGEDIR}/var/db/gitea \
> +		 ${STAGEDIR}/var/db/gitea/data \
> +		 ${STAGEDIR}/var/db/gitea/gitea-repositories \
> +		 ${STAGEDIR}/var/log/gitea
>  	${INSTALL_DATA} ${WRKDIR}/app.ini.sample ${STAGEDIR}${ETCDIR}/conf/app.
> ini.sample
>  	${INSTALL_DATA} ${WRKSRC}/custom/conf/app.example.ini ${STAGEDIR}${ETCD
> IR}/conf/app.ini.defaults
> -	${MKDIR} ${STAGEDIR}${DATADIR}
> -	${MKDIR} ${STAGEDIR}/var/db/gitea
> -	${MKDIR} ${STAGEDIR}/var/db/gitea/gitea-repositories
> -	${MKDIR} ${STAGEDIR}/var/log/gitea
>  
>  do-install-BINDATA-off:
>  	cd ${WRKSRC} && ${COPYTREE_SHARE} "options public templates" ${STAGEDIR
> }${DATADIR}
> diff --git a/www/gitea/distinfo b/www/gitea/distinfo
> index cff6db15cdc5..e0a6d99a3873 100644
> --- a/www/gitea/distinfo
> +++ b/www/gitea/distinfo
> @@ -1,3 +1,3 @@
> -TIMESTAMP = 1747455860
> -SHA256 (gitea-src-1.23.8.tar.gz) = 0ff96c1b7cc0960b5b9d34bd978cedc0f856a1686
> 54838bdef3551621f049717
> -SIZE (gitea-src-1.23.8.tar.gz) = 55482190
> +TIMESTAMP = 1750493495
> +SHA256 (gitea-src-1.24.2.tar.gz) = 1015496a01a95821faaefce1d422ecdd98f62bc60
> 9efbeb43608772612ceeeff
> +SIZE (gitea-src-1.24.2.tar.gz) = 51769357
> diff --git a/www/gitea/pkg-plist b/www/gitea/pkg-plist
> index acab89e7b63f..e7dfdadde2ad 100644
> --- a/www/gitea/pkg-plist
> +++ b/www/gitea/pkg-plist
> @@ -2,5 +2,6 @@
>  %%ETCDIR%%/conf/app.ini.defaults
>  sbin/gitea
>  @dir(git,git,755) /var/db/gitea
> +@dir(git,git,755) /var/db/gitea/data
>  @dir(git,git,755) /var/db/gitea/gitea-repositories
>  @dir(git,git,755) /var/log/gitea
>

Building under poudriere results in this:

=======================<phase: build          >============================
===== env: NO_DEPENDS=yes USER=nobody UID=65534 GID=65534
===>  Building for gitea-1.24.2
gmake: git: No such file or directory
go: downloading go1.24.0 (freebsd/amd64)
go: download go1.24.0: golang.org/toolchain@v0.0.1-go1.24.0.freebsd-amd64: 
Get "https://proxy.golang.org/golang.org/toolchain/@v/v0.0.1-go1.24.0.freebs
d-amd64.zip": dial tcp: lookup proxy.golang.org on 10.1.1.91:53: write udp 
127.0.0.1:59659->10.1.1.91:53: write: can't assign requested address
Gitea requires Go 1.24 or greater to build. You can get it at 
https://go.dev/dl/
gmake: *** [Makefile:200: go-check] Error 1
*** Error code 1

Stop.
make: stopped making "build" in /usr/ports/www/gitea
=>> Cleaning up wrkdir


-- 
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