From b299caa9b0fbba6ccf8f6e80475d728048bc9938 Mon Sep 17 00:00:00 2001 From: Ricardo Salveti de Araujo Date: Mon, 2 Nov 2009 19:07:38 -0300 Subject: [PATCH 007/118] pkgconfig.bbclass: Just stage files that can be read Files under .pc/ directory cannot be read. In native recipes the pkgconfig files are staged from source directory and if some pkgconfig file is found under .pc/ directory, it would be staged as well. As it cannot be read, the copy would fail and it would create an empty file under stage/ directory. Files under .pc/ must not be used as they are quilt files. Signed-off-by: Aloisio Almeida Jr Signed-off-by: Ricardo Salveti de Araujo --- classes/pkgconfig.bbclass | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/classes/pkgconfig.bbclass b/classes/pkgconfig.bbclass index f3d9371..bf391b1 100644 --- a/classes/pkgconfig.bbclass +++ b/classes/pkgconfig.bbclass @@ -11,7 +11,7 @@ SYSROOT_PREPROCESS_FUNCS += "pkgconfig_sysroot_preprocess" pkgconfig_sysroot_preprocess () { install -d ${SYSROOT_DESTDIR}${PKG_CONFIG_DIR} - for pc in `find ${S} -name '*.pc' -type f | grep -v -- '-uninstalled.pc$'`; do + for pc in `find ${S} -name '*.pc' -type f -perm '-u=r' | grep -v -- '-uninstalled.pc$'`; do pcname=`basename $pc` cat $pc > ${SYSROOT_DESTDIR}${PKG_CONFIG_DIR}/$pcname done -- 1.6.3.3