all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#25634: 'guix environment mpv' fails to handle '/gnu/store/i1139n4ab0fn9v4bwkvqzp6sw3w66mqr-python-waf-1.9.5' file (not-a-dir)
@ 2017-02-06  9:18 Sergei Trofimovich
  2017-02-07 14:08 ` Ludovic Courtès
  0 siblings, 1 reply; 5+ messages in thread
From: Sergei Trofimovich @ 2017-02-06  9:18 UTC (permalink / raw)
  To: 25634

[-- Attachment #1: Type: text/plain, Size: 2100 bytes --]

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 #<catch-closure 8cad00> ...]
In unknown file:
   ?: 13 [apply-smob/1 #<catch-closure 8cad00>]
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 #<procedure 8ea7c0 at ice-9/boot-9.scm:4051:3 ()>]
4056: 9 [#<procedure 8ea7c0 at ice-9/boot-9.scm:4051:3 ()>]
1727: 8 [%start-stack load-stack #<procedure 8fcba0 at ice-9/boot-9.scm:4047:10 ()>]
1732: 7 [#<procedure 8fd6f0 ()>]
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 #<procedure a86c80 at ./guix/build/union.scm:136:16 (dir)> #]
In ./guix/build/union.scm:
 138: 2 [#<procedure a86c80 at ./guix/build/union.scm:136:16 (dir)> "/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
builder for `/gnu/store/b5ph69m9z0qgwkf1w1p39r3wyab6x4hi-profile.drv' failed with exit code 1
guix environment: error: build failed: build of `/gnu/store/b5ph69m9z0qgwkf1w1p39r3wyab6x4hi-profile.drv' failed

-- 

  Sergei

[-- Attachment #2: Цифровая подпись OpenPGP --]
[-- Type: application/pgp-signature, Size: 163 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#25634: 'guix environment mpv' fails to handle '/gnu/store/i1139n4ab0fn9v4bwkvqzp6sw3w66mqr-python-waf-1.9.5' file (not-a-dir)
  2017-02-06  9:18 bug#25634: 'guix environment mpv' fails to handle '/gnu/store/i1139n4ab0fn9v4bwkvqzp6sw3w66mqr-python-waf-1.9.5' file (not-a-dir) Sergei Trofimovich
@ 2017-02-07 14:08 ` Ludovic Courtès
  2017-02-07 14:18   ` Efraim Flashner
  0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2017-02-07 14:08 UTC (permalink / raw)
  To: Sergei Trofimovich; +Cc: iyzsong, 25634

Hi,

Sergei Trofimovich <slyfox@inbox.ru> 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 #<catch-closure 8cad00> ...]
> In unknown file:
>    ?: 13 [apply-smob/1 #<catch-closure 8cad00>]
> 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 #<procedure 8ea7c0 at ice-9/boot-9.scm:4051:3 ()>]
> 4056: 9 [#<procedure 8ea7c0 at ice-9/boot-9.scm:4051:3 ()>]
> 1727: 8 [%start-stack load-stack #<procedure 8fcba0 at ice-9/boot-9.scm:4047:10 ()>]
> 1732: 7 [#<procedure 8fd6f0 ()>]
> 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 #<procedure a86c80 at ./guix/build/union.scm:136:16 (dir)> #]
> In ./guix/build/union.scm:
>  138: 2 [#<procedure a86c80 at ./guix/build/union.scm:136:16 (dir)> "/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’re 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 ‘bin/waf’ I
think.  宋文武 & Efraim, WDYT?

The second thing is a bug in ‘guix environment’.  It should not manifest
itself normally, but it’s worth fixing.

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#25634: 'guix environment mpv' fails to handle '/gnu/store/i1139n4ab0fn9v4bwkvqzp6sw3w66mqr-python-waf-1.9.5' file (not-a-dir)
  2017-02-07 14:08 ` Ludovic Courtès
@ 2017-02-07 14:18   ` Efraim Flashner
  2018-11-21 13:22     ` Efraim Flashner
  0 siblings, 1 reply; 5+ messages in thread
From: Efraim Flashner @ 2017-02-07 14:18 UTC (permalink / raw)
  To: ludo, Sergei Trofimovich; +Cc: iyzsong, 25634



On February 7, 2017 4:08:06 PM GMT+02:00, ludo@gnu.org wrote:
>Hi,
>
>Sergei Trofimovich <slyfox@inbox.ru> 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 #<catch-closure 8cad00> ...]
>> In unknown file:
>>    ?: 13 [apply-smob/1 #<catch-closure 8cad00>]
>> 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 #<procedure 8ea7c0 at
>ice-9/boot-9.scm:4051:3 ()>]
>> 4056: 9 [#<procedure 8ea7c0 at ice-9/boot-9.scm:4051:3 ()>]
>> 1727: 8 [%start-stack load-stack #<procedure 8fcba0 at
>ice-9/boot-9.scm:4047:10 ()>]
>> 1732: 7 [#<procedure 8fd6f0 ()>]
>> 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 #<procedure a86c80 at ./guix/build/union.scm:136:16
>(dir)> #]
>> In ./guix/build/union.scm:
>>  138: 2 [#<procedure a86c80 at ./guix/build/union.scm:136:16 (dir)>
>"/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’re 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 ‘bin/waf’ I
>think.  宋文武 & Efraim, WDYT?
>

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 waf and substitute the one we have packaged.

>The second thing is a bug in ‘guix environment’.  It should not
>manifest
>itself normally, but it’s worth fixing.
>
>Thanks,
>Ludo’.

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#25634: 'guix environment mpv' fails to handle '/gnu/store/i1139n4ab0fn9v4bwkvqzp6sw3w66mqr-python-waf-1.9.5' file (not-a-dir)
  2017-02-07 14:18   ` Efraim Flashner
@ 2018-11-21 13:22     ` Efraim Flashner
  2018-11-21 13:59       ` Ludovic Courtès
  0 siblings, 1 reply; 5+ messages in thread
From: Efraim Flashner @ 2018-11-21 13:22 UTC (permalink / raw)
  To: ludo, Sergei Trofimovich; +Cc: iyzsong, 25634-done

[-- Attachment #1: Type: text/plain, Size: 3271 bytes --]

On Tue, Feb 07, 2017 at 02:18:14PM +0000, Efraim Flashner wrote:
> 
> 
> On February 7, 2017 4:08:06 PM GMT+02:00, ludo@gnu.org wrote:
> >Hi,
> >
> >Sergei Trofimovich <slyfox@inbox.ru> 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 #<catch-closure 8cad00> ...]
> >> In unknown file:
> >>    ?: 13 [apply-smob/1 #<catch-closure 8cad00>]
> >> 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 #<procedure 8ea7c0 at
> >ice-9/boot-9.scm:4051:3 ()>]
> >> 4056: 9 [#<procedure 8ea7c0 at ice-9/boot-9.scm:4051:3 ()>]
> >> 1727: 8 [%start-stack load-stack #<procedure 8fcba0 at
> >ice-9/boot-9.scm:4047:10 ()>]
> >> 1732: 7 [#<procedure 8fd6f0 ()>]
> >> 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 #<procedure a86c80 at ./guix/build/union.scm:136:16
> >(dir)> #]
> >> In ./guix/build/union.scm:
> >>  138: 2 [#<procedure a86c80 at ./guix/build/union.scm:136:16 (dir)>
> >"/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’re 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 ‘bin/waf’ I
> >think.  宋文武 & Efraim, WDYT?
> >
> 
> 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 waf and substitute the one we have packaged.
> 
> >The second thing is a bug in ‘guix environment’.  It should not
> >manifest
> >itself normally, but it’s worth fixing.
> >
> >Thanks,
> >Ludo’.
> 

Only took 21 months but 'guix environment mpv' now works.
Fix pushed in a2aa746cfe38076b87d9cde2252904c0bddd9f9e.

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#25634: 'guix environment mpv' fails to handle '/gnu/store/i1139n4ab0fn9v4bwkvqzp6sw3w66mqr-python-waf-1.9.5' file (not-a-dir)
  2018-11-21 13:22     ` Efraim Flashner
@ 2018-11-21 13:59       ` Ludovic Courtès
  0 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2018-11-21 13:59 UTC (permalink / raw)
  To: Efraim Flashner; +Cc: iyzsong, Sergei Trofimovich, 25634-done

Efraim Flashner <efraim@flashner.co.il> skribis:

> Only took 21 months but 'guix environment mpv' now works.
> Fix pushed in a2aa746cfe38076b87d9cde2252904c0bddd9f9e.

Heheh better late than never, thank you Efraim!  :-)

Ludo’.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-11-21 14:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-06  9:18 bug#25634: 'guix environment mpv' fails to handle '/gnu/store/i1139n4ab0fn9v4bwkvqzp6sw3w66mqr-python-waf-1.9.5' file (not-a-dir) Sergei Trofimovich
2017-02-07 14:08 ` Ludovic Courtès
2017-02-07 14:18   ` Efraim Flashner
2018-11-21 13:22     ` Efraim Flashner
2018-11-21 13:59       ` Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.