]> code.ossystems Code Review - openembedded-core.git/commitdiff
bash: Replace uninative loader path in ptest
authorJoshua Watt <jpewhacker@gmail.com>
Thu, 6 Jun 2019 20:07:41 +0000 (15:07 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 7 Jun 2019 08:10:34 +0000 (09:10 +0100)
The Makefile used for bash-ptest can pick up the path to the uninative
loader through BUILD_LDFLAGS. This includes the full path to the
uninative loader, which is not reproducible. Replace it with /bin/false.
It doesn't appear as if these native programs are used in the test
suites and if there are likely to be other problems related to building
them using the BUILD_* flags.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/bash/bash.inc

index dbb803ddefd249ac062de51557b03134619b1744..4cf1054967c4b61168cfcbf84b9b1c07b311e8eb 100644 (file)
@@ -78,8 +78,13 @@ do_install_ptest () {
            -e 's|${DEBUG_PREFIX_MAP}||g' \
            -e "s,${S},,g" -e "s,${B},,g" -e "s,${STAGING_DIR_NATIVE},,g" \
            -e 's:${HOSTTOOLS_DIR}/::g' \
+           -e 's:${UNINATIVE_LOADER}:${base_bindir}/false:g' \
             ${D}${PTEST_PATH}/Makefile
 }
+# The uninative loader is different on i386 & x86_64 hosts. Since it is only
+# being replaced with /bin/false anyway, it doesn't need to be part of the task
+# hash
+do_install_ptest[vardepsexclude] += "UNINATIVE_LOADER"
 
 pkg_postinst_${PN} () {
        grep -q "^${base_bindir}/bash$" $D${sysconfdir}/shells || echo ${base_bindir}/bash >> $D${sysconfdir}/shells