Skip to content

Commit

Permalink
Add --setopt=install_weak_deps=False on install packages (#1817)
Browse files Browse the repository at this point in the history
* Add --setopt=install_weak_deps=False on install packages

* Adding sudo for possibility reuse
  • Loading branch information
MinyazevR authored Nov 14, 2024
1 parent 77c0e58 commit 49c8c21
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions buildScripts/github/install_Linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ ID=$(grep '^ID=' /etc/os-release | cut -d'=' -f2)
GCC_VERSION=${GCC_VERSION:-13}

if [ "$ID" = "altlinux" ]; then
apt-get update && apt-get install -y gcc-c++ curl xz p7zip-standalone rsync libusb-devel \
sudo apt-get update && sudo apt-get install -y gcc-c++ curl xz p7zip-standalone rsync libusb-devel \
libudev-devel libGL-devel libGLX-mesa python3-dev zlib-devel make ccache python3-module-pip time \
qt5-multimedia-devel qt5-svg-devel qt5-script-devel qt5-tools qt5-serialport-devel
elif [ "$ID" = "ubuntu" ]; then
sudo apt-get update && sudo apt-get install -y --no-install-recommends \
ccache curl libusb-1.0-0-dev make qtscript5-dev qttools5-dev-tools qtmultimedia5-dev libqt5serialport5-dev libqt5svg5-dev \
libudev-dev python3.${TRIK_PYTHON3_VERSION_MINOR}-dev qtbase5-private-dev qtwayland5
elif [[ "$ID" = "rocky" || "$ID" = '"rocky"' ]]; then
yum update -y && yum install -y epel-release
yum install --allowerasing -y sudo which libusbx-devel curl wget make gcc-toolset-"$GCC_VERSION"-{gcc-c++,libasan-devel,libubsan-devel,gdb} \
sudo yum update -y && sudo yum install -y --setopt=install_weak_deps=False epel-release
sudo yum install --allowerasing -y --setopt=install_weak_deps=False sudo which libusbx-devel curl wget make gcc-toolset-"$GCC_VERSION"-{gcc-c++,libasan-devel,libubsan-devel,gdb} \
git-core ccache zlib-devel rsync python3.${TRIK_PYTHON3_VERSION_MINOR}-{devel,pip,urllib3} mesa-libGL-devel systemd-devel fontconfig p7zip xz time
yum install -y libxkbcommon-x11 qt5-qtbase-gui #no desire to enumerate all required libraries for QtIFw
yum install -y pulseaudio-libs-glib2 # to run TS and 2D-model even with `minimal` platform
yum install -y qt5-qtscript-devel qt5-qttools-devel qt5-qtmultimedia-devel qt5-qtserialport-devel qt5-qtsvg-devel qt5-qtbase-devel qt5-qtbase-private-devel \
sudo yum install -y --setopt=install_weak_deps=False libxkbcommon-x11 qt5-qtbase-gui #no desire to enumerate all required libraries for QtIFw
sudo yum install -y --setopt=install_weak_deps=False pulseaudio-libs-glib2 # to run TS and 2D-model even with `minimal` platform
sudo yum install -y --setopt=install_weak_deps=False qt5-qtscript-devel qt5-qttools-devel qt5-qtmultimedia-devel qt5-qtserialport-devel qt5-qtsvg-devel qt5-qtbase-devel qt5-qtbase-private-devel \
qt5-qtwayland
echo "source scl_source enable gcc-toolset-$GCC_VERSION" >> ~/.bash_profile
fi
4 changes: 2 additions & 2 deletions buildScripts/github/install_installer_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ GCC_VERSION=${GCC_VERSION:-13}
TRIK_PYTHON="python3.${TRIK_PYTHON3_VERSION_MINOR}"
TRIK_QT_VERSION=${TRIK_QT_VERSION:-5.15}

sudo yum update -y && sudo yum install -y epel-release
sudo yum install --allowerasing -y --setopt=install_weak_deps=False sudo which libusbx-devel curl wget make gcc-toolset-"$GCC_VERSION"-{gcc-c++,libasan-devel,libubsan-devel,gdb} \
sudo yum update -y && sudo yum install -y --setopt=install_weak_deps=False epel-release
sudo yum install --allowerasing -y --setopt=install_weak_deps=False which libusbx-devel curl wget make gcc-toolset-"$GCC_VERSION"-{gcc-c++,libasan-devel,libubsan-devel,gdb} \
git-core ccache zlib-devel rsync "$TRIK_PYTHON"-{devel,pip,urllib3} mesa-libGL-devel systemd-devel fontconfig p7zip xz time findutils
sudo yum install -y --setopt=install_weak_deps=False pulseaudio-libs-glib2 qt5-qtbase-gui libwayland-{server,client,cursor} libxkbcommon-x11
echo "source scl_source enable gcc-toolset-$GCC_VERSION" >> ~/.bash_profile
Expand Down

0 comments on commit 49c8c21

Please sign in to comment.