From d05d3f991cfbd3c4af619fe87cfdcde0bc5da868 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Sat, 4 Nov 2006 15:49:36 +0000 Subject: binconfig.bbclass: protect foo-native stuff from do_install --- classes/binconfig.bbclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'classes/binconfig.bbclass') diff --git a/classes/binconfig.bbclass b/classes/binconfig.bbclass index ad33c0e498..317e080fc5 100644 --- a/classes/binconfig.bbclass +++ b/classes/binconfig.bbclass @@ -29,6 +29,8 @@ BINCONFIG_GLOB ?= "*-config" do_install_append() { + #the 'if' protects native packages, since we can't easily check for bb.data.inherits_class('native', d) in shell + if [ -e ${D}${bindir} ] ; then for config in `find ${S} -name '${BINCONFIG_GLOB}'`; do cat $config | sed \ -e 's:${STAGING_LIBDIR}:${libdir}:g;' \ @@ -36,6 +38,7 @@ do_install_append() { -e 's:${STAGING_DATADIR}:${datadir}:' \ -e 's:${STAGING_LIBDIR}/..:${prefix}:' > ${D}${bindir}/`basename $config` done + fi for lafile in `find ${D} -name *.la` ; do sed -i \ @@ -45,7 +48,6 @@ do_install_append() { -e 's:${STAGING_LIBDIR}/..:${prefix}:' \ $lafile done - } do_stage_append() { -- cgit v1.2.3