qt6-base.git
3 years ago[PATCH] QFileSystemEngine::canonicalName (Unix): clean up control-flow
Fabian Kosmale [Mon, 14 Feb 2022 09:29:24 +0000 (10:29 +0100)]
[PATCH] QFileSystemEngine::canonicalName (Unix): clean up control-flow

When passing a nullptr to realpath, it will allocate memory. That memory
has to be freed (with free) later to avoid a leak, which we so far
didn't.
This patch ensures that we always clean up the memory by using a
unique_ptr. As a drive-by, clean up the control-flow:
- Always pass either the stack buffer or nullptr to realpath.
- Rely on realpath returning nullptr in the error case.
Lastly, fix a few coding-style issues.

Change-Id: Ia906df77324020c267b087ec52a9a6c47aaa2a59
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Gbp-Pq: Name upstream_QFileSystemEngine-canonicalName-Unix-clean-up-contro.patch

3 years ago[PATCH] Avoid a stack buffer when not needed
Pino Toscano [Thu, 10 Feb 2022 07:26:11 +0000 (08:26 +0100)]
[PATCH] Avoid a stack buffer when not needed

Allocate a PATH_MAX-sized buffer on stack only in case we are not using
realpath(X, null), i.e. on platforms with older POSIX versions, macOS,
or Android.

This fixes the build on platforms that do not have PATH_MAX (e.g.
GNU/Hurd), and it provides a minor optimization on realpath(X, null)
platforms.

Change-Id: Icd92a1b15ec18c5eef8113408e9610dfac774101
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Gbp-Pq: Name upstream_Avoid-a-stack-buffer-when-not-needed.patch

3 years ago[PATCH] Hurd: enable XOPEN largefile APIs
Pino Toscano [Mon, 31 Jan 2022 20:36:59 +0000 (21:36 +0100)]
[PATCH] Hurd: enable XOPEN largefile APIs

Hurd supports largefile, so enable it also in Qt.

Change-Id: I8384ca2cb5c6250376916b6a890e1a873c0a0e96
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
Gbp-Pq: Name upstream_Hurd-enable-XOPEN-largefile-APIs.patch

3 years ago[PATCH] QProcess/Unix: fallback on _POSIX_PIPE_BUF w/ missing PIPE_BUF
Pino Toscano [Mon, 17 Jan 2022 19:43:01 +0000 (20:43 +0100)]
[PATCH] QProcess/Unix: fallback on _POSIX_PIPE_BUF w/ missing PIPE_BUF

PIPE_BUF is optional in POSIX, e.g. "where the corresponding value is
equal to or greater than the stated minimum, but where the value can
vary depending on the file to which it is applied." [1]

GNU/Hurd does not provide PIPE_BUF, so fallback to its minimum
acceptable value, that is _POSIX_PIPE_BUF.

[1] https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html

Also, explicitly include <limits.h> in this file, to make sure PIPE_BUF
or _POSIX_PIPE_BUF are available without relying on other headers to
pull <limits.h>.

Change-Id: Ifae964db81841e1d31fc09e73b45594af9a326d1
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Gbp-Pq: Name upstream_QProcess-Unix-fallback-on-_POSIX_PIPE_BUF-w-missing-.patch

3 years ago[PATCH] CMake: add support for GNU/Hurd
Pino Toscano [Sun, 21 Nov 2021 07:59:56 +0000 (08:59 +0100)]
[PATCH] CMake: add support for GNU/Hurd

Add a "HURD" CMake platform specification, so it can be properly
checked in the build system.

Set QT_DEFAULT_MKSPEC to the existing hurd-g++ mkspec.

Hurd supports $ORIGIN in RPATH, so enable it.

Hurd uses X11, so add it to the X11_SUPPORTED list.

Enable few more feature checks that apply to Hurd as well: either
because they are provided by GNU libc itself, or because they are
implemented on Hurd.

Check and set the ELF interpreter, as it is a common functionality of
the GNU toolchain.

Change-Id: Id347033560bbc5a2a4e2c3abb493c948c002b40e
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Gbp-Pq: Name upstream_CMake-add-support-for-GNU-Hurd.patch

3 years agoqt6-base (6.3.1+dfsg-9) unstable; urgency=medium
Pino Toscano [Sat, 3 Sep 2022 06:15:09 +0000 (07:15 +0100)]
qt6-base (6.3.1+dfsg-9) unstable; urgency=medium

  * Team upload.

  [ Lisandro Damián Nicanor Pérez Meyer ]
  * Add libvulkan-dev [linux-any] as a qt6-base-dev dependency, as some CMake
    file looks for it. (Closes: #1018877)

  [ Pino Toscano ]
  * Update symbols files for an ia64-specific change.
  * Update lintian overrides.

[dgit import unpatched qt6-base 6.3.1+dfsg-9]

3 years agoImport qt6-base_6.3.1+dfsg-9.debian.tar.xz
Pino Toscano [Sat, 3 Sep 2022 06:15:09 +0000 (07:15 +0100)]
Import qt6-base_6.3.1+dfsg-9.debian.tar.xz

[dgit import tarball qt6-base 6.3.1+dfsg-9 qt6-base_6.3.1+dfsg-9.debian.tar.xz]

3 years agoImport qt6-base_6.3.1+dfsg.orig.tar.xz
Patrick Franz [Fri, 15 Jul 2022 18:03:54 +0000 (19:03 +0100)]
Import qt6-base_6.3.1+dfsg.orig.tar.xz

[dgit import orig qt6-base_6.3.1+dfsg.orig.tar.xz]