mirror of
git://code.qt.io/qt/qt5.git
synced 2026-10-19 21:48:12 +08:00
Ubuntu 26.04 comes with GCC 15.2.0 and GNOME 50 which drops X11/xorg and
is Wayland only. X11 programs may run with XWayland within the Wayland
session.
The tier-1 -50 and -51 images are created and configured with Packer
instead of doing it manually. OS configurations can be checked at:
coin/pre-provisioning/qtci-linux-Ubuntu-26.04-x86_64/scripts/
coin/pre-provisioning/qtci-linux-Ubuntu-26.04-x86_64/http/user-data
Provisioning changes compared to x64 24.04:
- Pulseaudio backport is removed:
03-install-pulseaudio-16-bugfix-backports.sh
- 80-docker.sh is updated to noble -> resolute
- apt: python3-pypdf2 -> python3-pypdf
- '-snld20' param added to 7z commands
- 62-install-swiftly.sh: apt install swiftlang instead
- vx_works.sh: /etc/sysctl.conf -> /sysctl.d/ for net.ipv4.ip_forward=1
- 92-sbuild.sh: sbuild-update is deprecated -> comment out
- enable_test_stacktraces.sh: /usr/lib/sysctl.d/55-ptrace.conf for U26
[CI Platforms]
Pick-to: 6.12
Task-number: QTQAINFRA-8001
Task-number: QTQAINFRA-5844
Change-Id: Ic6951f46845f8de8ca012a7c4f353fb042a16ae4
Reviewed-by: Simo Fält <[email protected]>
40 lines
1.3 KiB
Bash
Executable File
40 lines
1.3 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
#Copyright (C) 2023 The Qt Company Ltd
|
|
#SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
|
|
|
### Enable automatic stacktraces in case of fatal errors in QTest.
|
|
# This requires that gdb can be found in PATH, and that no
|
|
# kernel security settings like yama.ptrace_scope prevent it.
|
|
|
|
|
|
PROVISIONING_DIR="$(dirname "$0")/../.."
|
|
# shellcheck source=../unix/common.sourced.sh
|
|
source "$PROVISIONING_DIR/common/unix/common.sourced.sh"
|
|
|
|
if [ -f /usr/lib/sysctl.d/55-ptrace.conf ]; then
|
|
f="/usr/lib/sysctl.d/55-ptrace.conf" # New location in Ubuntu 26.04
|
|
else
|
|
f="/etc/sysctl.d/10-ptrace.conf"
|
|
fi
|
|
|
|
if [ -f $f ]
|
|
then
|
|
echo "Modifying $f ..."
|
|
sudo sed -i '/^kernel\.yama\.ptrace_scope *= *[1-9]$/s/[1-9]$/0/' $f
|
|
# Reload the modified setting, so that we can verify it right afterwards.
|
|
sudo sysctl -p $f
|
|
fi
|
|
|
|
# Verify that yama.ptrace_scope = 0, if it's supported by the kernel.
|
|
ptrace_scope_value=$(sudo sysctl kernel.yama.ptrace_scope 2>/dev/null | sed -E 's/.*([0-9])$/\1/')
|
|
if [ -n "$ptrace_scope_value" ] && [ "$ptrace_scope_value" != 0 ]
|
|
then
|
|
fatal "kernel.yama.ptrace_scope = $ptrace_scope_value \
|
|
which means that QTest automatic stacktraces will not work"
|
|
else
|
|
echo kernel.yama.ptrace_scope = "$ptrace_scope_value"
|
|
fi
|
|
|
|
|
|
$CMD_PKG_INSTALL gdb
|