From 79a0f76d26d43c7f6e38a60fbe2ec6bed1510543 Mon Sep 17 00:00:00 2001 From: Martin Robinson Date: Sun, 7 Jan 2024 22:25:22 +0100 Subject: Fix the build on Ubuntu 20.04 (#31019) Ubuntu 20.04 doesn't have a new enough version of GStreamer, so automatically disable media when running on that platform. This also cleans up the media detection a bit, putting the result in a `enable-media` variable and moving some of the logic into the build scripts themselves rather than the platform module. --- python/servo/platform/base.py | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'python/servo/platform/base.py') diff --git a/python/servo/platform/base.py b/python/servo/platform/base.py index 39d7ae5f293..1024ab6c28f 100644 --- a/python/servo/platform/base.py +++ b/python/servo/platform/base.py @@ -26,11 +26,6 @@ class Base: def set_gstreamer_environment_variables_if_necessary( self, env: Dict[str, str], cross_compilation_target: Optional[str], check_installation=True ): - # Environment variables are not needed when cross-compiling on any platform other - # than Windows. GStreamer for Android is handled elsewhere. - if cross_compilation_target and (not self.is_windows or "android" in cross_compilation_target): - return - # We may not need to update environment variables if GStreamer is installed # for the system on Linux. gstreamer_root = self.gstreamer_root(cross_compilation_target) @@ -52,14 +47,6 @@ class Base: ) env["GST_PLUGIN_SYSTEM_PATH"] = os.path.join(gstreamer_root, "lib", "gstreamer-1.0") - # If we are not cross-compiling GStreamer must be installed for the system. In - # the cross-compilation case, we might be picking it up from another directory. - if check_installation and not self.is_gstreamer_installed(cross_compilation_target): - raise FileNotFoundError( - "GStreamer libraries not found (>= version 1.18)." - "Please see installation instructions in README.md" - ) - def gstreamer_root(self, _cross_compilation_target: Optional[str]) -> Optional[str]: raise NotImplementedError("Do not know how to get GStreamer path for platform.") -- cgit v1.2.3