From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Flack Subject: bug#34800: reference to inferior causing recursive guix repl call overloading machine Date: Sat, 9 Mar 2019 19:39:57 -0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000441e780583b53774" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:40702) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h2pKp-0003KC-Mu for bug-guix@gnu.org; Sat, 09 Mar 2019 22:41:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h2pKh-0005ke-2g for bug-guix@gnu.org; Sat, 09 Mar 2019 22:41:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:52268) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h2pKg-0005kK-SM for bug-guix@gnu.org; Sat, 09 Mar 2019 22:41:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h2pKg-0004Bt-Kr for bug-guix@gnu.org; Sat, 09 Mar 2019 22:41:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:40616) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h2pK6-0003F4-En for bug-guix@gnu.org; Sat, 09 Mar 2019 22:40:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h2pK5-0005Oa-88 for bug-guix@gnu.org; Sat, 09 Mar 2019 22:40:26 -0500 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:52936) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h2pK4-0005Ny-Qw for bug-guix@gnu.org; Sat, 09 Mar 2019 22:40:25 -0500 Received: by mail-wm1-x334.google.com with SMTP id f65so1192326wma.2 for ; Sat, 09 Mar 2019 19:40:24 -0800 (PST) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 34800@debbugs.gnu.org --000000000000441e780583b53774 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I'm attempting to work around Bug 34426 locally, temporarily, until it is fixed. From Bj=C3=B6rn's comment, it seemed that the inferiors feature coul= d get xmlsec functional again. I attempted this to include this file in GUIX_PACKAGE_PATH: ``` ;;; per https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D34426 ;;; 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/1 Ss 0:00 \_ -zsh 13173 pts/1 Sl+ 0:01 | \_ /gnu/store/r658y3cgpnf99nxjxqgjiaizx20ac4k0-guile-2.2.4/bin/guile --no-auto-compile /gnu/store/b4khxdizs6d865mrplbjvr22dz86mra3-profile/bin/guix pull 13187 pts/1 Sl+ 0:00 | \_ /gnu/store/r658y3cgpnf99nxjxqgjiaizx20ac4k0-guile-2.2.4/bin/guile --no-auto-compile /home/mflack/.cache/guix/inferiors/spq524ihiy7puxwygqgkxc5x5cxigodu4tl7zbwd= znu6osps5g7a/bin/guix repl -t machine 13204 pts/1 Sl+ 0:00 | \_ /gnu/store/r658y3cgpnf99nxjxqgjiaizx20ac4k0-guile-2.2.4/bin/guile --no-auto-compile /home/mflack/.cache/guix/inferiors/spq524ihiy7puxwygqgkxc5x5cxigodu4tl7zbwd= znu6osps5g7a/bin/guix repl -t machine 13214 pts/1 Sl+ 0:00 | \_ /gnu/store/r658y3cgpnf99nxjxqgjiaizx20ac4k0-guile-2.2.4/bin/guile --no-auto-compile /home/mflack/.cache/guix/inferiors/spq524ihiy7puxwygqgkxc5x5cxigodu4tl7zbwd= znu6osps5g7a/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! --=20 Martin --000000000000441e780583b53774 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm attempting to work around Bug 34426 locally, te= mporarily, until it is fixed. From=C2=A0Bj=C3=B6rn's comment, it seemed= that the inferiors feature could get xmlsec functional again.

I attempted this to include this file = in=C2=A0GUIX_PACKAGE_PATH:

```
;;; refer to older gnutls in xmlsec build and = gnucash should pick it up

(define-module (my-gnucash)
=C2=A0= #:use-module (guix inferior)
=C2=A0 #:use-module (gu= ix channels)
=C2=A0 #:use-module (srfi srfi-1))
=

(define channels
=C2=A0 (list (channel
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0(name 'guix)
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0(url "https://git.savannah.gnu.org/git/guix.git")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(commit "cc2e0566be1c2fa632fc3cc4= e6cf705c665aa0d2"))))

(define inferior
=C2=A0 (inferior-for-channels chann= els))

(define-public gnutl= s-works
=C2=A0 (first (lookup-inferior-packages infer= ior "gnutls")))

= (define-public xmlsec
=C2=A0 (package
=C2=A0 =C2=A0 (name "xmlsec")
=C2= =A0 =C2=A0 (version "1.2.27")
=C2=A0 =C2=A0= (source (origin
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 (method url-fetch)
=C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 (uri (string-append "https://www.aleksey.com/xmlsec/download/"
<= div dir=3D"ltr">=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 &qu= ot;1dlf263mvxj9n4lnhhjawc2hv45agrwjf8kxk7k8h9g9v2x5dmwp"))))
=C2=A0 =C2=A0 (build-system gnu-build-system)
=C2=A0 =C2=A0 (synopsis &q= uot;XML Security Library")
=C2=A0 =C2=A0 (descri= ption
=C2=A0 =C2=A0 =C2=A0"The XML Security Libr= ary is a C library based on Libxml2.=C2=A0 It
support= s XML security standards such as XML Signature, XML Encryption,
Canonical XML (part of Libxml2) and Exclusive Canonical XML (par= t of
Libxml2).")
=C2=A0 = =C2=A0 (license (license:x11-style "file://COPYING"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "See 'COPYING' i= n the distribution."))))
```

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

```
Upda= ting channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/g= uix.git'...
Building from this channel:
=C2=A0 = guix=C2=A0 =C2=A0 =C2=A0 https://git.savannah.gnu.org/git/guix.git 2b613a1
;;; note: source file /home/mflack/src/guix= /fixes/my-gnucash.scm
;;;=C2=A0 =C2=A0 =C2=A0 =C2=A0newer than co= mpiled /home/mflack/.cache/guile/ccache/2.2-LE-8-3.A/home/mflack/src/guix/f= ixes/my-gnucash.scm.go
Updating channel 'guix' from Git r= epository at 'https://git.savannah.gnu.org/git/guix.git'...
^C
=
```

A ps command showed things were goi= ng recursively out of hand:

```
=C2= =A0 PID TTY=C2=A0 =C2=A0 =C2=A0 STAT=C2=A0 =C2=A0TIME COMMAND
...=
13012 pts/1=C2=A0 =C2=A0 Ss=C2=A0 =C2=A0 =C2=A00:00=C2=A0 =C2=A0= =C2=A0 \_ -zsh
13173 pts/1=C2=A0 =C2=A0 Sl+=C2=A0 =C2=A0 0:01=C2= =A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0\_ /gnu/store/r658y3cgpnf99nxjxqgjiaizx20ac= 4k0-guile-2.2.4/bin/guile --no-auto-compile /gnu/store/b4khxdizs6d865mrplbj= vr22dz86mra3-profile/bin/guix pull
13187 pts/1=C2=A0 =C2=A0 Sl+= =C2=A0 =C2=A0 0:00=C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0 =C2=A0\_ /gnu/= store/r658y3cgpnf99nxjxqgjiaizx20ac4k0-guile-2.2.4/bin/guile --no-auto-comp= ile /home/mflack/.cache/guix/inferiors/spq524ihiy7puxwygqgkxc5x5cxigodu4tl7= zbwdznu6osps5g7a/bin/guix repl -t machine
13204 pts/1=C2=A0 =C2= =A0 Sl+=C2=A0 =C2=A0 0:00=C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0\_ /gnu/store/r658y3cgpnf99nxjxqgjiaizx20ac4k0-guile-2.2.4/bin= /guile --no-auto-compile /home/mflack/.cache/guix/inferiors/spq524ihiy7puxw= ygqgkxc5x5cxigodu4tl7zbwdznu6osps5g7a/bin/guix repl -t machine
13= 214 pts/1=C2=A0 =C2=A0 Sl+=C2=A0 =C2=A0 0:00=C2=A0 =C2=A0 =C2=A0 |=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\_ /gnu/store/r658y3cgpnf99= nxjxqgjiaizx20ac4k0-guile-2.2.4/bin/guile --no-auto-compile /home/mflack/.c= ache/guix/inferiors/spq524ihiy7puxwygqgkxc5x5cxigodu4tl7zbwdznu6osps5g7a/bi= n/guix repl -t machine
[... 593 further nesting lines endin= g in repl -t machine ...]
```

```
<= div>
$ guix --version
guix (GNU Guix) 2b613a1a5d4d41b0b5d1f6e= a7254585be0c209fa
Copyright (C) 2019 the Guix authors
L= icense 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.
```

Thanks!

--

Martin
--000000000000441e780583b53774--