all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#40816: ‘guix pack -R’ wrapper swallows exit code
@ 2020-04-24 12:29 Ludovic Courtès
  2020-04-24 14:23 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Ludovic Courtès @ 2020-04-24 12:29 UTC (permalink / raw)
  To: 40816

Hello!

As janneke reported earlier today, wrappers generated by ‘guix pack -R’
(or ‘-RR’) swallow the program’s exit code when running in user
namespace mode:

--8<---------------cut here---------------start------------->8---
$ mkdir /tmp/pack
$ (cd /tmp/pack; tar xf $(guix pack -R sed -S /bin=bin))
$ unshare -mrf sh -c 'mount -t tmpfs none /gnu; /tmp/pack/bin/sed --whatever'
/tmp/pack/bin/sed: unrecognized option '--whatever'

[...]

$ echo $?
0
$ guix describe
Generacio 139	Apr 13 2020 21:50:08	(nuna)
  guix bad368b
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: bad368b0d794689f3a8a11b58f1ea4987938682e
--8<---------------cut here---------------end--------------->8---

(The ‘unshare’ trick, also used in ‘tests/guix-pack-relocatable.sh’,
allows me to pretend there’s no /gnu/store on my machine.)

Ludo’.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#40816: ‘guix pack -R’ wrapper swallows exit code
  2020-04-24 12:29 bug#40816: ‘guix pack -R’ wrapper swallows exit code Ludovic Courtès
@ 2020-04-24 14:23 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2020-04-24 14:23 UTC (permalink / raw)
  To: 40816-done

Ludovic Courtès <ludovic.courtes@inria.fr> skribis:

> As janneke reported earlier today, wrappers generated by ‘guix pack -R’
> (or ‘-RR’) swallow the program’s exit code when running in user
> namespace mode:

Fixed in 2520059bdb43fa1663ce102f3f4c442d4918c32b!

Ludo’.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-04-24 14:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-24 12:29 bug#40816: ‘guix pack -R’ wrapper swallows exit code Ludovic Courtès
2020-04-24 14:23 ` Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.