From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner 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 14:18:14 +0000 Message-ID: References: <20170206091803.1fb17326@sf> <87y3xiaybd.fsf@gnu.org> 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]:41290) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cb6bp-0005qA-F2 for bug-guix@gnu.org; Tue, 07 Feb 2017 09:19:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cb6bm-0007Ln-8w for bug-guix@gnu.org; Tue, 07 Feb 2017 09:19:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:60298) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cb6bm-0007LR-5y for bug-guix@gnu.org; Tue, 07 Feb 2017 09:19:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cb6bm-0008W4-12 for bug-guix@gnu.org; Tue, 07 Feb 2017 09:19:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87y3xiaybd.fsf@gnu.org> 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: ludo@gnu.org, Sergei Trofimovich Cc: iyzsong@openmailbox.org, 25634@debbugs.gnu.org On February 7, 2017 4:08:06 PM GMT+02:00, ludo@gnu=2Eorg wrote: >Hi, > >Sergei Trofimovich skribis: > >> It looks like 'guix environment' does not handles >derivations-as-files=2E >> I don't know if it's a bug in the package or 'guix environment': >> >> $ ls -l /gnu/store/i1139n4ab0fn9v4bwkvqzp6sw3w66mqr-python-waf-1=2E9=2E= 5 >> -r-xr-xr-x 2 root root 99280 Jan 1 1970 >/gnu/store/i1139n4ab0fn9v4bwkvqzp6sw3w66mqr-python-waf-1=2E9=2E5 >> >> $ =2E/pre-inst-env guix environment mpv >> The following derivation will be built: >> /gnu/store/b5ph69m9z0qgwkf1w1p39r3wyab6x4hi-profile=2Edrv >> Backtrace: >> In ice-9/boot-9=2Escm: >> 160: 14 [catch #t # =2E=2E=2E] >> In unknown file: >> ?: 13 [apply-smob/1 #] >> In ice-9/boot-9=2Escm: >> 66: 12 [call-with-prompt prompt0 =2E=2E=2E] >> In ice-9/eval=2Escm: >> 432: 11 [eval # #] >> In ice-9/boot-9=2Escm: >> 2404: 10 [save-module-excursion #ice-9/boot-9=2Escm:4051:3 ()>] >> 4056: 9 [#] >> 1727: 8 [%start-stack load-stack #ice-9/boot-9=2Escm:4047:10 ()>] >> 1732: 7 [#] >> In unknown file: >> ?: 6 [primitive-load >"/gnu/store/yax60hx75hyarsfpraplhhfhkaqs30ia-profile-builder"] >> In =2E/guix/build/profiles=2Escm: >> 133: 5 [build-profile >"/gnu/store/dd9fznm75rdjkdhb4zqz67lvr8d1ya5d-profile" # =2E=2E=2E] >> In =2E/guix/build/union=2Escm: >> 136: 4 [union-of-directories >"/gnu/store/dd9fznm75rdjkdhb4zqz67lvr8d1ya5d-profile" =2E=2E=2E] >> In srfi/srfi-1=2Escm: >> 613: 3 [for-each #(dir)> #] >> In =2E/guix/build/union=2Escm: >> 138: 2 [# >"/gnu/store/i1139n4ab0fn9v4bwkvqzp6sw3w66mqr-python-waf-1=2E9=2E5"] >> 37: 1 [files-in-directory >"/gnu/store/i1139n4ab0fn9v4bwkvqzp6sw3w66mqr-python-waf-1=2E9=2E5"] >> In unknown file: >> ?: 0 [opendir >"/gnu/store/i1139n4ab0fn9v4bwkvqzp6sw3w66mqr-python-waf-1=2E9=2E5"] >> >> ERROR: In procedure opendir: >> ERROR: In procedure opendir: Not a directory > >I think you=E2=80=99re right: there are 2 bugs here=2E :-) > >Packages should definitely produce a directory, not a flat file=2E In >this case, the package should be a directory containing =E2=80=98bin/waf= =E2=80=99 I >think=2E =E5=AE=8B=E6=96=87=E6=AD=A6 & Efraim, WDYT? > I dont feel strongly about it, but it would be more consistent if it were = inside a bin directory=2E We'd have to change the few places that we call w= af and substitute the one we have packaged=2E >The second thing is a bug in =E2=80=98guix environment=E2=80=99=2E It sh= ould not >manifest >itself normally, but it=E2=80=99s worth fixing=2E > >Thanks, >Ludo=E2=80=99=2E --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E