Patchwork glib-2.0: Make the gtester-report installation conditional

login
register
mail settings
Submitter Richard Purdie
Date Aug. 14, 2014, 1:34 p.m.
Message ID <1408023253.22187.103.camel@ted>
Download mbox | patch
Permalink /patch/78221/
State Accepted
Commit 71135b348e1d72e908caa6f8479100ad9739c5bb
Headers show

Comments

Richard Purdie - Aug. 14, 2014, 1:34 p.m.
This isn't built/present under mingw builds so make installation
conditional upon its presence.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

Patch

diff --git a/meta/recipes-core/glib-2.0/glib.inc b/meta/recipes-core/glib-2.0/glib.inc
index ce908cf..373f962 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