From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wefyObz48mBEjwAAgWs5BA (envelope-from ) for ; Sat, 17 Jul 2021 17:35:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id GIYiNbz48mBQIAAA1q6Kng (envelope-from ) for ; Sat, 17 Jul 2021 15:35:24 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 964ED18646 for ; Sat, 17 Jul 2021 17:35:23 +0200 (CEST) Received: from localhost ([::1]:37512 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m4mLa-0007Ju-JF for larch@yhetil.org; Sat, 17 Jul 2021 11:35:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44126) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m4mLG-0007JY-UB for guix-patches@gnu.org; Sat, 17 Jul 2021 11:35:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43019) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m4mLG-0002Kz-IA for guix-patches@gnu.org; Sat, 17 Jul 2021 11:35:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m4mLG-0006R6-2Q for guix-patches@gnu.org; Sat, 17 Jul 2021 11:35:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49606] [PATCH] gnu: Add ghc-8.10. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 17 Jul 2021 15:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49606 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49606@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162653609924725 (code B ref -1); Sat, 17 Jul 2021 15:35:01 +0000 Received: (at submit) by debbugs.gnu.org; 17 Jul 2021 15:34:59 +0000 Received: from localhost ([127.0.0.1]:54565 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4mLC-0006Qj-V2 for submit@debbugs.gnu.org; Sat, 17 Jul 2021 11:34:59 -0400 Received: from lists.gnu.org ([209.51.188.17]:53248) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4mL7-0006QY-NL for submit@debbugs.gnu.org; Sat, 17 Jul 2021 11:34:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44112) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m4mL6-0007I2-P6 for guix-patches@gnu.org; Sat, 17 Jul 2021 11:34:53 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:55460 helo=mail.yoctocell.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m4mL4-00028d-Cc for guix-patches@gnu.org; Sat, 17 Jul 2021 11:34:52 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1626536081; bh=lJ5AMH1VzVlj600lucnPFk71MSKhipIfjfUVPTKczxg=; h=From:To:Subject:Date; b=FjbYaK5Kt2ezPM4570CEoJP+i23/DfWxKsKBX2Svt92xocxdOhTl/zDC760nVwup5 v36EBqx+qCSOmH5/FvvgFdt61ONDUVuSrHZnIk+lT+TigNO48oFUndoAG7SAml0cX3 yAG/C/aYPA/IQ5jzx5GdWIearFmd2WEkQ+0Dzfvc= Message-Id: <039023c844a5fa57c050bab868677dabd08b1bb0.1626535972.git.public@yoctocell.xyz> Date: Sat, 17 Jul 2021 17:34:40 +0200 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=87.96.130.155; envelope-from=public@yoctocell.xyz; helo=mail.yoctocell.xyz X-Spam_score_int: 23 X-Spam_score: 2.3 X-Spam_bar: ++ X-Spam_report: (2.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.499, FROM_SUSPICIOUS_NTLD_FP=0.903, PDS_OTHER_BAD_TLD=1.997, PDS_RDNS_DYNAMIC_FP=0.001, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1626536123; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=7ubmNuupwodtmBgvTj71jxq3janSGAfXXwOteCEFIxM=; b=H8gnzFbW8zFV46c4rwI8CX6NyN7E4JXi68a/QQebcMtTy5n+FVIfsn14A5uRezB16SoUug uvmQLF7dQg1C5lkqmwbRmtKVcw6jYE2pMENcpgttW7Hi7hjFjLEirNGSdYw5vw29sJLMfJ 8rqW7UivHoN4TzTBFFTTfmYWO+1nVVrzMsdD8eFhWI5qBVgu0j+Suix5ljpGlkErVMO2UN qmzSj+cOhqvmTPzuIFtNZQp0p/7gxMBoQA4WiI199Jsje5fnAbv96Q+IcXQ2ZIaa2dzPdX onrAa1nV95c/wb2bqhGkWLIJMcLnqKk6m1X1EMSFdjK3OjNt11nKZQInEoNxfQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626536123; a=rsa-sha256; cv=none; b=lMrGbLq+ELNn/TTp80HG90oaEMOtze0DOzg0BcxrscIEsfpYS8dR3FtDaZSZBsjkknHp2y YEvbgZW3fCEnq/vanlg21CEO2ypKe6g7+zXoycACopWc1p8RVIVGy2ILEA0E2ua6+dBR3Z Lv8DepBcf/Oiej7D1qunSdzeN+VYteETgnceJOHChke5vWOnTHqqEbIcYxsRar9meDw7fF ARosAzolh5Riau9E666bw/xGOPEn91HT/hNkv77EwwFQD8mfUsX6Vd5V0RZn2FzpzSE5LJ OdMiZbpIqmjDzo8zE9nycrXy1C/TaVcbFWdp5j4Hj3Up+HY72/8hzk2zmjd2sg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=FjbYaK5K; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -0.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=FjbYaK5K; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 964ED18646 X-Spam-Score: -0.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: 6a7vBoluCeqJ * gnu/packages/haskell.scm (ghc-8.10): New variable. --- Two tests are failing, I am not sure why, but I have already spent too much time on this. gnu/packages/haskell.scm | 52 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm index 09732fc594..4e31867bfd 100644 --- a/gnu/packages/haskell.scm +++ b/gnu/packages/haskell.scm @@ -657,6 +657,58 @@ interactive environment for the functional language Haskell.") (file-pattern ".*\\.conf\\.d$") (file-type 'directory)))))) +(define-public ghc-8.10 + (package + (inherit ghc-8.8) + (name "ghc") + (version "8.10.5") + (source + (origin + (method url-fetch) + (uri (string-append "https://www.haskell.org/ghc/dist/" + version "/ghc-" version "-src.tar.xz")) + (sha256 + (base32 "0vq7wch0wfvy2b5dbi308lq5225vf691n95m19c9igagdvql22gi")))) + (native-inputs + `(("ghc-bootstrap" ,ghc-8.8) + ("ghc-testsuite" + ,(origin + (method url-fetch) + (uri (string-append + "https://www.haskell.org/ghc/dist/" + version "/ghc-" version "-testsuite.tar.xz")) + (patches (search-patches "ghc-testsuite-dlopen-pie.patch")) + (sha256 + (base32 + "0vcq774rfb6q8vsnh7p5clxp2qaz8ip6d2bm2ghbq53n8jl296d6")))) + ("git" ,git-minimal) ; invoked during tests + ,@(filter (match-lambda + (("ghc-bootstrap" . _) #f) + (("ghc-testsuite" . _) #f) + (_ #t)) + (package-native-inputs ghc-8.8)))) + (arguments + (substitute-keyword-arguments (package-arguments ghc-8.8) + ((#:phases phases '%standard-phases) + `(modify-phases ,phases + (add-after 'unpack 'fix-cc-name + (lambda _ + (substitute* "utils/hsc2hs/Common.hs" + (("\"cc\"") "\"gcc\"")))) + (add-after 'skip-more-tests 'skip-even-more-tests + (lambda _ + ;; Not sure why these tests fail + (substitute* '("testsuite/tests/driver/T8602/T8602.T" + "testsuite/tests/driver/T16521/all.T") + (("^.*" all) + (string-append "# guix skipped: " all))))))))) + (native-search-paths (list (search-path-specification + (variable "GHC_PACKAGE_PATH") + (files (list + (string-append "lib/ghc-" version))) + (file-pattern ".*\\.conf\\.d$") + (file-type 'directory)))))) + (define-public ghc-8 ghc-8.6) (define-public ghc ghc-8) base-commit: 9cb35c02164d929fcb8929e7f454df215df8cf25 -- 2.32.0