From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#25634: 'guix environment mpv' fails to handle '/gnu/store/i1139n4ab0fn9v4bwkvqzp6sw3w66mqr-python-waf-1.9.5' file (not-a-dir) Date: Tue, 07 Feb 2017 15:08:06 +0100 Message-ID: <87y3xiaybd.fsf@gnu.org> References: <20170206091803.1fb17326@sf> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38406) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cb6S9-0005IF-8g for bug-guix@gnu.org; Tue, 07 Feb 2017 09:09:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cb6S6-0000sQ-2s for bug-guix@gnu.org; Tue, 07 Feb 2017 09:09:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:60280) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cb6S5-0000sH-Vv for bug-guix@gnu.org; Tue, 07 Feb 2017 09:09:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cb6S5-0008GA-RW for bug-guix@gnu.org; Tue, 07 Feb 2017 09:09:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20170206091803.1fb17326@sf> (Sergei Trofimovich's message of "Mon, 6 Feb 2017 09:18:03 +0000") 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: Sergei Trofimovich Cc: iyzsong@openmailbox.org, 25634@debbugs.gnu.org Hi, Sergei Trofimovich skribis: > It looks like 'guix environment' does not handles derivations-as-files. > I don't know if it's a bug in the package or 'guix environment': > > $ ls -l /gnu/store/i1139n4ab0fn9v4bwkvqzp6sw3w66mqr-python-waf-1.9.5 > -r-xr-xr-x 2 root root 99280 Jan 1 1970 /gnu/store/i1139n4ab0fn9v4bwkvq= zp6sw3w66mqr-python-waf-1.9.5 > > $ ./pre-inst-env guix environment mpv > The following derivation will be built: > /gnu/store/b5ph69m9z0qgwkf1w1p39r3wyab6x4hi-profile.drv > Backtrace: > In ice-9/boot-9.scm: > 160: 14 [catch #t # ...] > In unknown file: > ?: 13 [apply-smob/1 #] > In ice-9/boot-9.scm: > 66: 12 [call-with-prompt prompt0 ...] > In ice-9/eval.scm: > 432: 11 [eval # #] > In ice-9/boot-9.scm: > 2404: 10 [save-module-excursion #] > 4056: 9 [#] > 1727: 8 [%start-stack load-stack #] > 1732: 7 [#] > In unknown file: > ?: 6 [primitive-load "/gnu/store/yax60hx75hyarsfpraplhhfhkaqs30ia-prof= ile-builder"] > In ./guix/build/profiles.scm: > 133: 5 [build-profile "/gnu/store/dd9fznm75rdjkdhb4zqz67lvr8d1ya5d-profi= le" # ...] > In ./guix/build/union.scm: > 136: 4 [union-of-directories "/gnu/store/dd9fznm75rdjkdhb4zqz67lvr8d1ya5= d-profile" ...] > In srfi/srfi-1.scm: > 613: 3 [for-each # #] > In ./guix/build/union.scm: > 138: 2 [# "/gnu= /store/i1139n4ab0fn9v4bwkvqzp6sw3w66mqr-python-waf-1.9.5"] > 37: 1 [files-in-directory "/gnu/store/i1139n4ab0fn9v4bwkvqzp6sw3w66mqr-= python-waf-1.9.5"] > In unknown file: > ?: 0 [opendir "/gnu/store/i1139n4ab0fn9v4bwkvqzp6sw3w66mqr-python-waf-= 1.9.5"] > > ERROR: In procedure opendir: > ERROR: In procedure opendir: Not a directory I think you=E2=80=99re right: there are 2 bugs here. :-) Packages should definitely produce a directory, not a flat file. In this case, the package should be a directory containing =E2=80=98bin/waf=E2= =80=99 I think. =E5=AE=8B=E6=96=87=E6=AD=A6 & Efraim, WDYT? The second thing is a bug in =E2=80=98guix environment=E2=80=99. It should= not manifest itself normally, but it=E2=80=99s worth fixing. Thanks, Ludo=E2=80=99.