Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] xdm: fix build with glibc 2.36
@ 2022-11-20  3:16 kruceter
  2022-11-20 12:50 ` [PR PATCH] [Merged]: " paper42
  0 siblings, 1 reply; 2+ messages in thread
From: kruceter @ 2022-11-20  3:16 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 613 bytes --]

There is a new pull request by kruceter against master on the void-packages repository

https://github.com/kruceter/void-packages xdm
https://github.com/void-linux/void-packages/pull/40634

xdm: fix build with glibc 2.36
Refer to #39960.

[xdm.txt](https://github.com/void-linux/void-packages/files/10048371/xdm.txt)

#### Testing the changes
- I tested the changes in this PR: **briefly**

#### Local build testing
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64


A patch file from https://github.com/void-linux/void-packages/pull/40634.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-xdm-40634.patch --]
[-- Type: text/x-diff, Size: 1587 bytes --]

From b25eff91f337c19a1f3fbd17daa47ec4c1d11e3a Mon Sep 17 00:00:00 2001
From: Krul Ceter <kruceter@proton.me>
Date: Sun, 20 Nov 2022 06:10:58 +0300
Subject: [PATCH] xdm: fix build with glibc 2.36

---
 srcpkgs/xdm/patches/glibc-2.36.patch | 36 ++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 srcpkgs/xdm/patches/glibc-2.36.patch

diff --git a/srcpkgs/xdm/patches/glibc-2.36.patch b/srcpkgs/xdm/patches/glibc-2.36.patch
new file mode 100644
index 000000000000..7f0166dcf701
--- /dev/null
+++ b/srcpkgs/xdm/patches/glibc-2.36.patch
@@ -0,0 +1,36 @@
+From 468b76023a2dfb750c4d5e9b184f230c5b6ec670 Mon Sep 17 00:00:00 2001
+From: Callum Farmer <gmbr3@opensuse.org>
+Date: Sun, 11 Sep 2022 12:57:05 +0100
+Subject: [PATCH] genauth: fix build with arc4random in glibc 2.36
+
+HAVE_ARC4RANDOM is defined under glibc 2.36 but this will attempt to include
+<bsd/stdlib.h> from libbsd instead of <stdlib.h> from glibc
+
+Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
+---
+ xdm/genauth.c | 10 +++++++++-
+ 1 file changed, 9 insertions(+), 1 deletion(-)
+
+diff --git a/xdm/genauth.c b/xdm/genauth.c
+index 38a0215..de7abfc 100644
+--- a/xdm/genauth.c
++++ b/xdm/genauth.c
+@@ -42,7 +42,15 @@ from The Open Group.
+ 
+ #ifdef HAVE_ARC4RANDOM
+ # ifdef __linux__
+-#  include <bsd/stdlib.h>
++#  if defined(__GLIBC__) && defined(__GLIBC_PREREQ)
++#   if __GLIBC_PREREQ(2, 36)
++#    include <stdlib.h>
++#   else
++#    include <bsd/stdlib.h>
++#   endif
++#  else
++#   include <bsd/stdlib.h>
++#  endif
+ # else
+ #  include <stdlib.h>
+ # endif
+-- 
+GitLab

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: xdm: fix build with glibc 2.36
  2022-11-20  3:16 [PR PATCH] xdm: fix build with glibc 2.36 kruceter
@ 2022-11-20 12:50 ` paper42
  0 siblings, 0 replies; 2+ messages in thread
From: paper42 @ 2022-11-20 12:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 464 bytes --]

There's a merged pull request on the void-packages repository

xdm: fix build with glibc 2.36
https://github.com/void-linux/void-packages/pull/40634

Description:
Refer to #39960.

[xdm.txt](https://github.com/void-linux/void-packages/files/10048371/xdm.txt)

#### Testing the changes
- I tested the changes in this PR: **briefly**

#### Local build testing
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-20 12:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-20  3:16 [PR PATCH] xdm: fix build with glibc 2.36 kruceter
2022-11-20 12:50 ` [PR PATCH] [Merged]: " paper42

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).