]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Bump clang other docker images to clang 5.0
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 15 Dec 2017 12:55:23 +0000 (12:55 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 15 Dec 2017 12:55:23 +0000 (12:55 +0000)
scripts/docker/build-debian8/Dockerfile.deps
scripts/docker/build-debian9/Dockerfile.deps
scripts/docker/build-ubuntu14/Dockerfile.deps
scripts/docker/build-ubuntu16/Dockerfile.deps

index 22717df09dda734d01ea73a801ae2396fe96aef5..545d6c55f4552a217c8eb7e26f4bb0baa8e7dc7e 100644 (file)
@@ -1,13 +1,24 @@
 FROM debian:jessie
 
-RUN apt-get update && apt-get install -y devscripts equivs git quilt
+RUN apt-get update && apt-get install -y devscripts equivs git quilt software-properties-common python-software-properties
 
 #
-#  Install GCC-4.9 as it has the requisite support for C11 keywords and atomics
+#   For GCC 4.9
 #
 RUN apt-get install -y g++-4.9
 RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 50 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9 && update-alternatives --config gcc
 
+#
+#   For clang 5.0
+#
+RUN add-apt-repository "http://apt.llvm.org/jessie/ llvm-toolchain-jessie-5.0 main"
+RUN apt-key adv --fetch-keys http://apt.llvm.org/llvm-snapshot.gpg.key
+RUN apt-get update
+RUN apt-get install -y llvm-5.0 clang-5.0 lldb-5.0
+
+RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-5.0 60 && update-alternatives --config clang
+RUN update-alternatives --install /usr/bin/lldb lldb /usr/bin/lldb-5.0 60 && update-alternatives --config lldb
+
 #
 #  Install eapol_test dependencies
 #
index 407a85f874a3cc74de6d9ce9d67386b0dd62c270..bd6f01967aa6a0396e2170c147ecb37169cd5912 100644 (file)
@@ -1,11 +1,22 @@
 FROM debian:stretch
 
-RUN apt-get update && apt-get install -y devscripts equivs git quilt
+RUN apt-get update && apt-get install -y devscripts equivs git quilt software-properties-common python-software-properties
 
 #
-#  Stretch uses gcc4.9 by default, so we don't need to install any additional compilers to get C11 functionality
+#  Stretch uses GCC 4.9 by default, so we don't need to install any additional compilers to get C11 functionality
 #
 
+#
+#  For clang 5.0
+#
+RUN add-apt-repository "deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch-5.0 main"
+RUN apt-key adv --fetch-keys http://apt.llvm.org/llvm-snapshot.gpg.key
+RUN apt-get update
+RUN apt-get install -y llvm-5.0 clang-5.0 lldb-5.0
+
+RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-5.0 60 && update-alternatives --config clang
+RUN update-alternatives --install /usr/bin/lldb lldb /usr/bin/lldb-5.0 60 && update-alternatives --config lldb
+
 #
 #  Install eapol_test dependencies
 #
index 6bb82ecf9178ad799ee88b0ba856b486cd161494..d7fab242df081518a488065c3014d4457f48af9e 100644 (file)
@@ -1,22 +1,23 @@
 FROM ubuntu:14.04
 
-RUN apt-get update && apt-get install -y devscripts equivs git quilt
+RUN apt-get update && apt-get install -y devscripts equivs git quilt software-properties-common python-software-properties
 
 #
-#  Install GCC-4.9 as it has the requisite support for C11 keywords and atomics
+#  For GCC 4.9
 #
-RUN apt-get install -y software-properties-common python-software-properties
-
-# For GCC-4.9
 RUN add-apt-repository ppa:ubuntu-toolchain-r/test
+RUN apt-get update
+RUN apt-get install -y g++-4.9
+RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 50 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9 && update-alternatives --config gcc
 
-# For clang-5.0
+#
+#  For Clang 5.0
+#
 RUN add-apt-repository "deb http://apt.llvm.org/trusty/ llvm-toolchain-trust-5.0 main"
 RUN apt-key adv --fetch-keys http://apt.llvm.org/llvm-snapshot.gpg.key
 RUN apt-get update
-RUN apt-get install -y g++-4.9 llvm-5.0 clang-5.0 lldb-5.0
+RUN apt-get install -y llvm-5.0 clang-5.0 lldb-5.0
 
-RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 50 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9 && update-alternatives --config gcc
 RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-5.0 60 && update-alternatives --config clang
 RUN update-alternatives --install /usr/bin/lldb lldb /usr/bin/lldb-5.0 60 && update-alternatives --config lldb
 
index ac7842cbaa92ce28c9547582c3e392c836f8d5cf..088e6332eede3abc91769bbfe8eb4402342fb780 100644 (file)
@@ -1,22 +1,23 @@
 FROM ubuntu:16.04
 
-RUN apt-get update && apt-get install -y devscripts equivs git quilt
+RUN apt-get update && apt-get install -y devscripts equivs git quilt software-properties-common python-software-properties
 
 #
-#  Install GCC-4.9 as it has the requisite support for C11 keywords and atomics
+#  For GCC 4.9
 #
-RUN apt-get install -y software-properties-common python-software-properties
-
-# For GCC-4.9
 RUN add-apt-repository ppa:ubuntu-toolchain-r/test
+RUN apt-get update
+RUN apt-get install -y g++-4.9
+RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 50 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9 && update-alternatives --config gcc
 
-# For clang-5.0
+#
+#  For clang 5.0
+#
 RUN add-apt-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-5.0 main"
 RUN apt-key adv --fetch-keys http://apt.llvm.org/llvm-snapshot.gpg.key
 RUN apt-get update
-RUN apt-get install -y g++-4.9 llvm-5.0 clang-5.0 lldb-5.0
+RUN apt-get install -y llvm-5.0 clang-5.0 lldb-5.0
 
-RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 50 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9 && update-alternatives --config gcc
 RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-5.0 60 && update-alternatives --config clang
 RUN update-alternatives --install /usr/bin/lldb lldb /usr/bin/lldb-5.0 60 && update-alternatives --config lldb