guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

11/17: gnu: ghc-9.2: Remove unneeded glibc 2.33 patch.


From: guix-commits
Subject: 11/17: gnu: ghc-9.2: Remove unneeded glibc 2.33 patch.
Date: Thu, 18 Jan 2024 07:58:12 -0500 (EST)

jpoiret pushed a commit to branch core-updates
in repository guix.

commit b8345399e066419c141d4b46bb257f9d63bebe3b
Author: Josselin Poiret <dev@jpoiret.xyz>
AuthorDate: Mon Jan 15 23:03:37 2024 +0100

    gnu: ghc-9.2: Remove unneeded glibc 2.33 patch.
    
    * gnu/packages/patches/ghc-9.2-glibc-2.33-link-order.patch: Remove.
    * gnu/local.mk (dist_patch_DATA): Unregister.
    * gnu/packages/haskell.scm (ghc-9.2): Remove patch use.
    
    Change-Id: I7d305dadb627f6af55e4a5faabfc835e4a78a05b
---
 gnu/local.mk                                       |  1 -
 gnu/packages/haskell.scm                           |  3 +-
 .../patches/ghc-9.2-glibc-2.33-link-order.patch    | 35 ----------------------
 3 files changed, 1 insertion(+), 38 deletions(-)

diff --git a/gnu/local.mk b/gnu/local.mk
index f7b246d55a..9ff5705ed6 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1297,7 +1297,6 @@ dist_patch_DATA =                                         
\
   %D%/packages/patches/geoclue-config.patch                    \
   %D%/packages/patches/gettext-libunicode-update.patch         \
   %D%/packages/patches/ghc-8.0-fall-back-to-madv_dontneed.patch        \
-  %D%/packages/patches/ghc-9.2-glibc-2.33-link-order.patch \
   %D%/packages/patches/ghc-9.2-grep-warnings.patch \
   %D%/packages/patches/ghc-testsuite-dlopen-pie.patch          \
   %D%/packages/patches/ghc-testsuite-grep-compat.patch         \
diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 62815efbb1..3547c20acb 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -1347,8 +1347,7 @@ interactive environment for the functional language 
Haskell.")
                                     "/ghc-" version "-src.tar.xz"))
                 (sha256
                  (base32
-                  "07028i0hm74svvq9b3jpkczaj6lsdgn3hgr4wa7diqiq3dypj1h6"))
-                (patches (search-patches 
"ghc-9.2-glibc-2.33-link-order.patch"))))
+                  "07028i0hm74svvq9b3jpkczaj6lsdgn3hgr4wa7diqiq3dypj1h6"))))
       (arguments
        (substitute-keyword-arguments (package-arguments base)
          ((#:phases phases '%standard-phases)
diff --git a/gnu/packages/patches/ghc-9.2-glibc-2.33-link-order.patch 
b/gnu/packages/patches/ghc-9.2-glibc-2.33-link-order.patch
deleted file mode 100644
index 5d4afa28c1..0000000000
--- a/gnu/packages/patches/ghc-9.2-glibc-2.33-link-order.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-Slightly modified version of
-https://gitlab.haskell.org/ghc/ghc/-/issues/19029#note_447989, required
-for older, buggy glibc versions < 2.34.
-
-diff -Naur ghc-9.2.5/compiler/GHC/Linker/Unit.hs 
ghc-9.2.5.patched/compiler/GHC/Linker/Unit.hs
---- ghc-9.2.5/compiler/GHC/Linker/Unit.hs      2022-11-06 20:40:29.000000000 
+0100
-+++ ghc-9.2.5.patched/compiler/GHC/Linker/Unit.hs      2023-01-15 
14:52:57.511275338 +0100
-@@ -31,11 +31,26 @@
-     ps <- mayThrowUnitErr $ preloadUnitsInfo' unit_env pkgs
-     return (collectLinkOpts dflags ps)
- 
-+fixOrderLinkOpts :: [String] -> [String]
-+fixOrderLinkOpts opts
-+  | have_bad_glibc_version -- glibc version strictly less than 2.34
-+  , let (before, rest) = break (== libc) opts
-+  , not (pthread `elem` before)
-+  , pthread `elem` rest -- optional if we know pthread is definitely present
-+  = before ++ pthread_and_deps ++ rest
-+  | otherwise
-+  = opts
-+  where
-+    pthread = "-lpthread"
-+    libc = "-lc"
-+    pthread_and_deps = [ "-lrt", pthread ] -- should depend on the environment
-+    have_bad_glibc_version = True
-+
- collectLinkOpts :: DynFlags -> [UnitInfo] -> ([String], [String], [String])
- collectLinkOpts dflags ps =
-     (
-         concatMap (map ("-l" ++) . unitHsLibs (ghcNameVersion dflags) (ways 
dflags)) ps,
--        concatMap (map ("-l" ++) . map ST.unpack . unitExtDepLibsSys) ps,
-+        fixOrderLinkOpts $ concatMap (map ("-l" ++) . map ST.unpack . 
unitExtDepLibsSys) ps,
-         concatMap (map ST.unpack . unitLinkerOptions) ps
-     )
- 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]