bug#34637: inferiors example yields error from guix package

2019-02-23 Thread Martin Flack
I'm getting an error trying the example here:
https://www.gnu.org/software/guix/manual/en/html_node/Inferiors.html

```
(use-modules (guix inferior) (guix channels)
 (srfi srfi-1))   ;for 'first'

(define channels
  ;; This is the old revision from which we want to
  ;; extract guile-json.
  (list (channel
 (name 'guix)
 (url "https://git.savannah.gnu.org/git/guix.git";)
 (commit
  "65956ad3526ba09e1f7a40722c96c6ef7c0936fe"

(define inferior
  ;; An inferior representing the above revision.
  (inferior-for-channels channels))

;; Now create a manifest with the current "guile" package
;; and the old "guile-json" package.
(packages->manifest
 (list (first (lookup-inferior-packages inferior "guile-json"))
   (specification->package "guile")))
```

```
$ guix --version
guix (GNU Guix) 0964671086fb9e372894e788038aee75098e61a6
Copyright (C) 2019 the Guix authors
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
```

```
$ guix package -n -m example-inferior.scm
Updating channel 'guix' from Git repository at '
https://git.savannah.gnu.org/git/guix.git'...
Computing Guix derivation for 'x86_64-linux'... |
substitute: updating substitutes from 'https://bayfront.guixsd.org'...
100.0%
The following derivation will be built:
   /gnu/store/zxrm9a410iywcdm71crjbg2j4ggpvdbv-profile.drv
The following profile hook will be built:
   /gnu/store/gkhfa4z16x4336pbi1ha7njgdpm680yf-guix-package-cache.drv
guix package: error: exception thrown: #
```

I'm running guix on ubuntu 18.04.2.

I noticed bug 34402 was similar - I think I'm at the latest version of guix
today.

-- 

Martin


bug#34637: inferiors example yields error from guix package

2019-03-06 Thread Martin Flack
That said there was no log file, but I've pulled since, so I pulled again
and redid the test.

``
$ guix --version
guix (GNU Guix) 3546e97f38bb4dfa4c016cd7a20d4add277ca8f7
Copyright (C) 2019 the Guix authors
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

$ guix package -n -m example-inferior.scm
Updating channel 'guix' from Git repository at '
https://git.savannah.gnu.org/git/guix.git'...
Computing Guix derivation for 'x86_64-linux'... \
substitute: updating substitutes from 'https://bayfront.guixsd.org'...
100.0%
The following derivation will be built:
   /gnu/store/b5qmqrs7fjd0w7zh5zgm4an21v1alich-profile.drv
The following profile hook will be built:
   /gnu/store/gkhfa4z16x4336pbi1ha7njgdpm680yf-guix-package-cache.drv
/guix package: error: exception thrown: #

$ guix build --log-file
/gnu/store/b5qmqrs7fjd0w7zh5zgm4an21v1alich-profile.drv
guix build: error: no build log for
'/gnu/store/b5qmqrs7fjd0w7zh5zgm4an21v1alich-profile.drv'
```

There is maybe an extra clue in guix environment output, regarding repl:

```
$ guix environment --ad-hoc -m example-inferior.scm

Updating channel 'guix' from Git repository at '
https://git.savannah.gnu.org/git/guix.git'...
Computing Guix derivation for 'x86_64-linux'... |
The following derivation will be built:
   /gnu/store/caqr64cryz42nh687mg8p7dnpjk3dhqn-profile.drv
The following profile hook will be built:
   /gnu/store/gkhfa4z16x4336pbi1ha7njgdpm680yf-guix-package-cache.drv
building path(s)
`/gnu/store/yd83jmcpivf6aqzbhx5qwv59fcv40wd9-guix-package-cache'
guix: repl: command not found
Try `guix --help' for more information.
Backtrace:
   1 (primitive-load "/gnu/store/fgxq3d1zix70k2acrrcg1yn9qj0?")
   0 (scm-error misc-error #f "~A ~S" ("inferior failed" #) #f)

ERROR: In procedure scm-error:
inferior failed "/gnu/store/2gln2fjds54kb97yxyz1mfa3hrrcrwlv-profile"
builder for
`/gnu/store/gkhfa4z16x4336pbi1ha7njgdpm680yf-guix-package-cache.drv' failed
with exit code 1
cannot build derivation
`/gnu/store/caqr64cryz42nh687mg8p7dnpjk3dhqn-profile.drv': 1 dependencies
couldn't be built
guix environment: error: exception thrown: #
```


On Wed, Mar 6, 2019 at 5:46 AM Ludovic Courtès  wrote:

> Hi Martin,
>
> Martin Flack  skribis:
>
> > I'm getting an error trying the example here:
> > https://www.gnu.org/software/guix/manual/en/html_node/Inferiors.html
>
> [...]
>
> > $ guix package -n -m example-inferior.scm
> > Updating channel 'guix' from Git repository at '
> > https://git.savannah.gnu.org/git/guix.git'...
> > Computing Guix derivation for 'x86_64-linux'... |
> > substitute: updating substitutes from 'https://bayfront.guixsd.org'...
> > 100.0%
> > The following derivation will be built:
> >/gnu/store/zxrm9a410iywcdm71crjbg2j4ggpvdbv-profile.drv
> > The following profile hook will be built:
> >/gnu/store/gkhfa4z16x4336pbi1ha7njgdpm680yf-guix-package-cache.drv
> > guix package: error: exception thrown: # > [message: "build of
> > `/gnu/store/zxrm9a410iywcdm71crjbg2j4ggpvdbv-profile.drv' failed" status:
> > 100] 1f80de0>
>
> Could you paste the file reported by:
>
>   guix build --log-file
> /gnu/store/zxrm9a410iywcdm71crjbg2j4ggpvdbv-profile.drv
>
> ?
>
> TIA,
> Ludo’.
>


-- 

Martin


bug#34800: reference to inferior causing recursive guix repl call overloading machine

2019-03-09 Thread Martin Flack
I'm attempting to work around Bug 34426 locally, temporarily, until it is
fixed. From Björn's comment, it seemed that the inferiors feature could get
xmlsec functional again.

I attempted this to include this file in GUIX_PACKAGE_PATH:

```
;;; per https://debbugs.gnu.org/cgi/bugreport.cgi?bug=34426
;;; refer to older gnutls in xmlsec build and gnucash should pick it up

(define-module (my-gnucash)
  #:use-module (guix inferior)
  #:use-module (guix channels)
  #:use-module (srfi srfi-1))

(define channels
  (list (channel
 (name 'guix)
 (url "https://git.savannah.gnu.org/git/guix.git";)
 (commit "cc2e0566be1c2fa632fc3cc4e6cf705c665aa0d2"

(define inferior
  (inferior-for-channels channels))

(define-public gnutls-works
  (first (lookup-inferior-packages inferior "gnutls")))

(define-public xmlsec
  (package
(name "xmlsec")
(version "1.2.27")
(source (origin
  (method url-fetch)
  (uri (string-append "https://www.aleksey.com/xmlsec/download/";
  "xmlsec1-" version ".tar.gz"))
  (sha256
   (base32
"1dlf263mvxj9n4lnhhjawc2hv45agrwjf8kxk7k8h9g9v2x5dmwp"
(build-system gnu-build-system)
(propagated-inputs  ; according to xmlsec1.pc
 `(("libxml2" ,libxml2)
   ("libxslt" ,libxslt)))
(inputs
 `(("gnutls" ,gnutls-works)
   ("libgcrypt" ,libgcrypt)
   ("libltdl" ,libltdl)))
(native-inputs
 `(("pkg-config" ,pkg-config)))
(home-page "https://www.aleksey.com/xmlsec/";)
(synopsis "XML Security Library")
(description
 "The XML Security Library is a C library based on Libxml2.  It
supports XML security standards such as XML Signature, XML Encryption,
Canonical XML (part of Libxml2) and Exclusive Canonical XML (part of
Libxml2).")
(license (license:x11-style "file://COPYING"
"See 'COPYING' in the distribution."
```

I then executed a guix pull but needed to break it, due to massive RAM
usage.

```
Updating channel 'guix' from Git repository at '
https://git.savannah.gnu.org/git/guix.git'...
Building from this channel:
  guix  https://git.savannah.gnu.org/git/guix.git 2b613a1
;;; note: source file /home/mflack/src/guix/fixes/my-gnucash.scm
;;;   newer than compiled
/home/mflack/.cache/guile/ccache/2.2-LE-8-3.A/home/mflack/src/guix/fixes/my-gnucash.scm.go
Updating channel 'guix' from Git repository at '
https://git.savannah.gnu.org/git/guix.git'...
^C
```

A ps command showed things were going recursively out of hand:

```
  PID TTY  STAT   TIME COMMAND
...
13012 pts/1Ss 0:00  \_ -zsh
13173 pts/1Sl+0:01  |   \_
/gnu/store/r658y3cgpnf99nxjxqgjiaizx20ac4k0-guile-2.2.4/bin/guile
--no-auto-compile
/gnu/store/b4khxdizs6d865mrplbjvr22dz86mra3-profile/bin/guix pull
13187 pts/1Sl+0:00  |   \_
/gnu/store/r658y3cgpnf99nxjxqgjiaizx20ac4k0-guile-2.2.4/bin/guile
--no-auto-compile
/home/mflack/.cache/guix/inferiors/spq524ihiy7puxwygqgkxc5x5cxigodu4tl7zbwdznu6osps5g7a/bin/guix
repl -t machine
13204 pts/1Sl+0:00  |   \_
/gnu/store/r658y3cgpnf99nxjxqgjiaizx20ac4k0-guile-2.2.4/bin/guile
--no-auto-compile
/home/mflack/.cache/guix/inferiors/spq524ihiy7puxwygqgkxc5x5cxigodu4tl7zbwdznu6osps5g7a/bin/guix
repl -t machine
13214 pts/1Sl+0:00  |   \_
/gnu/store/r658y3cgpnf99nxjxqgjiaizx20ac4k0-guile-2.2.4/bin/guile
--no-auto-compile
/home/mflack/.cache/guix/inferiors/spq524ihiy7puxwygqgkxc5x5cxigodu4tl7zbwdznu6osps5g7a/bin/guix
repl -t machine
[... 593 further nesting lines ending in repl -t machine ...]
```

```
$ guix --version
guix (GNU Guix) 2b613a1a5d4d41b0b5d1f6ea7254585be0c209fa
Copyright (C) 2019 the Guix authors
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
```

Thanks!

-- 

Martin


bug#39477: sbcl-serapeum yields sbcl loading error in guix environment container

2020-02-06 Thread Martin Flack
Hello,

This command:

guix environment --container --no-cwd --ad-hoc sbcl sbcl-serapeum -- \
  sbcl --eval '(require :asdf)' --eval '(require :serapeum)' --quit

...yields an error from SBCL:

...
ASDF could not load serapeum because
Component "fare-quasiquote-extras" not found, required by
#.

debugger invoked on a ASDF/FIND-COMPONENT:MISSING-DEPENDENCY in thread
#:
  Component "fare-quasiquote-extras" not found, required by
  #
...

The same command works with other substantial packages if you replace (both
mentions of) serapeum with dramka or cl-async for example. Maybe there is a
dependency issue with either serapeum or the fare utils? How might this be
fixed?

guix --version

guix (GNU Guix) 9d0dfd9a9a7c43363a4e140c20d49f119fe6f2e3

Thanks!

-- 

Martin


bug#39775: guix pull - error: lmdbxx: unbound variable

2020-02-24 Thread Martin Flack
Today I ran guix pull which seemed to culminate in a strange guix/ui.scm
error message:

After some compiling I got:
...
The following derivations will be built:
   /gnu/store/8vz5gvrzdjlamnc1yp12whb8rhdbjif0-profile.drv
   /gnu/store/scyl68mw7lvhqixal6n3sc6mz3c5mq42-guix-0d197a63d.drv
   /gnu/store/1slvq9biga5w0vxw9sbfprlhp8pghqrf-guix-0d197a63d-modules.drv
   /gnu/store/4s06i28x7j4zwrgim0kybxgpihmvh5y7-guix-packages-modules.drv
   /gnu/store/bv94gciwr7ididw95353jy9zplk5fz6r-guix-packages.drv
   /gnu/store/6d7p4nsqk5s5286khhkr6knwwipb4igj-guix-extra.drv
   /gnu/store/ivbyq110sxmkd7xg5j9ydpdyr82nph12-guix-core-source.drv
   /gnu/store/y7h0mimx8qzilm3dy71rsbwnvbc6xija-guix-core.drv
   /gnu/store/m0nzbh77nzmp9adwj9apz1zaj29s3f63-guix-packages-base.drv
   /gnu/store/8ilihcskx52d0im5siyfimwfxg4wrskw-guix-system-modules.drv
   /gnu/store/a8284jcjgxsagm63395askn704zwsl3i-guix-system.drv
   /gnu/store/aiwqh9m0m56i6pxn6pkidip5rv7yyir7-guix-cli-modules.drv
   /gnu/store/8h3k938vrc5mm250m9z7aq2fpc21vs01-guix-cli.drv
   /gnu/store/cps608k6dy4ynkd0nnsn5s3m83mf5lvr-guix-core-modules.drv
   /gnu/store/fz8vldhr01k5100x5qaa0wdn93y4jqrd-guix-system-tests-modules.drv
   /gnu/store/fpqgrp5h6j81732c7qwqv9wd0qd8fhjw-guix-system-tests.drv

 /gnu/store/lvxdlanm440h1y1dvims2jj2rxxdfxa2-guix-packages-base-modules.drv
   /gnu/store/pk526jdflsa61y1bi71pljdqjplv6hs6-guix-config-modules.drv
   /gnu/store/h7nn3v8809bpg2nzvl8v8ibmvg2k8y3n-guix-config-source.drv
   /gnu/store/amajl0hv6saczg76nsd1hp90g9l8kjnm-config.scm.drv
   /gnu/store/mqsrbrh66gdwcqb84wk1m24c5a7bx01s-guix-config.drv
   /gnu/store/ww5i9n7iyn0p4agks44cm2qhq2czxrlx-guix-extra-modules.drv
   /gnu/store/hvms85pv6kl2jypqxa4ns1xrhk6xwm0n-guix-manual.drv
   /gnu/store/naz2w1h501bjapggaz46if0fcf5am7df-guix-translated-texinfo.drv
   /gnu/store/p3va25wpkly500w01fm9qvabnfbhzwg0-guix-command.drv
   /gnu/store/ab3a8sg6b3q3vixads1xly5i26cjkgv9-guix-module-union.drv
   /gnu/store/cklvnm977bq3ag2paiym6gbkrsf0vvgn-guix-locale-guix.drv
   /gnu/store/x0xh8p2zrf94kx75g4y2rs6q4wnffq87-guix-daemon.drv
   /gnu/store/75shnmym7m2v9wr0askjcqpmfc34pzm6-inferior-script.scm.drv
   /gnu/store/mfd7sng5bag37aj4rmifr25xz9b4s9f1-profile.drv
The following grafts will be made:
   /gnu/store/hqciyasnzqsrl0qynqm5v5724z3pv1ki-guile3.0-ssh-0.12.0.drv
   /gnu/store/dmjw1h4iw9z0c582y9hn48y7s10a1lph-libssh-0.9.3.drv
   /gnu/store/n81kdyyhidjs9c388c9rf2ix2f9gxgj2-guile3.0-git-0.3.0.drv
   /gnu/store/yahyfa3mysc3vjzrybl68qgffhix8r5a-libgit2-0.28.4.drv

 /gnu/store/ixpn7nfyypsm3gacapbbnx2apysdkwlw-guix-daemon-1.0.1-13.50299ad.drv
The following profile hooks will be built:
   /gnu/store/2z4iv79sgx84yfaib430fv7siynjszfg-manual-database.drv
   /gnu/store/7dblw0w81pwlnyr1n52szdf5w482lik9-info-dir.drv
   /gnu/store/8ivx9xfx2dzbir6619m82rnhiy13cafh-ca-certificate-bundle.drv
   /gnu/store/mn7sqip3zj0f6y3qhv6f1c39hhb8cv4m-fonts-dir.drv
   /gnu/store/vjwc21gsnzfm3n7lk00qmfmxwhsyaz5k-guix-package-cache.drv
applying 1 graft for
/gnu/store/ixpn7nfyypsm3gacapbbnx2apysdkwlw-guix-daemon-1.0.1-13.50299ad.drv...
successfully built
/gnu/store/ixpn7nfyypsm3gacapbbnx2apysdkwlw-guix-daemon-1.0.1-13.50299ad.drv
building /gnu/store/amajl0hv6saczg76nsd1hp90g9l8kjnm-config.scm.drv...
successfully built
/gnu/store/amajl0hv6saczg76nsd1hp90g9l8kjnm-config.scm.drv
building /gnu/store/ivbyq110sxmkd7xg5j9ydpdyr82nph12-guix-core-source.drv...
successfully built
/gnu/store/ivbyq110sxmkd7xg5j9ydpdyr82nph12-guix-core-source.drv
building
/gnu/store/h7nn3v8809bpg2nzvl8v8ibmvg2k8y3n-guix-config-source.drv...
successfully built
/gnu/store/h7nn3v8809bpg2nzvl8v8ibmvg2k8y3n-guix-config-source.drv
building /gnu/store/y7h0mimx8qzilm3dy71rsbwnvbc6xija-guix-core.drv...
successfully built /gnu/store/y7h0mimx8qzilm3dy71rsbwnvbc6xija-guix-core.drv
building /gnu/store/mqsrbrh66gdwcqb84wk1m24c5a7bx01s-guix-config.drv...
successfully built
/gnu/store/mqsrbrh66gdwcqb84wk1m24c5a7bx01s-guix-config.drv
building
/gnu/store/cps608k6dy4ynkd0nnsn5s3m83mf5lvr-guix-core-modules.drv...
successfully built
/gnu/store/cps608k6dy4ynkd0nnsn5s3m83mf5lvr-guix-core-modules.drv
building
/gnu/store/pk526jdflsa61y1bi71pljdqjplv6hs6-guix-config-modules.drv...
successfully built
/gnu/store/pk526jdflsa61y1bi71pljdqjplv6hs6-guix-config-modules.drv
building /gnu/store/cklvnm977bq3ag2paiym6gbkrsf0vvgn-guix-locale-guix.drv...
successfully built
/gnu/store/cklvnm977bq3ag2paiym6gbkrsf0vvgn-guix-locale-guix.drv
building
/gnu/store/naz2w1h501bjapggaz46if0fcf5am7df-guix-translated-texinfo.drv...
successfully built
/gnu/store/naz2w1h501bjapggaz46if0fcf5am7df-guix-translated-texinfo.drv
applying 2 grafts for
/gnu/store/yahyfa3mysc3vjzrybl68qgffhix8r5a-libgit2-0.28.4.drv...
successfully built
/gnu/store/yahyfa3mysc3vjzrybl68qgffhix8r5a-libgit2-0.28.4.drv
building /gnu/store/hvms85pv6kl2jypqxa4ns1xrhk6xwm0n-guix-manual.drv...
successfully built
/gnu/store/hvms85pv6kl2jypqxa4ns1xrhk6xwm0n-guix-manual.drv
applying 1 graft for
/gnu/store/n81kdyyhidjs9c388c9rf2ix2f9gxgj2-guile3.0-git-0.3.0.drv...
successful

bug#39775: guix pull - error: lmdbxx: unbound variable

2020-02-25 Thread Martin Flack
Ah, you can close this, sorry!

I think the problem was I had copied gnu/packages/databases.scm to a
custom GUIX_PACKAGE_PATH in order to apply a patch from the mailing lists,
without keeping it up-to-date with the rest of the contents of the file as
guix had further commits over time. I know there must be a way to do that
more cleanly where (a) you only override the necessary packages and (b)
somehow it becomes moot or you get notified when that package is upgraded
in mainline; but I have not yet learned how to do that! (Any tutorial?)

Cheers,
Martin



On Tue, Feb 25, 2020 at 8:13 AM zimoun  wrote:

> Dear,
>
> On Tue, 25 Feb 2020 at 06:45, Martin Flack  wrote:
>
> > 1 package in profile
> >
> > Backtrace:
> >1 (primitive-load "/home/mflack/.config/guix/current/bin/…")
> > In guix/ui.scm:
> >   1824:12  0 (run-guix-command _ . _)
> >
> > guix/ui.scm:1824:12: In procedure run-guix-command:
> > error: lmdbxx: unbound variable
>
> Could you provide the output of "guix describe" ? I mean from which
> commit do you pull?
>
> (I am not seeing this error.)
>
>
> All the best,s
> simon
>


-- 

Martin