GNU bug report logs - #13001
Reporting potential bug | uname -p and uname -i return unknown on Debian

Previous Next

Package: coreutils;

Reported by: "Ashish, Agrawal" <agrawal.ashish <at> hp.com>

Date: Mon, 26 Nov 2012 09:33:02 UTC

Severity: normal

Merged with 15757, 21098

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 13001 <at> debbugs.gnu.org (full text, mbox):

From: "Voelker, Bernhard" <bernhard.voelker <at> siemens-enterprise.com>
To: Mike Frysinger <vapier <at> gentoo.org>, "Ashish, Agrawal"
	<agrawal.ashish <at> hp.com>
Cc: "13001 <at> debbugs.gnu.org" <13001 <at> debbugs.gnu.org>
Subject: RE: bug#13001: Reporting potential bug | uname -p and uname -i
	return	unknown on Debian
Date: Mon, 26 Nov 2012 18:41:32 +0000
Mike Frysinger wrote:

> 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

For reference, here's the downstream patch of openSuSE:
https://build.opensuse.org/package/view_file?expand=1&file=coreutils-sysinfo.patch&package=coreutils&project=openSUSE&rev=f0bf5d8bafd85e9efef6ccb334c83a53

It's not as sophisticated as the patch in Gentoo and
mostly uses a fallback to the value of 'uname -m':

  $ uname -mpi
  x86_64 x86_64 x86_64

Have a nice day,
Berny





This bug report was last modified 9 years and 305 days ago.

Previous Next


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