-
-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added separate Dockerfiles for riscv64 as suggested by #219 (comment). RISC-V needs `atomic` linked which is added to `LINUX_ALLOW_SYSTEM_LIBRARIES`. Tested locally with `./build-linux.py --target-triple riscv64-unknown-linux-gnu --python cpython-{3.9,3.10,3.11,3.12,3.13,3.14}` and all build fine.
- Loading branch information
Showing
13 changed files
with
166 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# Debian Buster. | ||
FROM debian@sha256:2a0c1b9175adf759420fe0fbd7f5b449038319171eb76554bb76cbe172b62b42 | ||
MAINTAINER Gregory Szorc <[email protected]> | ||
|
||
RUN groupadd -g 1000 build && \ | ||
useradd -u 1000 -g 1000 -d /build -s /bin/bash -m build && \ | ||
mkdir /tools && \ | ||
chown -R build:build /build /tools | ||
|
||
ENV HOME=/build \ | ||
SHELL=/bin/bash \ | ||
USER=build \ | ||
LOGNAME=build \ | ||
HOSTNAME=builder \ | ||
DEBIAN_FRONTEND=noninteractive | ||
|
||
CMD ["/bin/bash", "--login"] | ||
WORKDIR '/build' | ||
|
||
RUN for s in debian_buster debian_buster-updates debian-security_buster/updates; do \ | ||
echo "deb http://snapshot.debian.org/archive/${s%_*}/20250109T084424Z/ ${s#*_} main"; \ | ||
done > /etc/apt/sources.list && \ | ||
( echo 'quiet "true";'; \ | ||
echo 'APT::Get::Assume-Yes "true";'; \ | ||
echo 'APT::Install-Recommends "false";'; \ | ||
echo 'Acquire::Check-Valid-Until "false";'; \ | ||
echo 'Acquire::Retries "5";'; \ | ||
) > /etc/apt/apt.conf.d/99cpython-portable | ||
|
||
RUN apt-get update | ||
|
||
# Host building. | ||
RUN apt-get install \ | ||
bzip2 \ | ||
gcc \ | ||
g++ \ | ||
libc6-dev \ | ||
libffi-dev \ | ||
make \ | ||
patch \ | ||
perl \ | ||
pkg-config \ | ||
tar \ | ||
xz-utils \ | ||
unzip \ | ||
zip \ | ||
zlib1g-dev | ||
|
||
# Cross-building. | ||
RUN apt-get install \ | ||
gcc-aarch64-linux-gnu \ | ||
gcc-arm-linux-gnueabi \ | ||
gcc-arm-linux-gnueabihf \ | ||
gcc-mips-linux-gnu \ | ||
gcc-mips64el-linux-gnuabi64 \ | ||
gcc-mipsel-linux-gnu \ | ||
gcc-powerpc64le-linux-gnu \ | ||
gcc-riscv64-linux-gnu \ | ||
gcc-s390x-linux-gnu \ | ||
libc6-dev-arm64-cross \ | ||
libc6-dev-armel-cross \ | ||
libc6-dev-armhf-cross \ | ||
libc6-dev-mips-cross \ | ||
libc6-dev-mips64el-cross \ | ||
libc6-dev-mipsel-cross \ | ||
libc6-dev-ppc64el-cross \ | ||
libc6-dev-riscv64-cross \ | ||
libc6-dev-s390x-cross |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{% include 'build.cross-riscv64.Dockerfile' %} | ||
RUN apt-get install \ | ||
python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters