Source-Changes-HG archive

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

[xsrc/xorg]: xsrc/external/mit/libXdmcp/dist initial import of libXdmcp-1.1.4



details:   https://anonhg.NetBSD.org/xsrc/rev/d4f2fb2e4b49
branches:  xorg
changeset: 7304:d4f2fb2e4b49
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Jan 08 06:00:49 2023 +0000

description:
initial import of libXdmcp-1.1.4

diffstat:

 external/mit/libXdmcp/dist/AUTHORS          |      2 +-
 external/mit/libXdmcp/dist/Array.c          |      6 +-
 external/mit/libXdmcp/dist/ChangeLog        |    138 +-
 external/mit/libXdmcp/dist/Key.c            |     11 +-
 external/mit/libXdmcp/dist/Makefile.in      |    146 +-
 external/mit/libXdmcp/dist/README.md        |      2 +-
 external/mit/libXdmcp/dist/Wraphelp.c       |      2 +-
 external/mit/libXdmcp/dist/aclocal.m4       |  20213 +++++++++++++------------
 external/mit/libXdmcp/dist/compile          |     17 +-
 external/mit/libXdmcp/dist/config.guess     |   1488 +-
 external/mit/libXdmcp/dist/config.h.in      |    104 +-
 external/mit/libXdmcp/dist/config.sub       |   2885 +-
 external/mit/libXdmcp/dist/configure        |  15221 ++++++++++---------
 external/mit/libXdmcp/dist/configure.ac     |     23 +-
 external/mit/libXdmcp/dist/depcomp          |     10 +-
 external/mit/libXdmcp/dist/doc/Makefile.in  |     20 +-
 external/mit/libXdmcp/dist/doc/xdmcp.xml    |     12 +-
 external/mit/libXdmcp/dist/install-sh       |    172 +-
 external/mit/libXdmcp/dist/ltmain.sh        |    881 +-
 external/mit/libXdmcp/dist/missing          |     16 +-
 external/mit/libXdmcp/dist/test-driver      |     27 +-
 external/mit/libXdmcp/dist/test/Makefile.in |     62 +-
 22 files changed, 21780 insertions(+), 19678 deletions(-)

diffs (truncated from 49406 to 300 lines):

diff -r 44e8c6a71b43 -r d4f2fb2e4b49 external/mit/libXdmcp/dist/AUTHORS
--- a/external/mit/libXdmcp/dist/AUTHORS        Sun Jan 08 06:00:46 2023 +0000
+++ b/external/mit/libXdmcp/dist/AUTHORS        Sun Jan 08 06:00:49 2023 +0000
@@ -5,4 +5,4 @@
 
 GNU/Hurd support, Marcus Brinkmann
 
-Our apologies if we have inadvertantly overlooked anyone.
+Our apologies if we have inadvertently overlooked anyone.
diff -r 44e8c6a71b43 -r d4f2fb2e4b49 external/mit/libXdmcp/dist/Array.c
--- a/external/mit/libXdmcp/dist/Array.c        Sun Jan 08 06:00:46 2023 +0000
+++ b/external/mit/libXdmcp/dist/Array.c        Sun Jan 08 06:00:49 2023 +0000
@@ -149,7 +149,7 @@
 {
     if (!XdmcpAllocARRAY8(dst, src->length))
        return FALSE;
-    memmove (dst->data, src->data, src->length * sizeof (CARD8));
+    memcpy(dst->data, src->data, src->length * sizeof (CARD8));
     return TRUE;
 }
 
@@ -250,10 +250,8 @@
 void
 XdmcpDisposeARRAYofARRAY8 (ARRAYofARRAY8Ptr array)
 {
-    int        i;
-
     if (array->data != NULL) {
-       for (i = 0; i < (int)array->length; i++)
+       for (unsigned int i = 0; i < (unsigned int) array->length; i++)
            XdmcpDisposeARRAY8 (&array->data[i]);
        free(array->data);
     }
diff -r 44e8c6a71b43 -r d4f2fb2e4b49 external/mit/libXdmcp/dist/ChangeLog
--- a/external/mit/libXdmcp/dist/ChangeLog      Sun Jan 08 06:00:46 2023 +0000
+++ b/external/mit/libXdmcp/dist/ChangeLog      Sun Jan 08 06:00:49 2023 +0000
@@ -1,3 +1,133 @@
+commit 7f5677e87df575298f62320d76408823b54cd883
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Fri Nov 18 15:05:39 2022 -0800
+
+    libXdmcp 1.1.4
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit c01da8ebd0969efd15388ce999e121127cc46f67
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Fri Nov 4 19:29:35 2022 -0700
+
+    Only link with libbsd if needed for arc4random_buf()
+    
+    Avoid unnecessary library dependency when using a libc with this
+    function included
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit e5ace1c5fe009e5c66fa16f886b13cce2558684a
+Author: Guillem Jover <guillem%hadrons.org@localhost>
+Date:   Thu Oct 6 00:31:30 2022 +0000
+
+    Switch from libbsd to libbsd-overlay
+    
+    This is the preferred usage form for libbsd, as it makes the code more
+    portable and requires no special includes for libbsd, by transparently
+    injects the needed standard headers that would be used on a BSD.
+    
+    Signed-off-by: Guillem Jover <guillem%hadrons.org@localhost>
+
+commit b71d34f635d8827db76310a4b127a6926f2df1d7
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sat Aug 6 14:51:50 2022 -0700
+
+    XdmcpDisposeARRAYofARRAY8: Reduce scope of i
+    
+    As suggested by cppcheck
+    Also makes it unsigned to match array->length (a CARD8)
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit eb10c58258c3d4e6d207c390282f7d329e63910a
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sat Aug 6 14:47:56 2022 -0700
+
+    arc4random_buf: Only declare ret if HAVE_GETENTROPY is defined
+    
+    Clears unused variable warning from cppcheck
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 07f93358ac7bc532b16ceff13bed356ac2a0c6f1
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sat Aug 6 14:42:03 2022 -0700
+
+    Use memcpy() instead of memmove() when buffers are known not to overlap
+    
+    This was introduced by a bcopy() -> memmove() substitution in 1993.
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 185a91c6e7f7e40d916f0554df2aceb73509fd52
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sun Jul 17 12:22:50 2022 -0700
+
+    gitlab CI: enable doc builds in basic build test
+    
+    Also drops requirement for Signed-off-by in commit checks
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 8570239e74569411dc8c470e687c9ca042746cb5
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sun Jul 17 12:16:48 2022 -0700
+
+    Fix spelling/wording issues
+    
+    Found by using:
+        codespell --builtin clear,rare,usage,informal,code,names
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 9e886976a3e3eeddcf7db894eec6aaa1d1a2548a
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sun Jul 17 12:13:58 2022 -0700
+
+    Build xz tarballs instead of bzip2
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 4a71fdf6d34df67d3f1335590da6ae3050128fb2
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Wed Feb 23 13:09:09 2022 -0800
+
+    Fix build on Solaris 11.3.0 - 11.3.8
+    
+    Solaris 11.3.0  added getentropy() to libc and <sys/random.h>
+    Solaris 11.3.9  added arc4random() to libc and <stdlib.h>
+    Solaris 11.4.16 added getentropy() to <stdlib.h>
+    
+    So when building on Solaris releases from 11.3.0 to 11.3.8, libXdmcp
+    would not find arc4random(), and thus fallback to using getentropy(),
+    but was only looking for it in <stdlib.h>, resulting in a build error:
+    
+    Key.c: In function ‘arc4random_buf’:
+    Key.c:86:5: error: implicit declaration of function ‘getentropy’ [-Werror=implicit-function-declaration]
+         ret = getentropy (auth, len);
+         ^
+    
+    Reported-by: https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=54628
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 13b72ec5540757ccbb62c4b31961a556ab77d005
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Wed Feb 23 12:50:41 2022 -0800
+
+    gitlab CI: add a basic build test
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit bc141f304712a109b6b518724e1feb66293bf472
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sat Mar 16 12:38:45 2019 -0700
+
+    Update configure.ac bug URL for gitlab migration
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
 commit 618b3ba5f826d930df2ca6a6a0ce212fa75cef42
 Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
 Date:   Sat Mar 16 09:19:02 2019 -0700
@@ -455,7 +585,7 @@
     Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
 
 commit b64cac63e0bcdd87bbfd19678552fd7ed1a3b58f
-Author: Cristian Rodríguez <cristian.rodriguez%opensuse.org@localhost>
+Author: Cristian Rodríguez  <cristian.rodriguez%opensuse.org@localhost>
 Date:   Tue Dec 14 15:40:20 2010 -0500
 
     Export only public API symbols
@@ -972,7 +1102,7 @@
     Require automake 1.7 in AM_INIT_AUTOMAKE
 
 commit 2f31285482451b8ed44b0b61969a7f324dbe905a
-Author: Søren Sandmann Pedersen <sandmann%daimi.au.dk@localhost>
+Author: Søren Sandmann Pedersen  <sandmann%daimi.au.dk@localhost>
 Date:   Tue May 17 14:43:47 2005 +0000
 
     Tue May 17 10:38:30 2005 Søren Sandmann <sandmann%redhat.com@localhost>
@@ -999,7 +1129,7 @@
         source can reference them with <X11/...>.
 
 commit 0ea8a9fde966a2fbdc075e4cfc47235d3c899022
-Author: Søren Sandmann Pedersen <sandmann%daimi.au.dk@localhost>
+Author: Søren Sandmann Pedersen  <sandmann%daimi.au.dk@localhost>
 Date:   Thu May 12 16:27:25 2005 +0000
 
     Thu May 12 12:24:16 2005 Søren Sandmann <sandmann%redhat.com@localhost>
@@ -1007,7 +1137,7 @@
     add Makefile.am
 
 commit 845dff36906d99a80ea920a8d0efb73bd0b88d56
-Author: Søren Sandmann Pedersen <sandmann%daimi.au.dk@localhost>
+Author: Søren Sandmann Pedersen  <sandmann%daimi.au.dk@localhost>
 Date:   Thu May 12 16:12:34 2005 +0000
 
     Make xtrans install in $(includedir)/X11/Xtrans. Remove all references to
diff -r 44e8c6a71b43 -r d4f2fb2e4b49 external/mit/libXdmcp/dist/Key.c
--- a/external/mit/libXdmcp/dist/Key.c  Sun Jan 08 06:00:46 2023 +0000
+++ b/external/mit/libXdmcp/dist/Key.c  Sun Jan 08 06:00:49 2023 +0000
@@ -32,10 +32,6 @@
 #include <X11/Xmd.h>
 #include <X11/Xdmcp.h>
 
-#ifdef HAVE_LIBBSD
-#include <bsd/stdlib.h> /* for arc4random_buf() */
-#endif
-
 #ifndef HAVE_ARC4RANDOM_BUF
 static void
 getbits (long data, unsigned char *dst)
@@ -64,6 +60,11 @@
 
 #ifndef HAVE_ARC4RANDOM_BUF
 
+/* Solaris 11.3.0 - 11.4.15 only define getentropy() in <sys/random.h> */
+#if HAVE_GETENTROPY && HAVE_SYS_RANDOM_H
+# include <sys/random.h>
+#endif
+
 static void
 insecure_getrandom_buf (unsigned char *auth, int len)
 {
@@ -79,9 +80,9 @@
 static void
 arc4random_buf (void *auth, int len)
 {
+#if HAVE_GETENTROPY
     int            ret;
 
-#if HAVE_GETENTROPY
     /* weak emulation of arc4random through the getentropy libc call */
     ret = getentropy (auth, len);
     if (ret == 0)
diff -r 44e8c6a71b43 -r d4f2fb2e4b49 external/mit/libXdmcp/dist/Makefile.in
--- a/external/mit/libXdmcp/dist/Makefile.in    Sun Jan 08 06:00:46 2023 +0000
+++ b/external/mit/libXdmcp/dist/Makefile.in    Sun Jan 08 06:00:49 2023 +0000
@@ -1,7 +1,7 @@
-# Makefile.in generated by automake 1.15 from Makefile.am.
+# Makefile.in generated by automake 1.16.5 from Makefile.am.
 # @configure_input@
 
-# Copyright (C) 1994-2014 Free Software Foundation, Inc.
+# Copyright (C) 1994-2021 Free Software Foundation, Inc.
 
 # This Makefile.in is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -162,7 +162,11 @@
 am__v_at_1 = 
 DEFAULT_INCLUDES = -I.@am__isrc@
 depcomp = $(SHELL) $(top_srcdir)/depcomp
-am__depfiles_maybe = depfiles
+am__maybe_remake_depfiles = depfiles
+am__depfiles_remade = ./$(DEPDIR)/Array.Plo ./$(DEPDIR)/Fill.Plo \
+       ./$(DEPDIR)/Flush.Plo ./$(DEPDIR)/Key.Plo ./$(DEPDIR)/Read.Plo \
+       ./$(DEPDIR)/Unwrap.Plo ./$(DEPDIR)/Wrap.Plo \
+       ./$(DEPDIR)/Wraphelp.Plo ./$(DEPDIR)/Write.Plo
 am__mv = mv -f
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
        $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
@@ -206,9 +210,9 @@
   $(RECURSIVE_CLEAN_TARGETS) \
   $(am__extra_recursive_targets)
 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
-       cscope distdir dist dist-all distcheck
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
-       $(LISP)config.h.in
+       cscope distdir distdir-am dist dist-all distcheck
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \
+       config.h.in
 # Read a list of newline-separated strings from the standard input,
 # and print each of them once, without duplicates.  Input order is
 # *not* preserved.
@@ -225,14 +229,11 @@
   unique=`for i in $$list; do \
     if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
   done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-CSCOPE = cscope
 DIST_SUBDIRS = $(SUBDIRS)
 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \
        $(srcdir)/xdmcp.pc.in AUTHORS COPYING ChangeLog INSTALL \
-       compile config.guess config.sub depcomp install-sh ltmain.sh \
-       missing
+       README.md compile config.guess config.sub depcomp install-sh \
+       ltmain.sh missing
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
 distdir = $(PACKAGE)-$(VERSION)
 top_distdir = $(distdir)
@@ -268,9 +269,11 @@


Home | Main Index | Thread Index | Old Index