bug-coreutils
[Top][All Lists]
Advanced

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

bug#13001: Reporting potential bug | uname -p and uname -i return unknow


From: Mike Frysinger
Subject: bug#13001: Reporting potential bug | uname -p and uname -i return unknown on Debian
Date: Mon, 26 Nov 2012 13:11:36 -0500

On Mon, Nov 26, 2012 at 3:48 AM, Ashish, Agrawal wrote:
> I use the output of 'uname -p' in my product. It seems to work fine on very 
> other Linux distro that I have worked on (ex. RHEL, SUSE Linux Enterprise 
> Server and even Ubuntu 12.04), except Debian where it returns 'unknown'. The 
> following this the relevant information of my machine and setup.

this is because many distros patch coreutils' uname to return
something useful on Linux.  the GNU version relies on the standard
interfaces to do that (which they don't).

you can find the patch i've been keeping up-to-date in Gentoo:
http://sources.gentoo.org/gentoo/src/patchsets/coreutils/8.20/003_all_coreutils-gentoo-uname.patch

> address@hidden:~# cat /etc/debian_version
> 6.0.5
> address@hidden:~# uname -a
> Linux IWFVM00285 2.6.32-5-amd64 #1 SMP Sun May 6 04:00:17 UTC 2012 x86_64 
> GNU/Linux
> address@hidden:~# uname -m
> x86_64
> address@hidden:~# uname -p
> unknown
> address@hidden:~# uname -i
> unknown

after applying the aforementioned patched, you'd get something like:
$ uname -a
Linux vapier 3.6.5 #5 SMP PREEMPT Wed Nov 14 01:08:40 EST 2012 x86_64
AMD Phenom(tm) II X4 980 Processor AuthenticAMD GNU/Linux
$ uname -m
x86_64
$ uname -p
AMD Phenom(tm) II X4 980 Processor
$ uname -i
AuthenticAMD

> I found relevant bugs raised earlier (for example, 
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=193170) but it seems either 
> it was fixed earlier and has resurfaced or it was marked as won't fix.

note: you've e-mailed the upstream GNU coreutils project, not the
Debian project.  if you want this functionality in Debian, you'll need
to file a bug with them.
-mike





reply via email to

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