summaryrefslogtreecommitdiffstats
path: root/meta/classes/autotools.bbclass
diff options
context:
space:
mode:
authorNitin A Kamble <nitin.a.kamble@intel.com>2011-12-28 09:34:00 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-03 12:14:32 +0000
commitb33475730be59c50296dac05381914e11a927167 (patch)
tree109238949a12f05915829a9e2bcf879b53106903 /meta/classes/autotools.bbclass
parent07d83910c2f17f66fc5d28e0203d00d7c1cd150e (diff)
downloadpoky-b33475730be59c50296dac05381914e11a927167.tar.gz
autotools.bbclass: fix cp error for empty dir
the .../usr/share/aclocal is empty for build from scratch. so avoid cp error if the directory is empty. Fixes this error, which is thrown before pseudo is built: | cp: cannot stat `/builddisk/build/build0/tmp/sysroots/x86_64-linux/usr/share/aclocal/*': No such file or directory NOTE: package libtool-native-2.4.2-r0.0: task do_configure: Failed (From OE-Core rev: f4ffe39450c3da33b24766a5f83ad06cc8ff950c) Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/autotools.bbclass')
-rw-r--r--meta/classes/autotools.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index 7536bac396..2f462ff93b 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -122,7 +122,9 @@ autotools_do_configure() {
122 # We avoid this by taking a copy here and then files cannot disappear. 122 # We avoid this by taking a copy here and then files cannot disappear.
123 if [ -d ${STAGING_DATADIR}/aclocal ]; then 123 if [ -d ${STAGING_DATADIR}/aclocal ]; then
124 mkdir -p ${B}/aclocal-copy/ 124 mkdir -p ${B}/aclocal-copy/
125 cp ${STAGING_DATADIR}/aclocal/* ${B}/aclocal-copy/ 125 # for scratch build this directory can be empty
126 # so avoid cp's no files to copy error
127 cp -r ${STAGING_DATADIR}/aclocal/. ${B}/aclocal-copy/
126 acpaths="$acpaths -I ${B}/aclocal-copy/" 128 acpaths="$acpaths -I ${B}/aclocal-copy/"
127 fi 129 fi
128 # autoreconf is too shy to overwrite aclocal.m4 if it doesn't look 130 # autoreconf is too shy to overwrite aclocal.m4 if it doesn't look