Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jun 2026 09:55:31 +0000
From:      Jason E. Hale <jhale@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 3bd11ebea095 - main - security/py-python-nss: Fix build with Python 3.12
Message-ID:  <6a424113.345bf.39f0e74f@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by jhale:

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

commit 3bd11ebea095bd5fa33780b692883062f69ef4e1
Author:     Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2026-06-29 09:52:55 +0000
Commit:     Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2026-06-29 09:55:26 +0000

    security/py-python-nss: Fix build with Python 3.12
    
    src/py_nspr_error.c:189:23: error: too few arguments provided to function-like macro invocation
      189 |         va_start(vargs);
          |                       ^
    /usr/include/sys/_stdarg.h:41:9: note: macro 'va_start' defined here
       41 | #define va_start(ap, last)      __builtin_va_start((ap), (last))
          |         ^
    
    Reported by:    pkg-fallout
---
 security/py-python-nss/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/security/py-python-nss/Makefile b/security/py-python-nss/Makefile
index b181d1b523be..81795f3e8b5d 100644
--- a/security/py-python-nss/Makefile
+++ b/security/py-python-nss/Makefile
@@ -29,6 +29,8 @@ TEST_TARGET=	# empty
 TEST_WRKSRC=	${WRKSRC}/test
 DO_MAKE_TEST=	${SETENV} ${TEST_ENV} ${PYTHON_CMD} run_tests -t
 
+CPPFLAGS+=	-DHAVE_STDARG_PROTOTYPES
+
 post-patch:
 	@(cd ${WRKSRC}/test && ${REINPLACE_CMD} -e 's|/usr/bin|${LOCALBASE}/bin|g' setup_certs.py test_pkcs12.py)
 


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a424113.345bf.39f0e74f>