Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 59774 - coreutils-5.2.1-r1 : 003_all_coreutils-gentoo-uname.patch is borked on amd64
Summary: coreutils-5.2.1-r1 : 003_all_coreutils-gentoo-uname.patch is borked on amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Seemant Kulleen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-08 08:27 UTC by Danny van Dyk (RETIRED)
Modified: 2004-08-25 18:52 UTC (History)
1 user (show)

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


Attachments
Repair the gentoo-uname patch for coreutils (coreutils-5.2.1-uname-amd64.patch,496 bytes, patch)
2004-08-08 08:28 UTC, Danny van Dyk (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Danny van Dyk (RETIRED) gentoo-dev 2004-08-08 08:27:38 UTC
The defined(__x86_64__) line is borked in mentioned file.
This causes an unexpected behaviour in uname, the hardware platform doesn't show up.

I will attach robmoss's patch to come around that.
Comment 1 Danny van Dyk (RETIRED) gentoo-dev 2004-08-08 08:28:51 UTC
Created attachment 37039 [details, diff]
Repair the gentoo-uname patch for coreutils
Comment 2 Jean-Michel Smith 2004-08-13 11:32:09 UTC
I can attest to this.

On a dual opteron compiled in 32bit mode 'uname -p' yeilds: 

AMD Opteron(tm) Processor 246

On the exact same hardware booted into a 64-bit environment, 'uname -p' reports the much less useful:

5

Any chance of this being fixed in the main portage tree?
Comment 3 Travis Tilley (RETIRED) gentoo-dev 2004-08-15 11:09:06 UTC
i've added a fix to the ebuild, but this still needs to make it into a patch tarball
Comment 4 Seemant Kulleen (RETIRED) gentoo-dev 2004-08-15 11:14:28 UTC
I'll add this to the tarball shortly, don't worry.
Comment 5 Seemant Kulleen (RETIRED) gentoo-dev 2004-08-25 18:52:37 UTC
added to the patch tarball for -r2.