Page MenuHome
Paste P1013

CentOS Buildbot

Authored by Sergey Sharybin (sergey) on Jun 27 2019, 1:53 PM.
"Like" token, awarded by swerner.
set -e
if [ `id -u` -ne 0 ]; then
echo "This script must be run as root"
exit 1
# yum-config-manager does not come in the default minimal install,
# so make sure it is installed and avialable.
yum -y update
yum -y install yum-utils
# We need newer nasm than the one shipped in the default repos.
yum-config-manager --add-repo
# Install all the packages needed for a new toolchain.
# NOTE: Keep this separate from the packages install, since otherwise
# older toolchain will be installed.
yum -y update
yum -y install epel-release
yum -y install centos-release-scl
yum -y install devtoolset-6
# Dependencies for Mesa
yum -y install python-mako expat-devel
# Install packages needed for Blenedr's dependencies.
yum -y install -y \
git subversion bzip2 tar cmake3 patch make autoconf automake libtool \
libXrandr-devel libXinerama-devel libXcursor-devel libXi-devel \
libX11-devel libXt-devel \
mesa-libGL-devel mesa-libGLU-devel zlib-devel \
wget tcl nasm yasm python36 python-setuptools bison flex
# Dependencies for pip (needed for buildbot-worker).
yum -y install python36-pip python36-devel
# Dependencies for asound.
yum -y install -y \
alsa-lib-devel pulseaudio-libs-devel
alternatives --install /usr/local/bin/cmake cmake /usr/bin/cmake 10 \
--slave /usr/local/bin/ctest ctest /usr/bin/ctest \
--slave /usr/local/bin/cpack cpack /usr/bin/cpack \
--slave /usr/local/bin/ccmake ccmake /usr/bin/ccmake \
--family cmake
alternatives --install /usr/local/bin/cmake cmake /usr/bin/cmake3 20 \
--slave /usr/local/bin/ctest ctest /usr/bin/ctest3 \
--slave /usr/local/bin/cpack cpack /usr/bin/cpack3 \
--slave /usr/local/bin/ccmake ccmake /usr/bin/ccmake3 \
--family cmake