GNU bug report logs - #25634
'guix environment mpv' fails to handle '/gnu/store/i1139n4ab0fn9v4bwkvqzp6sw3w66mqr-python-waf-1.9.5' file (not-a-dir)

Previous Next

Package: guix;

Reported by: Sergei Trofimovich <slyfox <at> inbox.ru>

Date: Mon, 6 Feb 2017 16:36:02 UTC

Severity: normal

Done: Efraim Flashner <efraim <at> flashner.co.il>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 25634 in the body.
You can then email your comments to 25634 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#25634; Package guix. (Mon, 06 Feb 2017 16:36:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sergei Trofimovich <slyfox <at> inbox.ru>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 06 Feb 2017 16:36:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Sergei Trofimovich <slyfox <at> inbox.ru>
To: bug-guix <at> gnu.org
Subject: 'guix environment mpv' fails to handle
 '/gnu/store/i1139n4ab0fn9v4bwkvqzp6sw3w66mqr-python-waf-1.9.5' file
 (not-a-dir)
Date: Mon, 6 Feb 2017 09:18:03 +0000
[Message part 1 (text/plain, inline)]
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
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#25634; Package guix. (Tue, 07 Feb 2017 14:09:01 GMT) Full text and rfc822 format available.

Message #8 received at 25634 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Sergei Trofimovich <slyfox <at> inbox.ru>
Cc: iyzsong <at> openmailbox.org, 25634 <at> debbugs.gnu.org,
 Efraim Flashner <efraim <at> flashner.co.il>
Subject: Re: 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
Hi,

Sergei Trofimovich <slyfox <at> 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’.




Information forwarded to bug-guix <at> gnu.org:
bug#25634; Package guix. (Tue, 07 Feb 2017 14:19:01 GMT) Full text and rfc822 format available.

Message #11 received at 25634 <at> debbugs.gnu.org (full text, mbox):

From: Efraim Flashner <efraim <at> flashner.co.il>
To: ludo <at> gnu.org,Sergei Trofimovich <slyfox <at> inbox.ru>
Cc: iyzsong <at> openmailbox.org, 25634 <at> debbugs.gnu.org
Subject: Re: 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

On February 7, 2017 4:08:06 PM GMT+02:00, ludo <at> gnu.org wrote:
>Hi,
>
>Sergei Trofimovich <slyfox <at> 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.




Reply sent to Efraim Flashner <efraim <at> flashner.co.il>:
You have taken responsibility. (Wed, 21 Nov 2018 13:23:02 GMT) Full text and rfc822 format available.

Notification sent to Sergei Trofimovich <slyfox <at> inbox.ru>:
bug acknowledged by developer. (Wed, 21 Nov 2018 13:23:02 GMT) Full text and rfc822 format available.

Message #16 received at 25634-done <at> debbugs.gnu.org (full text, mbox):

From: Efraim Flashner <efraim <at> flashner.co.il>
To: ludo <at> gnu.org, Sergei Trofimovich <slyfox <at> inbox.ru>
Cc: iyzsong <at> openmailbox.org, 25634-done <at> debbugs.gnu.org
Subject: Re: 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 part 1 (text/plain, inline)]
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 <at> gnu.org wrote:
> >Hi,
> >
> >Sergei Trofimovich <slyfox <at> 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 <at> 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
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#25634; Package guix. (Wed, 21 Nov 2018 14:00:02 GMT) Full text and rfc822 format available.

Message #19 received at 25634-done <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Efraim Flashner <efraim <at> flashner.co.il>
Cc: iyzsong <at> openmailbox.org, Sergei Trofimovich <slyfox <at> inbox.ru>,
 25634-done <at> debbugs.gnu.org
Subject: Re: 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 14:59:01 +0100
Efraim Flashner <efraim <at> 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’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 20 Dec 2018 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 131 days ago.

Previous Next


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