зеркало из https://github.com/mozilla/gecko-dev.git
Bug 880371 - Add debian bootstrapping for mach. r=gps
Nearly the same as Ubuntu bootstrap, but uses the build dependencies from Debian's "iceweasel" package instead.
This commit is contained in:
Родитель
d21228aea6
Коммит
b8f2911fa0
|
@ -35,6 +35,7 @@ REPOSITORY_PATHS = [
|
|||
'mozboot/base.py',
|
||||
'mozboot/bootstrap.py',
|
||||
'mozboot/centos.py',
|
||||
'mozboot/debian.py',
|
||||
'mozboot/fedora.py',
|
||||
'mozboot/gentoo.py',
|
||||
'mozboot/mint.py',
|
||||
|
|
|
@ -9,6 +9,7 @@ import platform
|
|||
import sys
|
||||
|
||||
from mozboot.centos import CentOSBootstrapper
|
||||
from mozboot.debian import DebianBootstrapper
|
||||
from mozboot.fedora import FedoraBootstrapper
|
||||
from mozboot.gentoo import GentooBootstrapper
|
||||
from mozboot.mint import MintBootstrapper
|
||||
|
@ -41,6 +42,8 @@ class Bootstrapper(object):
|
|||
|
||||
if distro == 'CentOS':
|
||||
cls = CentOSBootstrapper
|
||||
elif distro in ('Debian', 'debian'):
|
||||
cls = DebianBootstrapper
|
||||
elif distro == 'Fedora':
|
||||
cls = FedoraBootstrapper
|
||||
elif distro == 'Gentoo Base System':
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
# You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
import os
|
||||
|
||||
from mozboot.base import BaseBootstrapper
|
||||
|
||||
class DebianBootstrapper(BaseBootstrapper):
|
||||
def __init__(self, version, dist_id):
|
||||
BaseBootstrapper.__init__(self)
|
||||
|
||||
self.version = version
|
||||
self.dist_id = dist_id
|
||||
|
||||
def install_system_packages(self):
|
||||
self.run_as_root(['apt-get', 'build-dep', 'iceweasel'])
|
||||
|
||||
self.apt_install(
|
||||
'autoconf2.13',
|
||||
'libasound2-dev',
|
||||
'libcurl4-openssl-dev',
|
||||
'libiw-dev',
|
||||
'libnotify-dev',
|
||||
'libxt-dev',
|
||||
'mercurial',
|
||||
'mesa-common-dev',
|
||||
'uuid',
|
||||
'yasm')
|
Загрузка…
Ссылка в новой задаче