git: 8f25eaf14654 - main - multimedia/jellyfin: attempt to fix package building

From: Baptiste Daroussin <bapt_at_FreeBSD.org>
Date: Tue, 23 Sep 2025 08:59:08 UTC
The branch main has been updated by bapt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8f25eaf14654a118976347a5b4fd15fd4b5c5f60

commit 8f25eaf14654a118976347a5b4fd15fd4b5c5f60
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2025-09-23 08:54:40 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2025-09-23 08:57:18 +0000

    multimedia/jellyfin: attempt to fix package building
    
    pin again nodejs version instead of using lts as each time a node
    version changes the "prefetch" distfile also changes.
    
    Add the node version used in the distfile name to ensure that if we
    change the node version we use the distfile name is also changed.
    
    PR:     288572
---
 multimedia/jellyfin/Makefile | 6 ++----
 multimedia/jellyfin/distinfo | 6 +++---
 2 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/multimedia/jellyfin/Makefile b/multimedia/jellyfin/Makefile
index 20d9e1c65195..c4a0f899c165 100644
--- a/multimedia/jellyfin/Makefile
+++ b/multimedia/jellyfin/Makefile
@@ -27,7 +27,7 @@ RUN_DEPENDS=	ca_root_nss>0:security/ca_root_nss \
 TEST_DEPENDS=	npm:www/npm${NODEJS_SUFFIX} \
 		dotnet:lang/dotnet8
 
-USES=		nodejs:lts,build sqlite:3 ssl elfctl
+USES=		nodejs:22,build sqlite:3 ssl elfctl
 
 USE_GITHUB=	nodefault
 GH_ACCOUNT=	jellyfin:server,ui
@@ -387,10 +387,8 @@ GROUPS=		jellyfin
 DOTNET_ENV=	DOTNET_CLI_HOME=/tmp
 
 #json files must be replaced every time DISTVERSION is updated
-PREFETCH_FILE=	${PORTNAME}-${DISTVERSION}-node-modules${EXTRACT_SUFX}
+PREFETCH_FILE=	${PORTNAME}-${DISTVERSION}-node${NODEJS_VERSION}-modules${EXTRACT_SUFX}
 PREFETCH_TIMESTAMP=	61171200
-PKG_NODE_VER=	20.14.0
-NODE_ARCH=	${ARCH:S/aarch64/arm64/:S/amd64/x64/:S/i386/ia32/}
 
 .include "nuget.mk"
 
diff --git a/multimedia/jellyfin/distinfo b/multimedia/jellyfin/distinfo
index 86589fbbf278..2d736694af40 100644
--- a/multimedia/jellyfin/distinfo
+++ b/multimedia/jellyfin/distinfo
@@ -1,6 +1,6 @@
-TIMESTAMP = 1753771617
-SHA256 (jellyfin-10.10.7-node-modules.tar.gz) = 4f0a1063f5234bb7ac13b7a68c37254f6e73ba42a85404b51d9fade34eeb54bd
-SIZE (jellyfin-10.10.7-node-modules.tar.gz) = 462456529
+TIMESTAMP = 1758617554
+SHA256 (jellyfin-10.10.7-node22-modules.tar.gz) = 4f0a1063f5234bb7ac13b7a68c37254f6e73ba42a85404b51d9fade34eeb54bd
+SIZE (jellyfin-10.10.7-node22-modules.tar.gz) = 462456529
 SHA256 (nuget/asynckeyedlock.7.0.2.nupkg) = 5053ed6bcc96b6e161a5fcbb3a9064503427c8ef133835c4134cc0eae6f3d503
 SIZE (nuget/asynckeyedlock.7.0.2.nupkg) = 357035
 SHA256 (nuget/autofixture.4.18.1.nupkg) = ade3fe6a86223dc223e066c22218dde7f3a1b9654b0ad0f884ab8b3c77b61172