* [ptxdist] [PATCH] qt5: build zlib with time64 support
@ 2025-05-07 14:33 Fabian Pfitzner
2025-05-14 6:08 ` [ptxdist] [APPLIED] " Michael Olbrich
0 siblings, 1 reply; 2+ messages in thread
From: Fabian Pfitzner @ 2025-05-07 14:33 UTC (permalink / raw)
To: ptxdist; +Cc: Fabian Pfitzner
The zlib third party module provided by qt 5.15.16 does not use time_t,
so building zlib with _TIME_BITS enabled causes compiler issues. The upstream
zlib repository already has a patch that fixes this issues. Import it to
resolve the issue.
Signed-off-by: Fabian Pfitzner <f.pfitzner@pengutronix.de>
---
.../0600-undefine-_TIME_BITS.patch | 30 +++++++++++++++++++
.../series | 4 ++-
2 files changed, 33 insertions(+), 1 deletion(-)
create mode 100644 patches/qt-everywhere-opensource-src-5.15.16/0600-undefine-_TIME_BITS.patch
diff --git a/patches/qt-everywhere-opensource-src-5.15.16/0600-undefine-_TIME_BITS.patch b/patches/qt-everywhere-opensource-src-5.15.16/0600-undefine-_TIME_BITS.patch
new file mode 100644
index 000000000..f19c6a151
--- /dev/null
+++ b/patches/qt-everywhere-opensource-src-5.15.16/0600-undefine-_TIME_BITS.patch
@@ -0,0 +1,30 @@
+From: Fabian Pfitzner <f.pfitzner@pengutronix.de>
+Date: Wed, 7 May 2025 14:00:26 +0200
+Subject: [PATCH] undefine _TIME_BITS
+
+zlib does not use time_t, so _TIME_BITS is irrelevant.
+This was already fixed in the upstream zlib repo [1].
+
+[1] https://github.com/madler/zlib/commit/a566e156b3fa07b566ddbf6801b517a9dba04fa3
+
+Signed-off-by: Fabian Pfitzner <f.pfitzner@pengutronix.de>
+---
+ qtwebengine/src/3rdparty/chromium/third_party/zlib/gzguts.h | 5 ++---
+ 1 file changed, 2 insertions(+), 3 deletions(-)
+
+diff --git a/qtwebengine/src/3rdparty/chromium/third_party/zlib/gzguts.h b/qtwebengine/src/3rdparty/chromium/third_party/zlib/gzguts.h
+index 57faf37165a3..d2057e40bcea 100644
+--- a/qtwebengine/src/3rdparty/chromium/third_party/zlib/gzguts.h
++++ b/qtwebengine/src/3rdparty/chromium/third_party/zlib/gzguts.h
+@@ -7,9 +7,8 @@
+ # ifndef _LARGEFILE_SOURCE
+ # define _LARGEFILE_SOURCE 1
+ # endif
+-# ifdef _FILE_OFFSET_BITS
+-# undef _FILE_OFFSET_BITS
+-# endif
++# undef _FILE_OFFSET_BITS
++# undef _TIME_BITS
+ #endif
+
+ #ifdef HAVE_HIDDEN
diff --git a/patches/qt-everywhere-opensource-src-5.15.16/series b/patches/qt-everywhere-opensource-src-5.15.16/series
index a8f77806b..b1088ce9f 100644
--- a/patches/qt-everywhere-opensource-src-5.15.16/series
+++ b/patches/qt-everywhere-opensource-src-5.15.16/series
@@ -22,4 +22,6 @@
0402-HACK-qtwebengine-workaround-for-too-long-file-names.patch
#tag:kms --start-number 500
0500-eglfs_kms-device-ordering-robustness.patch
-# 544d9b0673000ed50ea790699663a6c7 - git-ptx-patches magic
+#tag:time64 --start-number 600
+0600-undefine-_TIME_BITS.patch
+# ce289d22eb7c2f55726ff2f0e24cb65f - git-ptx-patches magic
--
2.39.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ptxdist] [APPLIED] qt5: build zlib with time64 support
2025-05-07 14:33 [ptxdist] [PATCH] qt5: build zlib with time64 support Fabian Pfitzner
@ 2025-05-14 6:08 ` Michael Olbrich
0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2025-05-14 6:08 UTC (permalink / raw)
To: ptxdist; +Cc: Fabian Pfitzner
Thanks, applied as 30732d5e0388223431482e1861e326c6fdf7f91b.
Michael
[sent from post-receive hook]
On Wed, 14 May 2025 08:08:00 +0200, Fabian Pfitzner <f.pfitzner@pengutronix.de> wrote:
> The zlib third party module provided by qt 5.15.16 does not use time_t,
> so building zlib with _TIME_BITS enabled causes compiler issues. The upstream
> zlib repository already has a patch that fixes this issues. Import it to
> resolve the issue.
>
> Signed-off-by: Fabian Pfitzner <f.pfitzner@pengutronix.de>
> Message-Id: <20250507143344.4118510-1-f.pfitzner@pengutronix.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
>
> diff --git a/patches/qt-everywhere-opensource-src-5.15.16/0600-undefine-_TIME_BITS.patch b/patches/qt-everywhere-opensource-src-5.15.16/0600-undefine-_TIME_BITS.patch
> new file mode 100644
> index 000000000000..f19c6a15147e
> --- /dev/null
> +++ b/patches/qt-everywhere-opensource-src-5.15.16/0600-undefine-_TIME_BITS.patch
> @@ -0,0 +1,30 @@
> +From: Fabian Pfitzner <f.pfitzner@pengutronix.de>
> +Date: Wed, 7 May 2025 14:00:26 +0200
> +Subject: [PATCH] undefine _TIME_BITS
> +
> +zlib does not use time_t, so _TIME_BITS is irrelevant.
> +This was already fixed in the upstream zlib repo [1].
> +
> +[1] https://github.com/madler/zlib/commit/a566e156b3fa07b566ddbf6801b517a9dba04fa3
> +
> +Signed-off-by: Fabian Pfitzner <f.pfitzner@pengutronix.de>
> +---
> + qtwebengine/src/3rdparty/chromium/third_party/zlib/gzguts.h | 5 ++---
> + 1 file changed, 2 insertions(+), 3 deletions(-)
> +
> +diff --git a/qtwebengine/src/3rdparty/chromium/third_party/zlib/gzguts.h b/qtwebengine/src/3rdparty/chromium/third_party/zlib/gzguts.h
> +index 57faf37165a3..d2057e40bcea 100644
> +--- a/qtwebengine/src/3rdparty/chromium/third_party/zlib/gzguts.h
> ++++ b/qtwebengine/src/3rdparty/chromium/third_party/zlib/gzguts.h
> +@@ -7,9 +7,8 @@
> + # ifndef _LARGEFILE_SOURCE
> + # define _LARGEFILE_SOURCE 1
> + # endif
> +-# ifdef _FILE_OFFSET_BITS
> +-# undef _FILE_OFFSET_BITS
> +-# endif
> ++# undef _FILE_OFFSET_BITS
> ++# undef _TIME_BITS
> + #endif
> +
> + #ifdef HAVE_HIDDEN
> diff --git a/patches/qt-everywhere-opensource-src-5.15.16/series b/patches/qt-everywhere-opensource-src-5.15.16/series
> index a8f77806bad1..b1088ce9f98a 100644
> --- a/patches/qt-everywhere-opensource-src-5.15.16/series
> +++ b/patches/qt-everywhere-opensource-src-5.15.16/series
> @@ -22,4 +22,6 @@
> 0402-HACK-qtwebengine-workaround-for-too-long-file-names.patch
> #tag:kms --start-number 500
> 0500-eglfs_kms-device-ordering-robustness.patch
> -# 544d9b0673000ed50ea790699663a6c7 - git-ptx-patches magic
> +#tag:time64 --start-number 600
> +0600-undefine-_TIME_BITS.patch
> +# ce289d22eb7c2f55726ff2f0e24cb65f - git-ptx-patches magic
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-05-14 6:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-07 14:33 [ptxdist] [PATCH] qt5: build zlib with time64 support Fabian Pfitzner
2025-05-14 6:08 ` [ptxdist] [APPLIED] " Michael Olbrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox