| Submitter | Nitin A Kamble |
|---|---|
| Date | Jan. 2, 2012, 8:38 p.m. |
| Message ID | <3dfd63a9d3cd981ee53a5f56a4ff2733fa721f76.1325536389.git.nitin.a.kamble@intel.com> |
| Download | mbox | patch |
| Permalink | /patch/17961/ |
| State | New |
| Headers | show |
Comments
On Mon, Jan 2, 2012 at 12:38 PM, <nitin.a.kamble@intel.com> wrote: > - cp ${STAGING_DATADIR}/aclocal/* ${B}/aclocal-copy/ > + # for scratch build this directory can be empty > + # so avoid cp's no files to copy error > + cp -r ${STAGING_DATADIR}/aclocal/. ${B}/aclocal-copy/ may be you should check for existence of directory then.
Patch
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass index 7536bac..2f462ff 100644 --- a/meta/classes/autotools.bbclass +++ b/meta/classes/autotools.bbclass @@ -122,7 +122,9 @@ autotools_do_configure() { # We avoid this by taking a copy here and then files cannot disappear. if [ -d ${STAGING_DATADIR}/aclocal ]; then mkdir -p ${B}/aclocal-copy/ - cp ${STAGING_DATADIR}/aclocal/* ${B}/aclocal-copy/ + # for scratch build this directory can be empty + # so avoid cp's no files to copy error + cp -r ${STAGING_DATADIR}/aclocal/. ${B}/aclocal-copy/ acpaths="$acpaths -I ${B}/aclocal-copy/" fi # autoreconf is too shy to overwrite aclocal.m4 if it doesn't look