From 4d7d63ea95faf8f996cd947171adfe8c68a7af13 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Fri, 7 Sep 2018 17:17:11 +0530 Subject: Hande systems without pkg-config --- python/servo/command_base.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'python/servo/command_base.py') diff --git a/python/servo/command_base.py b/python/servo/command_base.py index 57865bac55d..d5269de42d2 100644 --- a/python/servo/command_base.py +++ b/python/servo/command_base.py @@ -481,7 +481,12 @@ class CommandBase(object): return path.join(bin_folder, "servo{}".format(BIN_SUFFIX)) def needs_gstreamer_env(self, target): - if check_gstreamer_lib(): + try: + if check_gstreamer_lib(): + return False + except: + # Some systems don't have pkg-config; we can't probe in this case + # and must hope for the best return False if "x86_64" not in (target or host_triple()): # We don't build gstreamer for non-x86_64 yet -- cgit v1.2.3