From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 24 13:30:15 2021 Received: (at submit) by debbugs.gnu.org; 24 Jan 2021 18:30:15 +0000 Received: from localhost ([127.0.0.1]:37228 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l3k9O-0001DS-9Z for submit@debbugs.gnu.org; Sun, 24 Jan 2021 13:30:15 -0500 Received: from lists.gnu.org ([209.51.188.17]:36494) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l3jML-0006Dc-Ak for submit@debbugs.gnu.org; Sun, 24 Jan 2021 12:39:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42954) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l3jMK-0001Wp-1F for guix-patches@gnu.org; Sun, 24 Jan 2021 12:39:33 -0500 Received: from mail-out2.in.tum.de ([131.159.0.36]:53791 helo=mail-out2.informatik.tu-muenchen.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l3jMH-0000lo-Gx for guix-patches@gnu.org; Sun, 24 Jan 2021 12:39:31 -0500 Received: from amnesix.net.in.tum.de (amnesix.net.in.tum.de [131.159.20.238]) by mail.net.in.tum.de (Postfix) with ESMTP id 3A4FA2926827; Sun, 24 Jan 2021 18:39:11 +0100 (CET) From: itd To: guix-patches@gnu.org Subject: [PATCH] gnu: ghc-8.8: Update to 8.8.4. Date: Sun, 24 Jan 2021 18:39:10 +0100 Message-ID: <87k0s2grpd.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: none client-ip=131.159.0.36; envelope-from=itd@net.in.tum.de; helo=mail-out2.informatik.tu-muenchen.de X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 24 Jan 2021 13:30:12 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * 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 From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 17 00:47:14 2021 Received: (at 46083-done) by debbugs.gnu.org; 17 Oct 2021 04:47:14 +0000 Received: from localhost ([127.0.0.1]:43370 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mby4n-0006nM-Ay for submit@debbugs.gnu.org; Sun, 17 Oct 2021 00:47:14 -0400 Received: from mail-out1.in.tum.de ([131.159.0.8]:48022 helo=mail-out1.informatik.tu-muenchen.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbtsj-0006hq-NO for 46083-done@debbugs.gnu.org; Sat, 16 Oct 2021 20:18:30 -0400 Received: from mailrelay1.rbg.tum.de (mailrelay1.in.tum.de [131.159.254.14]) by mail-out1.informatik.tu-muenchen.de (Postfix) with ESMTP id 0FA472401EA for <46083-done@debbugs.gnu.org>; Sun, 17 Oct 2021 02:18:28 +0200 (CEST) Received: by mailrelay1.rbg.tum.de (Postfix, from userid 112) id 0AD155C9; Sun, 17 Oct 2021 02:18:28 +0200 (CEST) Received: from mailrelay1.rbg.tum.de (localhost [127.0.0.1]) by mailrelay1.rbg.tum.de (Postfix) with ESMTP id 9E70A5C8 for <46083-done@debbugs.gnu.org>; Sun, 17 Oct 2021 02:18:23 +0200 (CEST) Received: from mail.net.in.tum.de (mail.net.in.tum.de [IPv6:2001:4ca0:2001:14:216:3eff:fe52:ed14]) by mailrelay1.rbg.tum.de (Postfix) with ESMTP id 9CEA7193 for <46083-done@debbugs.gnu.org>; Sun, 17 Oct 2021 02:18:23 +0200 (CEST) Received: from amnesix.net.in.tum.de (amnesix.net.in.tum.de [131.159.20.238]) by mail.net.in.tum.de (Postfix) with ESMTP id 75FEB282F031; Sun, 17 Oct 2021 02:18:23 +0200 (CEST) From: itd To: 46083-done@debbugs.gnu.org Subject: Fixed by update Date: Sun, 17 Oct 2021 02:18:22 +0200 Message-ID: <87zgr8cxm9.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 46083-done X-Mailman-Approved-At: Sun, 17 Oct 2021 00:47:11 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Current Guix has updated ghc. From unknown Mon Jun 23 07:46:55 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 14 Nov 2021 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator