pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/qt5-qtbase x11/qt5-qtbase: build fix for older gcc...
details: https://anonhg.NetBSD.org/pkgsrc/rev/55aff2f66335
branches: trunk
changeset: 454759:55aff2f66335
user: thor <thor%pkgsrc.org@localhost>
date: Fri Jun 18 02:21:32 2021 +0000
description:
x11/qt5-qtbase: build fix for older gcc -march=native
See https://bugreports.qt.io/browse/QTBUG-71564 . This replaces -march=core-avx2
with -mavx2 for the respective bits of the code, to avoid interaction
with global -march=naitive in not freshest GCC. Otherwise, the build would
fail in that setup.
diffstat:
x11/qt5-qtbase/distinfo | 3 +-
x11/qt5-qtbase/patches/patch-mkspecs_common_gcc-base.conf | 18 +++++++++++++++
2 files changed, 20 insertions(+), 1 deletions(-)
diffs (38 lines):
diff -r e327a19ab892 -r 55aff2f66335 x11/qt5-qtbase/distinfo
--- a/x11/qt5-qtbase/distinfo Thu Jun 17 20:27:58 2021 +0000
+++ b/x11/qt5-qtbase/distinfo Fri Jun 18 02:21:32 2021 +0000
@@ -1,10 +1,11 @@
-$NetBSD: distinfo,v 1.63 2020/11/24 09:35:18 tsutsui Exp $
+$NetBSD: distinfo,v 1.64 2021/06/18 02:21:32 thor Exp $
SHA1 (qtbase-everywhere-src-5.15.2.tar.xz) = b5ad67fc6381ad7fae0296944734198488d096a3
RMD160 (qtbase-everywhere-src-5.15.2.tar.xz) = ee53f1b7dadc0b96a2f79fe7f54467b46894b12b
SHA512 (qtbase-everywhere-src-5.15.2.tar.xz) = a549bfaf867d746ff744ab224eb65ac1bdcdac7e8457dfa379941b2b225a90442fcfc1e1175b9afb1f169468f8130b7ab917c67be67156520a4bfb5c92d304f9
Size (qtbase-everywhere-src-5.15.2.tar.xz) = 50179672 bytes
SHA1 (patch-configure) = f5019131cc4e6cd4e35242cc7b598fbf8f5f766b
+SHA1 (patch-mkspecs_common_gcc-base.conf) = 7b461079adff516ac3957d0cdb127dee67dab7ce
SHA1 (patch-mkspecs_features_qt__module.prf) = a04c4b1fe80250b6b3591f5486ac0fd3b5056c26
SHA1 (patch-mkspecs_features_toolchain.prf) = 0cf13cb6e859dd6276954239b91953e557add515
SHA1 (patch-qmake_Makefile.unix) = 8a55d0eb30903266ce529bbfa562b492cdd359b3
diff -r e327a19ab892 -r 55aff2f66335 x11/qt5-qtbase/patches/patch-mkspecs_common_gcc-base.conf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/qt5-qtbase/patches/patch-mkspecs_common_gcc-base.conf Fri Jun 18 02:21:32 2021 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-mkspecs_common_gcc-base.conf,v 1.1 2021/06/18 02:21:32 thor Exp $
+
+Do not break -march=native builds with certain gcc versions. See
+https://bugreports.qt.io/browse/QTBUG-71564 for detail and upstream
+unwillingness.
+
+--- ./mkspecs/common/gcc-base.conf.orig 2019-06-13 13:36:03.554816463 +0000
++++ ./mkspecs/common/gcc-base.conf
+@@ -109,7 +109,8 @@ QMAKE_CFLAGS_MIPS_DSP += -mdsp
+ QMAKE_CFLAGS_MIPS_DSPR2 += -mdspr2
+
+ # -march=haswell is supported as of GCC 4.9 and Clang 3.6
+-QMAKE_CFLAGS_ARCH_HASWELL = -march=core-avx2
++# https://bugreports.qt.io/browse/QTBUG-71564
++QMAKE_CFLAGS_ARCH_HASWELL = -mavx2
+
+ # Wrapper tools that understand .o/.a files with GIMPLE instead of machine code
+ QMAKE_AR_LTCG = gcc-ar cqs
Home |
Main Index |
Thread Index |
Old Index