mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-25 22:27:49 +08:00
Fixes a flaky conflict between zypper and packagekitd. packagekit is a *static* unit, that means it is missing an [Install] section, so it can't be enabled or disabled. It is started as a dependency by other units, or by dbus activation. We *mask* the unit to make it impossible to start in any way. For that we had replace a few occurrences of "pkcon" with the native package manager. Finally the package "libpython3_4m1_0" is not being installed any longer because it never was: this package does not exist. It's just that pkcon does not fail on invalid package names. Fixes: QTQAINFRA-3523 Change-Id: I6ff580afb05aa508042c444b2ce777c3a9443dfe Reviewed-by: Heikki Halmet <heikki.halmet@qt.io>
42 lines
1.4 KiB
Bash
Executable File
42 lines
1.4 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -ex
|
|
|
|
BASEDIR=$(dirname "$0")
|
|
# shellcheck source=../common/shared/network_test_server_ip.txt
|
|
source "$BASEDIR/../common/shared/network_test_server_ip.txt"
|
|
# shellcheck source=../common/unix/check_and_set_proxy.sh
|
|
source "${BASH_SOURCE%/*}/../common/unix/check_and_set_proxy.sh"
|
|
|
|
# https://bugzilla.opensuse.org/show_bug.cgi?id=1032027
|
|
sudo btrfs quota disable /
|
|
|
|
sed -i '$ a\[Daemon\]\nAutolock=false\nLockOnResume=false' ~/.config/kscreenlockerrc
|
|
|
|
sudo sed -i 's|GRUB_TIMEOUT=8|GRUB_TIMEOUT=0|g' /etc/default/grub
|
|
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
|
|
|
|
echo "Set Network Test Server address to $network_test_server_ip in /etc/hosts"
|
|
echo "$network_test_server_ip qt-test-server qt-test-server.qt-test-net" | sudo tee -a /etc/hosts
|
|
echo "Set DISPLAY"
|
|
echo 'export DISPLAY=":0"' >> ~/.bashrc
|
|
echo "Disabling file indexing."
|
|
sudo balooctl disable
|
|
|
|
sudo systemctl stop packagekit
|
|
sudo systemctl disable packagekit
|
|
sudo systemctl mask packagekit
|
|
while sudo fuser /usr/lib/packagekitd >/dev/null 2>&1 ; do
|
|
echo "Waiting for PackageKit to finish..."
|
|
sleep 0.5
|
|
done
|
|
echo "Disabling update notifications"
|
|
sudo zypper -nq remove plasma5-pk-updates
|
|
|
|
|
|
# shellcheck disable=SC2031
|
|
if [ "$http_proxy" != "" ]; then
|
|
sudo sed -i 's/PROXY_ENABLED=\"no\"/PROXY_ENABLED=\"yes\"/' /etc/sysconfig/proxy
|
|
sudo sed -i "s|HTTP_PROXY=\".*\"|HTTP_PROXY=\"$proxy\"|" /etc/sysconfig/proxy
|
|
fi
|