unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Efraim Flashner <efraim@flashner.co.il>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 46537@debbugs.gnu.org
Subject: bug#46537: ‘uname -s’ from Gash-Utils-Boot returns nothing
Date: Tue, 16 Feb 2021 11:52:06 +0200	[thread overview]
Message-ID: <YCuVxvzR4OhiME0h@3900XT> (raw)
In-Reply-To: <87y2fpxmzl.fsf@inria.fr>


[-- Attachment #1.1: Type: text/plain, Size: 1109 bytes --]

On Mon, Feb 15, 2021 at 06:24:46PM +0100, Ludovic Courtès wrote:
> Gash-Utils ‘uname’ seems to be confused:
> 
> --8<---------------cut here---------------start------------->8---
> $ $(guix build -e '(@@ (gnu packages commencement) gash-utils-boot)')/bin/uname -a
> Linux ribbon 5.10.10-gnu #1 SMP 1 x86_64 GNU/Linux
> $ $(guix build -e '(@@ (gnu packages commencement) gash-utils-boot)')/bin/uname -s
> 
> $ guix describe
> Generacio 175	Feb 04 2021 22:52:40	(nuna)
>   guix 5ae09d7
>     repository URL: https://git.savannah.gnu.org/git/guix.git
>     branch: master
>     commit: 5ae09d7979a0696d862b9555314eab199f7ce576
> $ uname -s
> Linux
> --8<---------------cut here---------------end--------------->8---
> 
> Ludo’.
> 

The attached patch fixes it for me when I build it locally. Tested
against master, with an expanded guix.scm to build multiple versions.

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #1.2: 0001-uname-Fix-uname-s.patch --]
[-- Type: text/plain, Size: 996 bytes --]

From eedd0ee769393eea3fcb9b7131d469ea15d9f179 Mon Sep 17 00:00:00 2001
From: Efraim Flashner <efraim@flashner.co.il>
Date: Tue, 16 Feb 2021 11:50:20 +0200
Subject: [PATCH] uname: Fix uname -s.

* gash/commands/uname.scm (uname): Remove duplicate kernel-name? match.
---
 gash/commands/uname.scm | 1 -
 1 file changed, 1 deletion(-)

diff --git a/gash/commands/uname.scm b/gash/commands/uname.scm
index 2a89c6a..fa15c69 100644
--- a/gash/commands/uname.scm
+++ b/gash/commands/uname.scm
@@ -49,7 +49,6 @@
          (processor? (option-ref options 'processor #f))
          (hardware-platform? (option-ref options 'hardware-platform #f))
          (operating-system? (option-ref options 'operating-system #f))
-         (kernel-name? (not (or all? kernel-name? node-name? kernel-release? kernel-version? machine? processor? hardware-platform? operating-system?)))
 
 	 (help? (option-ref options 'help #f))
          (version? (option-ref options 'version #f))
-- 
2.30.1


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2021-02-16  9:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-15 17:24 bug#46537: ‘uname -s’ from Gash-Utils-Boot returns nothing Ludovic Courtès
2021-02-16  9:52 ` Efraim Flashner [this message]
2021-02-17 15:16   ` Ludovic Courtès
2021-02-17 15:26     ` Efraim Flashner
2021-02-18  2:45       ` Timothy Sample
2021-02-18 13:34         ` Ludovic Courtès
2021-02-18 18:02           ` Timothy Sample
2021-02-19 15:02             ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YCuVxvzR4OhiME0h@3900XT \
    --to=efraim@flashner.co.il \
    --cc=46537@debbugs.gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).