From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dan.rpsys.net (5751f4a1.skybroadband.com [87.81.244.161]) by mail.openembedded.org (Postfix) with ESMTP id 9347E77BEC for ; Thu, 30 Mar 2017 10:02:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by dan.rpsys.net (8.15.2/8.15.2/Debian-3) with ESMTP id v2UA0lXL003022; Thu, 30 Mar 2017 11:02:09 +0100 Received: from dan.rpsys.net ([127.0.0.1]) by localhost (dan.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Wqx_ooVPDWhH; Thu, 30 Mar 2017 11:02:09 +0100 (BST) Received: from hex ([192.168.3.34]) (authenticated bits=0) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id v2UA25Ok003498 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 30 Mar 2017 11:02:06 +0100 Message-ID: <1490868125.13980.347.camel@linuxfoundation.org> From: Richard Purdie To: Andrea Adami Date: Thu, 30 Mar 2017 11:02:05 +0100 In-Reply-To: References: <1490820317-3686-1-git-send-email-andrea.adami@gmail.com> <20170329230933.3b71d516@t510.zcs.saftware.de> <1490826296.13980.335.camel@linuxfoundation.org> X-Mailer: Evolution 3.18.5.2-0ubuntu3.1 Mime-Version: 1.0 Cc: openembedded-core Subject: Re: [PATCH] bitbake.conf: add whoami to HOSTTOOLS X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Mar 2017 10:02:10 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit On Thu, 2017-03-30 at 00:52 +0200, Andrea Adami wrote: > On Thu, Mar 30, 2017 at 12:24 AM, Richard Purdie > wrote: > > > > On Wed, 2017-03-29 at 23:09 +0200, Andreas Oberritter wrote: > > > > > > On Wed, 29 Mar 2017 22:45:17 +0200 > > > Andrea Adami wrote: > > > > > > > > > > > > > > > Spotted in log do_compile of linux: > > > > > > > >  /tmp/build/tmp-glibc/work-shared/c7x0/kernel- > > > > source/scripts/mkcompile_h: > > > >  line 46: whoami: command not found > > > As an alternative, we could set KBUILD_BUILD_USER (and possibly > > > KBUILD_BUILD_HOST) to a fixed or machine-based value in > > > kernel.bbclass' > > > EXTRA_OEMAKE variable, which could also improve the > > > reproducibility > > > of > > > builds. > > Agreed, I already suggested we should figure out how to pass in a > > deterministic value and said I would not accept a patch to add > > whoami > > to HOSTTOOLS. > > > > Cheers, > > > > Richard > Hello, > > well, I'm all for reproducible builds. > But there is the fact that this is the standard kernel behavior and > we > never limited the user choices about how to build/configure a kernel. Just because this is the standard kernel behaviour, it doesn't mean its "right" for us. There are multiple issues here: a) Builds are not deterministic b) Builds leak "host" information about the user that built it So we've identified an issue which I believe is something our general userbase (who are asking for reproducibility) will want us to fix, even if its not the upstream default kernel behaviour. The fact there is a kconfig option for this and a way to override it suggest even the upstream kernel people accept this is something people will want to configure. Cheers, Richard