* [bug#58249] [PATCH] gnu: packages: qt: Fix qtbase-5 not building on gcc 11 or later
@ 2022-10-02 14:22 guix-patches--- via
2023-01-03 22:18 ` Maxim Cournoyer
0 siblings, 1 reply; 6+ messages in thread
From: guix-patches--- via @ 2022-10-02 14:22 UTC (permalink / raw)
To: 58249
[-- Attachment #1: Type: text/plain, Size: 216 bytes --]
This fixes a bug that makes qtbase-5 unbuildable with gcc 11 and later
The QT issue https://bugreports.qt.io/browse/QTBUG-91909
This patch is based on conversation from
https://github.com/RPCS3/rpcs3/issues/10349
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-packages-qt-Fix-qtbase-5-not-building-on-gcc-11.patch --]
[-- Type: text/x-patch, Size: 2364 bytes --]
From d7467ebe3169d45a5f9500e2c8a4a992cb108f20 Mon Sep 17 00:00:00 2001
From: Maya Tomasek <maya.omase@protonmail.com>
Date: Sun, 2 Oct 2022 16:12:57 +0200
Subject: [PATCH 1/1] gnu: packages: qt: Fix qtbase-5 not building on gcc >= 11
---
.../patches/qtbase-remove-template.patch | 18 ++++++++++++++++++
gnu/packages/qt.scm | 4 +++-
2 files changed, 21 insertions(+), 1 deletion(-)
create mode 100644 gnu/packages/patches/qtbase-remove-template.patch
diff --git a/gnu/packages/patches/qtbase-remove-template.patch b/gnu/packages/patches/qtbase-remove-template.patch
new file mode 100644
index 0000000000..5686ebf4db
--- /dev/null
+++ b/gnu/packages/patches/qtbase-remove-template.patch
@@ -0,0 +1,18 @@
+Remove template <void> from ThreadEngineStarter, this causes gcc >= 11 to emit error,
+and not compile the header. See https://bugreports.qt.io/browse/QTBUG-91909
+
+Based on a conversation from https://github.com/RPCS3/rpcs3/issues/10349
+===============================================================
+--- a/src/concurrent/qtconcurrentthreadengine.h
++++ b/src/concurrent/qtconcurrentthreadengine.h
+@@ -247,7 +247,7 @@ template <>
+ class ThreadEngineStarter<void> : public ThreadEngineStarterBase<void>
+ {
+ public:
+- ThreadEngineStarter<void>(ThreadEngine<void> *_threadEngine)
++ ThreadEngineStarter(ThreadEngine<void> *_threadEngine)
+ :ThreadEngineStarterBase<void>(_threadEngine) {}
+
+ void startBlocking()
+--
+2.37.3
\ No newline at end of file
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index 6e30980505..6d29b6fd09 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -294,7 +294,9 @@ (define-public qtbase-5
;; Use TZDIR to avoid depending on package "tzdata".
(patches (search-patches "qtbase-use-TZDIR.patch"
"qtbase-moc-ignore-gcc-macro.patch"
- "qtbase-absolute-runpath.patch"))
+ "qtbase-absolute-runpath.patch"
+ ;; fix qtbase-5 not building on gcc >= 11
+ "qtbase-remove-template.patch"))
(modules '((guix build utils)))
(snippet
;; corelib uses bundled harfbuzz, md4, md5, sha3
--
2.37.3
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [bug#58249] [PATCH] gnu: packages: qt: Fix qtbase-5 not building on gcc 11 or later
2022-10-02 14:22 [bug#58249] [PATCH] gnu: packages: qt: Fix qtbase-5 not building on gcc 11 or later guix-patches--- via
@ 2023-01-03 22:18 ` Maxim Cournoyer
2023-01-08 22:49 ` guix-patches--- via
0 siblings, 1 reply; 6+ messages in thread
From: Maxim Cournoyer @ 2023-01-03 22:18 UTC (permalink / raw)
To: Mája Tomášek; +Cc: 58249
Hi,
Mája Tomášek <maya.tomasek@disroot.org> writes:
> This fixes a bug that makes qtbase-5 unbuildable with gcc 11 and later
>
> The QT issue https://bugreports.qt.io/browse/QTBUG-91909
>
> This patch is based on conversation from
> https://github.com/RPCS3/rpcs3/issues/10349
That's good to know, but Guix is currently using GCC 10.3.0, so it is
not currently a concern. Have you encountered a situation where it
caused an issue? Perhaps our Qt 6 doesn't have this problem. I'd
suggest we do nothing for now.
What do you think?
--
Thanks,
Maxim
^ permalink raw reply [flat|nested] 6+ messages in thread
* [bug#58249] [PATCH] gnu: packages: qt: Fix qtbase-5 not building on gcc 11 or later
2023-01-03 22:18 ` Maxim Cournoyer
@ 2023-01-08 22:49 ` guix-patches--- via
2023-01-10 15:07 ` Maxim Cournoyer
0 siblings, 1 reply; 6+ messages in thread
From: guix-patches--- via @ 2023-01-08 22:49 UTC (permalink / raw)
To: Maxim Cournoyer; +Cc: 58249
Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:
> Hi,
>
> Mája Tomášek <maya.tomasek@disroot.org> writes:
>
>> This fixes a bug that makes qtbase-5 unbuildable with gcc 11 and later
>>
>> The QT issue https://bugreports.qt.io/browse/QTBUG-91909
>>
>> This patch is based on conversation from
>> https://github.com/RPCS3/rpcs3/issues/10349
>
> That's good to know, but Guix is currently using GCC 10.3.0, so it is
> not currently a concern. Have you encountered a situation where it
> caused an issue?
I have. I have written a recipe for a package (namely yuzu emulator),
which depends on GCC 12. And it was actually an issue, I had to wrap
qtbase with a wrapper that goes over this problem.
> Perhaps our Qt 6 doesn't have this problem. I'd
> suggest we do nothing for now.
It was actually fixed in later versions of qtbase-5, but I'm not sure
how this exactly works and if they are elegible for use in Guix.
> What do you think?
I don't know, it is a hidden bug that is likely to cause quite a big
problem once Guix moves to GCC 11 or later, as many apps probably won't update to
Qt 6.
Kind regards,
Maya
^ permalink raw reply [flat|nested] 6+ messages in thread
* [bug#58249] [PATCH] gnu: packages: qt: Fix qtbase-5 not building on gcc 11 or later
2023-01-08 22:49 ` guix-patches--- via
@ 2023-01-10 15:07 ` Maxim Cournoyer
2023-01-25 21:03 ` guix-patches--- via
0 siblings, 1 reply; 6+ messages in thread
From: Maxim Cournoyer @ 2023-01-10 15:07 UTC (permalink / raw)
To: Mája Tomášek; +Cc: 58249
Hello,
Mája Tomášek <maya.tomasek@disroot.org> writes:
[...]
> I don't know, it is a hidden bug that is likely to cause quite a big
> problem once Guix moves to GCC 11 or later, as many apps probably won't update to
> Qt 6.
The best solution may be to update our Qt 5 version; would you like to
give it a try? Other than being a lot of new hashes to update (for each
qt5 component), it should be relatively low risk (with regards to
breaking existing Qt 5 packages).
--
Thanks,
Maxim
^ permalink raw reply [flat|nested] 6+ messages in thread
* [bug#58249] [PATCH] gnu: packages: qt: Fix qtbase-5 not building on gcc 11 or later
2023-01-10 15:07 ` Maxim Cournoyer
@ 2023-01-25 21:03 ` guix-patches--- via
2023-01-26 16:40 ` bug#58249: " Maxim Cournoyer
0 siblings, 1 reply; 6+ messages in thread
From: guix-patches--- via @ 2023-01-25 21:03 UTC (permalink / raw)
To: Maxim Cournoyer; +Cc: 58249
Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:
> Hello,
>
> Mája Tomášek <maya.tomasek@disroot.org> writes:
>
> [...]
>
>> I don't know, it is a hidden bug that is likely to cause quite a big
>> problem once Guix moves to GCC 11 or later, as many apps probably won't update to
>> Qt 6.
>
> The best solution may be to update our Qt 5 version; would you like to
> give it a try? Other than being a lot of new hashes to update (for each
> qt5 component), it should be relatively low risk (with regards to
> breaking existing Qt 5 packages).
>
> --
> Thanks,
> Maxim
I haved looked into it, and guix has already shipped a patched version
:)
This can be closed now.
Maya
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#58249: [PATCH] gnu: packages: qt: Fix qtbase-5 not building on gcc 11 or later
2023-01-25 21:03 ` guix-patches--- via
@ 2023-01-26 16:40 ` Maxim Cournoyer
0 siblings, 0 replies; 6+ messages in thread
From: Maxim Cournoyer @ 2023-01-26 16:40 UTC (permalink / raw)
To: Mája Tomášek; +Cc: 58249-done
Hi,
Mája Tomášek <maya.tomasek@disroot.org> writes:
> Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:
>
>> Hello,
>>
>> Mája Tomášek <maya.tomasek@disroot.org> writes:
>>
>> [...]
>>
>>> I don't know, it is a hidden bug that is likely to cause quite a big
>>> problem once Guix moves to GCC 11 or later, as many apps probably won't update to
>>> Qt 6.
>>
>> The best solution may be to update our Qt 5 version; would you like to
>> give it a try? Other than being a lot of new hashes to update (for each
>> qt5 component), it should be relatively low risk (with regards to
>> breaking existing Qt 5 packages).
>>
>> --
>> Thanks,
>> Maxim
>
> I haved looked into it, and guix has already shipped a patched version
> :)
>
> This can be closed now.
> Maya
Great, thanks for the follow-up.
I'm closing this by replying to 58249-done@debbugs.gnu.org in CC.
--
Thanks,
Maxim
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-01-26 16:41 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-02 14:22 [bug#58249] [PATCH] gnu: packages: qt: Fix qtbase-5 not building on gcc 11 or later guix-patches--- via
2023-01-03 22:18 ` Maxim Cournoyer
2023-01-08 22:49 ` guix-patches--- via
2023-01-10 15:07 ` Maxim Cournoyer
2023-01-25 21:03 ` guix-patches--- via
2023-01-26 16:40 ` bug#58249: " Maxim Cournoyer
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).