Files
RedBear-OS/local/recipes/dev/libclc/source/clang/utils/analyzer/Dockerfile
T
vasilito cb424d7448 build: static patch-sanity linter (shift-left the malformed-patch class)
verify-patch-sanity.py validates every active recipe .patch has internally-
consistent hunk line counts — catching the 'malformed patch at line N' failure
at commit/CI/preflight time instead of hours into a cook. This cycle hit that
class three times (qtwaylandscanner, sddm, xwayland), each only discovered when
cookbook tried to apply the patch.

Running it across the repo found 29 latent malformed patches (validated against
GNU patch: e.g. relibc/P3-sysv-ipc reproduces 'malformed patch at line 22').
They were harmless only because they sit in vendored recipes (baked, not re-
applied) — but would fail on any version-bump re-derivation. --fix recounts the
hunk headers (body untouched) and repaired all 29.

Wired into build-preflight.sh (Phase 1.0D) and redbear-ci.yml, with a unit test
(test-patch-sanity.sh). Skips archived/legacy trees and unvalidatable formats
(empty placeholders, bare-@@ git hunks).
2026-08-01 05:13:02 +03:00

75 lines
1.7 KiB
Docker

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* \
gettext=0.19.8.1* \
python3=3.6.7-1~18.04 \
python3-pip=9.0.1-2.3* \
cmake=3.20.5* \
cmake-data=3.20.5* \
ninja-build=1.8.2-1
# box2d dependencies
RUN apt-get install -y \
libx11-dev=2:1.6.4-3* \
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-2ubuntu0.1 \
libgmp-dev=2:6.1.2+dfsg-2ubuntu0.1
# simbody dependencies
RUN apt-get install -y \
liblapack-dev=3.7.1-4*
# drogon dependencies
RUN apt-get install -y \
libjsonrpccpp-dev=0.7.0-1* \
uuid-dev=2.31.1-0.4*
# tmux dependencies
RUN apt-get install -y \
autotools-dev=20180224.1 \
automake=1:1.15.1-3* \
libncurses5-dev=6.1-1* \
libevent-dev=2.1.8* \
pkg-config=0.29.1-0* \
flex=2.6.4-6 \
bison=2:3.0.4.*
RUN apt-get install -y \
libjpeg-dev
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"]