pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/security/gnutls/patches
Module Name: pkgsrc
Committed By: manu
Date: Fri Nov 21 16:44:57 UTC 2025
Added Files:
pkgsrc/security/gnutls/patches: patch-doc_examples_tlsproxy_tlsproxy.c
patch-lib_crau_crau.h
Log Message:
Two patches for Build fix. Approved by wiz@
cvs add forgotten in previous commit
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.3 \
pkgsrc/security/gnutls/patches/patch-doc_examples_tlsproxy_tlsproxy.c
cvs rdiff -u -r0 -r1.1 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.
Added files:
Index: pkgsrc/security/gnutls/patches/patch-doc_examples_tlsproxy_tlsproxy.c
diff -u /dev/null pkgsrc/security/gnutls/patches/patch-doc_examples_tlsproxy_tlsproxy.c:1.3
--- /dev/null Fri Nov 21 16:44:57 2025
+++ pkgsrc/security/gnutls/patches/patch-doc_examples_tlsproxy_tlsproxy.c Fri Nov 21 16:44:56 2025
@@ -0,0 +1,30 @@
+$NetBSD: patch-doc_examples_tlsproxy_tlsproxy.c,v 1.3 2025/11/21 16:44:56 manu Exp $
+
+Portability fix: %m is not available outside of syslog()
+
+--- ./doc/examples/tlsproxy/tlsproxy.c.orig 2025-11-21 10:22:50.551213704 +0100
++++ ./doc/examples/tlsproxy/tlsproxy.c 2025-11-21 10:24:24.693866421 +0100
+@@ -101,9 +101,10 @@
+ }
+ }
+
+ if (!rp) {
+- fprintf(stderr, "Error binding to %s:%s: %m\n", addr, port);
++ fprintf(stderr, "Error binding to %s:%s: %s\n", addr, port,
++ strerror(errno));
+ freeaddrinfo(result);
+ return -1;
+ }
+
+@@ -159,9 +160,10 @@
+ }
+ }
+
+ if (!rp) {
+- fprintf(stderr, "Error connecting to %s:%s: %m\n", addr, port);
++ fprintf(stderr, "Error connecting to %s:%s: %s\n", addr, port,
++ strerror(errno));
+ freeaddrinfo(result);
+ return -1;
+ }
+
Index: pkgsrc/security/gnutls/patches/patch-lib_crau_crau.h
diff -u /dev/null pkgsrc/security/gnutls/patches/patch-lib_crau_crau.h:1.1
--- /dev/null Fri Nov 21 16:44:57 2025
+++ pkgsrc/security/gnutls/patches/patch-lib_crau_crau.h Fri Nov 21 16:44:57 2025
@@ -0,0 +1,23 @@
+$NetBSD: patch-lib_crau_crau.h,v 1.1 2025/11/21 16:44:57 manu Exp $
+
+Build fix with gcc. The configure test may be wrong
+
+--- lib/crau/crau.h.orig 2025-10-24 08:10:22.000000000 +0200
++++ lib/crau/crau.h 2025-11-21 10:19:16.044976391 +0100
+@@ -250,13 +250,13 @@
+
+ # else
+
+ # ifndef CRAU_MAYBE_UNUSED
+-# if defined(__has_c_attribute) && \
++# if defined(__GNUC__)
++# define CRAU_MAYBE_UNUSED __attribute__((__unused__))
++# elif defined(__has_c_attribute) && \
+ __has_c_attribute (__maybe_unused__)
+ # define CRAU_MAYBE_UNUSED [[__maybe_unused__]]
+-# elif defined(__GNUC__)
+-# define CRAU_MAYBE_UNUSED __attribute__((__unused__))
+ # endif
+ # endif /* CRAU_MAYBE_UNUSED */
+
+ void crau_push_context(struct crau_context_stack_st *stack CRAU_MAYBE_UNUSED,
Home |
Main Index |
Thread Index |
Old Index