qtbase-opensource-src.git
6 weeks agoAvoid unconditional PATH_MAX usage
Pino Toscano [Thu, 18 Jun 2026 11:20:31 +0000 (14:20 +0300)]
Avoid unconditional PATH_MAX usage

Forwarded: no
Last-Update: 2020-04-19

Use a "safe" size in case PATH_MAX is not defined; in the end, this should not
be used, as a allocating realpath() will be used instead.

Gbp-Pq: Name path_max.diff

6 weeks agopass default include directories to qdoc
Martin Smith [Thu, 18 Jun 2026 11:20:31 +0000 (14:20 +0300)]
pass default include directories to qdoc

Bug: https://bugs.debian.org/908328
Forwarded: no
Last-Update: 2020-01-28

Gbp-Pq: Name qdoc_default_incdirs.diff

6 weeks agocatch linker warnings in some config tests
Dmitry Shachnev [Thu, 18 Jun 2026 11:20:31 +0000 (14:20 +0300)]
catch linker warnings in some config tests

Forwarded: https://codereview.qt-project.org/163214 (rejected)
Bug: https://bugs.debian.org/827935
Last-Update: 2019-03-02

Without this, qmake wrongly thinks that the tests succeed, for example:

./config.tests/unix/futimens/futimens.cpp:44: warning: futimens is not implemented and will always fail
test config.corelib.tests.futimens succeeded

Gbp-Pq: Name gnukfreebsd_linker_warnings.diff

6 weeks agobuild ibase sql plugin against firebird
Fathi Boudra [Thu, 18 Jun 2026 11:20:31 +0000 (14:20 +0300)]
build ibase sql plugin against firebird

Forwarded: no
Last-Update: 2017-06-30

Gbp-Pq: Name link_fbclient.diff

6 weeks agoremove non-used privacy-breach code
Lisandro Damián Nicanor Pérez Meyer [Thu, 18 Jun 2026 11:20:31 +0000 (14:20 +0300)]
remove non-used privacy-breach code

Forwarded: not-needed
Last-Update: 2015-02-18

This code makes Lintian unhappy. But we are really not using it, it only
gets inserted when building the online doc.
Anyways the best way to calm down Lintian is to simply remove it.

Gbp-Pq: Name remove_privacy_breaches.diff

6 weeks agodisable htmlinfo example which contains non-free files
Dmitry Shachnev [Thu, 18 Jun 2026 11:20:31 +0000 (14:20 +0300)]
disable htmlinfo example which contains non-free files

Forwarded: not-needed
Last-Update: 2014-12-17

Gbp-Pq: Name no_htmlinfo_example.diff

6 weeks agoupdate sources to support OpenSSL 4
Debian Qt/KDE Maintainers [Thu, 18 Jun 2026 11:20:31 +0000 (14:20 +0300)]
update sources to support OpenSSL 4

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=e806630e694d89f5
Last-Update: 2026-06-10

OpenSSL 4 now uses const in logical cases across its X.509 API; this
patch updates Qt's TLS backend to compile against both 3.x and 4.x.

To do this QT_OPENSSL4_CONST macro (expands to `const` on OpenSSL >= 4,
empty otherwise) is introduced for functions which changed in OpenSSL 4.

There were pre-existing functions that were already const in OpenSSL 3
but were declared without const in Qt's wrapper layer - they have now
been fixed with plain const.

ASN1_STRING was made opaque in OpenSSL 4, so replace direct access with
use of accessor functions through the wrappers.

Gbp-Pq: Name openssl4.diff

6 weeks agoQSslCertificate: remove manual parsing code for ASN.1 (on OpenSSL)
Debian Qt/KDE Maintainers [Thu, 18 Jun 2026 11:20:31 +0000 (14:20 +0300)]
QSslCertificate: remove manual parsing code for ASN.1 (on OpenSSL)

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=0e240204b59c3398
Last-Update: 2026-06-10

OpenSSL 1.1.1 has a convenient function for parsing ASN.1 times;
use that instead of the hand-rolled code.

Gbp-Pq: Name asn1_time_to_tm.diff

6 weeks agofix note alignment
Debian Qt/KDE Maintainers [Thu, 18 Jun 2026 11:20:31 +0000 (14:20 +0300)]
fix note alignment

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit?id=47a4e6a9497b068a
Last-Update: 2026-05-05

It is architecture defined whether .align means .palign or .balign.  Use
.balign to make that explicit.

Gbp-Pq: Name balign.diff

6 weeks agorevert "QProcessEnvironment: simplify locking"
Debian Qt/KDE Maintainers [Thu, 18 Jun 2026 11:20:31 +0000 (14:20 +0300)]
revert "QProcessEnvironment: simplify locking"

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit?id=080d61c020678b75
Last-Update: 2026-01-29

This reverts commit c5d6b263c204cb09db2be36826e19acb03dc24fb.

The commit being reverted assumes the mutex is only protecting 'nameMap'
and nothing else is mutable, which is false. The mutex is not only
protecting 'nameMap' but also protecting the containing value objects,
since even though the value object is accessed read-only, its
implementation mutates its internal states for 2-way conversion between
ByteArray and QString.

Commit 85e61297f7b02297641826332dbdbc845a88c34b ("restore
QProcessEnvironment shared data thread safety on unix") said that
implicit sharing together with 'mutable' is a time bomb and the bomb is
triggered by the reverted commit.

Gbp-Pq: Name revert_simplify_locking.diff

6 weeks agoX11: set fallback logical DPI to 96
Debian Qt/KDE Maintainers [Thu, 18 Jun 2026 11:20:31 +0000 (14:20 +0300)]
X11: set fallback logical DPI to 96

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit?id=7238123521708ec9
Last-Update: 2025-12-31

Returning physical DPI from logicalDpi() is problematic,
as explained in commit 77e04acb.

The most predictable implementation is to never return
physical DPI from QPlaformScreen::logicalDpi(). Other
platform plugins already do this, and this change
brings xcb in line with the rest of Qt.

We have the QPlatformScreen::physicalSize() API which
covers returning physical DPI (indirectly); Options
for selecting which one to use can be implemented on
top of these (see QT_USE_PHYSICAL_DPI).

Gbp-Pq: Name dont_use_physical_dpi.diff

6 weeks agoQReadWriteLock: fix data race on weakly-ordered memory architectures
Debian Qt/KDE Maintainers [Thu, 18 Jun 2026 11:20:31 +0000 (14:20 +0300)]
QReadWriteLock: fix data race on weakly-ordered memory architectures

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit?id=4fd88011fa7975ce
Last-Update: 2025-12-14

The fix changes the relaxed load of d_ptr in lockFor{Read,Write} after
the acquire of the mutex to an acquire load, to establish
synchronization with the release store of d_ptr when converting from an
uncontended lock to a contended lock.

Gbp-Pq: Name qreadwritelock_data_race_2.diff

6 weeks agoQReadWriteLock: fix data race on the d_ptr members
Debian Qt/KDE Maintainers [Thu, 18 Jun 2026 11:20:31 +0000 (14:20 +0300)]
QReadWriteLock: fix data race on the d_ptr members

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit?id=80d01c4ccb697b9d
Last-Update: 2025-12-14

The loadRelaxed() at the beginning of tryLockForRead/tryLockForWrite
isn't enough to bring us the non-atomic write of the recursive bool.
Same issue with the std::mutex itself.

Gbp-Pq: Name qreadwritelock_data_race.diff

6 weeks agocheck D-Bus tray availability every time
Debian Qt/KDE Maintainers [Thu, 18 Jun 2026 11:20:31 +0000 (14:20 +0300)]
check D-Bus tray availability every time

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=3c93dedc063bf453
Last-Update: 2024-07-24

It could appear in runtime, this allows applications to watch for it
themselves and re-create QSystemTrayIcon as needed.

Gbp-Pq: Name check_dbus_tray_availability_every_time.diff

6 weeks agodon't fallback to X11 tray backend on non-X11
Debian Qt/KDE Maintainers [Thu, 18 Jun 2026 11:20:31 +0000 (14:20 +0300)]
don't fallback to X11 tray backend on non-X11

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=f6cd286e6609cfbf
Last-Update: 2024-07-24

This allows to have system tray support on the fly on Wayland at least
where only QDBusTrayIcon is possible and no need to fallback to
QSystemTrayIconSys

Gbp-Pq: Name dont_fallback_to_x11_tray_on_non_x11.diff

6 weeks agoRevert "D-Bus system tray: properly check whether StatusNotifierHost available"
Debian Qt/KDE Maintainers [Thu, 18 Jun 2026 11:20:31 +0000 (14:20 +0300)]
Revert "D-Bus system tray: properly check whether StatusNotifierHost available"

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=447f3ade9a284d52
Last-Update: 2024-07-24

The original commit was made based on a KDE workaround for
libdbusmenu-qt crash, but Qt is not using libdbusmenu-qt, Qt is not
watching for StatusNotifierHost registration and Qt is not capable
to switch backends on the fly leading to tray support being
not detected on Plasma Wayland sessions and falling back to the poor
legacy protocol on X11.

Gbp-Pq: Name revert_statusnotifierhost_checking.diff

6 weeks agoadd support for LoongArch
Debian Qt/KDE Maintainers [Thu, 18 Jun 2026 11:20:31 +0000 (14:20 +0300)]
add support for LoongArch

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=bdc16f086f1664b5
Last-Update: 2024-03-09

Gbp-Pq: Name loongarch.diff

6 weeks agoOpenFile portal: do not use O_PATH fds
Debian Qt/KDE Maintainers [Thu, 18 Jun 2026 11:20:31 +0000 (14:20 +0300)]
OpenFile portal: do not use O_PATH fds

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=03cbcba7b2b0e42a
Last-Update: 2023-05-13

Using O_PATH requires correctly specifying whether the fd is writable or
not. Stating that the fd is writable without it actually being writable
results into rejection on xdg-desktop-portal side. Other implementations
like xdg-open or gtk have also moved away from O_PATH fds so this will
make a matching implementation and avoid possible rejections from xdp.

Gbp-Pq: Name dont_use_O_PATH.diff

6 weeks agofix accessibility on XCB when running as root
Debian Qt/KDE Maintainers [Thu, 18 Jun 2026 11:20:31 +0000 (14:20 +0300)]
fix accessibility on XCB when running as root

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=db346e711c9af505
Bug: https://bugs.debian.org/1033995
Last-Update: 2023-04-15

Accessibility actually works when running applications as root, but we
would never properly connect, since the enabledChanged signal would be
emitted from the constructor in this case. So after connecting the
signal, check the value by hand to make sure not to miss the
notification.

Only applications running as root would be affected, because all other
applications would go through the asynchronous pattern of getting the
bus address from dbus instead.

Gbp-Pq: Name a11y_root.diff

6 weeks agoSQL/ODBC: add another check to detect unicode availability in driver
Debian Qt/KDE Maintainers [Thu, 18 Jun 2026 11:20:31 +0000 (14:20 +0300)]
SQL/ODBC: add another check to detect unicode availability in driver

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=f19320748d282b1e
Last-Update: 2024-05-25

Since ODBC does not have a direct way finding out if unicode is
supported by the underlying driver the ODBC plugin does some checks. As
a last resort a sql statement is executed which returns a string. But
even this may fail because the select statement has no FROM part which
is rejected by at least Oracle does not allow. Therefore add another
query which is correct for Oracle & DB2 as a workaround. The question
why the first three statements to check for unicode availability fail
is still open but can't be checked since I've no access to an oracle
database.

Gbp-Pq: Name sql_odbc_more_unicode_checks.diff

6 weeks agodo not set Qt::ToolTip flag for QShapedPixmapWindow
Debian Qt/KDE Maintainers [Thu, 18 Jun 2026 11:20:31 +0000 (14:20 +0300)]
do not set Qt::ToolTip flag for QShapedPixmapWindow

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=180b496b537089b8
Bug: https://bugreports.qt.io/browse/QTBUG-98048
Last-Update: 2023-05-20

This hint is not really needed in the first place and only causes
problems in some environments.

For example in KDE, the compositor animates changes in position and size
for all ToolTip windows. However, this is not wanted here because we use
this window as a thumbnail for a drag-and-drop operation.
Before this patch the dragged element would lag significantly behind the
cursor. Now it works as expected, i.e. the dragged element follows the
cursor immediately.

Gbp-Pq: Name qshapedpixmapwindow_no_tooltip.diff

6 weeks agouse wayland platform plugin on GNOME wayland sessions by default
Debian Qt/KDE Maintainers [Thu, 18 Jun 2026 11:20:31 +0000 (14:20 +0300)]
use wayland platform plugin on GNOME wayland sessions by default

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=dda7dab8274991e4
Last-Update: 2022-10-16

Qt wayland platform plugin has improved quite a lot and it is now pretty
much usable on Gnome. It also improves user experience a lot on HiDPI
displays.

Gbp-Pq: Name gnome_wayland.diff

6 weeks agowidgets: setTransientParent() when a QMenu is a window
Debian Qt/KDE Maintainers [Thu, 18 Jun 2026 11:20:31 +0000 (14:20 +0300)]
widgets: setTransientParent() when a QMenu is a window

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=493a85a9e4688744
Last-Update: 2022-10-16

On some platforms, such as X11 and Wayland with some compositors,
QMenu could be a popup window, which should be set a transient parent
to get relative position, which is requested by Wayland.

Added transientParentWindow() for QMenuPrivate like QDialogPrivate.

Gbp-Pq: Name qmenu_set_transient_parent.diff

6 weeks agoupstream fixes to support OpenSSL 3.0
Debian Qt/KDE Maintainers [Thu, 18 Jun 2026 11:20:31 +0000 (14:20 +0300)]
upstream fixes to support OpenSSL 3.0

Origin: upstream, commits
 https://code.qt.io/cgit/qt/qtbase.git/commit/?id=3186ca3e3972cf46
 https://code.qt.io/cgit/qt/qtbase.git/commit/?id=408656c6f9de326c
Last-Update: 2023-10-17

Gbp-Pq: Name openssl3.diff

6 weeks agoQPushButton/fusion style: don't ignore QIcon::On icon
Debian Qt/KDE Maintainers [Thu, 18 Jun 2026 11:20:31 +0000 (14:20 +0300)]
QPushButton/fusion style: don't ignore QIcon::On icon

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=e9ccdf4d84157173
Last-Update: 2021-08-10

The fusion style did ignore the QIcon::On icon because it reset
State_On to avoid the visual shift of a pressed button.
But it's not needed to reset this flag - the shift does not happen
because the fusion style does return 0 as offset for
PM_ButtonShiftHorizontal/PM_ButtonShiftVertical so no shifting will
happen.

Gbp-Pq: Name fusion_checkable_qpushbutton.diff

6 weeks agoadjust QMimeDatabase implementation
Debian Qt/KDE Maintainers [Thu, 18 Jun 2026 11:20:31 +0000 (14:20 +0300)]
adjust QMimeDatabase implementation

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=0cbbba2aa5b47224
Last-Update: 2021-06-12

When multiple globs match, and the result from magic sniffing is
unrelated to any of those globs, globs have priority and one of them
should be picked up.

Gbp-Pq: Name mime_globs.diff

6 weeks agoqtbase-opensource-src (5.15.19+dfsg-3) unstable; urgency=medium
Dmitry Shachnev [Thu, 18 Jun 2026 11:20:31 +0000 (14:20 +0300)]
qtbase-opensource-src (5.15.19+dfsg-3) unstable; urgency=medium

  * Upload to unstable.

[dgit import unpatched qtbase-opensource-src 5.15.19+dfsg-3]

6 weeks agoImport qtbase-opensource-src_5.15.19+dfsg-3.debian.tar.xz
Dmitry Shachnev [Thu, 18 Jun 2026 11:20:31 +0000 (14:20 +0300)]
Import qtbase-opensource-src_5.15.19+dfsg-3.debian.tar.xz

[dgit import tarball qtbase-opensource-src 5.15.19+dfsg-3 qtbase-opensource-src_5.15.19+dfsg-3.debian.tar.xz]

2 months agoImport qtbase-opensource-src_5.15.19+dfsg.orig.tar.xz
Dmitry Shachnev [Sun, 24 May 2026 21:45:59 +0000 (00:45 +0300)]
Import qtbase-opensource-src_5.15.19+dfsg.orig.tar.xz

[dgit import orig qtbase-opensource-src_5.15.19+dfsg.orig.tar.xz]