GNU bug report logs - #32456
'add-to-store' RPC rejects symlinks

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Oleg Pykhalov <go.wigust@HIDDEN>; dated Thu, 16 Aug 2018 16:10:02 UTC; Maintainer for guix is bug-guix@HIDDEN.
Changed bug title to ''add-to-store' RPC rejects symlinks' from 'Guile failed to call package-derivation without pre-inst-env' Request was from ludo@HIDDEN (Ludovic Courtès) to control <at> debbugs.gnu.org. Full text available.

Message received at 32456 <at> debbugs.gnu.org:


Received: (at 32456) by debbugs.gnu.org; 21 Aug 2018 10:05:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 21 06:05:53 2018
Received: from localhost ([127.0.0.1]:56164 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fs3Xt-0008U6-AC
	for submit <at> debbugs.gnu.org; Tue, 21 Aug 2018 06:05:53 -0400
Received: from eggs.gnu.org ([208.118.235.92]:32829)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1fs3Xs-0008Tv-Bg
 for 32456 <at> debbugs.gnu.org; Tue, 21 Aug 2018 06:05:52 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1fs3Xg-0002wJ-BY
 for 32456 <at> debbugs.gnu.org; Tue, 21 Aug 2018 06:05:47 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56538)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1fs3Xg-0002w3-5W; Tue, 21 Aug 2018 06:05:40 -0400
Received: from [193.50.110.186] (port=44800 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1fs3Xf-0004AL-SN; Tue, 21 Aug 2018 06:05:40 -0400
From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: Oleg Pykhalov <go.wigust@HIDDEN>
Subject: Re: bug#32456: Guile failed to call package-derivation without
 pre-inst-env
References: <87lg96qoo0.fsf@HIDDEN> <877eklgy5r.fsf@HIDDEN>
 <876004vkg6.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 4 Fructidor an 226 de la =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Tue, 21 Aug 2018 12:05:38 +0200
In-Reply-To: <876004vkg6.fsf@HIDDEN> (Oleg Pykhalov's message of "Mon, 20
 Aug 2018 23:42:33 +0300")
Message-ID: <876004qbkd.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 32456
Cc: 32456 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

Hi,

Oleg Pykhalov <go.wigust@HIDDEN> skribis:

> natsu@magnolia ~/src/guix$ for path in $(printenv GUILE_LOAD_PATH | tr ':=
' '\n'); do echo -e "\n"; env GUILE_LOAD_PATH=3D$path pr
> intenv GUILE_LOAD_PATH; env GUILE_LOAD_PATH=3D$path guile -c '(use-module=
s (guix) (guix ui) (guix store)) (format #t "~s~%" (pack
> age-derivation (open-connection) (@@ (gnu packages base) hello)))'; done
>
>
> /home/natsu/.guix-profile/share/guile/site/2.2
> Backtrace:
> In guix/packages.scm:
>    923:16 19 (expand-input #<build-daemon 256.97 20fdaf0> #<package=E2=80=
=A6> =E2=80=A6)
>    878:14 18 (cache! #<weak-table 6/113> #<package perl-boot0@HIDDEN=E2=80=
=A6> =E2=80=A6)
> In unknown file:
>           17 (_ #<procedure thunk ()> #<procedure list _> #<undefined>)
> In guix/packages.scm:
>   1202:22 16 (thunk)
>   1135:25 15 (bag->derivation #<build-daemon 256.97 20fdaf0> #<<bag=E2=80=
=A6> =E2=80=A6)
> In srfi/srfi-1.scm:
>    592:29 14 (map1 (("source" #<origin "mirror://cpan/src/5.0/p=E2=80=A6>=
) =E2=80=A6))
>    592:17 13 (map1 (("make" #<package make-boot0@HIDDEN gnu/pack=E2=80=A6>=
) =E2=80=A6))
> In guix/packages.scm:
>    923:16 12 (expand-input #<build-daemon 256.97 20fdaf0> #<package=E2=80=
=A6> =E2=80=A6)
>    878:14 11 (cache! #<weak-table 6/113> #<package make-boot0@HIDDEN=E2=80=
=A6> =E2=80=A6)
> In unknown file:
>           10 (_ #<procedure thunk ()> #<procedure list _> #<undefined>)
> In guix/packages.scm:
>   1202:22  9 (thunk)
> In guix/derivations.scm:
>   1242:24  8 (build-expression->derivation #<build-daemon 256.97 20=E2=80=
=A6> =E2=80=A6)
>   1004:18  7 (imported-files #<build-daemon 256.97 20fdaf0> ((. #) =E2=80=
=A6) =E2=80=A6)
> In srfi/srfi-1.scm:
>    592:29  6 (map1 (("guix/build/gnu-build-system.scm" . "/home/=E2=80=A6=
") =E2=80=A6))
>    592:29  5 (map1 (("guix/build/utils.scm" . "/home/natsu/.guix=E2=80=A6=
") =E2=80=A6))
>    592:29  4 (map1 (("guix/build/gremlin.scm" . "/home/natsu/.gu=E2=80=A6=
") =E2=80=A6))
>    592:17  3 (map1 (("guix/elf.scm" . "/home/natsu/.guix-profile/s=E2=80=
=A6")))
> In guix/derivations.scm:
>   1007:31  2 (_ _)
> In guix/store.scm:
>    948:24  1 (_ #<build-daemon 256.97 20fdaf0> "elf.scm" #f "sha256" =E2=
=80=A6)
>    928:31  0 (add-to-store #<build-daemon 256.97 20fdaf0> _ #f "sha=E2=80=
=A6" =E2=80=A6)
>
> guix/store.scm:928:31: In procedure add-to-store:
> Throw to key `srfi-34' with args `(#<condition &nix-protocol-error [messa=
ge: "regular file expected" status: 1] 3539000>)'.

The problem here is that
~/.guix-profile/share/guile/site/2.2/guix/elf.scm is a symlink.  When
doing an =E2=80=98add-to-store=E2=80=99 RPC with #:recursive? #f, we pass t=
hat file
name, but the daemon rejects it because it=E2=80=99s not a regular file (it=
=E2=80=99s a
symlink; see nix-daemon.cc:416.)

I don=E2=80=99t understand the purpose of this check in nix-daemon.cc; I th=
ink
it=E2=80=99s useless.  However, removing it alone doesn=E2=80=99t solve the=
 problem for
clients talking to old daemons.  So we=E2=80=99d need =E2=80=98add-to-store=
=E2=80=99 to resolve
symlinks when it=E2=80=99s talking to an old daemon.


However, I don=E2=80=99t understand why guix/elf.scm is a symlink in your
profile.  First that means you installed the =E2=80=98guix=E2=80=99 package=
 in your
profile, which is not recommended (better have it in the =E2=80=98guix
pull=E2=80=99-managed profile.)  Second, that also means that two guix/
subdirectories were merged into one by =E2=80=98union-build=E2=80=99, which=
 is
surprising: presumably only =E2=80=98guix=E2=80=99 provides such a subdirec=
tory.
What do these commands report:

  ls -l ~/.guix-profile/share/guile/site/2.2/guix
  ls -l $(readlink ~/.guix-profile/share/guile/site/2.2/guix)

?

Thanks,
Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#32456; Package guix. Full text available.

Message received at 32456 <at> debbugs.gnu.org:


Received: (at 32456) by debbugs.gnu.org; 20 Aug 2018 20:42:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 20 16:42:47 2018
Received: from localhost ([127.0.0.1]:55943 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1frr0h-00035F-2U
	for submit <at> debbugs.gnu.org; Mon, 20 Aug 2018 16:42:47 -0400
Received: from mail-lj1-f176.google.com ([209.85.208.176]:37136)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <go.wigust@HIDDEN>) id 1frr0g-000351-4n
 for 32456 <at> debbugs.gnu.org; Mon, 20 Aug 2018 16:42:46 -0400
Received: by mail-lj1-f176.google.com with SMTP id v9-v6so12623152ljk.4
 for <32456 <at> debbugs.gnu.org>; Mon, 20 Aug 2018 13:42:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=60WxWXC+AwVGgHLZaICpoibjr5aOpj5BLkkx1Vkb0fM=;
 b=kSWt/0UEp8oWSQb31r02Bhn6UxqmLSwzsPbmnInJpy1jrmoi0159D07e8S4m/TMkGG
 0pGjMWWv6tuTmEft+YjYMA3JRFyc7E1161hsI/xW+912GOTAtIIf1bMkB/qLVt79ni5Y
 UtYlm8kbiJ/a6GlMcFUSdieLFC1+ubruqGlymDn5k4knxoJoaCzoTkMKW31bVArdqqGC
 alckTEXMWsKwbnPYLTptrj96prg+80ecv11EWlN7+OUkrlZEc6YI7eAxSanOpcPLB7na
 viWuvVeXsX1fSD7q5VwmObZSq7ZQgeareyQjWtHX9+iF0zI8w3djxqNqBLGFSwygSZ7o
 83gg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=60WxWXC+AwVGgHLZaICpoibjr5aOpj5BLkkx1Vkb0fM=;
 b=pessChgJIY7YHB3riWpAXLiq5A2NSug6krbSVGRbEgQoSM1RAE0U2NonJJAK3oBHzu
 lY/9H0rOUVlhzIAFsbhoV+c/vUUgl0AsZcD+iETQ+u6cL7h1du3hJEJLZnh8TEFJ28dQ
 LzQVV/p7gs1ShdfsTMoyoBfa3oS3E6srEAKSMZc7EnHFlnz8Zc4bQeuh1pXG+JGcoLUY
 Y9/BSe93gPv9pxgayvYLj+2UNSH2fgbOMF3VKCELvCInUKmJtsGZOrRfShgvaFVe0PH7
 vUhxAgiFvBNT9+ugTU/E56Iuw7a270xZ/Fk34mOL3PdGN5h0cOjgAfj7XTlkpWhT4xHl
 rIJQ==
X-Gm-Message-State: AOUpUlGo49Uvue8VdfjKor5wb3IVN1pgQ6+x5IjYEu88y97UsyhGx2Kq
 F+XlFJjR0GUhkykUk/fTXty6Y+QYuGY=
X-Google-Smtp-Source: AA+uWPy1uUdXdlsok+M0HUxrGrVevZjLBfZKmEwSa3RB5mRWlJB/7KGn1UtSJ5Y5HbEBvpsldbe54Q==
X-Received: by 2002:a2e:1781:: with SMTP id 1-v6mr31514666ljx.76.1534797759869; 
 Mon, 20 Aug 2018 13:42:39 -0700 (PDT)
Received: from magnolia ([178.71.229.250])
 by smtp.gmail.com with ESMTPSA id e32-v6sm1952100lfi.12.2018.08.20.13.42.38
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Mon, 20 Aug 2018 13:42:39 -0700 (PDT)
From: Oleg Pykhalov <go.wigust@HIDDEN>
To: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
Subject: Re: bug#32456: Guile failed to call package-derivation without
 pre-inst-env
References: <87lg96qoo0.fsf@HIDDEN> <877eklgy5r.fsf@HIDDEN>
Date: Mon, 20 Aug 2018 23:42:33 +0300
In-Reply-To: <877eklgy5r.fsf@HIDDEN> ("Ludovic
 \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\=
 \=\?utf-8\?Q\?s\?\= message of "Mon, 20 Aug 2018 11:55:28 +0200")
Message-ID: <876004vkg6.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 32456
Cc: 32456 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hello Ludovic,

Thank you for taking a look.

ludo@HIDDEN (Ludovic Court=C3=A8s) writes:

> Oleg Pykhalov <go.wigust@HIDDEN> skribis:
>
>> I have an issue with =E2=80=98package-derivation=E2=80=99 procedure.  Wh=
en I use Guile
>> from my user's profile I get an error but not when I use =E2=80=98pre-in=
st-env=E2=80=99.
>>
>> The %load-path is differ only in /home/natsu/src/guix when pre-inst-env.
>>
>> guix (GNU Guix) 689aacc12f1d9c0b511e2010185b2e7a80de5201
>>
>> natsu@magnolia ~$ guile
>> GNU Guile 2.2.4
>> =E2=80=A6
>> scheme@(guile-user)> (use-modules (guix) (guix ui) (guix store))
>> scheme@(guile-user)> (define c (open-connection))
>> scheme@(guile-user)> (package-derivation c (@@ (gnu packages base) hello=
))
>> guix/store.scm:928:31: In procedure add-to-store: Throw to key
>> `srfi-34' with args `(#<condition &nix-protocol-error [message:
>> "regular file expected" status: 1] 28703c0>)'.
>> Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
>
> It might be that the Guix in $GUILE_LOAD_PATH is broken in some way.
> Can you check which one that is?

Sure, I hope the following output is what you mean.  Let me know if you
want another information, please.
=2D-8<---------------cut here---------------start------------->8---
natsu@magnolia ~/src/guix$ for path in $(printenv GUILE_LOAD_PATH | tr ':' =
'\n'); do echo -e "\n"; env GUILE_LOAD_PATH=3D$path pr
intenv GUILE_LOAD_PATH; env GUILE_LOAD_PATH=3D$path guile -c '(use-modules =
(guix) (guix ui) (guix store)) (format #t "~s~%" (pack
age-derivation (open-connection) (@@ (gnu packages base) hello)))'; done


/home/natsu/.guix-profile/share/guile/site/2.2
Backtrace:
In guix/packages.scm:
   923:16 19 (expand-input #<build-daemon 256.97 20fdaf0> #<package=E2=80=
=A6> =E2=80=A6)
   878:14 18 (cache! #<weak-table 6/113> #<package perl-boot0@HIDDEN=E2=80=
=A6> =E2=80=A6)
In unknown file:
          17 (_ #<procedure thunk ()> #<procedure list _> #<undefined>)
In guix/packages.scm:
  1202:22 16 (thunk)
  1135:25 15 (bag->derivation #<build-daemon 256.97 20fdaf0> #<<bag=E2=80=
=A6> =E2=80=A6)
In srfi/srfi-1.scm:
   592:29 14 (map1 (("source" #<origin "mirror://cpan/src/5.0/p=E2=80=A6>) =
=E2=80=A6))
   592:17 13 (map1 (("make" #<package make-boot0@HIDDEN gnu/pack=E2=80=A6>) =
=E2=80=A6))
In guix/packages.scm:
   923:16 12 (expand-input #<build-daemon 256.97 20fdaf0> #<package=E2=80=
=A6> =E2=80=A6)
   878:14 11 (cache! #<weak-table 6/113> #<package make-boot0@HIDDEN=E2=80=
=A6> =E2=80=A6)
In unknown file:
          10 (_ #<procedure thunk ()> #<procedure list _> #<undefined>)
In guix/packages.scm:
  1202:22  9 (thunk)
In guix/derivations.scm:
  1242:24  8 (build-expression->derivation #<build-daemon 256.97 20=E2=80=
=A6> =E2=80=A6)
  1004:18  7 (imported-files #<build-daemon 256.97 20fdaf0> ((. #) =E2=80=
=A6) =E2=80=A6)
In srfi/srfi-1.scm:
   592:29  6 (map1 (("guix/build/gnu-build-system.scm" . "/home/=E2=80=A6")=
 =E2=80=A6))
   592:29  5 (map1 (("guix/build/utils.scm" . "/home/natsu/.guix=E2=80=A6")=
 =E2=80=A6))
   592:29  4 (map1 (("guix/build/gremlin.scm" . "/home/natsu/.gu=E2=80=A6")=
 =E2=80=A6))
   592:17  3 (map1 (("guix/elf.scm" . "/home/natsu/.guix-profile/s=E2=80=A6=
")))
In guix/derivations.scm:
  1007:31  2 (_ _)
In guix/store.scm:
   948:24  1 (_ #<build-daemon 256.97 20fdaf0> "elf.scm" #f "sha256" =E2=80=
=A6)
   928:31  0 (add-to-store #<build-daemon 256.97 20fdaf0> _ #f "sha=E2=80=
=A6" =E2=80=A6)

guix/store.scm:928:31: In procedure add-to-store:
Throw to key `srfi-34' with args `(#<condition &nix-protocol-error [message=
: "regular file expected" status: 1] 3539000>)'.


/run/current-system/profile/share/guile/site/2.2
#<derivation /gnu/store/p2hmc4wv59kxvhvxa1dwjjps0g38ikc1-hello-2.10.drv =3D=
> /gnu/store/bihfrh609gkxb9dp7n96wlpigiv3krfy-hello-2.10 4c6e500>


/home/natsu/.guix-profile/share/guile/site/2.2
Backtrace:
In guix/packages.scm:
   923:16 19 (expand-input #<build-daemon 256.97 114a640> #<package=E2=80=
=A6> =E2=80=A6)
   878:14 18 (cache! #<weak-table 6/113> #<package perl-boot0@HIDDEN=E2=80=
=A6> =E2=80=A6)
In unknown file:
          17 (_ #<procedure thunk ()> #<procedure list _> #<undefined>)
In guix/packages.scm:
  1202:22 16 (thunk)
  1135:25 15 (bag->derivation #<build-daemon 256.97 114a640> #<<bag=E2=80=
=A6> =E2=80=A6)
In srfi/srfi-1.scm:
   592:29 14 (map1 (("source" #<origin "mirror://cpan/src/5.0/p=E2=80=A6>) =
=E2=80=A6))
   592:17 13 (map1 (("make" #<package make-boot0@HIDDEN gnu/pack=E2=80=A6>) =
=E2=80=A6))
In guix/packages.scm:
   923:16 12 (expand-input #<build-daemon 256.97 114a640> #<package=E2=80=
=A6> =E2=80=A6)
   878:14 11 (cache! #<weak-table 6/113> #<package make-boot0@HIDDEN=E2=80=
=A6> =E2=80=A6)
In unknown file:
          10 (_ #<procedure thunk ()> #<procedure list _> #<undefined>)
In guix/packages.scm:
  1202:22  9 (thunk)
In guix/derivations.scm:
  1242:24  8 (build-expression->derivation #<build-daemon 256.97 11=E2=80=
=A6> =E2=80=A6)
  1004:18  7 (imported-files #<build-daemon 256.97 114a640> ((. #) =E2=80=
=A6) =E2=80=A6)
In srfi/srfi-1.scm:
   592:29  6 (map1 (("guix/build/gnu-build-system.scm" . "/home/=E2=80=A6")=
 =E2=80=A6))
   592:29  5 (map1 (("guix/build/utils.scm" . "/home/natsu/.guix=E2=80=A6")=
 =E2=80=A6))
   592:29  4 (map1 (("guix/build/gremlin.scm" . "/home/natsu/.gu=E2=80=A6")=
 =E2=80=A6))
   592:17  3 (map1 (("guix/elf.scm" . "/home/natsu/.guix-profile/s=E2=80=A6=
")))
In guix/derivations.scm:
  1007:31  2 (_ _)
In guix/store.scm:
   948:24  1 (_ #<build-daemon 256.97 114a640> "elf.scm" #f "sha256" =E2=80=
=A6)
   928:31  0 (add-to-store #<build-daemon 256.97 114a640> _ #f "sha=E2=80=
=A6" =E2=80=A6)

guix/store.scm:928:31: In procedure add-to-store:
Throw to key `srfi-34' with args `(#<condition &nix-protocol-error [message=
: "regular file expected" status: 1] 27ba7e0>)'.


/run/current-system/profile/share/guile/site/2.2
#<derivation /gnu/store/p2hmc4wv59kxvhvxa1dwjjps0g38ikc1-hello-2.10.drv =3D=
> /gnu/store/bihfrh609gkxb9dp7n96wlpigiv3krfy-hello-2.10 3933960>
=2D-8<---------------cut here---------------end--------------->8---

Oleg.

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEc+OyAXw1EaDPCmAPckbhHGm3lWkFAlt7J7kACgkQckbhHGm3
lWlgAw//R66cOiVNDqNGDgdicExdGe/ltZgrTeaOahXvPTshWir4SXmOceskS6oy
RY62/lnvej8v1QGKh0NM+Icu56G4Zcg8uG84/1JQulVKgHhURUZaXL1sn1L1PmjD
92x1a4Y7iiXarHRqup5rXRBX80mcIQLXK7NGdMrsN9ge0dhDmri3+iB8SWu+ERh0
eDxtjdSzpx8ZGvGrj0S9wTLISoCVkeIOf67atsR/ZU8vjgwU/aPNgH1A7jLkfrXz
at0fTkI2y56olnY13Q1zc53eybNvAoOgbvZ7w+3bte64SjQkLzODSk0SLhBuWgQk
siBkIpIE3M+wmbGYBnf9moEvEhC7Jnwn17TKBSCoRcgUMjKFJnT8j9y+3JYQhbd7
7NBBacSw0AvrewBh3HaKxfJeYPCDZnG8CuE5DV78ulD36WhgCLCQn0gN9oOkvtWn
lejJv2VgoLs1Dgsmib3n7OPFxbznsL2gFFLVC7dmmRyvADloCcUxUS5hmTlN0SOI
hhsTd1ZGz+k/X+GoHLyEA/5invJBf52vxYpBtxpiui723ERZfj5hfMZJCxtKp/P3
YWY9lM+1wM3OHYiEZLvwUKPD2KgcPakEkQ4QaOLEribPu3gE9krDRbLK2vCxHZWi
kk9zJ2xOdhavJ7ytwowzGKc6sKNT8Eh2Xwq4LpO1tiqezD1t4sA=
=rX3/
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to bug-guix@HIDDEN:
bug#32456; Package guix. Full text available.

Message received at 32456 <at> debbugs.gnu.org:


Received: (at 32456) by debbugs.gnu.org; 20 Aug 2018 09:55:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 20 05:55:42 2018
Received: from localhost ([127.0.0.1]:55052 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1frguU-0001iu-3s
	for submit <at> debbugs.gnu.org; Mon, 20 Aug 2018 05:55:42 -0400
Received: from eggs.gnu.org ([208.118.235.92]:59423)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1frguS-0001ih-6I
 for 32456 <at> debbugs.gnu.org; Mon, 20 Aug 2018 05:55:40 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1frguI-0001mT-V1
 for 32456 <at> debbugs.gnu.org; Mon, 20 Aug 2018 05:55:34 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled
 version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57456)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1frguI-0001m7-1E; Mon, 20 Aug 2018 05:55:30 -0400
Received: from [193.50.110.186] (port=55970 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1frguH-0001aG-Nm; Mon, 20 Aug 2018 05:55:29 -0400
From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: Oleg Pykhalov <go.wigust@HIDDEN>
Subject: Re: bug#32456: Guile failed to call package-derivation without
 pre-inst-env
References: <87lg96qoo0.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 3 Fructidor an 226 de la =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Mon, 20 Aug 2018 11:55:28 +0200
In-Reply-To: <87lg96qoo0.fsf@HIDDEN> (Oleg Pykhalov's message of "Thu, 16
 Aug 2018 19:09:03 +0300")
Message-ID: <877eklgy5r.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 32456
Cc: 32456 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

Hi,

Oleg Pykhalov <go.wigust@HIDDEN> skribis:

> I have an issue with =E2=80=98package-derivation=E2=80=99 procedure.  Whe=
n I use Guile
> from my user's profile I get an error but not when I use =E2=80=98pre-ins=
t-env=E2=80=99.
>
> The %load-path is differ only in /home/natsu/src/guix when pre-inst-env.
>
> guix (GNU Guix) 689aacc12f1d9c0b511e2010185b2e7a80de5201
>
> natsu@magnolia ~$ guile
> GNU Guile 2.2.4
> =E2=80=A6
> scheme@(guile-user)> (use-modules (guix) (guix ui) (guix store))
> scheme@(guile-user)> (define c (open-connection))
> scheme@(guile-user)> (package-derivation c (@@ (gnu packages base) hello))
> guix/store.scm:928:31: In procedure add-to-store: Throw to key `srfi-34' =
with args `(#<condition &nix-protocol-error [message: "regular file expecte=
d" status: 1] 28703c0>)'.
> Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.

It might be that the Guix in $GUILE_LOAD_PATH is broken in some way.
Can you check which one that is?

Thanks,
Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#32456; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 16 Aug 2018 16:09:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 16 12:09:28 2018
Received: from localhost ([127.0.0.1]:52754 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fqKq0-0004hD-Dt
	for submit <at> debbugs.gnu.org; Thu, 16 Aug 2018 12:09:28 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57835)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <go.wigust@HIDDEN>) id 1fqKpz-0004gw-5N
 for submit <at> debbugs.gnu.org; Thu, 16 Aug 2018 12:09:27 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <go.wigust@HIDDEN>) id 1fqKpt-00078F-CH
 for submit <at> debbugs.gnu.org; Thu, 16 Aug 2018 12:09:22 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:54669)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <go.wigust@HIDDEN>) id 1fqKpt-000787-0D
 for submit <at> debbugs.gnu.org; Thu, 16 Aug 2018 12:09:21 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:50577)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <go.wigust@HIDDEN>) id 1fqKpr-00045T-8c
 for bug-guix@HIDDEN; Thu, 16 Aug 2018 12:09:20 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <go.wigust@HIDDEN>) id 1fqKpo-000764-45
 for bug-guix@HIDDEN; Thu, 16 Aug 2018 12:09:19 -0400
Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]:36507)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <go.wigust@HIDDEN>) id 1fqKpn-00075W-R6
 for bug-guix@HIDDEN; Thu, 16 Aug 2018 12:09:16 -0400
Received: by mail-lf1-x12b.google.com with SMTP id b22-v6so3808851lfa.3
 for <bug-guix@HIDDEN>; Thu, 16 Aug 2018 09:09:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:subject:date:message-id:mime-version;
 bh=iD1dkmEqsyWfWotrqj13sRPjzoA4rKP85B+kyl3SHBY=;
 b=Q+7ORPt6sOgSw13xzcmDDPd+YMOaQ/zc8nTrb6C2jQ6Y3tf5nJzSa+FGGzH0UE41YD
 PI0Q1THYYBoqv2wbjEJB3elyHadD5+XdNSvnk2iVuZBtDgY+by20o3+mLodAyQlmI0vs
 IAo4ysP8Wv3hr1LMsB73W+9Ll7dgvI6yrptVhuvE2XHxbBmgs1MKTTmCYNsNxhZryaHe
 T4h8VMIu1LBdshf2XL7uQSpcTcvvKjtJ42w7kR1kUMjjYN56g3khWHJeIim8yTLntg4z
 S6SVk0y8SU5P+6ITtDN0JRkZjYxcayBQZCKgxFQGWD4NsMkwLVlT1cYxJlIWnAMPlQRm
 +hlw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:subject:date:message-id:mime-version;
 bh=iD1dkmEqsyWfWotrqj13sRPjzoA4rKP85B+kyl3SHBY=;
 b=Y1QP9D9ZhZbomlErnIwYUCOZnDFsLU2YogaQiUUcvtsc+x12M85ph6UJPNoVPOrN7F
 EhDKRZaiGirGIv0OqnEawt6lcrWqcXvOimPOSHYkyhoOksQ6vDjz+Qt5fzRb0/8ceUc3
 U28iiN0ncMcsoXMH9apKtOFJ4Pa9oBbB0zp7ip/s2LPbl5Ls0ltXreN6DhsqXNXgmvGW
 NMmjIjfAMlnPEx46IeMaSVQqzYDQ3Tv9jXXDU0Ibq90BygPKkt/vzLGbIqgmOGZAkwrO
 0/bt+n3erKTjU2mCbLKLaf7jUeAaD1CjgeNKFKvQ8VHtOY6g802acyCkVVF6nBFI1MG8
 ZUnQ==
X-Gm-Message-State: AOUpUlHB27K1/33X6Po1D9dYX9IlrpK2U43L5yvjolHkrp1xYIPmUBG3
 ja8UHzCtyjdcO2SS8hDCOtpZ8pR4jiQ=
X-Google-Smtp-Source: AA+uWPwLo5RHUJPOGUvdqbEktIibc0DMLOUfWbRYTtjx7C+Bff3kU8CrWtqhpS9kIHWxEBUEUNp8tw==
X-Received: by 2002:a19:9e8c:: with SMTP id
 h134-v6mr20897474lfe.63.1534435754078; 
 Thu, 16 Aug 2018 09:09:14 -0700 (PDT)
Received: from magnolia (ppp78-37-143-31.pppoe.avangarddsl.ru. [78.37.143.31])
 by smtp.gmail.com with ESMTPSA id
 d13-v6sm5018045lfi.74.2018.08.16.09.09.13 for <bug-guix@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Thu, 16 Aug 2018 09:09:13 -0700 (PDT)
From: Oleg Pykhalov <go.wigust@HIDDEN>
To: bug-guix@HIDDEN
Subject: Guile failed to call package-derivation without pre-inst-env
Date: Thu, 16 Aug 2018 19:09:03 +0300
Message-ID: <87lg96qoo0.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hello Guix,

I have an issue with =E2=80=98package-derivation=E2=80=99 procedure.  When =
I use Guile
from my user's profile I get an error but not when I use =E2=80=98pre-inst-=
env=E2=80=99.

The %load-path is differ only in /home/natsu/src/guix when pre-inst-env.

guix (GNU Guix) 689aacc12f1d9c0b511e2010185b2e7a80de5201

=2D-8<---------------cut here---------------start------------->8---
natsu@magnolia ~$ guile
GNU Guile 2.2.4
=E2=80=A6
scheme@(guile-user)> (use-modules (guix) (guix ui) (guix store))
scheme@(guile-user)> (define c (open-connection))
scheme@(guile-user)> (package-derivation c (@@ (gnu packages base) hello))
guix/store.scm:928:31: In procedure add-to-store: Throw to key `srfi-34' wi=
th args `(#<condition &nix-protocol-error [message: "regular file expected"=
 status: 1] 28703c0>)'.
Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
scheme@(guile-user) [1]> ,q

natsu@magnolia ~$ ~/src/guix/pre-inst-env guile
GNU Guile 2.2.4
=E2=80=A6
scheme@(guile-user)> (use-modules (guix) (guix ui) (guix store))
scheme@(guile-user)> (define c (open-connection))
scheme@(guile-user)> (package-derivation c (@@ (gnu packages base) hello))
$1 =3D #<derivation /gnu/store/grd5g9m671nhrzl285c64npwlsy3prz2-hello-2.10.=
drv =3D> /gnu/store/bihfrh609gkxb9dp7n96wlpigiv3krfy-hello-2.10 3c6d8c0>
=2D-8<---------------cut here---------------end--------------->8---

Oleg.

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEc+OyAXw1EaDPCmAPckbhHGm3lWkFAlt1oaAACgkQckbhHGm3
lWn1/w/+MiaL5AV+7OQse4/J+8na+8JWp92YHopwmlTC+VR5qZLm4rUYnCvCZZfd
nUarqOSPlyw6evMsDvn4wrAkrArIIM1iFVecGaowH5j+ek6F3Ofdt1SwkBgP1u16
Hd4qhSBg9kQg9moYsRjBOHNTP7OGIEEMNdWRWAyhb2VyK+6ecJ28HOkiOpF6u5Sa
lGFL1V/nhjXCqiJGW20LiipvJa8JFcgMusvPRN0CAPvGPVnhV0qXq/3FZAJoVnz8
/u6Ny+T2ky9tq6mu6cCdMC80yCvkU2dhzRlwPWgd2clKtzcyJi/WH2vQ1SVy1jUv
kzPrLZZ8x8i39lt4K+KS0wj81e7bJdO1G+ZzjfgtQX7AVh6NL8RotRPBqzeQDIdB
yCl6/QeFziol9S/xBbip9rxlIcBtwUcp5BWN4M6Qg4y9F88kRZBqPBg8O2WIDgwq
FfOABid4+FkQcoZ9yxJ8XwihZz1DOe8JuL7JNQ6zDqfHbyq5Sp1hBe7BMgaNMoPN
MzHVEAQzt0Fv0X2FswhUMDMlPxiNsXPshevTbuRHAPqAlYPZcEIt35ye0hBqCUSu
8R+h4wqsRZqPJzSf9iT7aBXuWfCzQGq9k2Y25QZyQf5fU9kL4DRFeGYKohsUJjZ6
PPvOF0qRrgOXNp2dyKkI1iLgQBDfDHWJZCKMQG24iZwPAZ21wCw=
=M9a1
-----END PGP SIGNATURE-----
--=-=-=--




Acknowledgement sent to Oleg Pykhalov <go.wigust@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#32456; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 21 Aug 2018 10:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.