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
= [
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)