From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6662624591324643328 X-Received: by 2002:a1c:9c93:: with SMTP id f141mr190910wme.10.1551263293400; Wed, 27 Feb 2019 02:28:13 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:6582:: with SMTP id z124ls161078wmb.10.gmail; Wed, 27 Feb 2019 02:28:13 -0800 (PST) X-Google-Smtp-Source: AHgI3Iby96rlztWvOEhvNjd7oiAxRLczyl/xN45WLYvuwWzTyDyD4gUAyvDJwEBcRLKYB+JehQWq X-Received: by 2002:a1c:6c15:: with SMTP id h21mr188091wmc.10.1551263293077; Wed, 27 Feb 2019 02:28:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551263293; cv=none; d=google.com; s=arc-20160816; b=tWTo5owiToNPYHxkgFdZ05NLCgY0wrn0pCvhjplOAf58TlWcO0I33mnYdmRTv3YlBr ttrIPEqKcxBvOEJCXfJVBa+LrJvwq5+fbSepssivNOvKNjCQgfyKR3OrmgFAFVCivJay IPD3pAhoe39Ehcnlc2SVRQoxRD2D+eeoLgXbin9BLtSqPQmxIXTMC1doeKP0lpN4JAj/ Afh3K6PYWhkj6HKRPiI7OadmVWKTAUlXPlsKzMoVXOdfMaCG/L12f9YEp7eIrmI+P1DZ XkQxCBnDme7AsvUmWBGGyT+OdPfSf4TXodvMgXuFKVsM1/si+iXo8KefDmSDJwtoqI/3 4iaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date; bh=2a+z5bIEnZ560xNUhB3q98gYQbk+8bgInAbTIZRXbik=; b=Z0Zxj0A0n4Oa1t+KU5ftO5vlIqUk8XSw5pbneFzdX4Io1zvI72//FVBmd26TZC3Ah1 W5zNgIdPY3A/kJHm5ESMLSGFRSVVQHv8Y3tt68/DWy9aFheD616K6pSvfZg9RYgyvJJf qpZkrwyz8cZUsvhuF/nk4dXNnMSELtiXYnWDbIV+S2lQI4y2bAUNQdgutrbiielybYr2 Ww7TpAtwTlIMuGXhsF5oeI7lzPnMY5C/suvy9qBnpo9beIh4FVokpqm2S3Nv2IXBC+xE v1wbTDK/KXGYK+aAqtkcejjy6M17qmnfMyHNLtF4aKrkZXjsIcM/FNtH4GwMb7Amh7pJ OY1g== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Return-Path: Received: from lizzard.sbs.de (lizzard.sbs.de. [194.138.37.39]) by gmr-mx.google.com with ESMTPS id g10si68415wmk.1.2019.02.27.02.28.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Feb 2019 02:28:13 -0800 (PST) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 194.138.37.39 as permitted sender) client-ip=194.138.37.39; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id x1RASCEd032113 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 27 Feb 2019 11:28:12 +0100 Received: from md1za8fc.ad001.siemens.net ([139.25.69.171]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id x1RAS9wq001912; Wed, 27 Feb 2019 11:28:09 +0100 Date: Wed, 27 Feb 2019 11:28:09 +0100 From: Henning Schild To: Michael Adler Cc: , Jan Kiszka Subject: Re: [PATCH] buildchroot: do not assume group of "builder" to be "builder" Message-ID: <20190227112809.624060ea@md1za8fc.ad001.siemens.net> In-Reply-To: <20190227102606.18017-1-henning.schild@siemens.com> References: <20190227102606.18017-1-henning.schild@siemens.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TUID: BCmmzmFhtlll Michael, could you please give that a try. Building something like hello-isar should work. Henning On Wed, 27 Feb 2019 11:26:06 +0100 Henning Schild wrote: > From: Henning Schild > > We try to align the user and group ids of the user running bitbake > with the users inside the chroots. If that outside user happens to be > in a group that already exists in a fresh installation (i.e. > users:100) we will not create a group called "builder" so checking > the group name later will fail. Just check that the gid is the gid of > "builder" instead of checking that the group name is "builder". > > Reported-by: Michael Adler > Signed-off-by: Henning Schild > --- > meta/recipes-devtools/buildchroot/files/common.sh | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/meta/recipes-devtools/buildchroot/files/common.sh > b/meta/recipes-devtools/buildchroot/files/common.sh index > 9e6adbc..01d3c57 100644 --- > a/meta/recipes-devtools/buildchroot/files/common.sh +++ > b/meta/recipes-devtools/buildchroot/files/common.sh @@ -7,10 +7,10 @@ > set -e > printenv | grep -q BB_VERBOSE_LOGS && set -x > > -# assert we are either "root:root" or "builder:builder" > -if ([ "$(id -un)" != "builder" ] || [ "$(id -gn)" != "builder" ]) && > +# assert we are either "root:root" or "builder:" > +if ([ "$(id -un)" != "builder" ] || [ "$(id -g)" != "$(id -g > builder)" ]) && ([ "$(id -un)" != "root" ] || [ "$(id -gn)" != > "root" ]); then > - echo "This script can only be run as root:root or > builder:builder!" >&2 > + echo "This script can only be run as root:root or builder: of builder>!" >&2 echo "(Currently running as $(id -un)($(id > -u)):$(id -gn)($(id -g)))" >&2 exit 1 > fi