[3.0.9] ‘spawn’ test fails on GNU/Hurd, due to $LD_ORIGIN_PATH

  • Done
  • quality assurance status badge
Details
One participant
  • Ludovic Courtès
Owner
unassigned
Submitted by
Ludovic Courtès
Severity
normal
L
L
Ludovic Courtès wrote on 28 Mar 2023 11:11
(address . bug-guile@gnu.org)
87ileli6jn.fsf@inria.fr
On GNU/Hurd, the ‘exec’ server always sets ‘LD_ORIGIN_PATH’ in the
environment of programs it executes—see ‘do_exec’ in ‘exec/exec.c’.
Consequently, the ‘spawn’ test that checks environment variables fails:

Toggle snippet (7 lines)
Running posix.test
UNRESOLVED: posix.test: affinity: getaffinity
UNRESOLVED: posix.test: affinity: setaffinity
FAIL: posix.test: spawn: env with #:environment and #:output - arguments: (expected-value "GNU=guile\n" actual-value "LD_ORIGIN_PATH=/gnu/store/9ln4hd7c1p7vn31wi0cf4pp8r9sy6pvw-coreutils-8.32/bin\nGNU=guile\n")
UNRESOLVED: posix.test: spawn: ls /proc/self/fd

(This is after applying a fix for https://issues.guix.gnu.org/61095.)

Ludo’.
L
L
Ludovic Courtès wrote on 2 Apr 2023 15:44
(address . 62501-done@debbugs.gnu.org)
87v8ietn47.fsf@gnu.org
Ludovic Courtès <ludo@gnu.org> skribis:

Toggle quote (10 lines)
> On GNU/Hurd, the ‘exec’ server always sets ‘LD_ORIGIN_PATH’ in the
> environment of programs it executes—see ‘do_exec’ in ‘exec/exec.c’.
> Consequently, the ‘spawn’ test that checks environment variables fails:
>
> Running posix.test
> UNRESOLVED: posix.test: affinity: getaffinity
> UNRESOLVED: posix.test: affinity: setaffinity
> FAIL: posix.test: spawn: env with #:environment and #:output - arguments: (expected-value "GNU=guile\n" actual-value "LD_ORIGIN_PATH=/gnu/store/9ln4hd7c1p7vn31wi0cf4pp8r9sy6pvw-coreutils-8.32/bin\nGNU=guile\n")
> UNRESOLVED: posix.test: spawn: ls /proc/self/fd

Fixed in e93525e549ba4d5ec52ec90aaf051f546d854cea.

Ludo'.
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 62501@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 62501
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch