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: Wed, 21 Nov 2018 15:22:13 +0200 Message-ID: <20181121132213.GF28778@macbook41> References: <20170206091803.1fb17326@sf> <87y3xiaybd.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="hK8Uo4Yp55NZU70L" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33566) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPSTC-0007Ed-V6 for bug-guix@gnu.org; Wed, 21 Nov 2018 08:23:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gPST8-0006Ob-T9 for bug-guix@gnu.org; Wed, 21 Nov 2018 08:23:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:33692) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gPST8-0006OU-Oy for bug-guix@gnu.org; Wed, 21 Nov 2018 08:23:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gPST8-0006w9-JF for bug-guix@gnu.org; Wed, 21 Nov 2018 08:23:02 -0500 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: Content-Disposition: inline In-Reply-To: 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-done@debbugs.gnu.org --hK8Uo4Yp55NZU70L Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 07, 2017 at 02:18:14PM +0000, Efraim Flashner wrote: >=20 >=20 > On February 7, 2017 4:08:06 PM GMT+02:00, ludo@gnu.org wrote: > >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/i1139n4ab0fn9v4bwkvqzp6sw3w66mqr-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 # >ice-9/boot-9.scm:4051:3 ()>] > >> 4056: 9 [#] > >> 1727: 8 [%start-stack load-stack # >ice-9/boot-9.scm:4047:10 ()>] > >> 1732: 7 [#] > >> In unknown file: > >> ?: 6 [primitive-load > >"/gnu/store/yax60hx75hyarsfpraplhhfhkaqs30ia-profile-builder"] > >> In ./guix/build/profiles.scm: > >> 133: 5 [build-profile > >"/gnu/store/dd9fznm75rdjkdhb4zqz67lvr8d1ya5d-profile" # ...] > >> In ./guix/build/union.scm: > >> 136: 4 [union-of-directories > >"/gnu/store/dd9fznm75rdjkdhb4zqz67lvr8d1ya5d-profile" ...] > >> In srfi/srfi-1.scm: > >> 613: 3 [for-each # >(dir)> #] > >> 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? > > >=20 > I dont feel strongly about it, but it would be more consistent if it were= inside a bin directory. We'd have to change the few places that we call wa= f and substitute the one we have packaged. >=20 > >The second thing is a bug in =E2=80=98guix environment=E2=80=99. It sho= uld not > >manifest > >itself normally, but it=E2=80=99s worth fixing. > > > >Thanks, > >Ludo=E2=80=99. >=20 Only took 21 months but 'guix environment mpv' now works. Fix pushed in a2aa746cfe38076b87d9cde2252904c0bddd9f9e. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --hK8Uo4Yp55NZU70L Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlv1XAQACgkQQarn3Mo9 g1EwOQ/5AZEwtRHze1oqxhCjZbrsucrMtuzOkPd+XnGHt6aAIEpamPlneF2R1ho7 vbrmF5zOrc7FgkXrudK4KF03X3zAcm4pqGDSq8TpxZ0DGuS54D8ozEYSDkArkbIQ G3K2Q93f05GzMFqQmX8Hy9QUPNN4vgu1qbdx//x52N84PQfUrPIe9tMKyyNqOH8l bCnU/PA8aD3cVAwOakDmYjvvgyDm4812LY1uFK1N+WWgdnVfrXcMSKvh0k8QjGPF DMyhzEtVu0eQ8sSM6WhpD+tLsW+BHgjAx+m0A06XK91NTjT/HlCSHdOX4nfSHJKz DtIvm3gXbnNB7Z600QoCy7xf8ZcbSjgr79Zk7BrZAUDYcQ6JRaGhcVy2SMUhHb/u Dlabf2uLpTKCU+CUzkL5NXKxQKW7sNNK02i4Nee0TRfQpw+pbpFlA01JFhIyjo/b w7eXuUpZ81CGlSsa8AB0vA+DdWmGewyqWXbSTYw1BzSsRPIhIpSBOfBxsrmjrs1b LLoCOzEe12mkZL+AcjS2UvKynozav9lMIC30GF0Za5syMBAMMksmc2mUAKJ5xAMW +6Kb7M9j1WS1Z301GZqum/OVm/IqzbQTrw1wePv3YUKVGH+wLskXjM/NQg3pPObI 2yvy8yg2ttpflYlfp9zv/E4nehZmO+85JNrXwQHL9x4Jyh4mDDs= =etzy -----END PGP SIGNATURE----- --hK8Uo4Yp55NZU70L--