From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 14AD0138350 for ; Mon, 13 Apr 2020 20:43:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 59BB4E0C22; Mon, 13 Apr 2020 20:43:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0629BE0C22 for ; Mon, 13 Apr 2020 20:43:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0E98834F2A9 for ; Mon, 13 Apr 2020 20:43:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 93FE51DA for ; Mon, 13 Apr 2020 20:43:27 +0000 (UTC) From: "Matt Turner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matt Turner" Message-ID: <1586810590.e28d8c5cc9e80003ae9eb8ba401601845f81a413.mattst88@gentoo> Subject: [gentoo-commits] proj/catalyst:master commit in: catalyst/base/ X-VCS-Repository: proj/catalyst X-VCS-Files: catalyst/base/stagebase.py X-VCS-Directories: catalyst/base/ X-VCS-Committer: mattst88 X-VCS-Committer-Name: Matt Turner X-VCS-Revision: e28d8c5cc9e80003ae9eb8ba401601845f81a413 X-VCS-Branch: master Date: Mon, 13 Apr 2020 20:43:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: bf6ff2e8-0688-4277-8429-c4cc61b0af65 X-Archives-Hash: ed7d222a2722006f0bdfe056177ad0ae commit: e28d8c5cc9e80003ae9eb8ba401601845f81a413 Author: Matt Turner gentoo org> AuthorDate: Sun Apr 12 01:01:31 2020 +0000 Commit: Matt Turner gentoo org> CommitDate: Mon Apr 13 20:43:10 2020 +0000 URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=e28d8c5c catalyst: Use platform.machine() instead of uname Signed-off-by: Matt Turner gentoo.org> catalyst/base/stagebase.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py index d1dd14b4..d18f28af 100644 --- a/catalyst/base/stagebase.py +++ b/catalyst/base/stagebase.py @@ -1,6 +1,7 @@ import os import imp +import platform import shutil import sys @@ -131,7 +132,7 @@ class StageBase(TargetBase, ClearBase, GenBase): if "cbuild" in self.settings: buildmachine = self.settings["cbuild"].split("-")[0] else: - buildmachine = os.uname()[4] + buildmachine = platform.machine() if buildmachine not in machinemap: raise CatalystError("Unknown build machine type " + buildmachine) self.settings["buildarch"] = machinemap[buildmachine]