bitbake.conf: add whoami to HOSTTOOLS
PATCH 1/1 bitbake.conf: add whoami to HOSTTOOLS
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
--- meta/conf/bitbake.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/conf/bitbake.conf +1 -1
@@ -462,7 +462,7 @@ HOSTTOOLS += " \ mktemp mv nm objcopy objdump od patch perl pod2man printf pwd python \ python2.7 python3 ranlib readelf readlink rm rmdir rpcgen sed sh sleep \ sort split stat strings strip tail tar tee test touch tr true uname uniq \ - wc wget which xargs \ + wc wget which whoami xargs \ " # Tools needed to run testimage runtime image testing
Signature · 1 line
2.7.4
Quoted 4 lines · Andrea Adami
Spotted in log
do_compileof linux:
/tmp/build/tmp-glibc/work-shared/c7x0/kernel-source/scripts/mkcompile_h:
line 46: whoami: command not found
We should not be embedding 'whoami' type information into compiled executables.
I'd almost suggest this is a bug in that specific program. I'd prefer we remove references to uname, whoami, etc. (Things that are going to embed user specific info.)
--Mark
Quoted 19 lines
Signed-off-by Andrea Adami <[email protected]>--- meta/conf/bitbake.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/conf/bitbake.conf +1
-1@@ -462,7 +462,7 @@ HOSTTOOLS += " \ mktemp mv nm objcopy objdump od patch perl pod2man printf pwd python \ python2.7 python3 ranlib readelf readlink rm rmdir rpcgen sed sh sleep \ sort split stat strings strip tail tar tee test touch tr true uname uniq \ - wc wget which xargs \ + wc wget which whoami xargs \ " # Tools needed to run testimage runtime image testing
Quoted 4 lines · On Wed, 29 Mar 2017 22:45:17 +0200 Andrea Adami <[email protected]> wrote:
Spotted in log
do_compileof 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.
Regards,
Andreas
Quoted 19 lines
Signed-off-by Andrea Adami <[email protected]>--- meta/conf/bitbake.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/conf/bitbake.conf +1
-1@@ -462,7 +462,7 @@ HOSTTOOLS += " \ mktemp mv nm objcopy objdump od patch perl pod2man printf pwd python \ python2.7 python3 ranlib readelf readlink rm rmdir rpcgen sed sh sleep \ sort split stat strings strip tail tar tee test touch tr true uname uniq \ - wc wget which xargs \ + wc wget which whoami xargs \ " # Tools needed to run testimage runtime image testing
Quoted 5 lines · Andreas Oberritter
Quoted 2 lines · On Wed, 29 Mar 2017 22:45:17 +0200 Andrea Adami <[email protected]> wrote:
Spotted in log
do_compileof linux:
Quoted 7 lines
Quoted 2 lines
/tmp/build/tmp-glibc/work-shared/c7x0/kernel-source/scripts/mkcompile_h:
line 46: whoami: command not foundAs an alternative, we could set
KBUILD_BUILD_USER(and possiblyKBUILD_BUILD_HOST) to a fixed or machine-based value in kernel.bbclass'EXTRA_OEMAKEvariable, which could also improve the reproducibility of builds.
Yes, this is a good alternative.
--Mark
Quoted 24 lines
Regards,
AndreasQuoted 19 lines
Signed-off-by Andrea Adami <[email protected]>--- meta/conf/bitbake.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/conf/bitbake.conf +1
-1@@ -462,7 +462,7 @@ HOSTTOOLS += " \ mktemp mv nm objcopy objdump od patch perl pod2man printf pwd python \ python2.7 python3 ranlib readelf readlink rm rmdir rpcgen sed sh sleep \ sort split stat strings strip tail tar tee test touch tr true uname uniq \ - wc wget which xargs \ + wc wget which whoami xargs \ " # Tools needed to run testimage runtime image testing
Quoted 9 lines · Andreas Oberritter
Quoted 6 lines · On Wed, 29 Mar 2017 22:45:17 +0200 Andrea Adami <[email protected]> wrote:
Spotted in log
do_compileof linux:/tmp/build/tmp-glibc/work-shared/c7x0/kernel-
source/scripts/mkcompile_h:
line 46: whoami: command not found
Quoted 6 lines
As an alternative, we could set
KBUILD_BUILD_USER(and possiblyKBUILD_BUILD_HOST) to a fixed or machine-based value in kernel.bbclass'EXTRA_OEMAKEvariable, 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
Quoted 17 lines · Richard Purdie
Quoted 9 lines · Andreas Oberritter
Quoted 6 lines · On Wed, 29 Mar 2017 22:45:17 +0200 Andrea Adami <[email protected]> wrote:
Spotted in log
do_compileof linux:
/tmp/build/tmp-glibc/work-shared/c7x0/kernel-
source/scripts/mkcompile_h:
line 46: whoami: command not foundQuoted 6 lines
As an alternative, we could set
KBUILD_BUILD_USER(and possiblyKBUILD_BUILD_HOST) to a fixed or machine-based value in kernel.bbclass'EXTRA_OEMAKEvariable, which could also improve the reproducibility of
builds.
Quoted 7 lines
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.
Cheers
Andrea
Quoted 29 lines · Andrea Adami
Quoted 27 lines · Richard Purdie
Quoted 11 lines · Andreas Oberritter
Quoted 7 lines · On Wed, 29 Mar 2017 22:45:17 +0200 Andrea Adami <[email protected]> wrote:
Spotted in log
do_compileof linux:/tmp/build/tmp-glibc/work-shared/c7x0/kernel-
source/scripts/mkcompile_h:
line 46: whoami: command not foundQuoted 7 lines
As an alternative, we could set
KBUILD_BUILD_USER(and possiblyKBUILD_BUILD_HOST) to a fixed or machine-based value in kernel.bbclass'EXTRA_OEMAKEvariable, 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,
Quoted 7 lines
Quoted 1 line
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