GNU bug report logs - #40816
‘guix pack -R’ wrapper swallows exit code

Previous Next

Package: guix;

Reported by: Ludovic Courtès <ludovic.courtes <at> inria.fr>

Date: Fri, 24 Apr 2020 12:31:01 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 40816 in the body.
You can then email your comments to 40816 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to janneke <at> gnu.org, bug-guix <at> gnu.org:
bug#40816; Package guix. (Fri, 24 Apr 2020 12:31:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ludovic Courtès <ludovic.courtes <at> inria.fr>:
New bug report received and forwarded. Copy sent to janneke <at> gnu.org, bug-guix <at> gnu.org. (Fri, 24 Apr 2020 12:31:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludovic.courtes <at> inria.fr>
To: bug-guix <at> gnu.org
Subject: ‘guix pack -R’ wrapper
 swallows exit code
Date: Fri, 24 Apr 2020 14:29:46 +0200
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’.




Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Fri, 24 Apr 2020 14:24:02 GMT) Full text and rfc822 format available.

Notification sent to Ludovic Courtès <ludovic.courtes <at> inria.fr>:
bug acknowledged by developer. (Fri, 24 Apr 2020 14:24:02 GMT) Full text and rfc822 format available.

Message #10 received at 40816-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: 40816-done <at> debbugs.gnu.org
Cc: Jan Nieuwenhuizen <janneke <at> gnu.org>
Subject: Re: bug#40816: ‘guix pack -R’ wrapper swallows exit code
Date: Fri, 24 Apr 2020 16:23:36 +0200
Ludovic Courtès <ludovic.courtes <at> 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’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 23 May 2020 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 332 days ago.

Previous Next


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