From 74ad7c6a11b82f2d3b8342f988eb65f98d8a49a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Mon, 29 Apr 2019 13:14:42 +0200 Subject: [PATCH] build helper gir: check for gobject-introspection Do not add gobject-introspection a second time if it is already contained in the hostmakedepends. --- common/build-helper/gir.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/common/build-helper/gir.sh b/common/build-helper/gir.sh index 394d86504b7..1021fbb9896 100644 --- a/common/build-helper/gir.sh +++ b/common/build-helper/gir.sh @@ -8,9 +8,11 @@ # Check if the 'gir' build_option is set or if there is no # 'gir' build_option. if [ "$build_option_gir" ] || [[ $build_options != *"gir"* ]]; then - # Provide the host tooling, g-ir-scanner, g-ir-compiler and its - # wrappers. - hostmakedepends+=" gobject-introspection" + if [[ $hostmakedepends != *"gobject-introspection"* ]]; then + # Provide the host tooling, g-ir-scanner, g-ir-compiler + # and its wrappers. + hostmakedepends+=" gobject-introspection" + fi if [ "$CROSS_BUILD" ]; then # Required for running binaries produced from g-ir-compiler