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:
Kevin Everets 2013-06-06 14:14:31 -04:00
Родитель d21228aea6
Коммит b8f2911fa0
3 изменённых файлов: 33 добавлений и 0 удалений

Просмотреть файл

@ -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')