Message ID | 858ebb8d740c7bfd0d55eaaf8a67db2298d4081a.1689682321.git.pukkamustard@posteo.net |
---|---|
State | New |
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 80EB427BBEA; Tue, 18 Jul 2023 13:25:44 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id A27D827BBE2 for <patchwork@mira.cbaines.net>; Tue, 18 Jul 2023 13:25:43 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1qLjlL-0004U6-Df; Tue, 18 Jul 2023 08:25:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1qLjlH-0004S7-KN for guix-patches@gnu.org; Tue, 18 Jul 2023 08:25:03 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1qLjlH-0007U6-Bf for guix-patches@gnu.org; Tue, 18 Jul 2023 08:25:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1qLjlG-0002Lc-R7; Tue, 18 Jul 2023 08:25:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64249] [PATCH ocaml-team v3 2/6] gnu: coq: Update to 8.17.1. Resent-From: pukkamustard <pukkamustard@posteo.net> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: julien@lepiller.eu, pukkamustard@posteo.net, guix-patches@gnu.org Resent-Date: Tue, 18 Jul 2023 12:25:02 +0000 Resent-Message-ID: <handler.64249.B64249.16896830918952@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64249 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64249@debbugs.gnu.org Cc: pukkamustard <pukkamustard@posteo.net>, Julien Lepiller <julien@lepiller.eu>, pukkamustard <pukkamustard@posteo.net> X-Debbugs-Original-Xcc: Julien Lepiller <julien@lepiller.eu>, pukkamustard <pukkamustard@posteo.net> Received: via spool by 64249-submit@debbugs.gnu.org id=B64249.16896830918952 (code B ref 64249); Tue, 18 Jul 2023 12:25:02 +0000 Received: (at 64249) by debbugs.gnu.org; 18 Jul 2023 12:24:51 +0000 Received: from localhost ([127.0.0.1]:51886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1qLjl4-0002KJ-Qg for submit@debbugs.gnu.org; Tue, 18 Jul 2023 08:24:51 -0400 Received: from mout01.posteo.de ([185.67.36.65]:54193) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <pukkamustard@posteo.net>) id 1qLjl2-0002Jx-JE for 64249@debbugs.gnu.org; Tue, 18 Jul 2023 08:24:49 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 0DB16240027 for <64249@debbugs.gnu.org>; Tue, 18 Jul 2023 14:24:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1689683083; bh=UaEQVNH8CpU+ilH6DM8veOcIBQz7pq0KN7sbcKxPb00=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=V0KmjmWZNS2E9AsnYjuCVlQlObWlnnRSgQJqg38u7q/VbWuqMBSZ0AVpHWpM/s1/8 ho5yWkf4+FTpADBhT5z500KJO9JMkOhecRIeR+kr2x+TNRiAMcV/K2jga1bJg75IFv yfqZTXreHWpz2BY6SfPkCbqJ2Xy7O4BusPk0lbVncm8YH5GaXaxirAUX75nUyEjtiD xyP8FlwkWhKJ/ODED46+c2LpJTQugn+u8BdxoMr8UsZ6UTnxY8P2h9P/ypNNNa6dDs Av/tY8LeGWkDiFBHBPn34gnwo4koZxiUzosyD6K1EQvHpBVpJZZTTY/SQsUPeKJuTr nYr/zwEHGAUwg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4R4ynQ29f9z6txZ; Tue, 18 Jul 2023 14:24:42 +0200 (CEST) From: pukkamustard <pukkamustard@posteo.net> Date: Tue, 18 Jul 2023 12:23:59 +0000 Message-Id: <858ebb8d740c7bfd0d55eaaf8a67db2298d4081a.1689682321.git.pukkamustard@posteo.net> In-Reply-To: <cover.1689682320.git.pukkamustard@posteo.net> References: <cover.1689682320.git.pukkamustard@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series |
Update and break opam (but nothing else)
|
|
Commit Message
pukkamustard
July 18, 2023, 12:23 p.m. UTC
* gnu/packages/coq.scm (coq-core, coq-stdlib, coq): Update to 8.17.1 and remove test-target argument. --- gnu/packages/coq.scm | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-)
Comments
Hi, I'm not sure why, but this is breaking all coq dependents, with messages similar to: cannot guess a path for Coq libraries; please use -coqlib option or ensure you have installed the package containing Coq's stdlib (coq-stdlib in OPAM) If you intend to use Coq without a standard library, the -boot -noinit options must be used. I think this is because coq-stdlib is mostly empty for some reason. Le Tue, 18 Jul 2023 12:23:59 +0000, pukkamustard <pukkamustard@posteo.net> a écrit : > * gnu/packages/coq.scm (coq-core, coq-stdlib, coq): Update to 8.17.1 > and remove test-target argument. > --- > gnu/packages/coq.scm | 24 +++++------------------- > 1 file changed, 5 insertions(+), 19 deletions(-) > > diff --git a/gnu/packages/coq.scm b/gnu/packages/coq.scm > index 09ca4030ea..3332707a71 100644 > --- a/gnu/packages/coq.scm > +++ b/gnu/packages/coq.scm > @@ -53,7 +53,7 @@ (define-module (gnu packages coq) > (define-public coq-core > (package > (name "coq-core") > - (version "8.16.1") > + (version "8.17.1") > (source > (origin > (method git-fetch) > @@ -63,7 +63,7 @@ (define-public coq-core > (file-name (git-file-name name version)) > (sha256 > (base32 > - "0ljpqhh5lfsim29fcfp2xfcvm3j84pf1mb0gnpdr8vcqqw7mqwpf")) > + "0gg6hizq0i08lk741b579cbswhy6qvkh6inc3d3i5a2af98psq63")) > (patches (search-patches "coq-fix-envvars.patch")))) > (native-search-paths > (list (search-path-specification > @@ -83,8 +83,7 @@ (define-public coq-core > (native-inputs > (list ocaml-ounit2 which)) > (arguments > - `(#:package "coq-core" > - #:test-target ".")) > + `(#:package "coq-core")) > (properties '((upstream-name . "coq"))) ; also for inherited > packages (home-page "https://coq.inria.fr") > (synopsis "Proof assistant for higher-order logic") > @@ -101,19 +100,7 @@ (define-public coq-stdlib > (inherit coq-core) > (name "coq-stdlib") > (arguments > - `(#:package "coq-stdlib" > - #:test-target "." > - #:phases > - (modify-phases %standard-phases > - (add-before 'build 'fix-dune > - (lambda _ > - (substitute* "user-contrib/Ltac2/dune" > - (("coq-core.plugins.ltac2") > - (string-join > - (map (lambda (plugin) (string-append > "coq-core.plugins." plugin)) > - '("ltac2" "number_string_notation" "tauto" > "cc" > - "firstorder")) > - " ")))))))) > + `(#:package "coq-stdlib")) > (inputs > (list coq-core gmp ocaml-zarith)) > (native-inputs '()))) > @@ -123,8 +110,7 @@ (define-public coq > (inherit coq-core) > (name "coq") > (arguments > - `(#:package "coq" > - #:test-target ".")) > + `(#:package "coq")) > (propagated-inputs > (list coq-core coq-stdlib)) > (native-inputs '())))
Hi, Julien Lepiller <julien@lepiller.eu> writes: > I'm not sure why, but this is breaking all coq dependents, with > messages similar to: > > cannot guess a path for Coq libraries; please use -coqlib option or > ensure you have installed the package containing Coq's stdlib > (coq-stdlib in OPAM) If you intend to use Coq without a standard > library, the -boot -noinit options must be used. > > I think this is because coq-stdlib is mostly empty for some reason. A couple of build failures later this is where I'm at: - Coq 8.17.1 includes considerable changes to the build system. - Some `dune` files are autogenerated with `make dunestrap` (which runs the OCaml program `tools/dune_rule_gen/gen_rules.ml`. - In the v3 patches I submitted `make dunestrap` was not being run, resulting in missing dune files and a quite empty `coq-stdlib` package. - The 8.17.1 generated dune files for `coq-stdlib` reference things in `coq-core` directly with relative paths instead of letting dune/findlib find them (with entries in the `libraries` stanza in dune files). This makes building `coq-core` and `coq-stdlib` seperately more tricky. I've asked in #coq for ideas on how `coq-stdlib` and `coq-core` can be built seperately/kept in separate packages. Nothing yet. What do you think about merging `coq-core`, `coq-stdlib` and `coq` into a single package? Not as nice as the current situation, but maybe a way to go without too many custom patches/hacks? CC: Arnaud and Josselin who might be interested in Coq stuff. Thanks, pukkamustard >> * gnu/packages/coq.scm (coq-core, coq-stdlib, coq): Update to 8.17.1 >> and remove test-target argument. >> --- >> gnu/packages/coq.scm | 24 +++++------------------- >> 1 file changed, 5 insertions(+), 19 deletions(-) >> >> diff --git a/gnu/packages/coq.scm b/gnu/packages/coq.scm >> index 09ca4030ea..3332707a71 100644 >> --- a/gnu/packages/coq.scm >> +++ b/gnu/packages/coq.scm >> @@ -53,7 +53,7 @@ (define-module (gnu packages coq) >> (define-public coq-core >> (package >> (name "coq-core") >> - (version "8.16.1") >> + (version "8.17.1") >> (source >> (origin >> (method git-fetch) >> @@ -63,7 +63,7 @@ (define-public coq-core >> (file-name (git-file-name name version)) >> (sha256 >> (base32 >> - "0ljpqhh5lfsim29fcfp2xfcvm3j84pf1mb0gnpdr8vcqqw7mqwpf")) >> + "0gg6hizq0i08lk741b579cbswhy6qvkh6inc3d3i5a2af98psq63")) >> (patches (search-patches "coq-fix-envvars.patch")))) >> (native-search-paths >> (list (search-path-specification >> @@ -83,8 +83,7 @@ (define-public coq-core >> (native-inputs >> (list ocaml-ounit2 which)) >> (arguments >> - `(#:package "coq-core" >> - #:test-target ".")) >> + `(#:package "coq-core")) >> (properties '((upstream-name . "coq"))) ; also for inherited >> packages (home-page "https://coq.inria.fr") >> (synopsis "Proof assistant for higher-order logic") >> @@ -101,19 +100,7 @@ (define-public coq-stdlib >> (inherit coq-core) >> (name "coq-stdlib") >> (arguments >> - `(#:package "coq-stdlib" >> - #:test-target "." >> - #:phases >> - (modify-phases %standard-phases >> - (add-before 'build 'fix-dune >> - (lambda _ >> - (substitute* "user-contrib/Ltac2/dune" >> - (("coq-core.plugins.ltac2") >> - (string-join >> - (map (lambda (plugin) (string-append >> "coq-core.plugins." plugin)) >> - '("ltac2" "number_string_notation" "tauto" >> "cc" >> - "firstorder")) >> - " ")))))))) >> + `(#:package "coq-stdlib")) >> (inputs >> (list coq-core gmp ocaml-zarith)) >> (native-inputs '()))) >> @@ -123,8 +110,7 @@ (define-public coq >> (inherit coq-core) >> (name "coq") >> (arguments >> - `(#:package "coq" >> - #:test-target ".")) >> + `(#:package "coq")) >> (propagated-inputs >> (list coq-core coq-stdlib)) >> (native-inputs '())))
I don't see how one would use coq-core without coq-stdlib and coq-stdlib depends on coq-core, so I think it's fine to merge these packages. It might make the package definition a bit harder, since there isn't a single dune target, but I'm fine with it. Le 24 juillet 2023 16:54:05 GMT+02:00, pukkamustard <pukkamustard@posteo.net> a écrit : > >Hi, > >Julien Lepiller <julien@lepiller.eu> writes: > >> I'm not sure why, but this is breaking all coq dependents, with >> messages similar to: >> >> cannot guess a path for Coq libraries; please use -coqlib option or >> ensure you have installed the package containing Coq's stdlib >> (coq-stdlib in OPAM) If you intend to use Coq without a standard >> library, the -boot -noinit options must be used. >> >> I think this is because coq-stdlib is mostly empty for some reason. > >A couple of build failures later this is where I'm at: > >- Coq 8.17.1 includes considerable changes to the build system. > >- Some `dune` files are autogenerated with `make dunestrap` (which runs > the OCaml program `tools/dune_rule_gen/gen_rules.ml`. > >- In the v3 patches I submitted `make dunestrap` was not being run, > resulting in missing dune files and a quite empty `coq-stdlib` > package. > >- The 8.17.1 generated dune files for `coq-stdlib` reference things in > `coq-core` directly with relative paths instead of letting > dune/findlib find them (with entries in the `libraries` stanza in dune > files). This makes building `coq-core` and `coq-stdlib` seperately > more tricky. > >I've asked in #coq for ideas on how `coq-stdlib` and `coq-core` can be >built seperately/kept in separate packages. Nothing yet. > >What do you think about merging `coq-core`, `coq-stdlib` and `coq` into >a single package? Not as nice as the current situation, but maybe a way >to go without too many custom patches/hacks? > >CC: Arnaud and Josselin who might be interested in Coq stuff. > >Thanks, >pukkamustard > > >>> * gnu/packages/coq.scm (coq-core, coq-stdlib, coq): Update to 8.17.1 >>> and remove test-target argument. >>> --- >>> gnu/packages/coq.scm | 24 +++++------------------- >>> 1 file changed, 5 insertions(+), 19 deletions(-) >>> >>> diff --git a/gnu/packages/coq.scm b/gnu/packages/coq.scm >>> index 09ca4030ea..3332707a71 100644 >>> --- a/gnu/packages/coq.scm >>> +++ b/gnu/packages/coq.scm >>> @@ -53,7 +53,7 @@ (define-module (gnu packages coq) >>> (define-public coq-core >>> (package >>> (name "coq-core") >>> - (version "8.16.1") >>> + (version "8.17.1") >>> (source >>> (origin >>> (method git-fetch) >>> @@ -63,7 +63,7 @@ (define-public coq-core >>> (file-name (git-file-name name version)) >>> (sha256 >>> (base32 >>> - "0ljpqhh5lfsim29fcfp2xfcvm3j84pf1mb0gnpdr8vcqqw7mqwpf")) >>> + "0gg6hizq0i08lk741b579cbswhy6qvkh6inc3d3i5a2af98psq63")) >>> (patches (search-patches "coq-fix-envvars.patch")))) >>> (native-search-paths >>> (list (search-path-specification >>> @@ -83,8 +83,7 @@ (define-public coq-core >>> (native-inputs >>> (list ocaml-ounit2 which)) >>> (arguments >>> - `(#:package "coq-core" >>> - #:test-target ".")) >>> + `(#:package "coq-core")) >>> (properties '((upstream-name . "coq"))) ; also for inherited >>> packages (home-page "https://coq.inria.fr") >>> (synopsis "Proof assistant for higher-order logic") >>> @@ -101,19 +100,7 @@ (define-public coq-stdlib >>> (inherit coq-core) >>> (name "coq-stdlib") >>> (arguments >>> - `(#:package "coq-stdlib" >>> - #:test-target "." >>> - #:phases >>> - (modify-phases %standard-phases >>> - (add-before 'build 'fix-dune >>> - (lambda _ >>> - (substitute* "user-contrib/Ltac2/dune" >>> - (("coq-core.plugins.ltac2") >>> - (string-join >>> - (map (lambda (plugin) (string-append >>> "coq-core.plugins." plugin)) >>> - '("ltac2" "number_string_notation" "tauto" >>> "cc" >>> - "firstorder")) >>> - " ")))))))) >>> + `(#:package "coq-stdlib")) >>> (inputs >>> (list coq-core gmp ocaml-zarith)) >>> (native-inputs '()))) >>> @@ -123,8 +110,7 @@ (define-public coq >>> (inherit coq-core) >>> (name "coq") >>> (arguments >>> - `(#:package "coq" >>> - #:test-target ".")) >>> + `(#:package "coq")) >>> (propagated-inputs >>> (list coq-core coq-stdlib)) >>> (native-inputs '()))) >
diff --git a/gnu/packages/coq.scm b/gnu/packages/coq.scm index 09ca4030ea..3332707a71 100644 --- a/gnu/packages/coq.scm +++ b/gnu/packages/coq.scm @@ -53,7 +53,7 @@ (define-module (gnu packages coq) (define-public coq-core (package (name "coq-core") - (version "8.16.1") + (version "8.17.1") (source (origin (method git-fetch) @@ -63,7 +63,7 @@ (define-public coq-core (file-name (git-file-name name version)) (sha256 (base32 - "0ljpqhh5lfsim29fcfp2xfcvm3j84pf1mb0gnpdr8vcqqw7mqwpf")) + "0gg6hizq0i08lk741b579cbswhy6qvkh6inc3d3i5a2af98psq63")) (patches (search-patches "coq-fix-envvars.patch")))) (native-search-paths (list (search-path-specification @@ -83,8 +83,7 @@ (define-public coq-core (native-inputs (list ocaml-ounit2 which)) (arguments - `(#:package "coq-core" - #:test-target ".")) + `(#:package "coq-core")) (properties '((upstream-name . "coq"))) ; also for inherited packages (home-page "https://coq.inria.fr") (synopsis "Proof assistant for higher-order logic") @@ -101,19 +100,7 @@ (define-public coq-stdlib (inherit coq-core) (name "coq-stdlib") (arguments - `(#:package "coq-stdlib" - #:test-target "." - #:phases - (modify-phases %standard-phases - (add-before 'build 'fix-dune - (lambda _ - (substitute* "user-contrib/Ltac2/dune" - (("coq-core.plugins.ltac2") - (string-join - (map (lambda (plugin) (string-append "coq-core.plugins." plugin)) - '("ltac2" "number_string_notation" "tauto" "cc" - "firstorder")) - " ")))))))) + `(#:package "coq-stdlib")) (inputs (list coq-core gmp ocaml-zarith)) (native-inputs '()))) @@ -123,8 +110,7 @@ (define-public coq (inherit coq-core) (name "coq") (arguments - `(#:package "coq" - #:test-target ".")) + `(#:package "coq")) (propagated-inputs (list coq-core coq-stdlib)) (native-inputs '())))