GNU bug report logs - #33755
error: execlp: No such file or directory from guix environment

Previous Next

Package: guix;

Reported by: swedebugia <at> riseup.net

Date: Sat, 15 Dec 2018 07:10:01 UTC

Severity: normal

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Timothy Sample <samplet <at> ngyro.com>
To: Julien Lepiller <julien <at> lepiller.eu>
Cc: swedebugia <at> riseup.net, 33755 <at> debbugs.gnu.org
Subject: bug#33755: error: execlp: No such file or directory from guix	environment
Date: Sat, 15 Dec 2018 13:18:32 -0500
[Message part 1 (text/plain, inline)]
Hi,

Julien Lepiller <julien <at> lepiller.eu> writes:

> Hi, this is because we have a -- option. "guix environment guix --
> ad-hoc libgit2" means you want to run "ad-hoc libgit2" in a guix
> environment. The error message tells you that it can't find an ad-hoc
> executable in that environment. There is no "ad-hoc" package involved
> here…

This is true, but I would argue that the error message is not quite as
clear as you say.  Specifically, it does not mention “ad-hoc” at all.
I’ve attached a patch that so that the command

    $ guix environment guix -- ad-hoc

prints

    guix environment: error: ad-hoc: command not found

and exits with status 127.  (In imitation of “bash -c 'ad-hoc'”.)

Thoughts?

> Le 15 décembre 2018 08:09:37 GMT+01:00, swedebugia <at> riseup.net a écrit :
>>Hi
>>
>>Is this a bug?
>>
>>sdb <at> antelope ~/src/guix$ guix environment guix -- ad-hoc libgit2
>>texinfo
>>guix environment: error: execlp: No such file or directory
>>
>>I meant to type: 
>>sdb <at> antelope ~/src/guix$ guix environment guix --ad-hoc libgit2 texinfo
>>
>>I would have liked an error saying "error: package ad-hoc not found -
>>cannot add it to the environment"


-- Tim

[/home/samplet/code/3rdparty/guix/0001-environment-Print-command-name-on-execlp-error.patch (message/external-body, inline)]

[Message part 3 (text/x-patch, inline)]


This bug report was last modified 6 years and 240 days ago.

Previous Next


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