From 4058c512c444a7199a2beab99593149110ff4fe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Mon, 18 Aug 2025 13:34:39 +0700 Subject: [PATCH] qt6-base: fix musl stat Fix qtcreator build. --- srcpkgs/qt6-base/patches/musl-lfs.patch | 13 +++++++++++++ srcpkgs/qt6-base/template | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/qt6-base/patches/musl-lfs.patch diff --git a/srcpkgs/qt6-base/patches/musl-lfs.patch b/srcpkgs/qt6-base/patches/musl-lfs.patch new file mode 100644 index 00000000000..63698175e64 --- /dev/null +++ b/srcpkgs/qt6-base/patches/musl-lfs.patch @@ -0,0 +1,13 @@ +--- a/mkspecs/common/posix/qplatformdefs.h ++++ b/mkspecs/common/posix/qplatformdefs.h +@@ -14,6 +14,10 @@ + + #if defined(QT_USE_XOPEN_LFS_EXTENSIONS) && defined(QT_LARGEFILE_SUPPORT) + ++#if !defined(__GLIBC__) && !defined(_LARGEFILE64_SOURCE) ++#define _LARGEFILE64_SOURCE ++#endif ++ + #define QT_STATBUF struct stat64 + #define QT_FPOS_T fpos64_t + #define QT_OFF_T off64_t diff --git a/srcpkgs/qt6-base/template b/srcpkgs/qt6-base/template index ab9d0c986af..1a6aab41a7a 100644 --- a/srcpkgs/qt6-base/template +++ b/srcpkgs/qt6-base/template @@ -3,7 +3,7 @@ # On update rebuild all pkg with qt6-base-private-devel pkgname=qt6-base version=6.8.2 -revision=3 +revision=4 build_style=cmake configure_args="-DINSTALL_DATADIR=share/qt6 -DINSTALL_ARCHDATADIR=lib${XBPS_TARGET_WORDSIZE}/qt6