mirror of
https://github.com/YunoHost-Apps/diaspora_ynh.git
synced 2024-09-03 18:26:13 +02:00
bookworm: we still need jemalloc in ld_preload
This commit is contained in:
parent
2fa236e80f
commit
c59c72f5d3
1 changed files with 16 additions and 22 deletions
|
@ -12,28 +12,22 @@ ruby_version=2.7
|
||||||
nodejs_version=14
|
nodejs_version=14
|
||||||
bundler_version=2.1.4
|
bundler_version=2.1.4
|
||||||
|
|
||||||
# Workaround for ruby 2.7 on Bullseye
|
# jemalloc seems to be better for ROR apps, let's use it
|
||||||
# See https://github.com/mastodon/mastodon/issues/15751#issuecomment-873594463
|
case $YNH_ARCH in
|
||||||
# Apparently fixed on ruby 3.0.4
|
amd64)
|
||||||
if [ "$(lsb_release --codename --short)" = "bullseye" ]; then
|
arch="x86_64"
|
||||||
case $YNH_ARCH in
|
;;
|
||||||
amd64)
|
arm64)
|
||||||
arch="x86_64"
|
arch="aarch64"
|
||||||
;;
|
;;
|
||||||
arm64)
|
armel|armhf)
|
||||||
arch="aarch64"
|
arch="arm"
|
||||||
;;
|
;;
|
||||||
armel|armhf)
|
i386)
|
||||||
arch="arm"
|
arch="i386"
|
||||||
;;
|
;;
|
||||||
i386)
|
esac
|
||||||
arch="i386"
|
ld_preload="LD_PRELOAD=/usr/lib/$arch-linux-gnu/libjemalloc.so"
|
||||||
;;
|
|
||||||
esac
|
|
||||||
ld_preload="LD_PRELOAD=/usr/lib/$arch-linux-gnu/libjemalloc.so"
|
|
||||||
else
|
|
||||||
ld_preload=""
|
|
||||||
fi
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# PERSONAL HELPERS
|
# PERSONAL HELPERS
|
||||||
|
|
Loading…
Reference in a new issue