pkgsrc-Changes archive

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

CVS commit: pkgsrc/x11/libXdmcp



Module Name:    pkgsrc
Committed By:   gutteridge
Date:           Fri Jan 14 02:00:00 UTC 2022

Modified Files:
        pkgsrc/x11/libXdmcp: distinfo
Added Files:
        pkgsrc/x11/libXdmcp/patches: patch-Key.c

Log Message:
libXdmcp: fix builds with Solaris 11.3

There are circumstances where getentropy() exists but arc4random_buf()
does not, as reported to be the case with Solaris 11.3 in PR pkg/54628,
report and analysis by Sad Clouds.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 pkgsrc/x11/libXdmcp/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/x11/libXdmcp/patches/patch-Key.c

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

Modified files:

Index: pkgsrc/x11/libXdmcp/distinfo
diff -u pkgsrc/x11/libXdmcp/distinfo:1.10 pkgsrc/x11/libXdmcp/distinfo:1.11
--- pkgsrc/x11/libXdmcp/distinfo:1.10   Tue Oct 26 11:34:05 2021
+++ pkgsrc/x11/libXdmcp/distinfo        Fri Jan 14 01:59:59 2022
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.10 2021/10/26 11:34:05 nia Exp $
+$NetBSD: distinfo,v 1.11 2022/01/14 01:59:59 gutteridge Exp $
 
 BLAKE2s (libXdmcp-1.1.3.tar.bz2) = a830d9b0484d17db15080be824ba9f9819ea08c56fe07670c2bd2e17fafc2386
 SHA512 (libXdmcp-1.1.3.tar.bz2) = cb1d4650f97d66e73acd2465ec7d757b9b797cce2f85e301860a44997a461837eea845ec9bd5b639ec5ca34c804f8bdd870697a5ce3f4e270b687c9ef74f25ec
 Size (libXdmcp-1.1.3.tar.bz2) = 332795 bytes
+SHA1 (patch-Key.c) = 6cc4fbc4f7407affa9a604887f15890f9d21ee89

Added files:

Index: pkgsrc/x11/libXdmcp/patches/patch-Key.c
diff -u /dev/null pkgsrc/x11/libXdmcp/patches/patch-Key.c:1.1
--- /dev/null   Fri Jan 14 02:00:00 2022
+++ pkgsrc/x11/libXdmcp/patches/patch-Key.c     Fri Jan 14 02:00:00 2022
@@ -0,0 +1,18 @@
+$NetBSD: patch-Key.c,v 1.1 2022/01/14 02:00:00 gutteridge Exp $
+
+Fix builds where getentropy() exists but arc4random_buf() does not, as
+reported to be the case with Solaris 11.3 in PR pkg/54628.
+
+--- Key.c.orig 2019-03-16 16:21:22.000000000 +0000
++++ Key.c
+@@ -64,6 +64,10 @@ getbits (long data, unsigned char *dst)
+ 
+ #ifndef HAVE_ARC4RANDOM_BUF
+ 
++#ifdef HAVE_GETENTROPY
++#include <sys/random.h>
++#endif
++
+ static void
+ insecure_getrandom_buf (unsigned char *auth, int len)
+ {



Home | Main Index | Thread Index | Old Index