quilt: add ac_cv_path_BASH to CACHED_CONFIGUREVARS also for native
PATCH v2 1/1 quilt: add ac_cv_path_BASH to CACHED_CONFIGUREVARS also for native
A issue was fixed in target recipe with commit: 95893404
[
quilt: added ac_cv_path_BASH to CACHED_CONFIGUREVARS
On Fedora 17, bash has moved to /usr/bin/bash and the configure process finds it on the host machine there, this ensures that it is set correctly for the target.
[YOCTO #2363]
]
But it's also impacting native package in the case that the sstate is used between Fedora 17(or later) and other hosts.
--- meta/recipes-devtools/quilt/quilt-0.61.inc | 2 ++ meta/recipes-devtools/quilt/quilt_0.61.bb | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-)
meta/recipes-devtools/quilt/quilt-0.61.inc +2 -0
@@ -31,6 +31,8 @@ RDEPENDS_${PN} = "bash" EXTRA_OE_MAKE_ARGS_darwin ?= "" EXTRA_OE_MAKE_ARGS ?= "BUILD_ROOT=${D}" +CACHED_CONFIGUREVARS += "ac_cv_path_BASH=/bin/bash" + # quilt ignores DESTDIR do_install () { oe_runmake ${EXTRA_OE_MAKE_ARGS} install
meta/recipes-devtools/quilt/quilt_0.61.bb +0 -2
@@ -5,8 +5,6 @@ SRC_URI += "file://aclocal.patch \ file://gnu_patch_test_fix_target.patch \ " -CACHED_CONFIGUREVARS += "ac_cv_path_BASH=${base_bindir}/bash" - # fix build-distro specific perl path in the target perl scripts do_install_append() { for perlscript in ${D}${datadir}/quilt/scripts/remove-trailing-ws ${D}${datadir}/quilt/scripts/dependency-graph ${D}${datadir}/quilt/scripts/edmail ${D}${bindir}/guards
Signature · 1 line
1.8.3.3
meta/recipes-devtools/quilt/quilt_0.61.bb SRC_URI += "file://aclocal.patch \ · line 8
Quoted 4 lines · Ming Liu
meta/recipes-devtools/quilt/quilt_0.61.bb +1
-1+CACHED_CONFIGUREVARS += "ac_cv_path_BASH=/bin/bash" -CACHED_CONFIGUREVARS += "ac_cv_path_BASH=${base_bindir}/bash"
Why did you change this from ${base_bindir} to a hardcoded path?
p.
Quoted 6 lines · Phil Blundell
meta/recipes-devtools/quilt/quilt_0.61.bb SRC_URI += "file://aclocal.patch \ · line 8
Quoted 4 lines · Ming Liu
meta/recipes-devtools/quilt/quilt_0.61.bb +1
-1+CACHED_CONFIGUREVARS += "ac_cv_path_BASH=/bin/bash" -CACHED_CONFIGUREVARS += "ac_cv_path_BASH=${base_bindir}/bash"Why did you change this from ${base_bindir} to a hardcoded path?
Because base_bindir would be expanded as '${base_prefix}/bin' for native recipe, then it has to set DEPENDS on bash-native which I think is not what it supposed to be, the change would let it locate bash from host environment.
//Ming Liu
Quoted 6 lines
p.
Quoted 7 lines · Ming Liu
Quoted 6 lines · Phil Blundell
Quoted 3 lines · Ming Liu
+CACHED_CONFIGUREVARS += "ac_cv_path_BASH=/bin/bash" -CACHED_CONFIGUREVARS += "ac_cv_path_BASH=${base_bindir}/bash"
Quoted 6 lines
Quoted 1 line
Why did you change this from ${base_bindir} to a hardcoded path?
Because
base_bindirwould be expanded as '${base_prefix}/bin' for native recipe, then it has to set DEPENDS on bash-native which I think is not what it supposed to be, the change would let it locate bash from host environment.
I don't think so.
% git grep base_prefix meta/conf/bitbake.conf meta/conf/bitbake.conf:export base_prefix = "" meta/conf/bitbake.conf:export base_bindir = "${base_prefix}/bin"
...
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
Quoted 15 lines · Otavio Salvador
Quoted 7 lines · Ming Liu
Quoted 6 lines · Phil Blundell
Quoted 3 lines · Ming Liu
+CACHED_CONFIGUREVARS += "ac_cv_path_BASH=/bin/bash" -CACHED_CONFIGUREVARS += "ac_cv_path_BASH=${base_bindir}/bash"Quoted 6 lines
Quoted 1 line
Why did you change this from ${base_bindir} to a hardcoded path?
Because
base_bindirwould be expanded as '${base_prefix}/bin' for native recipe, then it has to set DEPENDS on bash-native which I think is not what it supposed to be, the change would let it locate bash from host environment.
Quoted 5 lines
I don't think so.
% git grep
base_prefixmeta/conf/bitbake.confmeta/conf/bitbake.conf:exportbase_prefix= "" meta/conf/bitbake.conf:exportbase_bindir= "${base_prefix}/bin"
Consider what native.bbclass does to this though. I suspect Ming is correct here...
Cheers,
Richard