Commit 32a318c7 authored by Igor Kobzar's avatar Igor Kobzar Committed by Facebook Github Bot

fbcode_builder: Update cmake for debian 8.6 os image

Summary: Debian 8.6 comes with a CMake version that is too old for folly. Add commands to update cmake.

Reviewed By: snarkmaster

Differential Revision: D6842797

fbshipit-source-id: 22f4c407f82a92c3fa90a5c2de334cf8b92e584b
parent fe3444b4
...@@ -246,6 +246,15 @@ class FBCodeBuilder(object): ...@@ -246,6 +246,15 @@ class FBCodeBuilder(object):
'apt-get upgrade -yq cmake' 'apt-get upgrade -yq cmake'
))) )))
# Debian 8.6 comes with a CMake version that is too old for folly.
if self.option('os_image') == 'debian:8.6':
actions.append(self.run(ShellQuoted(
'echo deb http://ftp.debian.org/debian jessie-backports main '
'>> /etc/apt/sources.list.d/jessie-backports.list && '
'apt-get update && '
'apt-get -yq -t jessie-backports install cmake'
)))
actions.extend(self.debian_ccache_setup_steps()) actions.extend(self.debian_ccache_setup_steps())
return self.step('Install packages for Debian-based OS', actions) return self.step('Install packages for Debian-based OS', actions)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment