Bug 1890689 Don't pretend to pre-buffer with DynamicResampler r=pehrsons
[gecko.git] / python / mozboot / mozboot / openbsd.py
blobb1432410c4797902dbcb1c823d89cd135037c1e1
1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 # You can obtain one at http://mozilla.org/MPL/2.0/.
5 from mozboot.base import BaseBootstrapper
8 class OpenBSDBootstrapper(BaseBootstrapper):
9 def __init__(self, version, **kwargs):
10 BaseBootstrapper.__init__(self, **kwargs)
12 self.packages = ["gmake", "gtar", "rust", "unzip"]
14 self.browser_packages = [
15 "llvm",
16 "cbindgen",
17 "nasm",
18 "node",
19 "gtk+3",
20 "pulseaudio",
23 def install_system_packages(self):
24 # we use -z because there's no other way to say "any autoconf-2.13"
25 self.run_as_root(["pkg_add", "-z"] + self.packages)
27 def install_browser_packages(self, mozconfig_builder, artifact_mode=False):
28 # TODO: Figure out what not to install for artifact mode
29 # we use -z because there's no other way to say "any autoconf-2.13"
30 self.run_as_root(["pkg_add", "-z"] + self.browser_packages)
32 def install_browser_artifact_mode_packages(self, mozconfig_builder):
33 self.install_browser_packages(mozconfig_builder, artifact_mode=True)