Create Docker image for 32 bit linux client build as well
parent
57190a279a
commit
80be596654
@ -0,0 +1,24 @@
|
||||
From 382ea5d9d218ecbde1d46bfc8880d4057c13a169 Mon Sep 17 00:00:00 2001
|
||||
From: Jan Boon <jan.boon@kaetemi.be>
|
||||
Date: Tue, 22 Feb 2022 10:43:36 +0800
|
||||
Subject: [PATCH] Largefile patch
|
||||
|
||||
---
|
||||
configure.py | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/configure.py b/configure.py
|
||||
index cded265..dda5589 100755
|
||||
--- a/configure.py
|
||||
+++ b/configure.py
|
||||
@@ -340,6 +340,7 @@ else:
|
||||
'-fno-rtti',
|
||||
'-fno-exceptions',
|
||||
'-fvisibility=hidden', '-pipe',
|
||||
+ '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64',
|
||||
'-DNINJA_PYTHON="%s"' % options.with_python]
|
||||
if options.debug:
|
||||
cflags += ['-D_GLIBCXX_DEBUG', '-D_GLIBCXX_DEBUG_PEDANTIC']
|
||||
--
|
||||
2.34.1.windows.1
|
||||
|
@ -0,0 +1,48 @@
|
||||
FROM --platform=linux/386 steamrt_scout_i386:latest
|
||||
MAINTAINER Ryzom Core <https://wiki.ryzom.dev/>
|
||||
|
||||
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 90 \
|
||||
&& update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 90 \
|
||||
&& update-alternatives --set gcc "/usr/bin/gcc-9" \
|
||||
&& update-alternatives --set g++ "/usr/bin/g++-9"
|
||||
|
||||
RUN rm /usr/bin/cc \
|
||||
&& ln -s /usr/lib/gcc-9/bin/gcc-9 /usr/bin/cc
|
||||
|
||||
RUN update-alternatives --install /usr/bin/ld ld /usr/bin/ld.gold-2.30 90 \
|
||||
&& update-alternatives --set ld "/usr/bin/ld.gold-2.30"
|
||||
|
||||
RUN rm /usr/bin/addr2line && ln -s /usr/bin/addr2line-2.30 /usr/bin/addr2line \
|
||||
&& rm /usr/bin/ar && ln -s /usr/bin/ar-2.30 /usr/bin/ar \
|
||||
&& rm /usr/bin/as && ln -s /usr/bin/as-2.30 /usr/bin/as \
|
||||
&& rm /usr/bin/c++filt && ln -s /usr/bin/c++filt-2.30 /usr/bin/c++filt \
|
||||
&& ln -s /usr/bin/dwp-2.30 /usr/bin/dwp \
|
||||
&& rm /usr/bin/elfedit && ln -s /usr/bin/elfedit-2.30 /usr/bin/elfedit \
|
||||
&& rm /usr/bin/gold && ln -s /usr/bin/gold-2.30 /usr/bin/gold \
|
||||
&& rm /usr/bin/gprof && ln -s /usr/bin/gprof-2.30 /usr/bin/gprof \
|
||||
&& rm /usr/bin/nm && ln -s /usr/bin/nm-2.30 /usr/bin/nm \
|
||||
&& rm /usr/bin/objcopy && ln -s /usr/bin/objcopy-2.30 /usr/bin/objcopy \
|
||||
&& rm /usr/bin/objdump && ln -s /usr/bin/objdump-2.30 /usr/bin/objdump \
|
||||
&& rm /usr/bin/ranlib && ln -s /usr/bin/ranlib-2.30 /usr/bin/ranlib \
|
||||
&& rm /usr/bin/readelf && ln -s /usr/bin/readelf-2.30 /usr/bin/readelf \
|
||||
&& rm /usr/bin/size && ln -s /usr/bin/size-2.30 /usr/bin/size \
|
||||
&& rm /usr/bin/strings && ln -s /usr/bin/strings-2.30 /usr/bin/strings \
|
||||
&& rm /usr/bin/strip && ln -s /usr/bin/strip-2.30 /usr/bin/strip
|
||||
|
||||
COPY tool/quick_start/docker/ninja-lfs.diff ninja-lfs.diff
|
||||
RUN git clone git://github.com/ninja-build/ninja.git && cd ninja && git checkout release \
|
||||
&& git apply ../ninja-lfs.diff \
|
||||
&& ./configure.py --bootstrap && ./ninja \
|
||||
&& cp ./ninja `which ninja` \
|
||||
&& cd .. && rm -rf ninja && rm ninja-lfs.diff \
|
||||
&& ninja --version
|
||||
|
||||
#RUN git clone https://github.com/Kitware/CMake.git && cd CMake && git checkout release \
|
||||
# && cmake -G "Ninja" . && ninja \
|
||||
# && ninja install \
|
||||
# && cd .. && rm -rf CMake \
|
||||
# && cmake --version
|
||||
|
||||
RUN mkdir -p /mnt/nel
|
||||
|
||||
WORKDIR /mnt/nel
|
Loading…
Reference in New Issue