From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 2E0DD1381F3 for ; Wed, 14 Aug 2013 20:11:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 27B33E0CC0; Wed, 14 Aug 2013 20:11:13 +0000 (UTC) Received: from eu-ger-1.hurrikane.de (eu-ger-1.hurrikane.de [83.136.86.198]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9FB3AE0CBE for ; Wed, 14 Aug 2013 20:11:12 +0000 (UTC) Received: by eu-ger-1.hurrikane.de (Postfix, from userid 1000) id 5F23126C26; Wed, 14 Aug 2013 22:11:03 +0200 (CEST) From: Mark Kubacki To: gentoo-portage-dev@lists.gentoo.org Cc: W-Mark Kubacki 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 Message-Id: <1376511040-15874-4-git-send-email-wmark@hurrikane.de> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1376511040-15874-1-git-send-email-wmark@hurrikane.de> References: <1376511040-15874-1-git-send-email-wmark@hurrikane.de> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org X-Archives-Salt: 9401fcdd-427d-4efc-bd83-cdae171d9543 X-Archives-Hash: e734a920803c16a1e7e314b9f8074e79 From: W-Mark Kubacki 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 --- 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