Skip to content

Commit 072a12d

Browse files
authored
fix build failing (again) (#49)
1 parent 94e9ad5 commit 072a12d

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

citron-appimage.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -ex
55
export APPIMAGE_EXTRACT_AND_RUN=1
66
export ARCH="$(uname -m)"
77

8-
REPO="https://git.citron-emu.org/Citron/Citron.git"
8+
REPO="https://git.citron-emu.org/citron/emu.git"
99
LIB4BN="https://raw.githubusercontent.com/VHSgunzo/sharun/refs/heads/main/lib4bin"
1010
URUNTIME="https://github.com/VHSgunzo/uruntime/releases/latest/download/uruntime-appimage-dwarfs-$ARCH"
1111

@@ -26,7 +26,7 @@ fi
2626
UPINFO="gh-releases-zsync|$(echo "$GITHUB_REPOSITORY" | tr '/' '|')|latest|*$ARCH.AppImage.zsync"
2727

2828
# BUILD CITRON, fallback to mirror if upstream repo fails to clone
29-
if ! git clone 'https://git.citron-emu.org/citron/emu.git' ./citron; then
29+
if ! git clone "$REPO" ./citron; then
3030
echo "Using mirror instead..."
3131
rm -rf ./citron || true
3232
git clone 'https://github.com/pkgforge-community/git.citron-emu.org-Citron-Citron.git' ./citron
@@ -46,10 +46,11 @@ fi
4646
fi
4747
git submodule update --init --recursive -j$(nproc)
4848

49-
#Replaces 'boost::asio::io_service' with 'boost::asio::io_context' for compatibility with Boost.ASIO versions 1.74.0 and later
50-
#UPSTREAM FIXED THIS https://git.citron-emu.org/Citron/Citron/commit/21ca0b31191c4af56a78576c502e8382b4c128b4
51-
#TODO: Remove once a new stable release is made
52-
find src -type f -name '*.cpp' -exec sed -i 's/boost::asio::io_service/boost::asio::io_context/g' {} \;
49+
# Upstream fixed this issue, but a newer version of boost came out and broke it again 🤣
50+
find . -type f \( -name '*.cpp' -o -name '*.h' \) | xargs sed -i 's/\bboost::asio::io_service\b/boost::asio::io_context/g'
51+
find . -type f \( -name '*.cpp' -o -name '*.h' \) | xargs sed -i 's/\bboost::asio::io_service::strand\b/boost::asio::strand<boost::asio::io_context::executor_type>/g'
52+
find . -type f \( -name '*.cpp' -o -name '*.h' \) | xargs sed -i 's|#include *<boost/process/async_pipe.hpp>|#include <boost/process/v1/async_pipe.hpp>|g'
53+
find . -type f \( -name '*.cpp' -o -name '*.h' \) | xargs sed -i 's/\bboost::process::async_pipe\b/boost::process::v1::async_pipe/g'
5354

5455
# remove mysterious sse2neon library dependency
5556
sed -i '/sse2neon/d' ./src/video_core/CMakeLists.txt

get-dependencies.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,6 @@ else
9191
pacman -Syu --noconfirm vulkan-freedreno vulkan-panfrost
9292
fi
9393

94-
# fix build failing with new version of boost
95-
# /usr/include/boost/async_pipe.hpp is gone on boos-t1.88. not sure if intended or a bug
96-
if [ "$(uname -m)" = 'x86_64' ]; then
97-
wget 'https://archive.archlinux.org/packages/b/boost/boost-1.87.0-3-x86_64.pkg.tar.zst' -O ./boost.pkg.tar.zst
98-
wget 'https://archive.archlinux.org/packages/b/boost-libs/boost-libs-1.87.0-3-x86_64.pkg.tar.zst' -O ./boost-libs.pkg.tar.zst
99-
fi
100-
10194
echo "Installing debloated pckages..."
10295
echo "---------------------------------------------------------------"
10396
wget --retry-connrefused --tries=30 "$LLVM_URL" -O ./llvm-libs.pkg.tar.zst

0 commit comments

Comments
 (0)