guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: services: qemu-binfmt: Preserve argv[0] by defaul


From: guix-commits
Subject: branch master updated: services: qemu-binfmt: Preserve argv[0] by default.
Date: Fri, 09 Jul 2021 18:26:23 -0400

This is an automated email from the git hooks/post-receive script.

civodul pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 2ea2bca  services: qemu-binfmt: Preserve argv[0] by default.
2ea2bca is described below

commit 2ea2bca1ddb1e3ba9d843ff7544c22925de7f6d7
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sat Jul 10 00:20:24 2021 +0200

    services: qemu-binfmt: Preserve argv[0] by default.
    
    Previously, argv[0] would be replaced by the absolute file name of the
    executable.  This could cause discrepancies, for example in the
    Coreutils test suite: <https://issues.guix.gnu.org/49485>.
    
    * gnu/services/virtualization.scm (<qemu-platform>)[flags]: Default to "FP".
---
 gnu/services/virtualization.scm | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/gnu/services/virtualization.scm b/gnu/services/virtualization.scm
index 36e9feb..c8adcd0 100644
--- a/gnu/services/virtualization.scm
+++ b/gnu/services/virtualization.scm
@@ -1,6 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2017 Ryan Moe <ryan.moe@gmail.com>
-;;; Copyright © 2018, 2020 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2018, 2020, 2021 Ludovic Courtès <ludo@gnu.org>
 ;;; Copyright © 2020,2021 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
 ;;;
 ;;; This file is part of GNU Guix.
@@ -561,7 +561,17 @@ potential infinite waits blocking libvirt."))
   (family   qemu-platform-family)                 ;string
   (magic    qemu-platform-magic)                  ;bytevector
   (mask     qemu-platform-mask)                   ;bytevector
-  (flags    qemu-platform-flags (default "F")))   ;string
+
+  ;; Default flags:
+  ;;
+  ;;   "F": fix binary.  Open the qemu-user binary (statically linked) as soon
+  ;;   as binfmt_misc interpretation is handled.
+  ;;
+  ;;   "P": preserve argv[0].  QEMU 6.0 detects whether it's started with this
+  ;;   flag and automatically does the right thing.  Without this flag,
+  ;;   argv[0] is replaced by the absolute file name of the executable, an
+  ;;   observable difference that can cause discrepancies.
+  (flags    qemu-platform-flags (default "FP")))  ;string
 
 (define-syntax bv
   (lambda (s)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]