enable LFS on Hurd

ci/unstable
Pino Toscano 3 years ago
parent 961a4b1acb
commit 576cb8934a

3
debian/changelog vendored

@ -1,5 +1,8 @@
qt6-base (6.2.2+dfsg-4) UNRELEASED; urgency=medium
[ Pino Toscano ]
* Backport upstream commit 06e7b5168e269f913f03ecb9d77fc82db4d9dfd6 to enable
LFS on Hurd; patch upstream_Hurd-enable-XOPEN-largefile-APIs.patch.
-- Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org> Thu, 10 Feb 2022 07:33:31 +0100

@ -4,6 +4,7 @@ upstream_QStorageInfo-limit-Linux-only-code-with-Q_OS_LINUX.patch
# fixed in 4.4
upstream_CMake-add-support-for-GNU-Hurd.patch
upstream_QProcess-Unix-fallback-on-_POSIX_PIPE_BUF-w-missing-.patch
upstream_Hurd-enable-XOPEN-largefile-APIs.patch
# Debian specific
remove_privacy_breaches.diff

@ -0,0 +1,31 @@
From 06e7b5168e269f913f03ecb9d77fc82db4d9dfd6 Mon Sep 17 00:00:00 2001
From: Pino Toscano <toscano.pino@tiscali.it>
Date: Mon, 31 Jan 2022 21:36:59 +0100
Subject: [PATCH] Hurd: enable XOPEN largefile APIs
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Hurd supports largefile, so enable it also in Qt.
Change-Id: I8384ca2cb5c6250376916b6a890e1a873c0a0e96
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
---
mkspecs/hurd-g++/qplatformdefs.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/mkspecs/hurd-g++/qplatformdefs.h b/mkspecs/hurd-g++/qplatformdefs.h
index b1887aae7f..c6d35e0ac5 100644
--- a/mkspecs/hurd-g++/qplatformdefs.h
+++ b/mkspecs/hurd-g++/qplatformdefs.h
@@ -78,6 +78,7 @@
#include <sys/wait.h>
#include <netinet/in.h>
+#define QT_USE_XOPEN_LFS_EXTENSIONS
#include "../common/posix/qplatformdefs.h"
#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500)
--
2.34.1
Loading…
Cancel
Save