pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/security/gnutls



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Thu Mar 19 17:29:38 UTC 2026

Modified Files:
        pkgsrc/security/gnutls: distinfo
Added Files:
        pkgsrc/security/gnutls/patches: patch-lib_crau_crau.h

Log Message:
gnutls: Fix build with clang 15.


To generate a diff of this commit:
cvs rdiff -u -r1.171 -r1.172 pkgsrc/security/gnutls/distinfo
cvs rdiff -u -r0 -r1.3 pkgsrc/security/gnutls/patches/patch-lib_crau_crau.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/security/gnutls/distinfo
diff -u pkgsrc/security/gnutls/distinfo:1.171 pkgsrc/security/gnutls/distinfo:1.172
--- pkgsrc/security/gnutls/distinfo:1.171       Mon Feb  9 19:35:36 2026
+++ pkgsrc/security/gnutls/distinfo     Thu Mar 19 17:29:37 2026
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.171 2026/02/09 19:35:36 adam Exp $
+$NetBSD: distinfo,v 1.172 2026/03/19 17:29:37 jperkin Exp $
 
 BLAKE2s (gnutls-3.8.12.tar.xz) = 9955320f8dff9824a2a33c46533b0d889a3d8336de4b6fb02f92a49187f2b072
 SHA512 (gnutls-3.8.12.tar.xz) = 332a8e5200461517c7f08515e3aaab0bec6222747422e33e9e7d25d35613e3d0695a803fce226bd6a83f723054f551328bd99dcf0573e142be777dcf358e1a3b
 Size (gnutls-3.8.12.tar.xz) = 6949604 bytes
 SHA1 (patch-configure) = 866d8a365b8338348230e47518788f494279b139
 SHA1 (patch-doc_examples_tlsproxy_tlsproxy.c) = 5062df3a73e69abca25710d016b949eef62af453
+SHA1 (patch-lib_crau_crau.h) = 751202b8eab1ef903faba6fc4281e75f1d394a66

Added files:

Index: pkgsrc/security/gnutls/patches/patch-lib_crau_crau.h
diff -u /dev/null pkgsrc/security/gnutls/patches/patch-lib_crau_crau.h:1.3
--- /dev/null   Thu Mar 19 17:29:38 2026
+++ pkgsrc/security/gnutls/patches/patch-lib_crau_crau.h        Thu Mar 19 17:29:37 2026
@@ -0,0 +1,19 @@
+$NetBSD: patch-lib_crau_crau.h,v 1.3 2026/03/19 17:29:37 jperkin Exp $
+
+Limit support for [[__maybe_unused__]] to C23, fixing at least clang 15.
+
+--- lib/crau/crau.h.orig       2026-03-19 17:19:53.894964618 +0000
++++ lib/crau/crau.h
+@@ -251,10 +251,8 @@ void crau_data(struct crau_context_stack
+ # else
+ 
+ #  ifndef CRAU_MAYBE_UNUSED
+-#   if defined(__has_c_attribute)
+-#    if __has_c_attribute (__maybe_unused__)
+-#     define CRAU_MAYBE_UNUSED [[__maybe_unused__]]
+-#    endif
++#   if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L
++#    define CRAU_MAYBE_UNUSED [[__maybe_unused__]]
+ #   elif defined(__GNUC__)
+ #    define CRAU_MAYBE_UNUSED __attribute__((__unused__))
+ #   endif



Home | Main Index | Thread Index | Old Index