Commit bbe36de7 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: check available glibc, not distro version

parent c920b4f3
...@@ -22,13 +22,8 @@ case $pkgtype in ...@@ -22,13 +22,8 @@ case $pkgtype in
;; ;;
esac esac
case "$(epm print info -s)" in if ! is_glibc_enough 2.35 ; then
alt)
# uses old glibc needed for ALT p10
PKG="https://deb.librewolf.net/pool/focal/librewolf-$VERSION$arch.deb" PKG="https://deb.librewolf.net/pool/focal/librewolf-$VERSION$arch.deb"
epm install --repack $PKG fi
exit
;;
esac
epm install "$PKG" epm install "$PKG"
...@@ -8,7 +8,7 @@ DESCRIPTION="Google Chromium, sans integration with Google from the official sit ...@@ -8,7 +8,7 @@ DESCRIPTION="Google Chromium, sans integration with Google from the official sit
. $(dirname $0)/common.sh . $(dirname $0)/common.sh
# keep old version due libc.so.6(GLIBC_2.33)(64bit) # keep old version due libc.so.6(GLIBC_2.33)(64bit)
if [ "$VERSION" = "*" ] && [ "$(epm print info -s)" = "alt" ] && [ "$(epm print info -r)" = "p10" ] ; then if [ "$VERSION" = "*" ] && ! is_glibc_enough 2.35 ; then
VERSION="113.0.5672.127" VERSION="113.0.5672.127"
fi fi
......
...@@ -18,15 +18,10 @@ vendor=$(epm print info -s) ...@@ -18,15 +18,10 @@ vendor=$(epm print info -s)
case $vendor in case $vendor in
alt) alt)
if [ "$VERSION" = "*" ] ; then if is_glibc_enough 2.35 ; then
case $reponame in
p10)
VERSION="3.3.0"
;;
*)
VERSION="3.4.2" VERSION="3.4.2"
;; else
esac VERSION="3.3.0"
fi fi
PKGURL=https://hub.unity3d.com/linux/repos/deb/pool/main/u/unity/unityhub_$arch/unityhub-amd64-$VERSION.deb PKGURL=https://hub.unity3d.com/linux/repos/deb/pool/main/u/unity/unityhub_$arch/unityhub-amd64-$VERSION.deb
epm install --repack "$PKGURL" epm install --repack "$PKGURL"
...@@ -34,22 +29,7 @@ case $vendor in ...@@ -34,22 +29,7 @@ case $vendor in
;; ;;
esac esac
case $vendor/$reponame in echo "Adding vendor repo ..."
alt/Sisyphus)
epm repo addkey "https://angie.software/keys/angie-signing.gpg" "EB8EAF3D4EF1B1ECF34865A2617AB978CB849A76" "Angie (Signing Key) <devops@tech.wbsrv.ru>" angie
epm repo add "rpm [angie] https://download.angie.software/angie/altlinux/10/ x86_64 main"
epm update
epm install $PKGNAME
;;
alt/p10)
epm repo addkey "https://angie.software/keys/angie-signing.gpg" "EB8EAF3D4EF1B1ECF34865A2617AB978CB849A76" "Angie (Signing Key) <devops@tech.wbsrv.ru>" angie
epm repo add "rpm [angie] https://download.angie.software/angie/altlinux/10/ x86_64 main"
epm update
epm install $PKGNAME
;;
esac
case $(epm print info -p) in case $(epm print info -p) in
rpm) rpm)
...@@ -63,7 +43,6 @@ case $(epm print info -p) in ...@@ -63,7 +43,6 @@ case $(epm print info -p) in
;; ;;
esac esac
epm update epm update
epm install $PKGNAME epm install $PKGNAME
exit
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment