public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ghc9.8] rawhide: patch rts for glibc-2.43
@ 2026-08-08 13:39 Jens Petersen
  0 siblings, 0 replies; only message in thread
From: Jens Petersen @ 2026-08-08 13:39 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/ghc9.8
Branch : rawhide
Commit : ad32a3d1b157c7e38331c5d37173b319766ceb6f
Author : Jens Petersen <petersen@redhat.com>
Date   : 2026-08-08T21:38:47+08:00
Stats  : +35/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/ghc9.8/c/ad32a3d1b157c7e38331c5d37173b319766ceb6f?branch=rawhide

Log:
patch rts for glibc-2.43

---
diff --git a/15763.patch b/15763.patch
new file mode 100644
index 0000000..376f95a
--- /dev/null
+++ b/15763.patch
@@ -0,0 +1,31 @@
+From 47a41f27ddfbf8cc3fa8c80f4acdd3d7137f29f2 Mon Sep 17 00:00:00 2001
+From: Phil Hazelden <philip.hazelden@gmail.com>
+Date: Sat, 21 Mar 2026 13:16:07 +0000
+Subject: [PATCH] Fix build with werror on glibc 2.43.
+
+We've been defining `_XOPEN_SOURCE` and `_POSIX_C_SOURCE` to the same
+values as defined in glibc prior to 2.43. But in 2.43, glibc changes
+them to new values, which means we get a warning when redefining them.
+By `#undef`ing them first, we no longer get a warning.
+
+Closes #27076.
+---
+ rts/include/rts/PosixSource.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/rts/include/rts/PosixSource.h b/rts/include/rts/PosixSource.h
+index be6c8ecca1d..1a99bd8cf51 100644
+--- a/rts/include/rts/PosixSource.h
++++ b/rts/include/rts/PosixSource.h
+@@ -29,6 +29,8 @@
+    Oracle's Solaris 11 supports only up to XPG6, hence the ifdef.
+   */
+ 
++#undef _POSIX_C_SOURCE
++#undef _XOPEN_SOURCE
+ #if defined(solaris2_HOST_OS)
+ #define _POSIX_C_SOURCE 200112L
+ #define _XOPEN_SOURCE   600
+-- 
+GitLab
+

diff --git a/ghc9.8.spec b/ghc9.8.spec
index 5e69042..ffd9cf1 100644
--- a/ghc9.8.spec
+++ b/ghc9.8.spec
@@ -98,6 +98,8 @@ Patch7: https://gitlab.haskell.org/ghc/ghc/-/merge_requests/15370.patch
 # fix rts build with gcc16
 # https://gitlab.haskell.org/ghc/ghc/-/merge_requests/16165
 Patch9: https://gitlab.haskell.org/ghc/ghc/-/merge_requests/16165.patch
+# undefine _POSIX_C_SOURCE for glibc 2.43
+Patch10: https://gitlab.haskell.org/ghc/ghc/-/merge_requests/15763.patch
 
 # for unregisterized
 Patch16: ghc-hadrian-s390x-rts--qg.patch
@@ -419,6 +421,7 @@ Installing this package causes %{name}-*-prof packages corresponding to
 %patch -P6 -p1 -b .orig
 %patch -P7 -p1 -b .orig
 %patch -P9 -p1 -b .orig
+%patch -P10 -p1 -b .orig
 
 rm libffi-tarballs/libffi-*.tar.gz
 
@@ -875,6 +878,7 @@ make test
 * Sat Aug 08 2026 Jens Petersen <petersen@redhat.com> - 9.8.4-19
 - use hadrian-bootstrap-sources and bundled Cabal to build hadrian (#2503917)
 - disable abicheck since hashes changed this year (#2435219)
+- rts fixes for gcc16 and glibc-2.43+
 
 * Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 9.8.4-18
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-08 13:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-08 13:39 [rpms/ghc9.8] rawhide: patch rts for glibc-2.43 Jens Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox