From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 14316158030 for ; Thu, 2 Mar 2023 19:18:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 53694E0788; Thu, 2 Mar 2023 19:18:42 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3509FE0788 for ; Thu, 2 Mar 2023 19:18:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3BB9B335DE8 for ; Thu, 2 Mar 2023 19:18:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id ECF68807 for ; Thu, 2 Mar 2023 19:18:38 +0000 (UTC) From: "Mike Gilbert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Gilbert" Message-ID: <1677784709.32189d086ac2495b35ea6ed5547b584b731e8532.floppym@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-qt/qtbase/, dev-qt/qtbase/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-qt/qtbase/files/qtbase-6-march.patch dev-qt/qtbase/qtbase-6.4.2.ebuild X-VCS-Directories: dev-qt/qtbase/files/ dev-qt/qtbase/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: 32189d086ac2495b35ea6ed5547b584b731e8532 X-VCS-Branch: master Date: Thu, 2 Mar 2023 19:18:38 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 394476fd-c36d-478e-a3fb-e9b0c084de0d X-Archives-Hash: c2a58d8ae4520736240e396483ef5c1f commit: 32189d086ac2495b35ea6ed5547b584b731e8532 Author: Mike Gilbert gentoo org> AuthorDate: Thu Mar 2 16:36:53 2023 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Thu Mar 2 19:18:29 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32189d08 dev-qt/qtbase: apply patch for -march compat Upstream expects people to use specific -march values, but that just causes problems for Gentoo users. Remove the offending check. Bug: https://bugs.gentoo.org/898644 Signed-off-by: Mike Gilbert gentoo.org> dev-qt/qtbase/files/qtbase-6-march.patch | 46 ++++++++++++++++++++++++++++++++ dev-qt/qtbase/qtbase-6.4.2.ebuild | 4 +++ 2 files changed, 50 insertions(+) diff --git a/dev-qt/qtbase/files/qtbase-6-march.patch b/dev-qt/qtbase/files/qtbase-6-march.patch new file mode 100644 index 000000000000..2c5cb0a010cb --- /dev/null +++ b/dev-qt/qtbase/files/qtbase-6-march.patch @@ -0,0 +1,46 @@ +https://bugreports.qt.io/browse/QTBUG-111698 +https://bugs.gentoo.org/898644 + +From 5fe96c901cd1ecd3e53acedeb97efd38b6af49a4 Mon Sep 17 00:00:00 2001 +From: Mike Gilbert +Date: Wed, 1 Mar 2023 21:31:22 -0500 +Subject: [PATCH] Don't error on partial support for x86-64 v3/v4 + +Bug: https://bugs.gentoo.org/898644 +--- + src/corelib/global/qsimd_p.h | 12 ++---------- + 1 file changed, 2 insertions(+), 10 deletions(-) + +diff --git a/src/corelib/global/qsimd_p.h b/src/corelib/global/qsimd_p.h +index 1d12902a0a..1449d75d5c 100644 +--- a/src/corelib/global/qsimd_p.h ++++ b/src/corelib/global/qsimd_p.h +@@ -227,11 +227,7 @@ asm( + // macOS's fat binaries support the "x86_64h" sub-architecture and the GNU libc + // ELF loader also supports a "haswell/" subdir (e.g., /usr/lib/haswell). + # define ARCH_HASWELL_MACROS (__AVX2__ + __BMI2__ + __FMA__ + __LZCNT__) +-# if ARCH_HASWELL_MACROS != 0 +-# if ARCH_HASWELL_MACROS != 4 +-# error "Please enable all x86-64-v3 extensions; you probably want to use -march=haswell or -march=x86-64-v3 instead of -mavx2" +-# endif +-static_assert(ARCH_HASWELL_MACROS, "Undeclared identifiers indicate which features are missing."); ++# if ARCH_HASWELL_MACROS == 4 + # define __haswell__ 1 + # endif + # undef ARCH_HASWELL_MACROS +@@ -243,11 +239,7 @@ static_assert(ARCH_HASWELL_MACROS, "Undeclared identifiers indicate which featur + // with AVX512 support and it includes all of these too. + // + # define ARCH_SKX_MACROS (__AVX512F__ + __AVX512BW__ + __AVX512CD__ + __AVX512DQ__ + __AVX512VL__) +-# if ARCH_SKX_MACROS != 0 +-# if ARCH_SKX_MACROS != 5 +-# error "Please enable all x86-64-v4 extensions; you probably want to use -march=skylake-avx512 or -march=x86-64-v4 instead of -mavx512f" +-# endif +-static_assert(ARCH_SKX_MACROS, "Undeclared identifiers indicate which features are missing."); ++# if ARCH_SKX_MACROS == 5 + # define __skylake_avx512__ 1 + # endif + # undef ARCH_SKX_MACROS +-- +2.39.2 + diff --git a/dev-qt/qtbase/qtbase-6.4.2.ebuild b/dev-qt/qtbase/qtbase-6.4.2.ebuild index 589a3d13aacf..c6545a5f1a0c 100644 --- a/dev-qt/qtbase/qtbase-6.4.2.ebuild +++ b/dev-qt/qtbase/qtbase-6.4.2.ebuild @@ -102,6 +102,10 @@ DEPEND=" " RDEPEND="${DEPEND}" +PATCHES=( + "${FILESDIR}/qtbase-6-march.patch" +) + src_configure() { local mycmakeargs=( -DINSTALL_ARCHDATADIR=${QT6_ARCHDATADIR}