To fix breakage with GCC 9 and the foreach macro we should backport this commit from Qt 5 (it doesn't apply cleanly and needs a bit of trivial adapting): https://github.com/qt/qtbase/commit/c35a3f519007af44c3b364b9af86f6a336f6411b
GCC developers closed https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90617
as a duplicate of https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44715
which shows that the change was intentional.
Pinned Comments
eschwartz commented on 2019-05-09 13:24 (UTC)
@semeion,
qt4 was expelled from the official repositories due to https://lists.archlinux.org/pipermail/arch-dev-public/2019-April/029560.html
It will not be restored, because software needs to stop using qt4. It's fine for people to still use it via the AUR if they have old software that is not ported, but the proper solution is to get that software ported to qt5.
"It takes a long time to compile" is not a reason to move it to community.
@xuanruiqi,
Only Developers and Trusted Users have access to pkgbuild.com, and we will not be uploading qt4 there. If we wanted qt4, we would upload it to community, but we don't -- we have managed to move every package still being actively maintained in the official repos, over to qt5, and we want to stay that way.
...
Again, the proper long-term solution is to get software ported over to qt5.
dviktor commented on 2019-05-05 17:49 (UTC) (edited on 2019-05-15 19:02 (UTC) by dviktor)
For those who have problems with
‘std::tr1’ has not been declared
error: build in clean chroot withextra-x86_64-build
script.