From nobody Sat Nov 02 16:15:01 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XgjVs5SrYz5cHT1; Sat, 02 Nov 2024 16:15:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XgjVs4pBjz4NmC; Sat, 2 Nov 2024 16:15:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730564101; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Tx+SbCLkAEwu9Ppov5Pp5E+ZM0VNKRb6O92eUFSu1B8=; b=MrDTQ+7lOfv7vlYx6C/lxMoNkr78nOY+ymrfDreLCFVgzCV0qTTg2/VzWc8N25OUn6qROD 1ijfBZK0PrjKbQTwrXGRZ40YQc1/pR8T4TKMfPQgWWyP21yiKrz10+8HkzgR5i4VVBjXdg ajrKbZy6DZAc2U/eZhV1PLEsj/5hDTyBbQY23m+/zxPWb/wzmLb11+U04n8JMqcHWpwIxG c6L0xTsjHhREEfPVqidHxrdvWwMD+lRbvWq4i3nwc2lpimQUevxHSYwk40k2hq634A8+kj vfnHWZ6xd2Jzou6iMeN9CAfngtUKMEPE/Xor1ypdpZD2ESEvlVVUzGipAhTcnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730564101; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Tx+SbCLkAEwu9Ppov5Pp5E+ZM0VNKRb6O92eUFSu1B8=; b=G2dziSxL42XyVqKSWHf2of8aDRGM4Hb9W0IyYGkYh4gf3f61ZkPBQwTh2o/MRf7UGqgIfx gOS5aSDI/Sd7zPQ+/+hN6p5BG36ifwTm6q+4M/bRbPV6emYNddOIZuhc3+2Tv66f4EJu0G yp5PzBoqXcUDZBW/6Rxvaj59iWOyCoSQAZ55Qm2FyQgUnj/zWm2oIZzmHnnR+gatKbn851 QUO9PH3qalYZVr/108pPiGb61haP9/cLFlVbf0I2Y4PVJDP33w8groMTeE6cTe/IXs2vmH rR2ESUumj9Yg3xdzRvZtEHaRmfFkQMJ1M3DKXbfo/rR0UCLQc0eZ/59V+wMCaw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730564101; a=rsa-sha256; cv=none; b=NLU9Yx5Ln4FonGFvrMQFKoIeErSJzlKx/LOa4ObQQQG4GagO+C0UAOogxfaxgQrtyhugzg jpOosoDOWORNdkhW9oZp55PNKEJg1q9Tmavkd7p0QPlzrWETOV4I9KBFMN4+aXFolvMTfV Fl7yShCh57e92t25ngnSWddksVTj25aMxcMfMuo/VlykAvFlW+X30wTCN822Cs0I6GLWLq a1tDuaBYhYK+zeVDnGGuO7p0cCZGz58ijoD+u/0P3oYX+t72WhvrKgnm3CgeJ+uC3JQ+YH OIHpweAVMvA8BWUP05+0NWGr/8TlF65IKu12+VcgiCVBHVWjMeyxjRVYV1/uLQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XgjVs45ydz1BMW; Sat, 2 Nov 2024 16:15:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A2GF17q060364; Sat, 2 Nov 2024 16:15:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A2GF1jd060361; Sat, 2 Nov 2024 16:15:01 GMT (envelope-from git) Date: Sat, 2 Nov 2024 16:15:01 GMT Message-Id: <202411021615.4A2GF1jd060361@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: "Jason E. Hale" Subject: git: af073c18a312 - main - devel/qtcreator: Really fix build with LLVM 19 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhale X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: af073c18a31257e36538a52e2e7ebdf900e0d888 Auto-Submitted: auto-generated The branch main has been updated by jhale: URL: https://cgit.FreeBSD.org/ports/commit/?id=af073c18a31257e36538a52e2e7ebdf900e0d888 commit af073c18a31257e36538a52e2e7ebdf900e0d888 Author: Jason E. Hale AuthorDate: 2024-11-02 15:54:46 +0000 Commit: Jason E. Hale CommitDate: 2024-11-02 16:14:51 +0000 devel/qtcreator: Really fix build with LLVM 19 Clang >= 19.1.0-rc1 enables C++17 relaxed template template argument matching by default. The workaround in qtcreator before this was the case is now causing build failures. Add upstream patch to fix build of the clang-format plugin with clang-format19. MFH: 2024Q4 --- devel/qtcreator/Makefile | 3 +++ devel/qtcreator/distinfo | 4 +++- .../files/patch-src_libs_utils_algorithm.h | 26 ++++++++++++++++++++++ 3 files changed, 32 insertions(+), 1 deletion(-) diff --git a/devel/qtcreator/Makefile b/devel/qtcreator/Makefile index b83c70652f04..860dffa66d68 100644 --- a/devel/qtcreator/Makefile +++ b/devel/qtcreator/Makefile @@ -6,6 +6,9 @@ MASTER_SITES= QT/official_releases/qtcreator/${DISTVERSION:R}/${DISTVERSION} DISTNAME= qt-creator-opensource-src-${DISTVERSION} DIST_SUBDIR= KDE/Qt/qtcreator +PATCH_SITES= https://github.com/qt-creator/qt-creator/commit/ +PATCHFILES+= f175ec933f1c5c5d7a345edbaacc8ff90202aee2.patch:-p1 # clang-format19 fix; will be in qtcreator 15.0 + MAINTAINER= kde@FreeBSD.org COMMENT= C++ and QML IDE for Qt development WWW= https://qt-project.org/wiki/Category:Tools::QtCreator diff --git a/devel/qtcreator/distinfo b/devel/qtcreator/distinfo index b56d09982207..d71289b05176 100644 --- a/devel/qtcreator/distinfo +++ b/devel/qtcreator/distinfo @@ -1,3 +1,5 @@ -TIMESTAMP = 1727826035 +TIMESTAMP = 1730535650 SHA256 (KDE/Qt/qtcreator/qt-creator-opensource-src-14.0.2.tar.xz) = b2d2f878bb6928a8e6e30d87600bdd93cf404c2619a151c64bdcdc8cd0783892 SIZE (KDE/Qt/qtcreator/qt-creator-opensource-src-14.0.2.tar.xz) = 52423044 +SHA256 (KDE/Qt/qtcreator/f175ec933f1c5c5d7a345edbaacc8ff90202aee2.patch) = 5f4528f1b927c68a0a162a9f2c1b01d49387355eb6e5640dd2b2a8332d6383f9 +SIZE (KDE/Qt/qtcreator/f175ec933f1c5c5d7a345edbaacc8ff90202aee2.patch) = 1196 diff --git a/devel/qtcreator/files/patch-src_libs_utils_algorithm.h b/devel/qtcreator/files/patch-src_libs_utils_algorithm.h new file mode 100644 index 000000000000..cbe9421ff8bc --- /dev/null +++ b/devel/qtcreator/files/patch-src_libs_utils_algorithm.h @@ -0,0 +1,26 @@ +Fix build with LLVM >= 19.1.0-rc1. + +Clang >= 19.1.0-rc1 enables C++17 relaxed template template argument +matching by default. The workaround in qtcreator before this was the +case is now causing build failures. + +--- src/libs/utils/algorithm.h.orig 2024-09-27 01:17:49 UTC ++++ src/libs/utils/algorithm.h +@@ -258,7 +258,7 @@ Q_REQUIRED_RESULT decltype(auto) transform(SC &&contai + typename Result = std::decay_t>, + typename ResultContainer = C> + Q_REQUIRED_RESULT decltype(auto) transform(SC &&container, F function); +-#ifdef Q_CC_CLANG ++#if defined(Q_CC_CLANG) && !defined(__cpp_template_template_args) + // "Matching of template template-arguments excludes compatible templates" + // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0522r0.html (P0522R0) + // in C++17 makes the above match e.g. C=std::vector even though that takes two +@@ -809,7 +809,7 @@ Q_REQUIRED_RESULT decltype(auto) transform(SC &&contai + return transform(std::forward(container), function); + } + +-#ifdef Q_CC_CLANG ++#if defined(Q_CC_CLANG) && !defined(__cpp_template_template_args) + template class C, // result container type + typename SC, // input container type + typename F, // function type