Browse Source

fix(mods): BepInEx_Valheim prevents startup on systems with newer glibc (#4788)

* fix(mods): BepInEx_Valheim prevents startup on systems with newer glibc

Load the libdoorstop_x64.so solely for the dedicated server executable
and not for the whole startup routine, which causes errors in startup or
not loading the mods at all. (see #4149 and #4491)

* chore(prettier): format code

---------

Co-authored-by: Daniel Gibbs <[email protected]>
Co-authored-by: dgibbs64 <[email protected]>
pull/4940/head
fwillo 2 days ago
committed by GitHub
parent
commit
9fd21e5b9a
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 16
      .github/scripts/details-check-generate-matrix.sh
  2. 6
      .github/scripts/sync-game-labels.sh
  3. 2
      lgsm/modules/fix_vh.sh

16
.github/scripts/details-check-generate-matrix.sh

@ -23,11 +23,11 @@ while read -r line; do
export distro
# Legacy servers that require older Ubuntu/Debian versions due to glibc compatibility
case "${shortname}" in
bfv|bf1942)
bfv | bf1942)
# Requires Ubuntu <= 22.04 or Debian <= 12 (glibc 2.31 compatible)
runner="ubuntu-22.04"
;;
btl|onset)
btl | onset)
# Requires Ubuntu <= 20.04 or Debian <= 11 (glibc 2.31 compatible)
runner="ubuntu-20.04"
;;
@ -36,12 +36,12 @@ while read -r line; do
;;
esac
{
echo -n "{";
echo -n "\"shortname\":";
echo -n "\"${shortname}\"";
echo -n ",\"runner\":";
echo -n "\"${runner}\"";
echo -n "},";
echo -n "{"
echo -n "\"shortname\":"
echo -n "\"${shortname}\""
echo -n ",\"runner\":"
echo -n "\"${runner}\""
echo -n "},"
} >> "shortnamearray.json"
done < <(tail -n +2 serverlist.csv)
sed -i '$ s/.$//' "shortnamearray.json"

6
.github/scripts/sync-game-labels.sh

@ -68,10 +68,10 @@ for GAME in "${GAMES[@]}"; do
--color "${LABEL_COLOR}" \
--description "${DESCRIPTION}" \
${REPO:+--repo "$REPO"}
(( UPDATED++ )) || true
((UPDATED++)) || true
else
echo " ok ${LABEL}"
(( UNCHANGED++ )) || true
((UNCHANGED++)) || true
fi
else
echo " create ${LABEL}"
@ -79,7 +79,7 @@ for GAME in "${GAMES[@]}"; do
--color "${LABEL_COLOR}" \
--description "${DESCRIPTION}" \
${REPO:+--repo "$REPO"}
(( CREATED++ )) || true
((CREATED++)) || true
fi
done

2
lgsm/modules/fix_vh.sh

@ -33,7 +33,7 @@ if [ -f "${modsinstalledlistfullpath}" ]; then
export DOORSTOP_TARGET_ASSEMBLY=./BepInEx/core/BepInEx.Preloader.dll
export LD_LIBRARY_PATH="./doorstop_libs:${LD_LIBRARY_PATH}"
export LD_PRELOAD="libdoorstop_x64.so:${LD_PRELOAD}"
preexecutable="LD_PRELOAD=\"libdoorstop_x64.so:${LD_PRELOAD}\" ${preexecutable}"
export SteamAppId=892970
fi

Loading…
Cancel
Save