| Summary: | sstate-cache-management.sh prints some error message when running | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Yi Zhao <yi.zhao> |
| Component: | devtools / tool chain | Assignee: | Martin Jansa <Martin.Jansa> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | liang.li2, liezhi.yang, meta.mr.watcher, meta.watcher, Qi.Chen, sgw, song.liu, yi.zhao |
| Version: | 1.3 | ||
| Target Milestone: | 1.3 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
|
Description
Yi Zhao
2012-09-14 02:59:50 UTC
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. 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! Verified with 1.3 danny branch. gitinfo: 27af23e65f63b41962a7cfddba9e9372d5212396 |