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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
47 additions and
47 deletions
.github/scripts/details-check-generate-matrix.sh
.github/scripts/sync-game-labels.sh
lgsm/modules/fix_vh.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"
@ -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
@ -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