···48484949______________________________________________________________________________
50505151-Copyright (c) 2002, 2005, Oracle and/or its affiliates.
5151+Copyright (c) 2002, 2025, Oracle and/or its affiliates.
52525353Permission is hereby granted, free of charge, to any person obtaining a
5454copy of this software and associated documentation files (the "Software"),
+519-15
lib/libxtrans/ChangeLog
···11+commit cf05ba4a10c90da2c63805a5375e983b174e28b0
22+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
33+Date: Sat Mar 8 16:07:43 2025 -0800
44+55+ xtrans 1.6.0
66+77+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
88+99+commit c8c291390f4befb7d813d7fce6caeb6607561903
1010+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
1111+Date: Mon Jan 20 09:54:21 2025 -0800
1212+1313+ is_numeric: Add defined(X11_t) to checks
1414+1515+ Fixes builds of XTS which still builds X11 client side code (unlike
1616+ libX11 which relies on xcb instead of xtrans now for X11 connections).
1717+1818+ Fixes: 0f15306 ("is_numeric: Add TRANS_SERVER to required ifdefs")
1919+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2020+ Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/28>
2121+2222+commit 633ac2f03369eb93b70958c783722cfe3e93aacc
2323+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
2424+Date: Sat Jan 18 12:00:41 2025 -0800
2525+2626+ Convert one more IPv6 ifdef to HAVE_GETADDRINFO
2727+2828+ If getaddrinfo returned multiple addresses, try another when first fails,
2929+ even if we're only using IPv4.
3030+3131+ Fixes: 0241531 ("if getaddrinfo() is available, use it, even if IPv6 support is disabled")
3232+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
3333+ Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/28>
3434+3535+commit 2c4a122ca0512936d4306ef449f6b7b2566d6785
3636+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
3737+Date: Sat Jan 18 11:50:59 2025 -0800
3838+3939+ if sockaddr_storage is available, use it, even if IPv6 support is disabled
4040+4141+ Support for using sockaddr_storage was originally added to support IPv6,
4242+ and only used if IPv6 support was enabled. Two decades later, support
4343+ for sockaddr_storage is ubiquitous and can simplify our code paths,
4444+ so use the modern interface whenever we can now.
4545+4646+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
4747+ Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/28>
4848+4949+commit deb755c0ad4575a7542e2abcba986a003fddb198
5050+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
5151+Date: Sat Jan 18 11:07:30 2025 -0800
5252+5353+ if inet_ntop() is available, use it, even if IPv6 support is disabled
5454+5555+ Support for using inet_ntop() was originally added to support IPv6,
5656+ and only used if IPv6 support was enabled. Two decades later, support
5757+ for inet_ntop() is ubiquitous and OS'es have marked inet_ntoa()
5858+ as deprecated, so use the modern interface whenever we can now.
5959+6060+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
6161+ Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/28>
6262+6363+commit 02415310dd4997b4a7943814381c0b52d91eb8de
6464+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
6565+Date: Sat Jan 11 13:06:06 2025 -0800
6666+6767+ if getaddrinfo() is available, use it, even if IPv6 support is disabled
6868+6969+ Support for using getaddrinfo() was originally added to support IPv6,
7070+ and only used if IPv6 support was enabled. Two decades later, support
7171+ for getaddrinfo() is ubiquitous and OS'es have marked gethostbyname()
7272+ as deprecated, so use the modern interface whenever we can now.
7373+7474+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
7575+ Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/27>
7676+7777+commit 7aa12b634fadf2c414080f1ba3d373430cf2d8f2
7878+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
7979+Date: Sat Jan 11 12:24:03 2025 -0800
8080+8181+ Simplify ifdefs for IPv6 support
8282+8383+ Instead of checking for AF_INET6 at every ifdef, just check once per file
8484+ and report that IPv6 support is not available, instead of silently not
8585+ building support for it that configure said we were going to build.
8686+8787+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
8888+ Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/27>
8989+9090+commit e58ae2d27f7baee28319faa02b77cdc344e2f0ca
9191+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
9292+Date: Sat Nov 16 16:37:06 2024 -0800
9393+9494+ SocketOpenCOTSServer: handle -Wconditional-uninitialized warning
9595+9696+ Clears warning from clang 13:
9797+9898+ .../include/X11/Xtrans/Xtranssock.c:670:14: warning: variable 'ciptr'
9999+ may be uninitialized when used here [-Wconditional-uninitialized]
100100+ setsockopt (ciptr->fd, SOL_SOCKET, SO_REUSEADDR,
101101+ ^~~~~
102102+ .../include/X11/Xtrans/Xtranssock.c:624:25: note: initialize the
103103+ variable 'ciptr' to silence this warning
104104+ XtransConnInfo ciptr;
105105+ ^
106106+ = NULL
107107+108108+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
109109+ Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/26>
110110+111111+commit 3fc4f55eb36c02fab3a5b04610d91c481d6a5aec
112112+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
113113+Date: Sat Nov 16 15:08:20 2024 -0800
114114+115115+ SocketOpenCOTSClientBase: handle -Wconditional-uninitialized warning
116116+117117+ Clears warning from clang 13:
118118+119119+ .../include/X11/Xtrans/Xtranssock.c:602:12: warning: variable 'ciptr'
120120+ may be uninitialized when used here [-Wconditional-uninitialized]
121121+ return ciptr;
122122+ ^~~~~
123123+ .../include/X11/Xtrans/Xtranssock.c:575:25: note: initialize the
124124+ variable 'ciptr' to silence this warning
125125+ XtransConnInfo ciptr;
126126+ ^
127127+ = NULL
128128+129129+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
130130+ Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/26>
131131+132132+commit dc71da9eb353f2e41af96923f292c621aeddd37f
133133+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
134134+Date: Sat Nov 16 14:46:29 2024 -0800
135135+136136+ Clear -Wmissing-variable-declarations from clang 13
137137+138138+ Silences 7 warnings of the form:
139139+140140+ .../include/X11/Xtrans/Xtranslcl.c:1347:12: warning: no previous extern
141141+ declaration for non-static variable '_FSTransLocalFuncs'
142142+ [-Wmissing-variable-declarations]
143143+ Xtransport TRANS(LocalFuncs) = {
144144+ ^
145145+ .../include/X11/Xtrans/Xtranslcl.c:1347:1: note: declare 'static' if the
146146+ variable is not intended to be used outside of this translation unit
147147+148148+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
149149+ Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/26>
150150+151151+commit 1dda77bb6ac9f473513a80e8ce5b32c4bde3448a
152152+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
153153+Date: Sat Nov 16 14:23:25 2024 -0800
154154+155155+ Quiet -Wformat-pedantic warnings from clang 13 for non-void-* args to %p
156156+157157+ Clears 23 warnings of the form:
158158+ .../include/X11/Xtrans/Xtrans.c:129:36: warning: format specifies type
159159+ 'void *' but the argument has type 'XtransConnInfo'
160160+ (aka 'struct _XtransConnInfo *') [-Wformat-pedantic]
161161+ prmsg (3,"FreeConnInfo(%p)\n", ciptr);
162162+ ~~ ^~~~~
163163+164164+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
165165+ Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/26>
166166+167167+commit e69d45306f38367ce3a0a5fa126beeb4e6370585
168168+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
169169+Date: Sat Nov 9 09:17:22 2024 -0800
170170+171171+ accept const pointers for buf argument to TRANS(Write)
172172+173173+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
174174+ Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/25>
175175+176176+commit 0dc46e7ed5bdd876467f9dbb314ba6b8094e541b
177177+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
178178+Date: Sat Nov 9 09:04:34 2024 -0800
179179+180180+ xtrans 1.5.2
181181+182182+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
183183+184184+commit d312424a6f2d5bff18f150dfecfc632b334fb878
185185+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
186186+Date: Tue Oct 22 14:44:46 2024 -0700
187187+188188+ is_numeric: Add !defined(IPv6) to checks
189189+190190+ Fixes builds without IPv6 support, since old IPv4 code uses is_numeric()
191191+192192+ Closes: #6
193193+ Fixes: 0f15306 ("is_numeric: Add TRANS_SERVER to required ifdefs")
194194+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
195195+ Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/23>
196196+197197+commit ae99ac32f61e0db92a45179579030a23fe1b5770
198198+Author: Peter Harris <pharris2@rocketsoftware.com>
199199+Date: Tue Oct 15 09:51:33 2024 -0400
200200+201201+ Fix build when HAVE_STRCASECMP is not defined
202202+203203+ Regression introduced in commit 4792e9e798de327572aba1575438b6936a55c7ef
204204+ "Clear numerous -Wsign-compare warnings from gcc 14.1".
205205+206206+ Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/22>
207207+208208+commit df6ae7c7e0b6241a05ad2814bced637b00b1a83f
209209+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
210210+Date: Sat Oct 12 13:39:19 2024 -0700
211211+212212+ xtrans 1.5.1
213213+214214+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
215215+216216+commit 0f153064bfa4bb69e86f3f2383f2f421f2360319
217217+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
218218+Date: Sat Aug 24 18:19:45 2024 -0700
219219+220220+ is_numeric: Add TRANS_SERVER to required ifdefs
221221+222222+ Avoids -Wunused-function warnings when only building for TRANS_CLIENT
223223+ code, such as libFS.
224224+225225+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
226226+ Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/20>
227227+228228+commit 957adac35fb77d5a72f676d697f32ce94ab7392f
229229+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
230230+Date: Sat Aug 24 18:12:16 2024 -0700
231231+232232+ SocketOpen: avoid leak of out-of-range fd
233233+234234+ Clears gcc 14.1 warning:
235235+236236+ /usr/include/X11/Xtrans/Xtranssock.c: In function ‘_FSTransSocketOpen’:
237237+ /usr/include/X11/Xtrans/Xtranssock.c:425:9: warning: leak of file descriptor
238238+ [CWE-775] [-Wanalyzer-fd-leak]
239239+ 425 | free (ciptr);
240240+ | ^~~~~~~~~~~~
241241+ [...]
242242+ | 415 | || ciptr->fd >= sysconf(_SC_OPEN_MAX)
243243+ | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
244244+ | | | |
245245+ | | | (62) ...to here
246246+ | | (63) following ‘true’ branch...
247247+ [...]
248248+249249+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
250250+ Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/20>
251251+252252+commit bea5a32105aebdc99f84f9ee4b70de7a116eb1d7
253253+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
254254+Date: Sat Aug 24 17:49:58 2024 -0700
255255+256256+ GetPeerNetworkId: avoid calling strlen() on a NULL pointer
257257+258258+ Various failure states may leave addr set to NULL instead of a string.
259259+260260+ Clears warnings from gcc 14.1:
261261+262262+ /usr/include/X11/Xtrans/Xtransutil.c: In function ‘_IceTransGetPeerNetworkId’:
263263+ /usr/include/X11/Xtrans/Xtransutil.c:402:62: warning: use of NULL ‘addr’
264264+ where non-null expected [CWE-476] [-Wanalyzer-null-argument]
265265+ 402 | hostname = malloc (strlen (ciptr->transptr->TransName) + strlen (addr) + 2);
266266+ | ^~~~~~~~~~~~
267267+ <built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
268268+269269+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
270270+ Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/20>
271271+272272+commit e5390ab716fb470ac4b5fd7a4133eabbfaac994e
273273+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
274274+Date: Sat Aug 24 17:44:41 2024 -0700
275275+276276+ GetPeerNetworkId: Avoid writing to NULL pointer if malloc() fails
277277+278278+ Clears gcc 14.1 warning:
279279+280280+ /usr/include/X11/Xtrans/Xtransutil.c:403:5: warning: use of possibly-NULL
281281+ ‘hostname’ where non-null expected [CWE-690]
282282+ [-Wanalyzer-possible-null-argument]
283283+ 403 | strcpy (hostname, ciptr->transptr->TransName);
284284+ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
285285+ <built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
286286+287287+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
288288+ Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/20>
289289+290290+commit 215e8db07d05d425714b05b8a439c73735f9d04f
291291+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
292292+Date: Sat Aug 24 17:40:10 2024 -0700
293293+294294+ GetMyNetworkId: Avoid writing to NULL pointer if malloc() fails
295295+296296+ Clears warnings from gcc 14.1:
297297+298298+ In file included from /usr/include/X11/Xtrans/transport.c:70:
299299+ /usr/include/X11/Xtrans/Xtransutil.c: In function ‘_IceTransGetMyNetworkId’:
300300+ /usr/include/X11/Xtrans/Xtransutil.c:253:9: warning: use of possibly-NULL
301301+ ‘networkId’ where non-null expected [CWE-690]
302302+ [-Wanalyzer-possible-null-argument]
303303+ 253 | sprintf (networkId, "%s/%s:%s", transName,
304304+ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
305305+ 254 | hostnamebuf, saddr->sun_path);
306306+ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
307307+ <built-in>: note: argument 1 of ‘__builtin_sprintf’ must be non-null
308308+309309+ /usr/include/X11/Xtrans/Xtransutil.c:283:9: warning: use of possibly-NULL
310310+ ‘networkId’ where non-null expected [CWE-690]
311311+ [-Wanalyzer-possible-null-argument]
312312+ 283 | sprintf (networkId, "%s/%s:%s", transName, hostnamebuf, portnumbuf);
313313+ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
314314+ <built-in>: note: argument 1 of ‘__builtin_sprintf’ must be non-null
315315+316316+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
317317+ Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/20>
318318+319319+commit 376744aa60ff8df0ddbcf090f0177c15706df71e
320320+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
321321+Date: Sat Aug 24 17:33:13 2024 -0700
322322+323323+ MakeAllCOTSServerListeners: Initialize temp_ciptrs
324324+325325+ I don't think this is strictly necessary, but it shouldn't hurt and
326326+ makes gcc 14.1 stop warning about:
327327+328328+ /usr/include/X11/Xtrans/Xtrans.c: In function
329329+ ‘_IceTransMakeAllCOTSServerListeners’:
330330+ /usr/include/X11/Xtrans/Xtrans.h:108:21: warning: use of uninitialized
331331+ value ‘temp_ciptrs[j]’ [CWE-457] [-Wanalyzer-use-of-uninitialized-value]
332332+ 108 | #define TRANS(func) _IceTrans##func
333333+ /usr/include/X11/Xtrans/Xtrans.c:1203:21: note: in expansion of macro ‘TRANS’
334334+ 1203 | TRANS(Close) (temp_ciptrs[j]);
335335+ | ^~~~~
336336+337337+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
338338+ Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/20>
339339+340340+commit 742462a572e524ae82a8c18106c03820da322102
341341+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
342342+Date: Sat Aug 24 17:23:10 2024 -0700
343343+344344+ ParseAddress: return failure when strdup() fails
345345+346346+ Clears warning from gcc 14.1:
347347+ In file included from /usr/include/X11/Xtrans/transport.c:69:
348348+ /usr/include/X11/Xtrans/Xtrans.c: In function ‘_IceTransParseAddress’:
349349+ /usr/include/X11/Xtrans/Xtrans.c:246:19: warning: use of possibly-NULL ‘mybuf’
350350+ where non-null expected [CWE-690] [-Wanalyzer-possible-null-argument]
351351+ 246 | if ( ((mybuf = strchr (mybuf,'/')) == NULL) &&
352352+ | ^~~~~~~~~~~~~~~~~~
353353+354354+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
355355+ Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/20>
356356+357357+commit e9ead32308c588e5c12dbfb6a6452e0f2c88bafd
358358+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
359359+Date: Sat Aug 24 17:18:01 2024 -0700
360360+361361+ SocketINETConnect: return failure when malloc() fails
362362+363363+ Clears warning from gcc 14.1:
364364+ In file included from /usr/include/X11/Xtrans/transport.c:67:
365365+ /usr/include/X11/Xtrans/Xtranssock.c: In function ‘_IceTransSocketINETConnect’:
366366+ /usr/include/X11/Xtrans/Xtranssock.c:1385:33: warning: dereference of
367367+ possibly-NULL ‘addrlist’ [CWE-690] [-Wanalyzer-possible-null-dereference]
368368+ 1385 | addrlist->firstaddr = NULL;
369369+ | ^
370370+371371+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
372372+ Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/20>
373373+374374+commit 4792e9e798de327572aba1575438b6936a55c7ef
375375+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
376376+Date: Sat Aug 24 17:11:28 2024 -0700
377377+378378+ Clear numerous -Wsign-compare warnings from gcc 14.1
379379+380380+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
381381+ Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/20>
382382+383383+commit 9ad6c6764f0517f91492c04ae03a59f53229ef69
384384+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
385385+Date: Sat Aug 24 16:52:05 2024 -0700
386386+387387+ SocketCreateListener: Fix -Wuseless-cast warning in bind() call
388388+389389+ sockname is defined as struct sockaddr * in the arguments to
390390+ SocketCreateListener so we don't need to cast to that when calling bind()
391391+392392+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
393393+ Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/20>
394394+395395+commit 9ed4f5ec909cf262a2404012768858792f976e36
396396+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
397397+Date: Sat Aug 24 16:51:17 2024 -0700
398398+399399+ LocalInitTransports: Fix -Wuseless-cast warning for getenv() call
400400+401401+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
402402+ Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/20>
403403+404404+commit edd3f51328df9c621277168c9dd77b1e80ccfd7c
405405+Author: Robert Royals <robert.royals@protonmail.com>
406406+Date: Sun Jul 21 22:54:27 2024 +0100
407407+408408+ Fix string length check
409409+410410+ Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/19>
411411+412412+commit 656d27ed32af4082e8062c1d7c42b65ea3a6b80f
413413+Author: Kim Woelders <kim@woelders.dk>
414414+Date: Thu Mar 28 18:01:20 2024 +0100
415415+416416+ TRANS(GetHostname): Fix "‘strncpy’ output truncated.." warning
417417+418418+ Occurs when compiling xserver master with gcc 13.2.1.
419419+420420+ In file included from /local/stuff/xorg/include/X11/Xtrans/transport.c:69:
421421+ In function ‘_XSERVTransGetHostname’,
422422+ inlined from ‘_XSERVTransConvertAddress’ at /local/stuff/xorg/include/X11/Xtrans/Xtransutil.c:188:12:
423423+ /local/stuff/xorg/include/X11/Xtrans/Xtrans.c:1352:5: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
424424+ 1352 | strncpy (buf, name.nodename, len);
425425+ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
426426+ /local/stuff/xorg/include/X11/Xtrans/Xtrans.c:1350:11: note: length computed here
427427+ 1350 | len = strlen (name.nodename);
428428+ | ^~~~~~~~~~~~~~~~~~~~~~
429429+430430+ Signed-off-by: Kim Woelders <kim@woelders.dk>
431431+ Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/16>
432432+433433+commit 6171150fe9f8edad3f1cfb14cec59e6a42a9c15b
434434+Author: Kim Woelders <kim@woelders.dk>
435435+Date: Thu Mar 28 17:29:26 2024 +0100
436436+437437+ TRANS(ParseAddress): Fix "assignment discards ‘const’ qualifier" warnings
438438+439439+ Occurs when compiling xserver master with gcc 13.2.1.
440440+441441+ In file included from /local/stuff/xorg/include/X11/Xtrans/transport.c:69,
442442+ from ../os/xstrans.c:17:
443443+ /local/stuff/xorg/include/X11/Xtrans/Xtrans.c: In function ‘_XSERVTransParseAddress’:
444444+ /local/stuff/xorg/include/X11/Xtrans/Xtrans.c:216:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
445445+ 216 | _host = "";
446446+ | ^
447447+ /local/stuff/xorg/include/X11/Xtrans/Xtrans.c:217:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
448448+ 217 | _port = address;
449449+ | ^
450450+ /local/stuff/xorg/include/X11/Xtrans/Xtrans.c:229:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
451451+ 229 | _host = "";
452452+ | ^
453453+ /local/stuff/xorg/include/X11/Xtrans/Xtrans.c:230:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
454454+ 230 | _port = address + 5;
455455+ | ^
456456+457457+ Signed-off-by: Kim Woelders <kim@woelders.dk>
458458+ Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/16>
459459+460460+commit c219be946b1d8a641dcbc7a60904293f105e2866
461461+Author: Enrico Weigelt, metux IT consult <info@metux.net>
462462+Date: Wed Apr 3 12:11:48 2024 +0200
463463+464464+ update .gitignore
465465+466466+ Add some yet missing auto-generated files.
467467+468468+ Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
469469+470470+commit 806f04c6e4529358f160e53135baf105e4ecf3b8
471471+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
472472+Date: Fri Oct 13 13:37:49 2023 -0700
473473+474474+ gitlab CI: add libc-dev to required packages in build container
475475+476476+ Resolves configure failure:
477477+ configure:3823: checking whether the C compiler works
478478+ configure:3845: gcc conftest.c >&5
479479+ /usr/bin/ld: cannot find Scrt1.o: No such file or directory
480480+ /usr/bin/ld: cannot find crti.o: No such file or directory
481481+ collect2: error: ld returned 1 exit status
482482+ configure:3849: $? = 1
483483+ configure:3889: result: no
484484+485485+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
486486+487487+commit 3aa3c318ded5da802e181f0d29b94ab6a692e387
488488+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
489489+Date: Fri Oct 13 13:32:15 2023 -0700
490490+491491+ gitlab CI: collect config.log to help diagnose failures
492492+493493+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
494494+495495+commit 6d5a4512b5ee4757a474df3f5e938784da963de1
496496+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
497497+Date: Fri Oct 13 13:26:49 2023 -0700
498498+499499+ gitlab CI: add xz-utils to container for "make distcheck"
500500+501501+ Also update to latest ci-templates
502502+503503+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
504504+1505commit 3b3a3bd75d86aec78f6ef893b198c3efc378bc64
2506Author: Alan Coopersmith <alan.coopersmith@oracle.com>
3507Date: Fri Jun 2 17:29:41 2023 -0700
···5981102 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
59911036001104commit e1e6121a1638d43d9929589b4723da2b38cb6b44
601601-Author: Łukasz Stelmach <l.stelmach@samsung.com>
11051105+Author: Łukasz Stelmach <l.stelmach@samsung.com>
6021106Date: Mon Nov 25 11:11:54 2013 +0100
60311076041108 Enable systemd socket activation
···6191123 Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
62011246211125commit b895d45e225dd3d1bf9d598774d3ae4f29fcbc25
622622-Author: Łukasz Stelmach <l.stelmach@samsung.com>
11261126+Author: Łukasz Stelmach <l.stelmach@samsung.com>
6231127Date: Thu Nov 28 12:57:21 2013 +0100
62411286251129 Define TRANS_RECEIVED flag for transports
···8341338 Signed-off-by: Keith Packard <keithp@keithp.com>
83513398361340commit f6a161f2a003f4da0a2e414b4faa0ee0de0c01f0
837837-Author: Łukasz Stelmach <l.stelmach@samsung.com>
13411341+Author: Łukasz Stelmach <l.stelmach@samsung.com>
8381342Date: Tue Jul 9 16:24:43 2013 +0200
83913438401344 Add const qualifier to unix_nolisten
···15182022 Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
1519202315202024commit dab2bcdaf60977643ec55d71a81e67c1e3a162a9
15211521-Author: Rémi Cardona <remi@gentoo.org>
20252025+Author: Rémi Cardona <remi@gentoo.org>
15222026Date: Thu Dec 17 08:31:20 2009 +0100
1523202715242028 require autoconf 2.60 because of $(docdir) use
···19762480 <http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6688467>
1977248119782482commit 556a351de83fc6f401b02213dae95731553c216d
19791979-Author: Loïc Minier <lool@dooz.org>
24832483+Author: Loïc Minier <lool@dooz.org>
19802484Date: Mon Mar 24 15:38:27 2008 -0400
1981248519822486 Bug #10489: Don't retry unix socket connect()s on ENOENT.
···23932897 Make includedir=@includedir@ in xtrans.pc.in, not with /X11/Xtrans.
2394289823952899commit b413f4c1dddc467014adf16bfe31627e65508c12
23962396-Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
29002900+Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
23972901Date: Wed Jun 22 22:46:39 2005 +0000
2398290223992903 Apply these patches from Theo van Klaveren:
···24092913 platforms that don't define it in the system headers.
2410291424112915commit f5a6a188407cec6e567070d192aac2db72cacd92
24122412-Author: Kristian Høgsberg <krh@redhat.com>
29162916+Author: Kristian Høgsberg <krh@redhat.com>
24132917Date: Wed Jun 22 01:21:24 2005 +0000
2414291824152919 Apply patch by Alan Coopersmith from #1605 to fix address resolution of
···24372941 prefix's aclocal dir is not in a default path for system aclocal.
2438294224392943commit 58c7263ca5b64a21dc101bb4b24201ba67a8d068
24402440-Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
29442944+Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
24412945Date: Wed May 25 21:47:56 2005 +0000
2442294624432947 - Add FSlib to symlink.sh
···24842988 Require automake 1.7 in AM_INIT_AUTOMAKE
2485298924862990commit daa7168e9e0cdff5eb06b0c9a7155f8880681fff
24872487-Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
29912991+Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
24882992Date: Fri May 13 22:53:43 2005 +0000
2489299324902994 - For now put xtrans in X11/Xtrans/X11, since libX11 is looking for it in
···24983002 - Conditionally include config.h in Xlib source
2499300325003004commit d11d95fa4faec21655625b7de27d8a71c08ffe2d
25012501-Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
30053005+Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
25023006Date: Fri May 13 15:16:43 2005 +0000
2503300725043008 Dummy changes to ChangeLog/configure.ac to see if that fixes group
25053009 permissions
2506301025073011commit b8a8c31f63a543d1c1c6bb4ae26a4019b4400edc
25082508-Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
30123012+Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
25093013Date: Fri May 13 15:04:52 2005 +0000
2510301425113015 Re-adding ChangeLog and configure.ac files
2512301625133017commit 798c08054ce5a8238f35fee3e69218ece74441fa
25142514-Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
30183018+Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
25153019Date: Fri May 13 15:02:19 2005 +0000
2516302025173021 Temporarily remove ChangeLog configure.ac
2518302225193023commit b3da86ae588df14dde916674a4f6593edf1964f7
25202520-Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
30243024+Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
25213025Date: Fri May 13 14:43:37 2005 +0000
2522302625233027 Dummy commit to see if that fixes the group execute permissions
2524302825253029commit ea04267da780c2c3f08a710d15468565897420c4
25262526-Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
30303030+Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
25273031Date: Thu May 12 16:12:34 2005 +0000
2528303225293033 Make xtrans install in $(includedir)/X11/Xtrans. Remove all references to
···25383042 Add Xtransdef.h.in as an AM_CONFIG_HEADER.
2539304325403044commit d628bf24f2bf0d017394b6961784d7ac5b33f46b
25412541-Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
30453045+Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
25423046Date: Wed May 11 22:44:52 2005 +0000
2543304725443048 lib/Xau:
+39-34
lib/libxtrans/Xtrans.c
···8282#define TRANS_SOCKET_INET6_INDEX 14
8383#define TRANS_LOCAL_PIPE_INDEX 15
84848585+#if defined(IPv6) && !defined(AF_INET6)
8686+#error "Cannot build IPv6 support without AF_INET6"
8787+#endif
85888689static
8790Xtransport_table Xtransports[] = {
8891#if defined(TCPCONN)
8992 { &TRANS(SocketTCPFuncs), TRANS_SOCKET_TCP_INDEX },
9090-#if defined(IPv6) && defined(AF_INET6)
9393+#if defined(IPv6)
9194 { &TRANS(SocketINET6Funcs), TRANS_SOCKET_INET6_INDEX },
9295#endif /* IPv6 */
9396 { &TRANS(SocketINETFuncs), TRANS_SOCKET_INET_INDEX },
···126129TRANS(FreeConnInfo) (XtransConnInfo ciptr)
127130128131{
129129- prmsg (3,"FreeConnInfo(%p)\n", ciptr);
132132+ prmsg (3,"FreeConnInfo(%p)\n", (void *) ciptr);
130133131134 if (ciptr->addr)
132135 free (ciptr->addr);
···150153#ifndef HAVE_STRCASECMP
151154 char protobuf[PROTOBUFSIZE];
152155#endif
153153- int i;
154156155157 prmsg (3,"SelectTransport(%s)\n", protocol);
156158···163165 strncpy (protobuf, protocol, PROTOBUFSIZE - 1);
164166 protobuf[PROTOBUFSIZE-1] = '\0';
165167166166- for (i = 0; i < PROTOBUFSIZE && protobuf[i] != '\0'; i++)
168168+ for (unsigned int i = 0; i < PROTOBUFSIZE && protobuf[i] != '\0'; i++)
167169 if (isupper ((unsigned char)protobuf[i]))
168170 protobuf[i] = tolower ((unsigned char)protobuf[i]);
169171#endif
170172171173 /* Look at all of the configured protocols */
172174173173- for (i = 0; i < NUMTRANS; i++)
175175+ for (unsigned int i = 0; i < NUMTRANS; i++)
174176 {
175177#ifndef HAVE_STRCASECMP
176178 if (!strcmp (protobuf, Xtransports[i].transport->TransName))
···204206205207 char *mybuf, *tmpptr = NULL;
206208 const char *_protocol = NULL;
207207- char *_host, *_port;
209209+ const char *_host, *_port;
208210 char hostnamebuf[256];
211211+ char *_host_buf;
209212 int _host_len;
210213211214 prmsg (3,"ParseAddress(%s)\n", address);
···243246 _protocol = mybuf;
244247245248246246- if ( ((mybuf = strchr (mybuf,'/')) == NULL) &&
247247- ((mybuf = strrchr (tmpptr,':')) == NULL) )
248248- {
249249+ if ((mybuf == NULL) ||
250250+ ( ((mybuf = strchr (mybuf, '/')) == NULL) &&
251251+ ((mybuf = strrchr (tmpptr, ':')) == NULL) ) )
252252+ {
249253 /* address is in a bad format */
250254 *protocol = NULL;
251255 *host = NULL;
···293297294298 /* Get the host part */
295299296296- _host = mybuf;
300300+ _host = _host_buf = mybuf;
297301298302 if ((mybuf = strrchr (mybuf,':')) == NULL)
299303 {
···312316 TRANS(GetHostname) (hostnamebuf, sizeof (hostnamebuf));
313317 _host = hostnamebuf;
314318 }
315315-#if defined(IPv6) && defined(AF_INET6)
319319+#ifdef IPv6
316320 /* hostname in IPv6 [numeric_addr]:0 form? */
317321 else if ( (_host_len > 3) &&
318322 ((strcmp(_protocol, "tcp") == 0) || (strcmp(_protocol, "inet6") == 0))
319319- && (*_host == '[') && (*(_host + _host_len - 1) == ']') ) {
323323+ && (_host_buf[0] == '[') && (_host_buf[_host_len - 1] == ']') ) {
320324 struct sockaddr_in6 sin6;
321325322322- *(_host + _host_len - 1) = '\0';
326326+ _host_buf[_host_len - 1] = '\0';
323327324328 /* Verify address is valid IPv6 numeric form */
325329 if (inet_pton(AF_INET6, _host + 1, &sin6) == 1) {
···328332 _protocol = "inet6";
329333 } else {
330334 /* It's not, restore it just in case some other code can use it. */
331331- *(_host + _host_len - 1) = ']';
335335+ _host_buf[_host_len - 1] = ']';
332336 }
333337 }
334338#endif
···499503 XtransConnInfo ciptr = NULL;
500504 Xtransport *thistrans = NULL;
501505 char *save_port;
502502- int i;
503506504507 prmsg (2,"Reopen(%d,%d,%s)\n", trans_id, fd, port);
505508506509 /* Determine the transport type */
507510508508- for (i = 0; i < NUMTRANS; i++)
511511+ for (unsigned int i = 0; i < NUMTRANS; i++)
512512+ {
509513 if (Xtransports[i].transport_id == trans_id)
510514 {
511515 thistrans = Xtransports[i].transport;
512516 break;
513517 }
518518+ }
514519515520 if (thistrans == NULL)
516521 {
···602607 int *trans_id, int *fd, char **port)
603608604609{
605605- int i;
606606-607607- for (i = 0; i < NUMTRANS; i++)
610610+ for (unsigned int i = 0; i < NUMTRANS; i++)
611611+ {
608612 if (Xtransports[i].transport == ciptr->transptr)
609613 {
610614 *trans_id = Xtransports[i].transport_id;
···615619 else
616620 return 1;
617621 }
622622+ }
618623619624 return 0;
620625}
···899904}
900905901906int
902902-TRANS(Write) (XtransConnInfo ciptr, char *buf, int size)
907907+TRANS(Write) (XtransConnInfo ciptr, const char *buf, int size)
903908904909{
905910 return ciptr->transptr->Write (ciptr, buf, size);
···10201025{
10211026 int count = 0;
10221027 int found_local = 0;
10231023- int i;
1024102810251029 /*
10261030 * For a complete network, we only need one LOCALCONN transport to work
10271031 */
1028103210291029- for (i = 0; i < NUMTRANS; i++)
10331033+ for (unsigned int i = 0; i < NUMTRANS; i++)
10301034 {
10311035 if (Xtransports[i].transport->flags & TRANS_ALIAS
10321036 || Xtransports[i].transport->flags & TRANS_NOLISTEN)
···10591063 return -1;
10601064 }
1061106510621062- for (i = 0; i < systemd_listen_fds && *count_ret < NUMTRANS; i++)
10661066+ for (i = 0; i < systemd_listen_fds && *count_ret < (int)NUMTRANS; i++)
10631067 {
10641068 struct sockaddr_storage a;
10651069 int ti;
···10871091 ti = TRANS_SOCKET_INET_INDEX;
10881092 tn = "inet";
10891093 break;
10901090-#if defined(IPv6) && defined(AF_INET6)
10941094+#ifdef IPv6
10911095 case AF_INET6:
10921096 ti = TRANS_SOCKET_INET6_INDEX;
10931097 tn = "inet6";
···1126113011271131{
11281132 char buffer[256]; /* ??? What size ?? */
11291129- XtransConnInfo ciptr, temp_ciptrs[NUMTRANS];
11301130- int status, i, j;
11331133+ XtransConnInfo ciptr, temp_ciptrs[NUMTRANS] = { NULL };
11341134+ int status, j;
1131113511321132-#if defined(IPv6) && defined(AF_INET6)
11361136+#ifdef IPv6
11331137 int ipv6_succ = 0;
11341138#endif
11351139 prmsg (2,"MakeAllCOTSServerListeners(%s,%p)\n",
11361136- port ? port : "NULL", ciptrs_ret);
11401140+ port ? port : "NULL", (void *) ciptrs_ret);
1137114111381142 *count_ret = 0;
11391143···11511155 if (receive_listening_fds(port, temp_ciptrs, count_ret) < 0)
11521156 return -1;
1153115711541154- for (i = 0; i < NUMTRANS; i++)
11581158+ for (unsigned int i = 0; i < NUMTRANS; i++)
11551159 {
11561160 Xtransport *trans = Xtransports[i].transport;
11571161 unsigned int flags = 0;
···11761180 trans->TransName);
11771181 continue;
11781182 }
11791179-#if defined(IPv6) && defined(AF_INET6)
11831183+#ifdef IPv6
11801184 if ((Xtransports[i].transport_id == TRANS_SOCKET_INET_INDEX
11811185 && ipv6_succ))
11821186 flags |= ADDR_IN_USE_ALLOWED;
···11991203 "MakeAllCOTSServerListeners: server already running\n");
1200120412011205 for (j = 0; j < *count_ret; j++)
12021202- TRANS(Close) (temp_ciptrs[j]);
12061206+ if (temp_ciptrs[j] != NULL)
12071207+ TRANS(Close) (temp_ciptrs[j]);
1203120812041209 *count_ret = 0;
12051210 *ciptrs_ret = NULL;
···12161221 }
12171222 }
1218122312191219-#if defined(IPv6) && defined(AF_INET6)
12241224+#ifdef IPv6
12201225 if (Xtransports[i].transport_id == TRANS_SOCKET_INET6_INDEX)
12211226 ipv6_succ = 1;
12221227#endif
···12431248 return -1;
12441249 }
1245125012461246- for (i = 0; i < *count_ret; i++)
12511251+ for (int i = 0; i < *count_ret; i++)
12471252 {
12481253 (*ciptrs_ret)[i] = temp_ciptrs[i];
12491254 }
···13481353 uname (&name);
13491354 len = strlen (name.nodename);
13501355 if (len >= maxlen) len = maxlen - 1;
13511351- strncpy (buf, name.nodename, len);
13561356+ memcpy (buf, name.nodename, len);
13521357 buf[len] = '\0';
13531358#else
13541359 buf[0] = '\0';
+8-2
lib/libxtrans/Xtrans.h
···131131 * This structure needs to be independent of the socket/TLI interface used.
132132 */
133133134134-#if defined(IPv6) && defined(AF_INET6)
134134+/* Temporary workaround for consumers whose configure scripts were
135135+ generated with pre-1.6 versions of xtrans.m4 */
136136+#if defined(IPv6) && !defined(HAVE_STRUCT_SOCKADDR_STORAGE)
137137+#define HAVE_STRUCT_SOCKADDR_STORAGE
138138+#endif
139139+140140+#ifdef HAVE_STRUCT_SOCKADDR_STORAGE
135141typedef struct sockaddr_storage Xtransaddr;
136142#else
137143#define XTRANS_MAX_ADDR_LEN 128 /* large enough to hold sun_path */
···316322317323int TRANS(Write)(
318324 XtransConnInfo, /* ciptr */
319319- char *, /* buf */
325325+ const char *, /* buf */
320326 int /* size */
321327);
322328
···11#! /bin/sh
22# Wrapper for compilers which do not understand '-c -o'.
3344-scriptversion=2018-03-07.03; # UTC
44+scriptversion=2024-06-19.01; # UTC
5566-# Copyright (C) 1999-2021 Free Software Foundation, Inc.
66+# Copyright (C) 1999-2024 Free Software Foundation, Inc.
77# Written by Tom Tromey <tromey@cygnus.com>.
88#
99# This program is free software; you can redistribute it and/or modify
···143143 # configure might choose to run compile as 'compile cc -o foo foo.c'.
144144 eat=1
145145 case $2 in
146146- *.o | *.[oO][bB][jJ])
146146+ *.o | *.lo | *.[oO][bB][jJ])
147147 func_file_conv "$2"
148148 set x "$@" -Fo"$file"
149149 shift
···248248right script to run: please start by reading the file 'INSTALL'.
249249250250Report bugs to <bug-automake@gnu.org>.
251251+GNU Automake home page: <https://www.gnu.org/software/automake/>.
252252+General help using GNU software: <https://www.gnu.org/gethelp/>.
251253EOF
252254 exit $?
253255 ;;
254256 -v | --v*)
255255- echo "compile $scriptversion"
257257+ echo "compile (GNU Automake) $scriptversion"
256258 exit $?
257259 ;;
258260 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \
261261+ clang-cl | *[/\\]clang-cl | clang-cl.exe | *[/\\]clang-cl.exe | \
259262 icl | *[/\\]icl | icl.exe | *[/\\]icl.exe )
260263 func_cl_wrapper "$@" # Doesn't return...
261264 ;;
+15-15
lib/libxtrans/configure
···11#! /bin/sh
22# Guess values for system-dependent variables and create Makefiles.
33-# Generated by GNU Autoconf 2.71 for xtrans 1.5.0.
33+# Generated by GNU Autoconf 2.71 for xtrans 1.6.0.
44#
55-# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxtrans/issues>.
55+# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/issues>.
66#
77#
88# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
···268268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269269 else
270270 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
271271-$0: https://gitlab.freedesktop.org/xorg/lib/libxtrans/issues
271271+$0: https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/issues
272272$0: about your system, including any error possibly output
273273$0: before this message. Then install a modern shell, or
274274$0: manually run the script under such a shell if you do
···672672# Identity of this package.
673673PACKAGE_NAME='xtrans'
674674PACKAGE_TARNAME='xtrans'
675675-PACKAGE_VERSION='1.5.0'
676676-PACKAGE_STRING='xtrans 1.5.0'
677677-PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxtrans/issues'
675675+PACKAGE_VERSION='1.6.0'
676676+PACKAGE_STRING='xtrans 1.6.0'
677677+PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/issues'
678678PACKAGE_URL=''
679679680680ac_unique_file="Makefile.am"
···14261426 # Omit some internal or obsolete options to make the list less imposing.
14271427 # This message is too long to be a string in the A/UX 3.1 sh.
14281428 cat <<_ACEOF
14291429-\`configure' configures xtrans 1.5.0 to adapt to many kinds of systems.
14291429+\`configure' configures xtrans 1.6.0 to adapt to many kinds of systems.
1430143014311431Usage: $0 [OPTION]... [VAR=VALUE]...
14321432···1497149714981498if test -n "$ac_init_help"; then
14991499 case $ac_init_help in
15001500- short | recursive ) echo "Configuration of xtrans 1.5.0:";;
15001500+ short | recursive ) echo "Configuration of xtrans 1.6.0:";;
15011501 esac
15021502 cat <<\_ACEOF
15031503···15511551Use these variables to override the choices made by `configure' or to help
15521552it to find libraries and programs with nonstandard names/locations.
1553155315541554-Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxtrans/issues>.
15541554+Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/issues>.
15551555_ACEOF
15561556ac_status=$?
15571557fi
···16151615test -n "$ac_init_help" && exit $ac_status
16161616if $ac_init_version; then
16171617 cat <<\_ACEOF
16181618-xtrans configure 1.5.0
16181618+xtrans configure 1.6.0
16191619generated by GNU Autoconf 2.71
1620162016211621Copyright (C) 2021 Free Software Foundation, Inc.
···18851885This file contains any messages produced by compilers while
18861886running configure, to aid debugging if configure makes a mistake.
1887188718881888-It was created by xtrans $as_me 1.5.0, which was
18881888+It was created by xtrans $as_me 1.6.0, which was
18891889generated by GNU Autoconf 2.71. Invocation command line was
1890189018911891 $ $0$ac_configure_args_raw
···3120312031213121# Define the identity of the package.
31223122 PACKAGE='xtrans'
31233123- VERSION='1.5.0'
31233123+ VERSION='1.6.0'
312431243125312531263126printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
···1204912049# report actual input values of CONFIG_FILES etc. instead of their
1205012050# values after options handling.
1205112051ac_log="
1205212052-This file was extended by xtrans $as_me 1.5.0, which was
1205212052+This file was extended by xtrans $as_me 1.6.0, which was
1205312053generated by GNU Autoconf 2.71. Invocation command line was
12054120541205512055 CONFIG_FILES = $CONFIG_FILES
···1210012100Configuration commands:
1210112101$config_commands
12102121021210312103-Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxtrans/issues>."
1210312103+Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/issues>."
12104121041210512105_ACEOF
1210612106ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
···1210812108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1210912109ac_cs_config='$ac_cs_config_escaped'
1211012110ac_cs_version="\\
1211112111-xtrans config.status 1.5.0
1211112111+xtrans config.status 1.6.0
1211212112configured by $0, generated by GNU Autoconf 2.71,
1211312113 with options \\"\$ac_cs_config\\"
1211412114
···11dnl
22-dnl Copyright (c) 2005, Oracle and/or its affiliates.
22+dnl Copyright (c) 2005, 2025, Oracle and/or its affiliates.
33dnl
44dnl Permission is hereby granted, free of charge, to any person obtaining a
55dnl copy of this software and associated documentation files (the "Software"),
···3333 fi
34343535 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
3636+ AC_CHECK_FUNCS([getaddrinfo inet_ntop])
3737+3638 AC_ARG_ENABLE(ipv6,
3739 AS_HELP_STRING([--enable-ipv6],[Enable IPv6 support]),
3840 [IPV6CONN=$enableval],
3939- [AC_CHECK_FUNC(getaddrinfo,[IPV6CONN=yes],[IPV6CONN=no])])
4141+ [IPV6CONN=$ac_cv_func_getaddrinfo])
4042 AC_MSG_CHECKING([if IPv6 support should be built])
4143 if test "$IPV6CONN" = "yes"; then
4244 AC_DEFINE(IPv6,1,[Support IPv6 for TCP connections])
···5355 ])
54565557 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
5656- AC_CHECK_TYPES([socklen_t], [], [], [
5858+ # and added a type defined to be large enough to hold any sockaddr format.
5959+ AC_CHECK_TYPES([socklen_t, struct sockaddr_storage], [], [], [
5760AC_INCLUDES_DEFAULT
5858-#include <sys/socket.h>])
6161+#include <sys/socket.h>
6262+ ])
59636064 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
6165 # _XOPEN_SOURCE to get it (such as on Solaris)
+1
lib/libxtrans/xtrans.pc.in
···5566Name: XTrans
77Description: Abstract network code for X
88+URL: https://gitlab.freedesktop.org/xorg/lib/libxtrans
89Version: @PACKAGE_VERSION@
910Cflags: -I${includedir} -D_DEFAULT_SOURCE -D_BSD_SOURCE @fchown_define@ @sticky_bit_define@