aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanthosh Raju <fox@FreeBSD.org>2026-04-09 10:20:04 +0000
committerSanthosh Raju <fox@FreeBSD.org>2026-04-09 10:20:04 +0000
commit8318a3cd1c5262d51c70240d97798cce3c1a3bd6 (patch)
tree413cf66fc8534161b1a64f3d7141072b6a051896
parent9d8a3938e60119f53efe857a2e565cc3190ed5d0 (diff)
security/wolfssl: Fix 32-bit builds.
Add upstream patch for the fix, until changes are merged and a new release is made. PR: 294287 Reported by: Robert Clausecker <fuz@FreeBSD.org> Reviewed by: Robert Clausecker <fuz@FreeBSD.org> Tested by: Robert Clausecker <fuz@FreeBSD.org>
-rw-r--r--security/wolfssl/Makefile3
-rw-r--r--security/wolfssl/files/patch-cmake_config.in15
-rw-r--r--security/wolfssl/files/patch-cmake_options.h.in15
-rw-r--r--security/wolfssl/files/patch-configure.ac16
4 files changed, 48 insertions, 1 deletions
diff --git a/security/wolfssl/Makefile b/security/wolfssl/Makefile
index c8d856250111..9337339f5297 100644
--- a/security/wolfssl/Makefile
+++ b/security/wolfssl/Makefile
@@ -1,5 +1,6 @@
PORTNAME= wolfssl
PORTVERSION= 5.9.0
+PORTREVISION= 1
CATEGORIES= security devel
MASTER_SITES= https://www.wolfssl.com/ \
LOCAL/fox
@@ -11,7 +12,7 @@ WWW= https://www.wolfssl.com/
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
-USES= cpe libtool zip
+USES= cpe libtool zip autoreconf
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
diff --git a/security/wolfssl/files/patch-cmake_config.in b/security/wolfssl/files/patch-cmake_config.in
new file mode 100644
index 000000000000..a44796b6d171
--- /dev/null
+++ b/security/wolfssl/files/patch-cmake_config.in
@@ -0,0 +1,15 @@
+Bug report: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294287
+Upstream: https://github.com/wolfSSL/wolfssl/pull/10097
+
+--- cmake/config.in.orig 2026-03-18 23:01:31 UTC
++++ cmake/config.in
+@@ -19,9 +19,6 @@
+ /* Define to 1 if you have the `gmtime_r' function. */
+ #cmakedefine HAVE_GMTIME_R @HAVE_GMTIME_R@
+
+-/* Define to 1 if you have the <limits.h> header file. */
+-#cmakedefine HAVE_LIMITS_H @HAVE_LIMITS_H@
+-
+ /* Define to 1 if you have the <pcap/pcap.h> header file. */
+ #cmakedefine HAVE_PCAP_PCAP_H @HAVE_PCAP_PCAP_H@
+
diff --git a/security/wolfssl/files/patch-cmake_options.h.in b/security/wolfssl/files/patch-cmake_options.h.in
new file mode 100644
index 000000000000..ee9196d69f0d
--- /dev/null
+++ b/security/wolfssl/files/patch-cmake_options.h.in
@@ -0,0 +1,15 @@
+Bug report: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294287
+Upstream: https://github.com/wolfSSL/wolfssl/pull/10097
+
+--- cmake/options.h.in.orig 2026-03-18 23:01:31 UTC
++++ cmake/options.h.in
+@@ -33,6 +33,9 @@ extern "C" {
+ #endif
+
+ #ifndef WOLFSSL_OPTIONS_IGNORE_SYS
++/* Since types.h depends on HAVE_LIMITS_H, we must define it in options.h. */
++#undef HAVE_LIMITS_H
++#cmakedefine HAVE_LIMITS_H @HAVE_LIMITS_H@
+ #undef _GNU_SOURCE
+ #cmakedefine _GNU_SOURCE
+ #undef _POSIX_THREADS
diff --git a/security/wolfssl/files/patch-configure.ac b/security/wolfssl/files/patch-configure.ac
new file mode 100644
index 000000000000..4d94428448cf
--- /dev/null
+++ b/security/wolfssl/files/patch-configure.ac
@@ -0,0 +1,16 @@
+Bug report: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294287
+Upstream: https://github.com/wolfSSL/wolfssl/pull/10097
+
+--- configure.ac.orig 2026-03-18 23:01:31 UTC
++++ configure.ac
+@@ -185,7 +185,9 @@ AC_ARG_ENABLE([freebsdkm-crypto-register],
+ [ENABLED_BSDKM_REGISTER=no]
+ )
+
+-AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h netdb.h netinet/in.h stddef.h time.h sys/ioctl.h sys/socket.h sys/time.h errno.h sys/un.h ctype.h sys/random.h])
++AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stddef.h time.h sys/ioctl.h sys/socket.h sys/time.h errno.h sys/un.h ctype.h sys/random.h])
++# Special case: Since types.h depends on HAVE_LIMITS_H, we must define it in options.h.
++AC_CHECK_HEADER([limits.h], [AM_CPPFLAGS="$AM_CPPFLAGS -DHAVE_LIMITS_H=1"], [])
+ AC_CHECK_LIB([network],[socket])
+ AC_C_BIGENDIAN
+ AC_C___ATOMIC