Skip to contentSkip to conversation

glib-2.0: Make the gtester-report installation conditional

PATCH New Richard Purdie 1 participant 1 message Aug 14, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 glib-2.0: Make the gtester-report installation conditional

This isn't built/present under mingw builds so make installation conditional upon its presence.

meta/recipes-core/glib-2.0/glib.inc +3 -1
index ce908cf..373f962 100644
@@ -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