<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jun 1, 2019, 1:47 AM Richard Purdie <<a href="mailto:richard.purdie@linuxfoundation.org">richard.purdie@linuxfoundation.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, 2019-05-31 at 11:57 -0500, Joshua Watt wrote:<br>
> The Makefile used for bash-ptest can pick up the path to the uninative<br>
> loader through BUILD_LDFLAGS. This includes the full path to the<br>
> uninative loader, which is not reproducible. Replace it with the target<br>
> loader in the event that these programs need to be compiled for bash<br>
> tests.<br>
> <br>
> Signed-off-by: Joshua Watt <<a href="mailto:JPEWhacker@gmail.com" target="_blank" rel="noreferrer">JPEWhacker@gmail.com</a>><br>
> ---<br>
> meta/recipes-extended/bash/bash.inc | 3 ++-<br>
> 1 file changed, 2 insertions(+), 1 deletion(-)<br>
> <br>
> diff --git a/meta/recipes-extended/bash/bash.inc b/meta/recipes-extended/bash/bash.inc<br>
> index 4b3692c6139..55f2b7704e6 100644<br>
> --- a/meta/recipes-extended/bash/bash.inc<br>
> +++ b/meta/recipes-extended/bash/bash.inc<br>
> @@ -4,7 +4,7 @@ SECTION = "base/shell"<br>
> <br>
> DEPENDS = "ncurses bison-native virtual/libiconv"<br>
> <br>
> -inherit autotools gettext texinfo update-alternatives ptest<br>
> +inherit autotools gettext texinfo update-alternatives ptest linuxloader<br>
> <br>
> EXTRA_AUTORECONF += "--exclude=autoheader --exclude=aclocal"<br>
> EXTRA_OECONF = "--enable-job-control --without-bash-malloc bash_cv_wexitstatus_offset=8"<br>
> @@ -70,6 +70,7 @@ do_install_ptest () {<br>
> -e 's|${DEBUG_PREFIX_MAP}||g' \<br>
> -e "s,${S},,g" -e "s,${B},,g" -e "s,${STAGING_DIR_NATIVE},,g" \<br>
> -e 's:${HOSTTOOLS_DIR}/::g' \<br>
> + -e 's:${UNINATIVE_LOADER}:${@get_linuxloader(d)}:g' \<br>
> ${D}${PTEST_PATH}/Makefile<br>
> }<br>
<br>
This change causes:<br>
<br>
<a href="https://autobuilder.yoctoproject.org/typhoon/#/builders/56/builds/490" rel="noreferrer noreferrer" target="_blank">https://autobuilder.yoctoproject.org/typhoon/#/builders/56/builds/490</a><br>
<br>
which you can reproduce with:<br>
<br>
oe-selftest -r sstatetests.SStateTests.test_sstate_32_64_same_hash<br>
<br>
which with some digging you can come to:<br>
<br>
$ bitbake-diffsigs tmp-sstatesamehash*/stamps/*-poky-linux/bash/*.do_install_ptest_base.sigdata.*<br>
NOTE: Starting bitbake server...<br>
basehash changed from d92c4da62ccda424103c7615dffc5f747da83bf64a46be63acc11633480a6bf6 to a26822f4999a6bdbe8e8e60db91c1400e2b4011b66d98a9ec57a53d6fc70dc88<br>
Variable UNINATIVE_LOADER value changed:<br>
@@ -1,4 +1,4 @@<br>
${UNINATIVE_STAGING_DIR}-uninative/${BUILD_ARCH}-linux/lib/${@bb.utils.contains('BUILD_ARCH', 'x86_64', 'ld-linux-x86-64.so.2', '', d)}${@bb.utils.contains('BUILD_ARCH', 'i686', 'ld-linux.so.2', '', d)}${@bb.utils.contains('BUILD_ARCH', 'aarch64', 'ld-linux-aarch64.so.1', '', d)}<br>
BUILD_ARCH{aarch64} = Unset<br>
-BUILD_ARCH{i686} = Set<br>
-BUILD_ARCH{x86_64} = Unset<br>
+BUILD_ARCH{i686} = Unset<br>
+BUILD_ARCH{x86_64} = Set<br>
<br>
which makes the problem fairly obvious when you see it put that way...<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Ah that makes sense. I was trying to be too cute :) I'll stick with my original plan of using /bin/false</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Cheers,<br>
<br>
Richard<br>
<br>
<br>
<br>
</blockquote></div></div></div>