From: Richard Purdie Date: Thu, 14 Aug 2014 13:34:13 +0000 (+0100) Subject: glib-2.0: Make the gtester-report installation conditional X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~32808 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53903afae4fe841c0d394172201660d5e3fad5d4;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git glib-2.0: Make the gtester-report installation conditional This isn't built/present under mingw builds so make installation conditional upon its presence. Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-core/glib-2.0/glib.inc b/meta/recipes-core/glib-2.0/glib.inc index ce908cf0f2b..373f96243a7 100644 --- a/meta/recipes-core/glib-2.0/glib.inc +++ b/meta/recipes-core/glib-2.0/glib.inc @@ -55,7 +55,9 @@ ARM_INSTRUCTION_SET = "arm" USE_NLS = "yes" do_install_append () { - sed ${D}${bindir}/gtester-report -i -e '1s|^#!.*|#!/usr/bin/env python|' + if [ -f ${D}${bindir}/gtester-report ]; then + sed ${D}${bindir}/gtester-report -i -e '1s|^#!.*|#!/usr/bin/env python|' + fi # Remove some unpackaged files rm -f ${D}${datadir}/glib-2.0/codegen/*.pyc