[oe-commits] : autotools.bbclass: check if pkgconfig dir exists before trying to copy out pkgconfig files
OE GIT Trial
gittrial at amethyst.openembedded.net
Tue Aug 12 14:26:40 UTC 2008
Module: OE.dev
Branch: master
Commit: ad98740431ba4307d5627a80f2e135c2cb95bc0d
URL: http://gitweb.openembedded.net//OE.dev.git/?a=commit;h=ad98740431ba4307d5627a80f2e135c2cb95bc0d
Author: <koen at openembedded.org>
Date: Fri Aug 8 13:03:42 2008 +0000
autotools.bbclass: check if pkgconfig dir exists before trying to copy out pkgconfig files
* this is needed because e.g. not all gst recipes have .pc files, be we do want to install the ones that are present
---
classes/autotools.bbclass | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/classes/autotools.bbclass b/classes/autotools.bbclass
index 7137876..b4e78f8 100644
--- a/classes/autotools.bbclass
+++ b/classes/autotools.bbclass
@@ -215,8 +215,10 @@ autotools_stage_all() {
# b) packaged staging will fix that anyways. :M:
if [ "${AUTOTOOLS_STAGE_PKGCONFIG}" = "1" ]
then
- echo "cp -f ${STAGE_TEMP}/${libdir}/pkgconfig/*.pc ${STAGING_LIBDIR}/pkgconfig/"
- cp -f ${STAGE_TEMP}/${libdir}/pkgconfig/*.pc ${STAGING_LIBDIR}/pkgconfig/
+ if [ -e ${STAGE_TEMP}/${libdir}/pkgconfig/ ] ; then
+ echo "cp -f ${STAGE_TEMP}/${libdir}/pkgconfig/*.pc ${STAGING_LIBDIR}/pkgconfig/"
+ cp -f ${STAGE_TEMP}/${libdir}/pkgconfig/*.pc ${STAGING_LIBDIR}/pkgconfig/
+ fi
fi
rm -rf ${STAGE_TEMP}/${mandir} || true
rm -rf ${STAGE_TEMP}/${infodir} || true
More information about the Openembedded-commits
mailing list