From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex ter Weele Subject: Incomplete work to upgrade Idris to 1.2.0 Date: Mon, 05 Mar 2018 23:11:14 -0600 Message-ID: <877eqp7pql.fsf@librem.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38511) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1et4sj-0003bH-GM for guix-devel@gnu.org; Tue, 06 Mar 2018 00:11:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1et4sg-00079J-8g for guix-devel@gnu.org; Tue, 06 Mar 2018 00:11:21 -0500 Received: from mail-qk0-x22e.google.com ([2607:f8b0:400d:c09::22e]:41294) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1et4sg-000794-1p for guix-devel@gnu.org; Tue, 06 Mar 2018 00:11:18 -0500 Received: by mail-qk0-x22e.google.com with SMTP id w142so23516175qkb.8 for ; Mon, 05 Mar 2018 21:11:17 -0800 (PST) Received: from librem (24-148-50-16.s5644.c3-0.mart-ubr1.chi-mart.il.cable.rcncustomer.com. [24.148.50.16]) by smtp.gmail.com with ESMTPSA id 58sm9750920qtm.51.2018.03.05.21.11.14 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Mar 2018 21:11:15 -0800 (PST) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --=-=-= Content-Type: text/plain Hello all, This is my attempt to upgrade Idris to 1.2.0, the version included in LTS Haskell 10.7. sclv on #hackage helped me figure out that one of the remaining problems is a version mismatch on ghc-binary: $ ./pre-inst-env guix build idris ... Warning: This package indirectly depends on multiple versions of the same package. This is highly likely to cause a compile failure. package zip-archive-0.3.0.5 requires binary-0.8.3.0 package vector-binary-instances-0.2.4 requires binary-0.8.3.0 package uuid-types-1.0.3 requires binary-0.8.3.0 package text-1.2.2.2 requires binary-0.8.3.0 package scientific-0.3.5.2 requires binary-0.8.3.0 package idris-1.2.0 requires binary-0.8.5.1 ... [ 23 of 114] Compiling Idris.Core.Binary ( src/Idris/Core/Binary.hs, dist/build/Idris/Core/Binary.o ) src/Idris/Core/Binary.hs:233:10: error: ? No instance for (Binary Data.Text.Internal.Text) arising from a use of ?binary-0.8.5.1:Data.Binary.Class.$dmput? ? In the expression: binary-0.8.5.1:Data.Binary.Class.$dmput @Name In an equation for ?put?: put = binary-0.8.5.1:Data.Binary.Class.$dmput @Name In the instance declaration for ?Binary Name? ... It seems like ghc-text uses the GHC-bundled version of binary: $ ./pre-inst-env guix environment idris -- ghc-pkg list ... /gnu/store/gvqz0x4n15zgdqnh5z675ca97j1si766-profile/lib/ghc-8.0.2/ghc-text-1.2.2.2.conf.d array-0.5.1.1 base-4.9.1.0 binary-0.8.3.0 bytestring-0.10.8.1 containers-0.5.7.1 deepseq-1.4.2.0 ghc-prim-0.5.0.0 integer-gmp-1.0.0.1 rts-1.0 text-1.2.2.2 ... I tried adding ghc-binary (our ghc-binary is at 0.8.5.1, which should agree with Irdris's) to the inputs of ghc-text, but it appears to cause a circular dependency -- guix-building idris or ghc-text after this modification causes a heap OoM in Guile. I would appreciate any pointers about what I can try next! :) --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-WIP-gnu-idris-Upgrade-to-1.2.0.patch >From 5877c2a229eda3b2d41b2b84978964cf26b0b552 Mon Sep 17 00:00:00 2001 From: Alex ter Weele Date: Sun, 4 Mar 2018 19:05:25 -0600 Subject: [PATCH] (WIP) gnu: idris: Upgrade to 1.2.0. * gnu/packages/idris.scm (idris): upgrade to 1.2.0. [inputs] alphebetize ghc-vector-binary-instances and ghc-async. Delete ghc-parsers, ghc-tasty, ghc-tasty-golden, ghc-tasty-rerun, ghc-trifecta, and ghc-zlib as they are not dependencies of 1.2.0. Add ghc-binary and ghc-megaparsec. --- gnu/packages/haskell.scm | 5 ++++- gnu/packages/idris.scm | 18 +++++++----------- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm index e7401e5cf..2560179e6 100644 --- a/gnu/packages/haskell.scm +++ b/gnu/packages/haskell.scm @@ -1955,7 +1955,10 @@ case with other forms of concurrent communication, such as locks or ;; The test dependencies depend on ghc-text: ghc-test-framework -> ghc-xml -> ghc-text (arguments `(#:tests? #f)) (inputs - `(("ghc-random" ,ghc-random))) + `(("ghc-random" ,ghc-random) + ;; necessary, but seems to cause a circular dependency. + #;("ghc-binary" ,ghc-binary) + )) (home-page "https://github.com/bos/text") (synopsis "Efficient packed Unicode text type library") (description diff --git a/gnu/packages/idris.scm b/gnu/packages/idris.scm index 6eb940c9d..784346872 100644 --- a/gnu/packages/idris.scm +++ b/gnu/packages/idris.scm @@ -33,7 +33,7 @@ (define-public idris (package (name "idris") - (version "1.0") + (version "1.2.0") (source (origin (method url-fetch) (uri (string-append @@ -41,17 +41,18 @@ "idris-" version "/idris-" version ".tar.gz")) (sha256 (base32 - "1srbz0cyvd0k1yqgbrwnfj94yg5y3z533q1kzac96z1h7v454s5h")))) + "0bim5lmr1wh3sc5nj5axy8xa2qq8rajp13x363mb9kkrnfy5wbxk")))) (build-system haskell-build-system) (inputs `(("gmp" ,gmp) ("ncurses" ,ncurses) ("ghc-aeson" ,ghc-aeson) - ("ghc-async" ,ghc-async) ("ghc-annotated-wl-pprint" ,ghc-annotated-wl-pprint) ("ghc-ansi-terminal" ,ghc-ansi-terminal) ("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint) + ("ghc-async" ,ghc-async) ("ghc-base64-bytestring" ,ghc-base64-bytestring) + ("ghc-binary" ,ghc-binary) ("ghc-blaze-html" ,ghc-blaze-html) ("ghc-blaze-markup" ,ghc-blaze-markup) ("ghc-cheapskate" ,ghc-cheapskate) @@ -59,26 +60,21 @@ ("ghc-fingertree" ,ghc-fingertree) ("ghc-fsnotify" ,ghc-fsnotify) ("ghc-ieee754" ,ghc-ieee754) + ("ghc-megaparsec" ,ghc-megaparsec) ("ghc-mtl" ,ghc-mtl) ("ghc-network" ,ghc-network) ("ghc-optparse-applicative" ,ghc-optparse-applicative) - ("ghc-parsers" ,ghc-parsers) ("ghc-regex-tdfa" ,ghc-regex-tdfa) ("ghc-safe" ,ghc-safe) ("ghc-split" ,ghc-split) - ("ghc-tasty" ,ghc-tasty) - ("ghc-tasty-golden" ,ghc-tasty-golden) - ("ghc-tasty-rerun" ,ghc-tasty-rerun) ("ghc-terminal-size" ,ghc-terminal-size) ("ghc-text" ,ghc-text) - ("ghc-trifecta" ,ghc-trifecta) ("ghc-uniplate" ,ghc-uniplate) ("ghc-unordered-containers" ,ghc-unordered-containers) ("ghc-utf8-string" ,ghc-utf8-string) - ("ghc-vector-binary-instances" ,ghc-vector-binary-instances) ("ghc-vector" ,ghc-vector) - ("ghc-zip-archive" ,ghc-zip-archive) - ("ghc-zlib" ,ghc-zlib))) + ("ghc-vector-binary-instances" ,ghc-vector-binary-instances) + ("ghc-zip-archive" ,ghc-zip-archive))) (arguments `(#:tests? #f ; FIXME: Test suite doesn't run in a sandbox. #:configure-flags -- 2.16.2 --=-=-=--