[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#57050] [PATCH 3/6] gnu: chez-scheme: Fix use of "/bin/sh".
From: |
Philip McGrath |
Subject: |
[bug#57050] [PATCH 3/6] gnu: chez-scheme: Fix use of "/bin/sh". |
Date: |
Tue, 09 Aug 2022 17:58:18 -0400 |
On Tuesday, August 9, 2022 5:38:56 PM EDT ( wrote:
> On Tue Aug 9, 2022 at 10:24 PM BST, Maxime Devos wrote:
> > In the glibc headers, there's some (POSIX?) standard macro that points
> > at "/gnu/store/.../bin/sh" (I don't recall the name), any reason we
> > aren't using that macro? That would be Guix-independent. I'm not sure
> > if a /gnu/store/... prefix is included, but if not, maybe we could try
> > overriding it with -D...="/gnu/store/...", or failing that, add a
> > post-unpack substitute* replacing [the macro name] ->
> > "/gnu/store/.../bin/sh".
>
> I believe you might be referring to <paths.h>, which defines _PATH_BSHELL.
>
> It's not standard C <https://en.cppreference.com/w/c/header> nor POSIX
> <https://pubs.opengroup.org/onlinepubs/9699919799/idx/head.html> though.
>
> -- (
I'd love to be wrong, but I also can't find such a macro. In the glibc source
tree, "stdlib/system.c" defines a stub implementation that always fails with
ENOSYS, and "sysdeps/posix/system.c" contains:
#define SHELL_PATH "/bin/sh" /* Path of the shell. */
#define SHELL_NAME "sh" /* Name to give it. */
Concretely, I think Guix's glibc currently uses /bin/sh dynamically: in my
Chez example above, if you replace `process` with `system` (which uses libc's
`system`), the result is always "/bin/sh\n".
-Philip
signature.asc
Description: This is a digitally signed message part.
- [bug#57050] [PATCH 2/6] gnu: stex: Fix read-only gifs and math directories., (continued)
- [bug#57050] [PATCH 2/6] gnu: stex: Fix read-only gifs and math directories., Philip McGrath, 2022/08/08
- [bug#57050] [PATCH 6/6] gnu: chez-scheme-for-racket: Suport all systems., Philip McGrath, 2022/08/08
- [bug#57050] [PATCH 5/6] gnu: racket: Use Racket CS on all systems., Philip McGrath, 2022/08/08
- [bug#57050] [PATCH 3/6] gnu: chez-scheme: Fix use of "/bin/sh"., Philip McGrath, 2022/08/08
- [bug#57050] [PATCH 3/6] gnu: chez-scheme: Fix use of "/bin/sh"., Liliana Marie Prikler, 2022/08/08
- [bug#57050] [PATCH 3/6] gnu: chez-scheme: Fix use of "/bin/sh"., Philip McGrath, 2022/08/09
- [bug#57050] [PATCH 3/6] gnu: chez-scheme: Fix use of "/bin/sh"., Maxime Devos, 2022/08/09
- [bug#57050] [PATCH 3/6] gnu: chez-scheme: Fix use of "/bin/sh"., (, 2022/08/09
- [bug#57050] [PATCH 3/6] gnu: chez-scheme: Fix use of "/bin/sh".,
Philip McGrath <=
- [bug#57050] [PATCH 3/6] gnu: chez-scheme: Fix use of "/bin/sh"., (, 2022/08/09
- [bug#57050] [PATCH 3/6] gnu: chez-scheme: Fix use of "/bin/sh"., Maxime Devos, 2022/08/10
[bug#57050] [PATCH 1/6] gnu: stex: Update to 1.2.2-2.afa6075., Philip McGrath, 2022/08/08
[bug#57050] [PATCH 4/6] gnu: Update Racket to 8.6. Add Zuo., Philip McGrath, 2022/08/08
[bug#57050] [PATCH 0/6] gnu: Update Racket to 8.6. Add Zuo., Thiago Jung Bauermann, 2022/08/10