haskell.compiler: (make built) also patch rts.cabal.in in numa patch

This is the part of the autoconf/make logic that may be relevant to us
which wasn't replicated from Libdw. For completeness' sake, do this
here. The extra logic in distrib/configure.ac.in is not relevant to us
since we don't build bindists for make built GHCs.

+18 -3
pkgs/development/compilers/ghc/ghc-8.10-9.2-rts-package-db-libnuma-dirs.patch
···
-
From adef13bb81cdb49a8da8a22db261e48d8c4bbb5d Mon Sep 17 00:00:00 2001
+
From 3d17e6fa39fb18d4300fbf2a0c4b9ddb4adf746b Mon Sep 17 00:00:00 2001
From: sterni <sternenseemann@systemli.org>
Date: Thu, 17 Jul 2025 21:21:29 +0200
Subject: [PATCH] rts: record libnuma include and lib dirs in package conf
···
enforce its specific directories by adding them to rts.conf in the
package db. This commit implements this retroactively for the make build
system, modeled after how make does the same sort of thing for Libdw.
+
The Libdw logic also affects the bindist configure file in
+
distrib/configure.ac which isn't replicate since we don't need it.
---
mk/config.mk.in | 4 ++++
rts/ghc.mk | 8 ++++++++
rts/package.conf.in | 5 +++--
-
3 files changed, 15 insertions(+), 2 deletions(-)
+
rts/rts.cabal.in | 1 +
+
4 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/mk/config.mk.in b/mk/config.mk.in
index 35f6e2d087..d2b1329eb5 100644
···
#endif
includes: Stg.h
+
diff --git a/rts/rts.cabal.in b/rts/rts.cabal.in
+
index 0a06414d95..f71fb079ec 100644
+
--- a/rts/rts.cabal.in
+
+++ b/rts/rts.cabal.in
+
@@ -150,6 +150,7 @@ library
+
include-dirs: build ../includes includes
+
includes/dist-derivedconstants/header @FFIIncludeDir@
+
@LibdwIncludeDir@
+
+ @LibNumaIncludeDir@
+
includes: Stg.h
+
install-includes: Cmm.h HsFFI.h MachDeps.h Rts.h RtsAPI.h Stg.h
+
ghcautoconf.h ghcconfig.h ghcplatform.h ghcversion.h
--
-
2.49.0
+
2.50.0
+18 -3
pkgs/development/compilers/ghc/ghc-9.4-rts-package-db-libnuma-dirs.patch
···
-
From f9625ba94522bec93b4c5d46ee5fd97f537a7dfa Mon Sep 17 00:00:00 2001
+
From a0b547f41939304adfc0c430314c342dd69306ae Mon Sep 17 00:00:00 2001
From: sterni <sternenseemann@systemli.org>
Date: Thu, 17 Jul 2025 21:21:29 +0200
Subject: [PATCH] rts: record libnuma include and lib dirs in package conf
···
enforce its specific directories by adding them to rts.conf in the
package db. This commit implements this retroactively for the make build
system, modeled after how make does the same sort of thing for Libdw.
+
The Libdw logic also affects the bindist configure file in
+
distrib/configure.ac which isn't replicate since we don't need it.
---
mk/config.mk.in | 4 ++++
rts/ghc.mk | 8 ++++++++
rts/package.conf.in | 5 +++--
-
3 files changed, 15 insertions(+), 2 deletions(-)
+
rts/rts.cabal.in | 1 +
+
4 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/mk/config.mk.in b/mk/config.mk.in
index 2ff2bea9b6..d95f927dbd 100644
···
#endif
includes: Rts.h
+
diff --git a/rts/rts.cabal.in b/rts/rts.cabal.in
+
index a8882268ac..debf2ba0a0 100644
+
--- a/rts/rts.cabal.in
+
+++ b/rts/rts.cabal.in
+
@@ -154,6 +154,7 @@ library
+
include-dirs: include
+
@FFIIncludeDir@
+
@LibdwIncludeDir@
+
+ @LibNumaIncludeDir@
+
includes: Rts.h
+
install-includes: Cmm.h HsFFI.h MachDeps.h Rts.h RtsAPI.h Stg.h
+
ghcautoconf.h ghcconfig.h ghcplatform.h ghcversion.h
--
-
2.49.0
+
2.50.0