Skip to content

Commit 9c2c2ae

Browse files
committed
Update Dockerfile for Gentoo System
1 parent 6b8fd7c commit 9c2c2ae

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.packaging/Dockerfile.gentoo

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
FROM gentoo/stage3:latest
2+
3+
# Remove the default profile
4+
RUN rm -rf /etc/portage/make.profile
5+
6+
# Sync the portage tree
7+
RUN emerge-webrsync --no-pgp-verify
8+
9+
# Set the profile to the latest stable version
10+
RUN ln -snf /var/db/repos/gentoo/profiles/default/linux/amd64/23.0 /etc/portage/make.profile
11+
RUN rm -rf /etc/portage/etc
12+
RUN mkdir -p /etc/portage/etc/portage
13+
14+
# Set the profile to the latest stable version
15+
RUN eselect profile list
16+
RUN eselect profile set default/linux/amd64/23.0
17+
18+
# Install the necessary packages
19+
RUN emerge --quiet --oneshot --noreplace \
20+
dev-python/pip \
21+
sys-devel/gcc \
22+
sys-devel/gcc-config \
23+
dev-build/cmake \
24+
dev-build/ninja \
25+
dev-vcs/git \
26+
net-misc/curl \
27+
net-misc/wget \
28+
dev-libs/openssl \
29+
app-misc/ca-certificates
30+
31+
RUN git clone -b running-fixes --depth=1 https://github.com/llvm-ml/llvm-project \
32+
&& mkdir /llvm-project/build \
33+
&& cd /llvm-project/build \
34+
&& cmake -GNinja -DCMAKE_BUILD_TYPE=Release \
35+
-DLLVM_ENABLE_PROJECTS="clang;lld" \
36+
-DLLVM_ENABLE_RUNTIMES="compiler-rt;openmp" \
37+
-DCMAKE_INSTALL_PREFIX=/usr \
38+
-DLLVM_TARGETS_TO_BUILD=Native \
39+
-DLLVM_ENABLE_ASSERTIONS=ON \
40+
../llvm \
41+
&& ninja install \
42+
&& cd / \
43+
&& rm -rf /llvm-project
44+
45+
CMD ["/bin/bash"]

0 commit comments

Comments
 (0)