Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135562 - uname -a no longer prints hardware platform in Linux
Summary: uname -a no longer prints hardware platform in Linux
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-04 13:55 UTC by Joshua Kinard
Modified: 2006-06-07 05:48 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Add UNAME_HARDWARE_PLATFORM back for linux systems (003_all_coreutils-gentoo-uname.patch,3.54 KB, patch)
2006-06-04 13:57 UTC, Joshua Kinard
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Kinard gentoo-dev 2006-06-04 13:55:57 UTC
It seems in coreutils-5.93, the UNAME_HARDWARE_PLATFORM define was deemed pointless and removed from the uname/cpuinfo patch.  This causes the second field defined in that patch to never print on linux systems.  For some archs, this field contains useful information, such as a the machine type.

Aforementioned changed:
http://www.gentoo.org/cgi-bin/viewcvs.cgi/src/patchsets/coreutils/5.93/generic/Attic/003_all_coreutils-gentoo-uname.patch?hidecvsroot=1&hideattic=0&r2=1.5&root=gentoo&r1=1.4&diff_format=u

Standard uname -a:
Linux dol-guldur 2.6.17-rc5-mipsgit-20060528 #3 SMP Sun May 28 20:57:27 EDT 2006 mips64 R14000 V2.3  FPU V0.0 GNU/Linux

With the define re-added:
Linux dol-guldur 2.6.17-rc5-mipsgit-20060528 #3 SMP Sun May 28 20:57:27 EDT 2006 mips64 R14000 V2.3  FPU V0.0 SGI Octane GNU/Linux

Not all archs probably need the second field, but in the case of MIPS (and maybe ppc/ppc64), it's useful as it reports the machine type.  A patch is attached that reverses this change.
Comment 1 Joshua Kinard gentoo-dev 2006-06-04 13:57:03 UTC
Created attachment 88380 [details, diff]
Add UNAME_HARDWARE_PLATFORM back for linux systems
Comment 2 Hardave Riar (RETIRED) gentoo-dev 2006-06-04 14:05:43 UTC
More specific, uname -i does not get set, which is ignored in uname -a if it is unknown.

Linux powerbook 2.6.17-rc3 #2 Fri May 5 17:44:52 MDT 2006 ppc 7447A, altivec supported GNU/Linux
Linux powerbook 2.6.17-rc3 #2 Fri May 5 17:44:52 MDT 2006 ppc 7447A, altivec supported PowerBook5,6 GNU/Linux
Comment 3 SpanKY gentoo-dev 2006-06-07 05:48:09 UTC
added back in