Commit d65e1c57 authored by Ivan Mazhukin's avatar Ivan Mazhukin Committed by Vitaly Lipatov

epm play rstudio: fix install (eterbug #17589)

parent 51529b2a
......@@ -8,31 +8,24 @@ URL="https://posit.co/"
. $(dirname $0)/common.sh
warn_version_is_not_supported
arch=x86_64
pkgtype="$(epm print info -p)"
distr="$(epm print info -s)"
case $pkgtype in
rpm)
PKGFILTER="rhel8"
;;
*)
PKGFILTER="focal"
;;
esac
#case "$distr" in
#case
case $(epm print info -e) in
Ubuntu/20.*|Debian/11)
PKGFILTER="focal"
arch=amd64
;;
Ubuntu/22.*|Ubuntu/23*|Debian/12)
PKGFILTER="jammy"
arch=amd64
;;
AstraLinux*|Debian/*|Ubuntu/*)
PKGFILTER="bionic"
arch=amd64
;;
RedOS/7*|AlterOS/*|Fedora/19)
PKGFILTER="centos7"
......@@ -50,14 +43,16 @@ case $(epm print info -e) in
PKGFILTER="opensuse15"
;;
ALTLinux/*)
PKGFILTER="rhel8"
PKGFILTER="jammy"
arch="amd64"
pkgtype="deb"
;;
*)
fatal "Unsupported distro $(epm print info -e). Ask application vendor for a support."
;;
esac
VERSION="${VERSION/+/-}"
VERSION="*"
PKGMASK="$(epm print constructname $PKGNAME "$VERSION" $arch $pkgtype "-" "-")"
PKGURL="$(eget --list https://posit.co/download/rstudio-desktop/ "$PKGMASK" | grep "$PKGFILTER")"
......
......@@ -7,8 +7,6 @@ SPEC="$2"
PRODUCT=rstudio
PRODUCTDIR=/usr/lib/$PRODUCT
PREINSTALL_PACKAGES="libpq5 libsqlite sqlite R-base R-doc-html"
. $(dirname $0)/common.sh
add_bin_exec_command $PRODUCT
......@@ -16,17 +14,8 @@ add_bin_exec_command $PRODUCT
# fix bug in upstream
subst 's|/usr/lib/rstudio/bin/rstudio|$PRODUCTDIR/$PRODUCT|' $BUILDROOT$PRODUCTDIR/resources/app/bin/rstudio-backtrace.sh
# https://bugzilla.altlinux.org/43794
set_autoreq 'yes,nopython,nopython3,nomono,nomonolib'
fix_chrome_sandbox
filter_from_requires libQt5 libicu "libpq.so.5(RHPG_9"
#if [ "$(epm print info -e)" = "ALTLinux/p10" ] ; then
# version `GLIBC_2.34' not found
# version `GLIBCXX_3.4.29' not found
# rm -v $BUILDROOT/usr/lib/rstudio/resources/app/bin/{diagnostics,rpostback,rsession}
#fi
ignore_lib_requires libffmpeg.so
add_libs_requires
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