* [bug#46083] [PATCH] gnu: ghc-8.8: Update to 8.8.4.
@ 2021-01-24 17:39 itd
2021-10-17 0:18 ` bug#46083: Fixed by update itd
0 siblings, 1 reply; 2+ messages in thread
From: itd @ 2021-01-24 17:39 UTC (permalink / raw)
To: 46083
* gnu/packages/patches/ghc-hsc2hs-default-compiler.patch: New file.
* gnu/packages/haskell.scm (ghc-8.8): Update to 8.8.4
[source]: Add new patch.
---
Hi,
please consider updating ghc-8.8 to version 8.8.4. Below a possible
patch for that. Feedback appreciated.
Without the new patch some tests failed with output "Can't find cc":
> Unexpected failures:
> ffi/should_run/Capi_Ctype_001.run Capi_Ctype_001 [bad exit code] (normal)
> ffi/should_run/Capi_Ctype_002.run Capi_Ctype_002 [bad exit code] (normal)
> hsc2hs/hsc2hs001.run hsc2hs001 [bad exit code] (normal)
> hsc2hs/hsc2hs002.run hsc2hs002 [bad exit code] (normal)
> hsc2hs/hsc2hs003.run hsc2hs003 [bad exit code] (normal)
> hsc2hs/hsc2hs004.run hsc2hs004 [bad exit code] (normal)
> hsc2hs/T3837.run T3837 [bad exit code] (normal)
> hsc2hs/T4340.run T4340 [bad exit code] (normal)
> hsc2hs/T10272.run T10272 [bad exit code] (normal)
> hsc2hs/T11004.run T11004 [bad exit code] (normal)
> hsc2hs/T12504.run T12504 [bad exit code] (normal)
> hsc2hs/T15758.run T15758 [bad exit code] (normal)
> libraries/base/tests/IO/T12010/T12010.run T12010 [bad exit code] (threaded1)
Thanks.
Best regards
itd
gnu/packages/haskell.scm | 7 ++++---
.../patches/ghc-hsc2hs-default-compiler.patch | 15 +++++++++++++++
2 files changed, 19 insertions(+), 3 deletions(-)
create mode 100644 gnu/packages/patches/ghc-hsc2hs-default-compiler.patch
diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 09732fc594..494acbf88a 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -613,14 +613,15 @@ interactive environment for the functional language Haskell.")
(define-public ghc-8.8
(package (inherit ghc-8.6)
(name "ghc")
- (version "8.8.3")
+ (version "8.8.4")
(source
(origin
(method url-fetch)
(uri (string-append "https://www.haskell.org/ghc/dist/"
version "/ghc-" version "-src.tar.xz"))
+ (patches (search-patches "ghc-hsc2hs-default-compiler.patch"))
(sha256
- (base32 "128g932i3wix6ic03v04nh5755vyjiidzri9iybwad72yfmc1p70"))))
+ (base32 "0bgwbxxvdn56l91bp9p5d083gzcfdi6z8l8b17qzjpr3n8w5wl7h"))))
(native-inputs
`(("ghc-bootstrap" ,ghc-8.6)
("ghc-testsuite"
@@ -632,7 +633,7 @@ interactive environment for the functional language Haskell.")
(patches (search-patches "ghc-testsuite-dlopen-pie.patch"))
(sha256
(base32
- "1l32mp94ll72skfsq1g2fqax4bkiw8b85gr3wd0bbqsqyi9a9jpr"))))
+ "0c55pj2820q26rikhpf636sn4mjgqsxjrl94vsywrh79dxp3k14z"))))
("git" ,git) ; invoked during tests
,@(filter (match-lambda
(("ghc-bootstrap" . _) #f)
diff --git a/gnu/packages/patches/ghc-hsc2hs-default-compiler.patch b/gnu/packages/patches/ghc-hsc2hs-default-compiler.patch
new file mode 100644
index 0000000000..72f9049463
--- /dev/null
+++ b/gnu/packages/patches/ghc-hsc2hs-default-compiler.patch
@@ -0,0 +1,15 @@
+GCC does not provide "cc" on guix. Hence, look for "gcc" instead.
+
+diff --git a/utils/hsc2hs/Common.hs b/utils/hsc2hs/Common.hs
+index 50471b1..c8bd297 100644
+--- a/utils/hsc2hs/Common.hs
++++ b/utils/hsc2hs/Common.hs
+@@ -20,7 +20,7 @@ die :: String -> IO a
+ die s = hPutStr stderr s >> exitWith (ExitFailure 1)
+
+ default_compiler :: String
+-default_compiler = "cc"
++default_compiler = "gcc"
+
+ ------------------------------------------------------------------------
+ -- Write the output files.
--
2.29.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#46083: Fixed by update
2021-01-24 17:39 [bug#46083] [PATCH] gnu: ghc-8.8: Update to 8.8.4 itd
@ 2021-10-17 0:18 ` itd
0 siblings, 0 replies; 2+ messages in thread
From: itd @ 2021-10-17 0:18 UTC (permalink / raw)
To: 46083-done
Current Guix has updated ghc.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-10-17 4:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-24 17:39 [bug#46083] [PATCH] gnu: ghc-8.8: Update to 8.8.4 itd
2021-10-17 0:18 ` bug#46083: Fixed by update itd
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.