all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric Bavier <ericbavier@centurylink.net>
To: julien@lepiller.eu
Cc: guix-devel@gnu.org, guix-commits@gnu.org
Subject: 02/02: import: Update opam importer.
Date: Tue, 18 Dec 2018 21:26:18 -0600	[thread overview]
Message-ID: <20181218212618.4f655d4e@centurylink.net> (raw)
In-Reply-To: 20181217204500.3770F20538@vcs0.savannah.gnu.org

[-- Attachment #1: Type: text/plain, Size: 3468 bytes --]

> commit cce654fabdf09cac7d18f9bad842ba8445aa022c
> Author: Julien Lepiller <address@hidden>
> Date:   Mon Dec 17 21:05:35 2018 +0100
> 
>     import: Update opam importer.
>     
>     * guix/import/opam.scm: Update importer for opam 2.
>     * tests/opam.scm: Update tests for the opam 2 importer.
> ---
>  guix/import/opam.scm | 305 ++++++++++++++++++++++++++++-----------------------
>  po/guix/POTFILES.in  |   1 +
>  tests/opam.scm       | 225 +++++++++++++++++++++++++------------
>  3 files changed, 321 insertions(+), 210 deletions(-)
> 
> diff --git a/guix/import/opam.scm b/guix/import/opam.scm
> index f252bdc..c42a5d7 100644
> --- a/guix/import/opam.scm
> +++ b/guix/import/opam.scm
> @@ -17,132 +17,108 @@
>  ;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
>  
>  (define-module (guix import opam)
> +  #:use-module (ice-9 ftw)
>    #:use-module (ice-9 match)
> -  #:use-module (ice-9 vlist)
> +  #:use-module (ice-9 peg)

This commit breaks Guix compatibility with Guile 2.0:

  $ guix build -K --with-commit=guile2.0-guix=cce654fabf guile2.0-guix
<...snip...>
  LOAD     guix/import/opam.scm Backtrace:
In ice-9/r4rs.scm:
  90: 19 [dynamic-wind #<procedure d2f450 at ice-9/eval.scm:416:20 ()> ...]
In ice-9/eval.scm:
 432: 18 [eval # #]
 432: 17 [eval # #]
 481: 16 [lp (#<fluid 5>) (#<output: void 4ba000>)]
In ice-9/boot-9.scm:
2900: 15 [resolve-interface (guix import opam) #:select ...]
2825: 14 [#<procedure 651ac0 at ice-9/boot-9.scm:2813:4 (name #:optional autoload version #:key ensure)> # ...]
In ice-9/r4rs.scm:
  90: 13 [dynamic-wind #<procedure 14fbd80 at ice-9/eval.scm:416:20 ()> ...]
In ice-9/boot-9.scm:
3101: 12 [try-module-autoload (guix import opam) #f]
2412: 11 [save-module-excursion #<procedure 14fba20 at ice-9/boot-9.scm:3102:17 ()>]
3121: 10 [#<procedure 14fba20 at ice-9/boot-9.scm:3102:17 ()>]
In unknown file:
   ?: 9 [primitive-load-path "guix/import/opam" ...]
In ice-9/eval.scm:
 505: 8 [#<procedure 59e5e0 at ice-9/eval.scm:499:4 (exp)> (define-module # # ...)]
In ice-9/psyntax.scm:
1107: 7 [expand-top-sequence ((define-module # # # ...)) () ((top)) ...]
 990: 6 [scan ((define-module (guix import opam) #:use-module ...)) () ...]
 279: 5 [scan ((#(syntax-object let # ...) (#) (# #) ...)) () ...]
In ice-9/eval.scm:
 411: 4 [eval # ()]
In ice-9/boot-9.scm:
2987: 3 [define-module* (guix import opam) #:filename ...]
2962: 2 [resolve-imports (((ice-9 ftw)) ((ice-9 match)) ((ice-9 peg)) ...)]
2903: 1 [resolve-interface (ice-9 peg) #:select ...]
In unknown file:
   ?: 0 [scm-error misc-error #f "~A ~S" ("no code for module" (ice-9 peg)) #f]

ERROR: In procedure scm-error:
ERROR: no code for module (ice-9 peg)
make[2]: *** [Makefile:5572: make-go] Error 1
make[2]: Leaving directory '/tmp/guix-build-guile2.0-guix-git.cce654f.drv-0/source'
make[1]: *** [Makefile:4653: all-recursive] Error 1
make[1]: Leaving directory '/tmp/guix-build-guile2.0-guix-git.cce654f.drv-0/source'
make: *** [Makefile:3269: all] Error 2


I'm hesitant to suggest that we just update our requirements to Guile
2.2 (though I know Ludovic wants to do that eventually), since I think
that would just makes things that much harder for anyone who wants to
build Guix from source on a foreign distro.  Debian stable does not
have Guile 2.2 (it's at Guile 2.0.13).

OTOH, I'm don't now how to keep this code working on Guile 2.0.13.

`~Eric

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

             reply	other threads:[~2018-12-19  3:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-19  3:26 Eric Bavier [this message]
2018-12-19 14:59 ` 02/02: import: Update opam importer Ludovic Courtès
2018-12-19 23:19   ` Eric Bavier

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=20181218212618.4f655d4e@centurylink.net \
    --to=ericbavier@centurylink.net \
    --cc=guix-commits@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=julien@lepiller.eu \
    /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.