From df8d809506226f07579c625e4cc93b51f1f54f30 Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Thu, 20 Nov 2025 11:46:22 -0600 Subject: [PATCH] CI:AppImage: Add soversion to our harfbuzz to match system one --- .github/workflows/scripts/linux/appimage-qt.sh | 15 --------------- .../scripts/linux/build-dependencies-qt.sh | 2 ++ 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/.github/workflows/scripts/linux/appimage-qt.sh b/.github/workflows/scripts/linux/appimage-qt.sh index 3a5d368c65..30cefde7dc 100755 --- a/.github/workflows/scripts/linux/appimage-qt.sh +++ b/.github/workflows/scripts/linux/appimage-qt.sh @@ -41,12 +41,9 @@ BINARY=pcsx2-qt APPDIRNAME=PCSX2.AppDir STRIP=strip -# Need both libharfbuzz.so and libharfbuzz.so.0 for bundled libs - declare -a MANUAL_LIBS=( "libshaderc_shared.so.1" "libharfbuzz.so.0" - "libharfbuzz.so" "libfreetype.so.6" ) @@ -74,18 +71,6 @@ fi OUTDIR=$(realpath "./$APPDIRNAME") rm -fr "$OUTDIR" -# Our deps build dosn't create libharfbuzz.so.0, so we have to symlink it here -hbpath=$(find "$DEPSDIR" -name "libharfbuzz.so") -if [ ! -f "$hbpath" ]; then - echo "Missing harfbuzz. Exiting." - exit 1 -fi - -if [ ! -f "$hbpath.0" ]; then - echo "Symlinking libharfbuzz.so.0" - ln -s "$hbpath" "$hbpath.0" -fi - echo "Locating extra libraries..." EXTRA_LIBS_ARGS=() for lib in "${MANUAL_LIBS[@]}"; do diff --git a/.github/workflows/scripts/linux/build-dependencies-qt.sh b/.github/workflows/scripts/linux/build-dependencies-qt.sh index d633178025..a2444c1ea5 100755 --- a/.github/workflows/scripts/linux/build-dependencies-qt.sh +++ b/.github/workflows/scripts/linux/build-dependencies-qt.sh @@ -167,6 +167,8 @@ echo "Building HarfBuzz..." rm -fr "harfbuzz-$HARFBUZZ" tar xf "harfbuzz-$HARFBUZZ.tar.gz" cd "harfbuzz-$HARFBUZZ" +# Add an SOVERSION to match system harfbuzz +sed -i 's/PROPERTIES VISIBILITY_INLINES_HIDDEN TRUE)/PROPERTIES VISIBILITY_INLINES_HIDDEN TRUE SOVERSION 0)/g' CMakeLists.txt cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="$INSTALLDIR" -DCMAKE_INSTALL_PREFIX="$INSTALLDIR" -DBUILD_SHARED_LIBS=ON -DHB_BUILD_UTILS=OFF -DHB_HAVE_FREETYPE=ON -DHB_HAVE_GOBJECT=ON -B build -G Ninja cmake --build build --parallel ninja -C build install