mirror of
https://github.com/rommapp/romm.git
synced 2026-02-18 23:42:07 +01:00
revert ralibretro change
This commit is contained in:
@@ -31,8 +31,10 @@ sudo apt install libmariadb3 libmariadb-dev libpq-dev pipx
|
||||
|
||||
# Build and configure RAHasher (optional)
|
||||
# IMPORTANT! This is only required to calculate RA hashes. This is needed only if RA API is going to be enabled
|
||||
git clone --recursive --branch 1.8.0 --depth 1 https://github.com/RetroAchievements/RALibretro.git
|
||||
git clone --recursive https://github.com/RetroAchievements/RALibretro.git
|
||||
cd ./RALibretro
|
||||
git checkout 1.8.0
|
||||
git submodule update --init --recursive
|
||||
sed -i '22a #include <ctime>' ./src/Util.h
|
||||
make HAVE_CHD=1 -f ./Makefile.RAHasher
|
||||
cp ./bin64/RAHasher /usr/bin/RAHasher
|
||||
|
||||
@@ -66,19 +66,15 @@ RUN apk add --no-cache \
|
||||
make
|
||||
|
||||
# TODO: Move to a tagged release of `RALibretro`, once a version newer than 1.8.0 is released.
|
||||
ARG RALIBRETRO_SHA=304ed205f11dd0bb22c01afe11d1ffabf176facc
|
||||
ARG RALIBRETRO_VERSION=1.8.0
|
||||
# TODO: Remove `sed` command adding "ctime", when RAHasher can be compiled without it.
|
||||
# TODO: Remove `sed` command adding "unistd.h", when RAHasher can be compiled without it.
|
||||
# Related pull request: https://github.com/madler/zlib/pull/1022
|
||||
RUN git clone --recursive https://github.com/RetroAchievements/RALibretro.git && \
|
||||
cd ./RALibretro && \
|
||||
git checkout "${RALIBRETRO_SHA}" && \
|
||||
git checkout "${RALIBRETRO_VERSION}" && \
|
||||
git submodule update --init --recursive && \
|
||||
sed -i '22a #include <ctime>' ./src/Util.h && \
|
||||
sed -i '6a #include <unistd.h>' \
|
||||
./src/libchdr/deps/zlib-1.3.1/gzlib.c \
|
||||
./src/libchdr/deps/zlib-1.3.1/gzread.c \
|
||||
./src/libchdr/deps/zlib-1.3.1/gzwrite.c && \
|
||||
make HAVE_CHD=1 -f ./Makefile.RAHasher
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user