Update linux distribution support to Debian Jesse

This is needed to compile C++11 code, completing the changes required by
the BoringSSL roll.

BUG=
R=kustermann@google.com

Review URL: https://codereview.chromium.org/2250383002 .
This commit is contained in:
William Hesse 2016-08-17 12:37:42 +02:00
parent afbbbb97cf
commit 1d8c09ed71
2 changed files with 6 additions and 6 deletions

View file

@ -116,7 +116,7 @@ def SrcSteps(build_info):
sys.exit(1)
if build_info.builder_tag == "debian_wheezy":
if not "wheezy" in stdout:
if not "jessie" in stdout:
print "Trying to build debian bits on a non debian system"
print "You can't fix this, please contact ricow@ or whesse@"
sys.exit(1)

View file

@ -72,13 +72,13 @@ debootstrap --arch=$ARCH --components=main,restricted,universe,multiverse \
wheezy $CHROOT http://http.us.debian.org/debian/
chroot $CHROOT apt-get update
chroot $CHROOT apt-get -y install \
debhelper python g++-4.6 git subversion
debhelper python git gcc sudo make
# Add chrome-bot user.
chroot $CHROOT groupadd --gid 1000 chrome-bot
chroot $CHROOT useradd --gid 1000 --uid 1000 --create-home chrome-bot
chroot $CHROOT groupadd --gid 1001 chrome-bot
chroot $CHROOT useradd --gid 1001 --uid 1001 --create-home chrome-bot
mkdir $CHROOT/b
chown 1000:1000 $CHROOT/b
chown 1001:1001 $CHROOT/b
# Create trampoline script for running the initialization as chrome-bot.
cat << EOF > $CHROOT/b/init_chroot_trampoline.sh
@ -111,6 +111,6 @@ fi
chmod 755 $CHROOT/b/init_chroot_trampoline.sh
chown 1000:1000 $CHROOT/b/init_chroot.sh
chown 1001:1001 $CHROOT/b/init_chroot.sh
chmod 755 $CHROOT/b/init_chroot.sh
chroot $CHROOT /bin/sh /b/init_chroot_trampoline.sh