[oe-commits] org.oe.dev autotools.bbclass: check if pkgconfig dir exists before trying to copy out pkgconfig files

koen commit oe at amethyst.openembedded.net
Mon Sep 1 17:59:48 UTC 2008


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

Author: koen at openembedded.org
Branch: org.openembedded.dev
Revision: 33f3d0a7c4cbdff4e2348d37b7add06e6c261f0e
ViewMTN: http://monotone.openembedded.org/revision/info/33f3d0a7c4cbdff4e2348d37b7add06e6c261f0e
Files:
1
classes/autotools.bbclass
Diffs:

#
# mt diff -r401f778bb577a75a8feb7a4e525ad9747552a9ea -r33f3d0a7c4cbdff4e2348d37b7add06e6c261f0e
#
#
#
# patch "classes/autotools.bbclass"
#  from [3acb6dbe08d32ccda69ed2a8b6a695611888de97]
#    to [b231959ebff8805dedb065d1dec1aa37cc39528b]
#
============================================================
--- classes/autotools.bbclass	3acb6dbe08d32ccda69ed2a8b6a695611888de97
+++ classes/autotools.bbclass	b231959ebff8805dedb065d1dec1aa37cc39528b
@@ -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