git: 25cd6b3c7600 - main - net/norm: use upstream divert(4) patch to make it working on modern FreeBSD

From: Gleb Smirnoff <glebius_at_FreeBSD.org>
Date: Mon, 12 Oct 2026 23:44:56 UTC
The branch main has been updated by glebius:

URL: https://cgit.FreeBSD.org/ports/commit/?id=25cd6b3c76007e84e4ce5e9f3ac9674c9aba23df

commit 25cd6b3c76007e84e4ce5e9f3ac9674c9aba23df
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2026-10-12 23:40:23 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2026-10-12 23:40:23 +0000

    net/norm: use upstream divert(4) patch to make it working on modern FreeBSD
    
    This was accepted upstream to the protolib and added to the port in
    ab6be4dbf3bb.  Recently the patching was silently deleted in 5963119a132c.
    The update of norm to 1.5.9 did not update the bundled dependency protolib
    to a version that includes ba9ca1ca7d73592268ebfd5a43271303e76f461e,
    instead it tied protolib to an older version.
    
    Fixes:  5963119a132cd71510998f9173c54522a8e56678
---
 net/norm/Makefile | 4 ++++
 net/norm/distinfo | 2 ++
 2 files changed, 6 insertions(+)

diff --git a/net/norm/Makefile b/net/norm/Makefile
index 57b24e56f51d..852efa063baf 100644
--- a/net/norm/Makefile
+++ b/net/norm/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	norm
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.5.9
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	net
 
@@ -19,6 +20,9 @@ USE_GITHUB=	yes
 GH_ACCOUNT=	USNavalResearchLaboratory
 GH_PROJECT=	norm
 GH_TUPLE=	USNavalResearchLaboratory:protolib:702e909:protolib/protolib
+PATCH_SITES=	https://github.com/USNavalResearchLaboratory/protolib/commit/
+PATCHFILES=	ba9ca1ca7d73592268ebfd5a43271303e76f461e.patch:-p1
+PATCH_DIST_ARGS=	-d ../protolib-702e909
 USE_LDCONFIG=	yes
 
 PLIST_SUB=	SOVERSION=${DISTVERSION}
diff --git a/net/norm/distinfo b/net/norm/distinfo
index eb1edec86410..99c5ccbf9074 100644
--- a/net/norm/distinfo
+++ b/net/norm/distinfo
@@ -3,3 +3,5 @@ SHA256 (USNavalResearchLaboratory-norm-v1.5.9_GH0.tar.gz) = 9f1fece22d861aebd79b
 SIZE (USNavalResearchLaboratory-norm-v1.5.9_GH0.tar.gz) = 1658306
 SHA256 (USNavalResearchLaboratory-protolib-702e909_GH0.tar.gz) = 9dd572238c231edbab2b2ab78d6938396ddcf3354655ae0a81e51fef662947eb
 SIZE (USNavalResearchLaboratory-protolib-702e909_GH0.tar.gz) = 1284131
+SHA256 (ba9ca1ca7d73592268ebfd5a43271303e76f461e.patch) = 20caaebb6455004de46935d79372c13d10bf2df699ebb996e5e390b6a23b666e
+SIZE (ba9ca1ca7d73592268ebfd5a43271303e76f461e.patch) = 1857