Skip to content

Commit

Permalink
fix: backported patch to fix #15516 from Luanti. (#29)
Browse files Browse the repository at this point in the history
Added some trivial patching mechanism for the Docker build, too.
  • Loading branch information
ronoaldo authored Jan 15, 2025
2 parents 92ecd77 + 0562370 commit 5adb6d5
Show file tree
Hide file tree
Showing 2 changed files with 632 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,25 @@ RUN apt-get update &&\

# Fetch source
RUN mkdir -p /usr/src &&\
git clone --depth=1 -b ${LUANTI_VERSION} \
git clone -b ${LUANTI_VERSION} \
https://github.com/minetest/minetest \
/usr/src/minetest &&\
rm -rf /usr/src/minetest/.git
RUN git clone --depth=1 https://github.com/minetest/minetest_game \
RUN git clone https://github.com/minetest/minetest_game \
/usr/src/minetest/games/minetest_game &&\
git -C /usr/src/minetest/games/minetest_game checkout ${MINETEST_GAME_VERSION}
RUN git clone \
https://github.com/LuaJIT/LuaJIT \
/usr/src/luajit &&\
git -C /usr/src/luajit checkout ${LUAJIT_VERSION}

# Apply patches
ADD patches /usr/src/patches
RUN cd /usr/src/minetest ;\
ls -1 /usr/src/patches/${LUANTI_VERSION}-*.patch | while read file ; do \
patch -p1 < $file ; \
done

# Install Contentdb CLI
RUN echo "Building for arch $(uname -m)" &&\
case $(uname -m) in \
Expand Down
Loading

0 comments on commit 5adb6d5

Please sign in to comment.