From: itd <itd@net.in.tum.de>
To: 46083@debbugs.gnu.org
Subject: [bug#46083] [PATCH] gnu: ghc-8.8: Update to 8.8.4.
Date: Sun, 24 Jan 2021 18:39:10 +0100 [thread overview]
Message-ID: <87k0s2grpd.fsf@localhost> (raw)
* 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
next reply other threads:[~2021-01-24 19:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-24 17:39 itd [this message]
2021-10-17 0:18 ` bug#46083: Fixed by update itd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k0s2grpd.fsf@localhost \
--to=itd@net.in.tum.de \
--cc=46083@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.