git: b69422ee13d6 - main - devel/protobuf-c: update to 1.5.2

From: Don Lewis <truckman_at_FreeBSD.org>
Date: Mon, 28 Sep 2026 17:07:53 UTC
The branch main has been updated by truckman:

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

commit b69422ee13d6ad4eb8e0e27b994f8a7abc816235
Author:     R. Christian McDonald <rcm@FreeBSD.org>
AuthorDate: 2026-09-27 23:40:42 +0000
Commit:     Don Lewis <truckman@FreeBSD.org>
CommitDate: 2026-09-28 17:07:17 +0000

    devel/protobuf-c: update to 1.5.2
    
    Update protobuf-c to version 1.5.2:
      * Chase compatibility issues with Google protobuf 30.0-rc1 by @edmonds
        in #762
    
      * protoc-gen-c: Explicitly construct strings where needed for protobuf
        30.x by @edmonds in #768
    
    Add autoreconf.
    
    Add a small patch to fix the symbol versioning bug. The patch will
    be submitted upstream as well.
    
    Fetch GitHub release tarball. (truckman)
    
    PR:             298768
    Sponsored by:   DomainTools LLC
---
 devel/protobuf-c/Makefile                            |  5 ++---
 devel/protobuf-c/distinfo                            |  6 +++---
 devel/protobuf-c/files/patch-configure               | 10 ----------
 devel/protobuf-c/files/patch-m4_ld-version-script.m4 | 11 +++++++++++
 4 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/devel/protobuf-c/Makefile b/devel/protobuf-c/Makefile
index 5b5a2eae7444..2d0c51454ed3 100644
--- a/devel/protobuf-c/Makefile
+++ b/devel/protobuf-c/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	protobuf-c
-DISTVERSION=	1.5.1
-PORTREVISION=	4
+PORTVERSION=	1.5.2
 CATEGORIES=	devel
 MASTER_SITES=	https://github.com/protobuf-c/protobuf-c/releases/download/v${DISTVERSION}/
 
@@ -14,7 +13,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 LIB_DEPENDS=	libabsl_log_internal_check_op.so:devel/abseil \
 		libprotobuf.so:devel/protobuf
 
-USES=		compiler:c++17-lang cpe gmake libtool pkgconfig
+USES=		autoreconf compiler:c++17-lang cpe gmake libtool pkgconfig
 CPE_VENDOR=	protobuf-c_project
 USE_CXXSTD=	c++17
 USE_LDCONFIG=	yes
diff --git a/devel/protobuf-c/distinfo b/devel/protobuf-c/distinfo
index af76a268ac51..f129671f85be 100644
--- a/devel/protobuf-c/distinfo
+++ b/devel/protobuf-c/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1739180131
-SHA256 (protobuf-c-1.5.1.tar.gz) = 20d1dc257da96f8ddff8be4dd9779215bbd0a6069ed53bbe9de38fa7629be06b
-SIZE (protobuf-c-1.5.1.tar.gz) = 531693
+TIMESTAMP = 1790539830
+SHA256 (protobuf-c-1.5.2.tar.gz) = e2c86271873a79c92b58fef7ebf8de1aa0df4738347a8bd5d4e65a80a16d0d24
+SIZE (protobuf-c-1.5.2.tar.gz) = 532447
diff --git a/devel/protobuf-c/files/patch-configure b/devel/protobuf-c/files/patch-configure
deleted file mode 100644
index 00d4e0475605..000000000000
--- a/devel/protobuf-c/files/patch-configure
+++ /dev/null
@@ -1,10 +0,0 @@
---- configure.orig	2025-02-02 04:07:13 UTC
-+++ configure
-@@ -20282,6 +20283,7 @@ EOF
-       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h.  */
- 
-+int sym;
- int
- main (void)
- {
diff --git a/devel/protobuf-c/files/patch-m4_ld-version-script.m4 b/devel/protobuf-c/files/patch-m4_ld-version-script.m4
new file mode 100644
index 000000000000..8a09413e0fa6
--- /dev/null
+++ b/devel/protobuf-c/files/patch-m4_ld-version-script.m4
@@ -0,0 +1,11 @@
+--- m4/ld-version-script.m4.orig	2026-09-22 18:12:13 UTC
++++ m4/ld-version-script.m4
+@@ -40,7 +40,7 @@ EOF
+         global: sym;
+ } VERS_1;
+ EOF
+-      AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])],
++      AC_LINK_IFELSE([AC_LANG_PROGRAM([[int sym;]], [])],
+                      [have_ld_version_script=yes], [have_ld_version_script=no])
+     else
+       have_ld_version_script=no