GNU bug report logs - #7255
[PATCH] Fix reporting `unknown' by uname -p and uname -i

Previous Next

Package: coreutils;

Reported by: Artur Rona <ari-tczew <at> tlen.pl>

Date: Wed, 20 Oct 2010 21:26:02 UTC

Severity: normal

Tags: notabug, patch

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eric Blake <eblake <at> redhat.com>
To: Artur Rona <ari-tczew <at> tlen.pl>
Cc: 7255 <at> debbugs.gnu.org
Subject: bug#7255: [PATCH] Fix reporting `unknown' by uname -p and uname -i
Date: Wed, 20 Oct 2010 15:54:59 -0600
On 10/20/2010 03:26 PM, Artur Rona wrote:
> I'm sending a patch from Launchpad, which fixes bug in coreutils.
>
> TEST CASE:
> Use command 'uname -i' or uname -p'
>
> Launchpad bug: https://launchpad.net/bugs/470550
> Patch is able to use on coreutils 8.5.
>
> We look forward to your response.

Thanks for your work.  But as pointed out in that launchpad discussion:

> This has been discussed upstream; see:
>
> * http://lists.gnu.org/archive/html/bug-coreutils/2005-09/msg00053.html for a more discussed thread, or
> * http://lists.gnu.org/archive/html/bug-coreutils/2007-04/msg00089.html for a to-the-point one.
>
> There are other hits, BTW.
>
> Summary, as far as I can understand: coreutils will not provide 'uname -p -i' on Linux platforms since the 'sysinfo()' call does not support it, and /proc is er, considered too Linux-specific.
>
> I would tend to mark this one INVALID

I still think you are better off investing effort in improving the Linux 
kernel uname() or sysinfo() syscalls to provide the information natively 
than you are to try and parse /proc/cpuinfo on the fly.

-- 
Eric Blake   eblake <at> redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org




This bug report was last modified 14 years and 34 days ago.

Previous Next


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