Thu, 15 Jan 2015 21:13:52 +0100
Remove forgotten relic of ABI crash risk averse overloaded method change.
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 import os
6 import platform
8 from mozboot.base import BaseBootstrapper
10 class CentOSBootstrapper(BaseBootstrapper):
11 def __init__(self, version, dist_id):
12 BaseBootstrapper.__init__(self)
14 self.version = version
15 self.dist_id = dist_id
17 self.group_packages = [
18 'Development Tools',
19 'Development Libraries',
20 'GNOME Software Development',
21 ]
23 self.packages = [
24 'alsa-lib-devel',
25 'autoconf213',
26 'curl-devel',
27 'dbus-glib-devel',
28 'glibc-static',
29 'gstreamer-devel',
30 'gstreamer-plugins-base-devel',
31 'gtk2-devel',
32 'libstdc++-static',
33 'libXt-devel',
34 'mercurial',
35 'mesa-libGL-devel',
36 'pulseaudio-libs-devel',
37 'wireless-tools-devel',
38 'yasm',
39 ]
41 def install_system_packages(self):
42 kern = platform.uname()
44 self.yum_groupinstall(*self.group_packages)
45 self.yum_install(*self.packages)
47 yasm = 'http://pkgs.repoforge.org/yasm/yasm-1.1.0-1.el6.rf.i686.rpm'
48 if 'x86_64' in kern[2]:
49 yasm = 'http://pkgs.repoforge.org/yasm/yasm-1.1.0-1.el6.rf.x86_64.rpm'
51 self.run_as_root(['rpm', '-ivh', yasm])
53 def upgrade_mercurial(self, current):
54 self.yum_update('mercurial')