Accepting request 1251489 from X11:XOrg

- Update to version 1.1.4
  Support for using getaddrinfo() and inet_ntop() was originally added to
  support IPv6, and only used if IPv6 support was enabled. Two decades later,
  these interfaces are ubiquitous and OS'es have starting marking the old
  interfaces as deprecated, so this release changes to use the modern interface
  whenever we can now.  (Note that code included from libxtrans will only use
  these interfaces when IPv6 is disabled if building against libxtrans 1.6.0
  or later.)
- refreshed xauth-tolerant-hostname-changes.diff

OBS-URL: https://build.opensuse.org/request/show/1251489
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xauth?expand=0&rev=15
This commit is contained in:
Ana Guerrero 2025-03-10 16:57:43 +00:00 committed by Git OBS Bridge
commit 21bf392315
5 changed files with 38 additions and 25 deletions

BIN
xauth-1.1.3.tar.xz (Stored with Git LFS)

Binary file not shown.

3
xauth-1.1.4.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e9318141464ad7b4dc0f8564a580f0d20f977c85a388cc40d5a766206151c690
size 163696

View File

@ -1,8 +1,8 @@
Index: xauth-1.1.3/gethost.c
Index: xauth-1.1.4/gethost.c
===================================================================
--- xauth-1.1.3.orig/gethost.c
+++ xauth-1.1.3/gethost.c
@@ -150,7 +150,8 @@ struct addrlist *get_address_info (
--- xauth-1.1.4.orig/gethost.c
+++ xauth-1.1.4/gethost.c
@@ -162,7 +162,8 @@ struct addrlist *get_address_info (
int family,
const char *fulldpyname,
int prefix,
@ -12,7 +12,7 @@ Index: xauth-1.1.3/gethost.c
{
struct addrlist *retval = NULL;
int len = 0;
@@ -176,7 +177,7 @@ struct addrlist *get_address_info (
@@ -188,7 +189,7 @@ struct addrlist *get_address_info (
if (prefix == 0 && (strncmp (fulldpyname, "unix:", 5) == 0 ||
fulldpyname[0] == ':')) {
@ -21,7 +21,7 @@ Index: xauth-1.1.3/gethost.c
len = 0;
} else {
src = buf;
@@ -252,7 +253,7 @@ struct addrlist *get_address_info (
@@ -270,7 +271,7 @@ struct addrlist *get_address_info (
src = &(sin->sin_addr);
if (*(const in_addr_t *) src == htonl(INADDR_LOOPBACK)) {
family = FamilyLocal;
@ -30,7 +30,7 @@ Index: xauth-1.1.3/gethost.c
src = buf;
len = strlen (buf);
} else
@@ -267,7 +268,7 @@ struct addrlist *get_address_info (
@@ -286,7 +287,7 @@ struct addrlist *get_address_info (
if (!IN6_IS_ADDR_V4MAPPED((const struct in6_addr *)src)) {
if (IN6_IS_ADDR_LOOPBACK((const struct in6_addr *)src)) {
family = FamilyLocal;
@ -39,7 +39,7 @@ Index: xauth-1.1.3/gethost.c
src = buf;
len = strlen (buf);
} else
@@ -322,7 +323,7 @@ struct addrlist *get_address_info (
@@ -342,7 +343,7 @@ struct addrlist *get_address_info (
src = (char *) &hostinetaddr;
if (*(const in_addr_t *) src == htonl(INADDR_LOOPBACK)) {
family = FamilyLocal;
@ -48,10 +48,10 @@ Index: xauth-1.1.3/gethost.c
src = buf;
len = strlen (buf);
} else {
Index: xauth-1.1.3/parsedpy.c
Index: xauth-1.1.4/parsedpy.c
===================================================================
--- xauth-1.1.3.orig/parsedpy.c
+++ xauth-1.1.3/parsedpy.c
--- xauth-1.1.4.orig/parsedpy.c
+++ xauth-1.1.4/parsedpy.c
@@ -70,20 +70,23 @@ copystring (const char *src, int len)
@ -96,10 +96,10 @@ Index: xauth-1.1.3/parsedpy.c
family = FamilyInternet;
}
#endif
Index: xauth-1.1.3/process.c
Index: xauth-1.1.4/process.c
===================================================================
--- xauth-1.1.3.orig/process.c
+++ xauth-1.1.3/process.c
--- xauth-1.1.4.orig/process.c
+++ xauth-1.1.4/process.c
@@ -491,7 +491,7 @@ read_auth_entries(FILE *fp, Bool numeric
}
@ -124,7 +124,7 @@ Index: xauth-1.1.3/process.c
if (addrlist_head) {
char buf[40]; /* want to hold largest display num */
unsigned short dpylen;
@@ -1288,6 +1290,12 @@ iterdpy (const char *inputfilename, int
@@ -1295,6 +1297,12 @@ iterdpy (const char *inputfilename, int
int errors = 0;
/*
@ -137,7 +137,7 @@ Index: xauth-1.1.3/process.c
* iterate
*/
for (int i = start; i < argc; i++) {
@@ -1296,7 +1304,7 @@ iterdpy (const char *inputfilename, int
@@ -1303,7 +1311,7 @@ iterdpy (const char *inputfilename, int
AuthList *next;
int status;
@ -146,7 +146,7 @@ Index: xauth-1.1.3/process.c
prefix (inputfilename, lineno);
baddisplayname (displayname, argv[0]);
errors++;
@@ -1659,7 +1667,7 @@ do_add(const char *inputfilename, int li
@@ -1666,7 +1674,7 @@ do_add(const char *inputfilename, int li
}
}
@ -155,10 +155,10 @@ Index: xauth-1.1.3/process.c
prefix (inputfilename, lineno);
baddisplayname (dpyname, argv[0]);
free (key);
Index: xauth-1.1.3/xauth.h
Index: xauth-1.1.4/xauth.h
===================================================================
--- xauth-1.1.3.orig/xauth.h
+++ xauth-1.1.3/xauth.h
--- xauth-1.1.4.orig/xauth.h
+++ xauth-1.1.4/xauth.h
@@ -48,10 +48,10 @@ struct addrlist {
};

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Sun Mar 9 04:00:16 UTC 2025 - Stefan Dirsch <sndirsch@suse.com>
- Update to version 1.1.4
Support for using getaddrinfo() and inet_ntop() was originally added to
support IPv6, and only used if IPv6 support was enabled. Two decades later,
these interfaces are ubiquitous and OS'es have starting marking the old
interfaces as deprecated, so this release changes to use the modern interface
whenever we can now. (Note that code included from libxtrans will only use
these interfaces when IPv6 is disabled if building against libxtrans 1.6.0
or later.)
- refreshed xauth-tolerant-hostname-changes.diff
-------------------------------------------------------------------
Mon Mar 4 03:59:59 UTC 2024 - Stefan Dirsch <sndirsch@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package xauth
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,7 +17,7 @@
Name: xauth
Version: 1.1.3
Version: 1.1.4
Release: 0
Summary: Utility to edit and display the X authorization information
License: MIT