Subject: bug#15757: "unknown" for uname -p related

From: Bernhard Voelker <[email-masked]>
Date: Wed, 30 Oct 2013 22:13:18 +0100

forcemerge 15757 13001
thanks

On 10/30/2013 06:21 PM, Jeffrin Jose wrote:
> hello ,
> 
> ------------cut-x-here---------
> $uname -p
> unknown
> $uname -m
> x86_64
> $uname -a
> Linux debian 3.11-1-amd64 #1 SMP Debian 3.11.5-1 (2013-10-17) x86_64 GNU/Linux
> $
> ---------cut-x-here----------
> 
> i will attach the output of cpuid command.
> http://www.ka9q.net/code/cpuid/
> 
> I think it is not a bug to show "unknown" for -p
> my processor is AMD A-Series
> 
> is possible to make "unknown" to the correct processor type.
> 
> Thanks.
> /Jeffrin.

Thanks for the report.
This one has already been discussed:
  http://bugs.gnu.org/13001

There are several patches maintained in various distributions
for retrieving the processor type from /proc/cpuinfo (but not
for Debian obviously), e.g.

Fedora:
http://pkgs.fedoraproject.org/cgit/coreutils.git/tree/coreutils-8.2-uname-processortype.patch

Gentoo:
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo/src/patchsets/coreutils/8.21/003_all_coreutils-gentoo-uname.patch?revision=1.1

openSUSE:
https://build.opensuse.org/package/view_file/Base:System/coreutils/coreutils-sysinfo.patch?expand=1

Unfortunately we didn't come to a conclusion yet on how
to maintain this in upstream coreutils.

Have a nice day,
Berny