libSM: Changes to 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jan 24 22:48:45 UTC 2025


 configure.ac   |   19 ++++++---
 src/sm_genid.c |  111 ++++++++++++++++++++++++++-------------------------------
 2 files changed, 65 insertions(+), 65 deletions(-)

New commits:
commit 00040325385ab326b306477bcb175fd47468ac34
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sat Jan 18 16:18:05 2025 -0800

    SmsGenerateClientID: simplify code to convert IPv4 address to hex string
    
    Instead of calling the deprecated inet_ntoa() to convert to an ascii
    string, which we then break into 4 dotted segments and call atoi()
    on each segment, just get the byte values from the in_addr_t directly,
    much like we've long done for IPv6 addreses.
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
    Part-of: <https://gitlab.freedesktop.org/xorg/lib/libsm/-/merge_requests/11>

commit 91d1015f723e437b032eec95f5d82a0d5d52f43c
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Mon Jan 13 16:41:28 2025 -0800

    if getaddrinfo() is available, use it, even if IPv6 support is disabled
    
    Support for using getaddrinfo() was originally added to support IPv6,
    and only used if IPv6 support was enabled.  Two decades later, support
    for getaddrinfo() is ubiquitous and OS'es have marked gethostbyname()
    as deprecated, so use the modern interface whenever we can now.
    
    Of course, in libSM, this only matters if one of the UUID generation
    interfaces isn't being used instead.
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
    Part-of: <https://gitlab.freedesktop.org/xorg/lib/libsm/-/merge_requests/11>

commit 220fda5f4888b148b51ac6be3457670dd60a3c45
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Mon Jan 13 15:41:40 2025 -0800

    Simplify ifdefs for IPv6 support
    
    Instead of checking for AF_INET6 at every ifdef, just check once for it
    and report that IPv6 support is not available, instead of silently not
    building support for it that configure said we were going to build.
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
    Part-of: <https://gitlab.freedesktop.org/xorg/lib/libsm/-/merge_requests/11>

commit 8f133b4f0b03e32c044cda7c56f81c85d7b46c2d
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Mon Jan 13 16:44:56 2025 -0800

    sm_genid.c: simplify final fallback case
    
    Remove one level of #ifdef nesting to reach the final fallback of
    return(NULL) if no id generation method was configured, neither
    a UUID-based method nor the TCPCONN IP-address-based method.
    
    Part-of: <https://gitlab.freedesktop.org/xorg/lib/libsm/-/merge_requests/11>

commit c68a06e0637244a81d7cce3797b22ece15c2fa2b
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Mon Jan 13 16:28:22 2025 -0800

    Skip network checks/headers/libraries if using UUID-based ids
    
    Currently network host address based ids are only used if neither
    of the UUID generation methods is found by configure, so check them
    first, and only do network checks as a fallback.
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
    Part-of: <https://gitlab.freedesktop.org/xorg/lib/libsm/-/merge_requests/11>



More information about the xorg-commit mailing list