Branch: poky/1.3_M4 Gitinfo: dd3edc9fbb674682947e8218202fdbeef8635dd5 When running sstate-cache-management.sh in a build directory. I got the following error message: ########### builder@pek-yocto-build2:/buildarea1/yzhao1/poky/build-qemuppc$ ../scripts/sstate-cache-management.sh --cache-dir=./sstate-cache -d Figuring out the archs in the layers ... find: `/buildarea1/yzhao1/meta*': No such file or directory find: `/buildarea1/yzhao1/meta*': No such file or directory Done Figuring out the archs in the sstate cache dir ... Done The following archs have been found in the cache dir: ppc603e qemuppc x86_64 Figuring out the sstate-xxx_deploy-rpm.tgz ... (6 files will be removed) Figuring out the sstate-xxx_deploy-ipk.tgz ... (0 files will be removed) Figuring out the sstate-xxx_deploy-deb.tgz ... (0 files will be removed) Figuring out the sstate-xxx_deploy.tgz ... (0 files will be removed) Figuring out the sstate-xxx_package.tgz ... (6 files will be removed) Figuring out the sstate-xxx_populate-lic.tgz ... (2 files will be removed) Figuring out the sstate-xxx_populate-sysroot.tgz ... (6 files will be removed) 20 files will be removed! Do you want to continue (y/n)? ############ meta* directories should be in /buildarea1/yzhao1/poky/ , but somehow the script searches the upper directory.
Patch sent to ML.
Hi Martin, I saw your patch had been merged. Would you please add the cgit link and mark the status as RESOLVED ? Then we will verify it. Thanks.
http://git.openembedded.org/openembedded-core/commit/?id=b02d334e0e6a19a1bf3550add68f5770a835c772
The patch didn't fix the issue. It still happened. gitinfo: danny/86c9aa8081f107420cd3763d0566d779daddc2b1 ########## $ ../scripts/sstate-cache-management.sh --cache-dir=./sstate-cache -d Figuring out the archs in the layers ... find: `/buildarea1/yzhao1/meta*': No such file or directory Done Figuring out the archs in the sstate cache dir ... Done The following archs have been found in the cache dir: mips32 qemumips x86_64 ... ... ###########
There is second fine above that, try: diff --git a/scripts/sstate-cache-management.sh b/scripts/sstate-cache-management.sh index 4c06fe8..551d2f2 100755 --- a/scripts/sstate-cache-management.sh +++ b/scripts/sstate-cache-management.sh @@ -172,7 +172,7 @@ remove_duplicated () { echo -n "Figuring out the archs in the layers ... " oe_core_dir=$(dirname $(dirname $(readlink -e $0))) topdir=$(dirname $oe_core_dir) - tunedirs="`find $topdir/meta* ${oe_core_dir}/meta* $layers -path '*/meta*/conf/machine/include'`" + tunedirs="`find $topdir/meta* ${oe_core_dir}/meta* $layers -path '*/meta*/conf/machine/include' 2>/dev/null`" [ -n "$tunedirs" ] || echo_error "Can't find the tune directory" all_machines="`find $topdir/meta* ${oe_core_dir}/meta* $layers -path '*/meta*/conf/machine/*' -name '*.conf' 2>/dev/null | sed -e 's/.*\///' -e 's/.conf$// all_archs=`grep -r -h "^AVAILTUNES .*=" $tunedirs | sed -e 's/.*=//' -e 's/\"//g'`
(In reply to comment #5) > There is second fine above that, try: > > diff --git a/scripts/sstate-cache-management.sh > b/scripts/sstate-cache-management.sh > index 4c06fe8..551d2f2 100755 > --- a/scripts/sstate-cache-management.sh > +++ b/scripts/sstate-cache-management.sh > @@ -172,7 +172,7 @@ remove_duplicated () { > echo -n "Figuring out the archs in the layers ... " > oe_core_dir=$(dirname $(dirname $(readlink -e $0))) > topdir=$(dirname $oe_core_dir) > - tunedirs="`find $topdir/meta* ${oe_core_dir}/meta* $layers -path > '*/meta*/conf/machine/include'`" > + tunedirs="`find $topdir/meta* ${oe_core_dir}/meta* $layers -path > '*/meta*/conf/machine/include' 2>/dev/null`" > [ -n "$tunedirs" ] || echo_error "Can't find the tune directory" > all_machines="`find $topdir/meta* ${oe_core_dir}/meta* $layers -path > '*/meta*/conf/machine/*' -name '*.conf' 2>/dev/null | sed -e 's/.*\///' -e > 's/.conf$// > all_archs=`grep -r -h "^AVAILTUNES .*=" $tunedirs | sed -e 's/.*=//' -e > 's/\"//g'` This patch could work.
Hi Martin, The patch has been merged. Would you please mark this as resolved? Thanks!
http://git.openembedded.org/openembedded-core/commit/?id=bde88116d9d7e86ca7ecac4cf990689f972b0b1c
Verified with 1.3 danny branch. gitinfo: 27af23e65f63b41962a7cfddba9e9372d5212396