diff options
author | Michal Strehovský <MichalStrehovsky@users.noreply.github.com> | 2022-07-05 05:26:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-05 05:26:45 +0300 |
commit | 82fedf32fd238ff15c7a05a07ad28683f4b34c5c (patch) | |
tree | c4122d1acf02900e92fe634faadc0532a5dfdc47 | |
parent | a2fbb626ca7351ebf54730e384e5545521ecac1a (diff) |
Fix component governance issues (#222)
Azure Devops is complaining about unused garbage in the repo.
-rw-r--r-- | clang/tools/clang-fuzzer/Dockerfile | 41 | ||||
-rw-r--r-- | clang/utils/analyzer/Dockerfile | 70 | ||||
-rw-r--r-- | libc/utils/buildbot/Dockerfile | 36 | ||||
-rw-r--r-- | libcxx/utils/ci/Dockerfile | 95 | ||||
-rw-r--r-- | libcxx/utils/docker/debian9/buildbot/Dockerfile | 39 | ||||
-rw-r--r-- | lldb/tools/lldb-vscode/.npmrc | 1 | ||||
-rw-r--r-- | llvm/utils/docker/debian8/Dockerfile | 60 | ||||
-rw-r--r-- | llvm/utils/docker/example/Dockerfile | 39 | ||||
-rw-r--r-- | llvm/utils/docker/nvidia-cuda/Dockerfile | 33 | ||||
-rw-r--r-- | llvm/utils/vscode/.npmrc | 1 |
10 files changed, 2 insertions, 413 deletions
diff --git a/clang/tools/clang-fuzzer/Dockerfile b/clang/tools/clang-fuzzer/Dockerfile deleted file mode 100644 index 1ddf82954e21..000000000000 --- a/clang/tools/clang-fuzzer/Dockerfile +++ /dev/null @@ -1,41 +0,0 @@ -#===- llvm/tools/clang/tools/clang-fuzzer ---------------------------------===// -# -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -# -#===----------------------------------------------------------------------===// -# Produces an image that builds clang-proto-fuzzer -FROM ubuntu:16.04 -RUN apt-get update -y -RUN apt-get install -y autoconf automake libtool curl make g++ unzip wget git \ - binutils liblzma-dev libz-dev python-all cmake ninja-build subversion \ - pkg-config docbook2x - -WORKDIR /root - -# Get protobuf -RUN wget -qO- https://github.com/google/protobuf/releases/download/v3.3.0/protobuf-cpp-3.3.0.tar.gz | tar zxf - -RUN cd protobuf-3.3.0 && ./autogen.sh && ./configure && make -j $(nproc) && make check -j $(nproc) && make install && ldconfig -# Get LLVM -RUN svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm -RUN cd llvm/tools && svn co http://llvm.org/svn/llvm-project/cfe/trunk clang -r $(cd ../ && svn info | grep Revision | awk '{print $2}') -RUN cd llvm/projects && svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt -r $(cd ../ && svn info | grep Revision | awk '{print $2}') -# Build plain LLVM (stage 0) -RUN mkdir build0 && cd build0 && cmake -GNinja -DCMAKE_BUILD_TYPE=Release ../llvm && ninja -# Configure instrumented LLVM (stage 1) -RUN mkdir build1 && cd build1 && cmake -GNinja -DCMAKE_BUILD_TYPE=Release ../llvm \ - -DLLVM_ENABLE_ASSERTIONS=ON \ - -DCMAKE_C_COMPILER=`pwd`/../build0/bin/clang \ - -DCMAKE_CXX_COMPILER=`pwd`/../build0/bin/clang++ \ - -DLLVM_USE_SANITIZE_COVERAGE=YES \ - -DLLVM_USE_SANITIZER=Address -DCLANG_ENABLE_PROTO_FUZZER=ON -# Build the fuzzers -RUN cd build1 && ninja clang-fuzzer -RUN cd build1 && ninja clang-objc-fuzzer -RUN cd build1 && ninja clang-proto-fuzzer -RUN cd build1 && ninja clang-proto-to-cxx -RUN cd build1 && ninja clang-loop-proto-to-cxx -RUN cd build1 && ninja clang-loop-proto-to-llvm -RUN cd build1 && ninja clang-loop-proto-fuzzer -RUN cd build1 && ninja clang-llvm-proto-fuzzer diff --git a/clang/utils/analyzer/Dockerfile b/clang/utils/analyzer/Dockerfile deleted file mode 100644 index f74ff8aa95c2..000000000000 --- a/clang/utils/analyzer/Dockerfile +++ /dev/null @@ -1,70 +0,0 @@ -FROM ubuntu:bionic - -RUN apt-get update && apt-get install -y \ - apt-transport-https \ - ca-certificates \ - gnupg \ - software-properties-common \ - wget - -# newer CMake is required by LLVM -RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null -RUN apt-add-repository -y 'deb https://apt.kitware.com/ubuntu/ bionic main' - -# test system dependencies -RUN apt-get update && apt-get install -y \ - git=1:2.17.1-1ubuntu0.7 \ - gettext=0.19.8.1-6ubuntu0.3 \ - python3=3.6.7-1~18.04 \ - python3-pip=9.0.1-2.3~ubuntu1.18.04.1 \ - cmake=3.17.3-0kitware1 \ - ninja-build=1.8.2-1 - -# box2d dependencies -RUN apt-get install -y \ - libx11-dev=2:1.6.4-3ubuntu0.2 \ - libxrandr-dev=2:1.5.1-1 \ - libxinerama-dev=2:1.1.3-1 \ - libxcursor-dev=1:1.1.15-1 \ - libxi-dev=2:1.7.9-1 - -# symengine dependencies -RUN apt-get install -y \ - libgmp10=2:6.1.2+dfsg-2 \ - libgmp-dev=2:6.1.2+dfsg-2 - -# simbody dependencies -RUN apt-get install -y \ - liblapack-dev=3.7.1-4ubuntu1 - -# drogon dependencies -RUN apt-get install -y \ - libjsonrpccpp-dev=0.7.0-1build2 \ - uuid-dev=2.31.1-0.4ubuntu3.6 - -# tmux dependencies -RUN apt-get install -y \ - autotools-dev=20180224.1 \ - automake=1:1.15.1-3ubuntu2 \ - libncurses5-dev=6.1-1ubuntu1.18.04 \ - libevent-dev=2.1.8-stable-4build1 \ - pkg-config=0.29.1-0ubuntu2 \ - flex=2.6.4-6 \ - bison=2:3.0.4.dfsg-1build1 - -RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 1 - -VOLUME /analyzer -VOLUME /projects -VOLUME /llvm-project -VOLUME /build -VOLUME /scripts - -ENV PATH="/analyzer/bin:${PATH}" - -ADD entrypoint.py /entrypoint.py - -ADD requirements.txt /requirements.txt -RUN pip3 install -r /requirements.txt - -ENTRYPOINT ["python", "/entrypoint.py"] diff --git a/libc/utils/buildbot/Dockerfile b/libc/utils/buildbot/Dockerfile deleted file mode 100644 index 8c497be6db0c..000000000000 --- a/libc/utils/buildbot/Dockerfile +++ /dev/null @@ -1,36 +0,0 @@ -FROM debian:10 - -# Installing dependencies. -RUN dpkg --add-architecture i386 -RUN apt-get update && apt-get install -y build-essential clang subversion git \ - vim zip libstdc++6:i386 file binutils-dev binutils-gold cmake python-pip \ - ninja-build python3 -RUN python -m pip install buildbot-worker==2.8.4 - -# Temporary dependencies for AOR tests. -RUN apt-get install -y libmpfr-dev libmpc-dev - -# Change linker to gold. -RUN update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.gold" 20 - -# Create and switch to buildbot user. -RUN useradd buildbot --create-home -USER buildbot - -WORKDIR /home/buildbot - -# Use clang as the compiler. -ENV CC=/usr/bin/clang -ENV CXX=/usr/bin/clang++ - -ENV WORKER_NAME="libc-x86_64-debian" - -# Set up buildbot host and maintainer info. -RUN mkdir -p "${WORKER_NAME}/info/" -RUN bash -c "(uname -a ; \ - gcc --version | head -n1 ; ld --version \ - | head -n1 ; cmake --version | head -n1 ) > ${WORKER_NAME}/info/host" -RUN echo "Paula Toth <paulatoth@google.com>" > "${WORKER_NAME}/info/admin" - -ADD --chown=buildbot:buildbot run.sh . -ENTRYPOINT ["./run.sh"] diff --git a/libcxx/utils/ci/Dockerfile b/libcxx/utils/ci/Dockerfile deleted file mode 100644 index 63f747203796..000000000000 --- a/libcxx/utils/ci/Dockerfile +++ /dev/null @@ -1,95 +0,0 @@ -#===----------------------------------------------------------------------===## -# -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -# -#===----------------------------------------------------------------------===## - -# -# This Dockerfile describes the base image used to run the various libc++ -# build bots. By default, the image runs the Buildkite Agent, however one -# can also just start the image with a shell to debug CI failures. -# -# To start a Buildkite Agent, run it as: -# $ docker run --env-file secrets.env -it $(docker build -q .) -# -# The environment variables in `secrets.env` must be replaced by the actual -# tokens for this to work. These should obviously never be checked in. -# -# To start a shell in the Docker image, use: -# $ docker run -it --volume "$(git rev-parse --show-toplevel):/llvm" --workdir "/llvm" $(docker build -q .) bash -# -# This will fire up the Docker container and mount the root of the monorepo -# as /llvm in the container. Be careful, the state in /llvm is shared between -# the container and the host machine. -# -# Finally, a pre-built version of this image is available on DockerHub as -# ldionne/libcxx-builder. To use the pre-built version of the image, use -# -# $ docker pull ldionne/libcxx-builder -# $ docker run -it <options> ldionne/libcxx-builder -# -# To update the image, rebuild it and push it to ldionne/libcxx-builder (which -# will obviously only work if you have permission to do so). -# -# $ docker build -t ldionne/libcxx-builder . -# $ docker push ldionne/libcxx-builder -# - -FROM ubuntu:bionic - -# Make sure apt-get doesn't try to prompt for stuff like our time zone, etc. -ENV DEBIAN_FRONTEND=noninteractive - -RUN apt-get update && apt-get install -y bash curl - -# Install various tools used by the build or the test suite -RUN apt-get update && apt-get install -y ninja-build python3 python3-sphinx python3-distutils git gdb -RUN apt-get update && apt-get install -y libc6-dev-i386 # Required to cross-compile to 32 bits - -# Install the most recently released LLVM -RUN apt-get update && apt-get install -y lsb-release wget software-properties-common -RUN wget https://apt.llvm.org/llvm.sh -O /tmp/llvm.sh -RUN bash /tmp/llvm.sh -RUN LLVM_VERSION=$(find /usr/bin -regex '^.+/clang-[0-9.]+$') && LLVM_VERSION=${LLVM_VERSION#*clang-} && echo "LLVM_VERSION=$LLVM_VERSION" > /tmp/env.sh -RUN ln -s $(find /usr/bin -regex '^.+/clang\+\+-[0-9.]+$') /usr/bin/clang++ && [ -e $(readlink /usr/bin/clang++) ] -RUN ln -s $(find /usr/bin -regex '^.+/clang-[0-9.]+$') /usr/bin/clang && [ -e $(readlink /usr/bin/clang) ] - -# Install the not-yet-released LLVM -RUN . /tmp/env.sh && echo "LLVM_TOT_VERSION=$(($LLVM_VERSION + 1))" >> /tmp/env.sh -RUN . /tmp/env.sh && bash /tmp/llvm.sh ${LLVM_TOT_VERSION} -RUN . /tmp/env.sh && ln -s /usr/bin/clang++-${LLVM_TOT_VERSION} /usr/bin/clang++-tot && [ -e $(readlink /usr/bin/clang++-tot) ] -RUN . /tmp/env.sh && ln -s /usr/bin/clang-${LLVM_TOT_VERSION} /usr/bin/clang-tot && [ -e $(readlink /usr/bin/clang-tot) ] - -# Install clang-format -RUN . /tmp/env.sh && apt-get install -y clang-format-$LLVM_VERSION -RUN ln -s $(find /usr/bin -regex '^.+/clang-format-[0-9.]+$') /usr/bin/clang-format && [ -e $(readlink /usr/bin/clang-format) ] -RUN ln -s $(find /usr/bin -regex '^.+/git-clang-format-[0-9.]+$') /usr/bin/git-clang-format && [ -e $(readlink /usr/bin/git-clang-format) ] - -# Install a recent GCC -RUN add-apt-repository ppa:ubuntu-toolchain-r/test -RUN apt-get update && apt install -y gcc-10 g++-10 -RUN ln -f -s /usr/bin/g++-10 /usr/bin/g++ && [ -e $(readlink /usr/bin/g++) ] -RUN ln -f -s /usr/bin/gcc-10 /usr/bin/gcc && [ -e $(readlink /usr/bin/gcc) ] - -# Install a recent CMake -RUN wget https://github.com/Kitware/CMake/releases/download/v3.18.2/cmake-3.18.2-Linux-x86_64.sh -O /tmp/install-cmake.sh -RUN bash /tmp/install-cmake.sh --prefix=/usr --exclude-subdir --skip-license -RUN rm /tmp/install-cmake.sh - -# Change the user to a non-root user, since some of the libc++ tests -# (e.g. filesystem) require running as non-root. Also setup passwordless sudo. -RUN apt-get update && apt-get install -y sudo -RUN echo "ALL ALL = (ALL) NOPASSWD: ALL" >> /etc/sudoers -RUN useradd --create-home libcxx-builder -USER libcxx-builder -WORKDIR /home/libcxx-builder - -# Install the Buildkite agent and dependencies. This must be done as non-root -# for the Buildkite agent to be installed in a path where we can find it. -RUN bash -c "$(curl -sL https://raw.githubusercontent.com/buildkite/agent/master/install.sh)" -ENV PATH="${PATH}:/home/libcxx-builder/.buildkite-agent/bin" - -# By default, start the Buildkite agent (this requires a token). -CMD buildkite-agent start --tags "queue=libcxx-builders" diff --git a/libcxx/utils/docker/debian9/buildbot/Dockerfile b/libcxx/utils/docker/debian9/buildbot/Dockerfile deleted file mode 100644 index 7da50687b952..000000000000 --- a/libcxx/utils/docker/debian9/buildbot/Dockerfile +++ /dev/null @@ -1,39 +0,0 @@ - -#===-------------------------------------------------------------------------------------------===// -# buildslave -#===-------------------------------------------------------------------------------------------===// -ARG gcc_tot -ARG llvm_tot - -FROM ${gcc_tot} AS gcc-tot -FROM ${llvm_tot} AS llvm-tot - -FROM debian:stretch AS base-image - -ADD install-packages.sh /tmp/ -RUN /tmp/install-packages.sh && rm /tmp/install-packages.sh - -COPY --from=ericwf/gcc:5.5.0 /compiler /opt/gcc-5 - -FROM base-image as worker-image - -COPY --from=gcc-tot /compiler /opt/gcc-tot -COPY --from=llvm-tot /compiler /opt/llvm-tot - -ENV PATH /opt/llvm-tot/bin:$PATH - -RUN clang++ --version && echo hello -RUN g++ --version - - -RUN /opt/gcc-tot/bin/g++ --version -RUN /opt/llvm-tot/bin/clang++ --version -RUN /opt/llvm-tot/bin/clang --version - -# FIXME(EricWF): remove this once the buildbot's config doesn't clobber the path. -RUN ln -s /opt/llvm-tot/bin/clang /usr/local/bin/clang -RUN ln -s /opt/llvm-tot/bin/clang++ /usr/local/bin/clang++ - - -ADD run_buildbot.sh / -CMD /run_buildbot.sh /run/secrets/buildbot-auth diff --git a/lldb/tools/lldb-vscode/.npmrc b/lldb/tools/lldb-vscode/.npmrc new file mode 100644 index 000000000000..8701ec2998ee --- /dev/null +++ b/lldb/tools/lldb-vscode/.npmrc @@ -0,0 +1 @@ +registry=https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/ diff --git a/llvm/utils/docker/debian8/Dockerfile b/llvm/utils/docker/debian8/Dockerfile deleted file mode 100644 index 9d0e2b8d795e..000000000000 --- a/llvm/utils/docker/debian8/Dockerfile +++ /dev/null @@ -1,60 +0,0 @@ -#===- llvm/utils/docker/debian8/build/Dockerfile -------------------------===// -# -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -# -#===----------------------------------------------------------------------===// -# Stage 1. Check out LLVM source code and run the build. -FROM launcher.gcr.io/google/debian8:latest as builder -LABEL maintainer "LLVM Developers" -# Install build dependencies of llvm. -# First, Update the apt's source list and include the sources of the packages. -RUN grep deb /etc/apt/sources.list | \ - sed 's/^deb/deb-src /g' >> /etc/apt/sources.list -# Install compiler, python and subversion. -RUN apt-get update && \ - apt-get install -y --no-install-recommends ca-certificates gnupg \ - build-essential python wget subversion unzip && \ - rm -rf /var/lib/apt/lists/* -# Install a newer ninja release. It seems the older version in the debian repos -# randomly crashes when compiling llvm. -RUN wget "https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip" && \ - echo "d2fea9ff33b3ef353161ed906f260d565ca55b8ca0568fa07b1d2cab90a84a07 ninja-linux.zip" \ - | sha256sum -c && \ - unzip ninja-linux.zip -d /usr/local/bin && \ - rm ninja-linux.zip -# Import public key required for verifying signature of cmake download. -RUN gpg --keyserver hkp://pgp.mit.edu --recv 0x2D2CEF1034921684 -# Download, verify and install cmake version that can compile clang into /usr/local. -# (Version in debian8 repos is is too old) -RUN mkdir /tmp/cmake-install && cd /tmp/cmake-install && \ - wget "https://cmake.org/files/v3.7/cmake-3.7.2-SHA-256.txt.asc" && \ - wget "https://cmake.org/files/v3.7/cmake-3.7.2-SHA-256.txt" && \ - gpg --verify cmake-3.7.2-SHA-256.txt.asc cmake-3.7.2-SHA-256.txt && \ - wget "https://cmake.org/files/v3.7/cmake-3.7.2-Linux-x86_64.tar.gz" && \ - ( grep "cmake-3.7.2-Linux-x86_64.tar.gz" cmake-3.7.2-SHA-256.txt | \ - sha256sum -c - ) && \ - tar xzf cmake-3.7.2-Linux-x86_64.tar.gz -C /usr/local --strip-components=1 && \ - cd / && rm -rf /tmp/cmake-install - -ADD checksums /tmp/checksums -ADD scripts /tmp/scripts - -# Checkout the source code. -ARG checkout_args -RUN /tmp/scripts/checkout.sh ${checkout_args} -# Run the build. Results of the build will be available at /tmp/clang-install/. -ARG buildscript_args -RUN /tmp/scripts/build_install_llvm.sh --to /tmp/clang-install ${buildscript_args} - - -# Stage 2. Produce a minimal release image with build results. -FROM launcher.gcr.io/google/debian8:latest -LABEL maintainer "LLVM Developers" -# Install packages for minimal useful image. -RUN apt-get update && \ - apt-get install -y --no-install-recommends libstdc++-4.9-dev binutils && \ - rm -rf /var/lib/apt/lists/* -# Copy build results of stage 1 to /usr/local. -COPY --from=builder /tmp/clang-install/ /usr/local/ diff --git a/llvm/utils/docker/example/Dockerfile b/llvm/utils/docker/example/Dockerfile deleted file mode 100644 index ebfb0e49c82c..000000000000 --- a/llvm/utils/docker/example/Dockerfile +++ /dev/null @@ -1,39 +0,0 @@ -#===- llvm/utils/docker/example/build/Dockerfile -------------------------===// -# -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -# -#===----------------------------------------------------------------------===// -# This is an example Dockerfile to build an image that compiles clang. -# Replace FIXMEs to prepare your own image. - -# Stage 1. Check out LLVM source code and run the build. -# FIXME: Replace 'ubuntu' with your base image -FROM ubuntu as builder -# FIXME: Change maintainer name -LABEL maintainer "Maintainer <maintainer@email>" -# FIXME: Install llvm/clang build dependencies here. Including compiler to -# build stage1, cmake, subversion, ninja, etc. - -ADD checksums /tmp/checksums -ADD scripts /tmp/scripts - -# Checkout the source code. -ARG checkout_args -RUN /tmp/scripts/checkout.sh ${checkout_args} -# Run the build. Results of the build will be available at /tmp/clang-install/. -ARG buildscript_args -RUN /tmp/scripts/build_install_llvm.sh --to /tmp/clang-install ${buildscript_args} - - -# Stage 2. Produce a minimal release image with build results. -# FIXME: Replace 'ubuntu' with your base image. -FROM ubuntu -# FIXME: Change maintainer name. -LABEL maintainer "Maintainer <maintainer@email>" -# FIXME: Install all packages you want to have in your release container. -# A minimal useful installation should include at least libstdc++ and binutils. - -# Copy build results of stage 1 to /usr/local. -COPY --from=builder /tmp/clang-install/ /usr/local/ diff --git a/llvm/utils/docker/nvidia-cuda/Dockerfile b/llvm/utils/docker/nvidia-cuda/Dockerfile deleted file mode 100644 index 5878259c27f4..000000000000 --- a/llvm/utils/docker/nvidia-cuda/Dockerfile +++ /dev/null @@ -1,33 +0,0 @@ -#===- llvm/utils/docker/nvidia-cuda/build/Dockerfile ---------------------===// -# -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -# -#===----------------------------------------------------------------------===// -# Stage 1. Check out LLVM source code and run the build. -FROM nvidia/cuda:8.0-devel as builder -LABEL maintainer "LLVM Developers" -# Install llvm build dependencies. -RUN apt-get update && \ - apt-get install -y --no-install-recommends ca-certificates cmake python \ - subversion ninja-build && \ - rm -rf /var/lib/apt/lists/* - -ADD checksums /tmp/checksums -ADD scripts /tmp/scripts - -# Checkout the source code. -ARG checkout_args -RUN /tmp/scripts/checkout.sh ${checkout_args} -# Run the build. Results of the build will be available at /tmp/clang-install/. -ARG buildscript_args -RUN /tmp/scripts/build_install_llvm.sh --to /tmp/clang-install ${buildscript_args} - - -# Stage 2. Produce a minimal release image with build results. -FROM nvidia/cuda:8.0-devel -LABEL maintainer "LLVM Developers" -# Copy clang installation into this container. -COPY --from=builder /tmp/clang-install/ /usr/local/ -# C++ standard library and binutils are already included in the base package. diff --git a/llvm/utils/vscode/.npmrc b/llvm/utils/vscode/.npmrc new file mode 100644 index 000000000000..8701ec2998ee --- /dev/null +++ b/llvm/utils/vscode/.npmrc @@ -0,0 +1 @@ +registry=https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/ |