public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mark Kubacki <wmark@hurrikane.de>
To: gentoo-portage-dev@lists.gentoo.org
Cc: W-Mark Kubacki <wmark@hurrikane.de>
Subject: [gentoo-portage-dev] [PATCH 3/3] Add CPU model name to output of getportageversion as fifth element
Date: Wed, 14 Aug 2013 22:10:40 +0200	[thread overview]
Message-ID: <1376511040-15874-4-git-send-email-wmark@hurrikane.de> (raw)
In-Reply-To: <1376511040-15874-1-git-send-email-wmark@hurrikane.de>

From: W-Mark Kubacki <wmark@hurrikane.de>

It will read like this:
> Portage 2.1.13.7 (default/linux/amd64/13.0, gcc-4.6.2, glibc-2.18, 
> 3.9.0-rc8-mark-signed+ x86_64, Intel(R) Core(TM) i7-3770T CPU @ 2.50GHz)

That new fifth element will be the CPU model name of the host
running Portage. It is not the target architecture!

The former output is not sufficient to tell if a machine
has been downgraded (i.e. 3rd gen. Core i7 running a
configuration for x86 "Pentium Celeron") or to distinguish
between i.e. ARM CPUs ("arm5tel" could be a lot, including
incompatible instruction sets).

Signed-off-by: W-Mark Kubacki <wmark@hurrikane.de>
---
 pym/_emerge/actions.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py
index 52ceba4..e1873cd 100644
--- a/pym/_emerge/actions.py
+++ b/pym/_emerge/actions.py
@@ -3017,9 +3017,11 @@ def getportageversion(portdir, _unused, profile, chost, vardb):
 
 	gccver = getgccversion(chost)
 	unameout=platform.release()+" "+platform.machine()
+	cpu_model_name=platform.processor()
 
 	return "Portage %s (%s, %s, %s, %s)" % \
-		(portage.VERSION, profilever, gccver, ",".join(libcver), unameout)
+		(portage.VERSION, profilever, gccver, ",".join(libcver), unameout,
+		cpu_model_name)
 
 def git_sync_timestamps(portdb, portdir):
 	"""
-- 
1.8.3.2



  parent reply	other threads:[~2013-08-14 20:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-14 20:10 [gentoo-portage-dev] [PATCH 0/3] Implement a more verbose User-Agent HTTP-header Mark Kubacki
2013-08-14 20:10 ` [gentoo-portage-dev] [PATCH 1/3] Send exact version with " Mark Kubacki
2013-08-14 20:10 ` [gentoo-portage-dev] [PATCH 2/3] Send output of ```emerge --version``` as " Mark Kubacki
2013-08-15  6:25   ` Zac Medico
2013-08-14 20:10 ` Mark Kubacki [this message]
2013-08-14 20:27   ` [gentoo-portage-dev] Re: [PATCH 3/3] Add CPU model name to output of getportageversion as fifth element Mark Kubacki
2013-08-15  8:00   ` [gentoo-portage-dev] " Fabian Groffen
2013-08-24 22:39     ` Mike Frysinger
2013-08-15 10:58   ` Alexander Berntsen
2013-08-24 22:38     ` Mike Frysinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1376511040-15874-4-git-send-email-wmark@hurrikane.de \
    --to=wmark@hurrikane.de \
    --cc=gentoo-portage-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox