--- Begin Message ---
Subject: |
error: execlp: No such file or directory from guix environment |
Date: |
Fri, 14 Dec 2018 23:09:37 -0800 |
Hi
Is this a bug?
address@hidden ~/src/guix$ guix environment guix -- ad-hoc libgit2 texinfo
guix environment: error: execlp: No such file or directory
I meant to type:
address@hidden ~/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"
--
Cheers
Swedebugia
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#33755: error: execlp: No such file or directory from guix environment |
Date: |
Tue, 18 Dec 2018 10:05:12 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Hi Timothy,
Timothy Sample <address@hidden> skribis:
> Aha! I didn’t know about “error-reporting-wrapper”. I think this makes
> sense. It fixes the same issue in the container script, too. I’ve
> attached an updated patch.
>
> I had to modify “error-reporting-wrapper” to deal with the fact that
> “execlp” takes a variable number of arguments. I tested it and it works
> for the old use-case as well as the new. On whether or not it works
> stylistically, I defer to you.
I like it. :-)
> From 428b80973026909c915e1f33d4509e82f66355e3 Mon Sep 17 00:00:00 2001
> From: Timothy Sample <address@hidden>
> Date: Sun, 16 Dec 2018 23:12:13 -0500
> Subject: [PATCH] ui: Report file names in 'system-error' exceptions from
> 'execlp'.
>
> Fixes <https://bugs.gnu.org/33755>.
>
> * guix/ui.scm (apply-formals): New macro.
> (execlp): New error-reporting wrapper.
Applied, thank you!
Ludo’.
--- End Message ---