From nobody Mon Jan 15 13:35:30 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 4TDCnZ2MZyz56xms; Mon, 15 Jan 2024 13:35:30 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TDCnZ1sdtz4cvK; Mon, 15 Jan 2024 13:35:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705325730; 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=EANm0gNEz1fYlPufc62hTm5KsuSm8Ce8msl71E78wMg=; b=U5bC3F1xRfgBLwUZPAHWSwWmX85vBAbqKXR9D/3KTkfMprTIRelRduQBe1e7W9Oa8SHrqb FRzIl+3qe5kaEXH6AtF/jnMylcZPv/xSV7XsyZtvMm0xDiqY+Z8hDFtT5PTW/WLepVsDtm XRaWJhWNZnge+Yip8GyJ49jDVv2KsI7bq/cmDNyImghqxc0eIiBXG0NGw+b0isVYd10uSJ N4LN/R2mRozOZTt+3oDo4WgScKBHof2mWFZ0fT++iH5IhoXMuxTAfmA4jKD72XQWJIOlyr zTb+DMuAh9CGT7ZfIIjT0ypG06RcgS6IPTPb2BDRR90bXC//d63IjcgjNbkOsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705325730; 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=EANm0gNEz1fYlPufc62hTm5KsuSm8Ce8msl71E78wMg=; b=DobKXrK5pAPcg5EltfdEXDh/niJL+NvMyC2FqABsGQ9NwxfkJNZWKzqp8w1a+KLOVRfX1P vN/Jdr/hm1UATzvqiyA+bC/ah1IV9QRsdi0XkK+v5g6Ja12NR7a+Oy1ztsK+JTnepEYbPP VH1+osG2IpLU3Qx9u89DIvaVgOLTMlZCT0HlJ1LFPGb+IKYeZkkW9flBCnTv6hCcpxVK71 0vRDXvzjZ7Eo1BVgqB+0UceTOgs2jAiNL8sqaTvBK0ZcUl9HRe935TRxO4v+wo3YNKwCou iH6gB6yu1S4e9CBdtrvS6YY0dqVaGh9UEpdy4fApFhLH8y+rYtDp+CgtJMmp3Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705325730; a=rsa-sha256; cv=none; b=lFCw0fTeqOdwpe497Z5q1cPw2s43EL/5Cy7N79OBiHqvzWKhP++hcXRIF7YO56DYDKs9fj p4EXKwtOohFMK4yRpbAlgCG1Q+5Tf7zTpf5Wy6JPZRE43vpO1lSemRcMMPZNbNYID/6VBv HPP9qz7Xm4bwKEDcsFGkbIknMXk5veE+YNhhYvEerDNzPRdZKgRNq4K3SdjIwze8SxB9y+ Zr8l/8q3tfUPLAFJHakTslQgRxFiUW0LnokGYpP/3RbZ0J7TmY82JeZ/m7S3VW7NdAxi0d Ou90B1r+cJNa0c+3xnfqTWN+7uOeY6nOPjIodG1QuygVzHwstO3VhVR8T3SAyA== 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 4TDCnZ0yG9zyPt; Mon, 15 Jan 2024 13:35:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40FDZUP3025254; Mon, 15 Jan 2024 13:35:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40FDZUeS025251; Mon, 15 Jan 2024 13:35:30 GMT (envelope-from git) Date: Mon, 15 Jan 2024 13:35:30 GMT Message-Id: <202401151335.40FDZUeS025251@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dima Panov Subject: git: 879ed088847d - main - net-im/telegram-desktop: unbreak build on FreeBSD versions with base LLVM < 16 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: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fluffy X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 879ed088847d8b9adffab39e082ed7d104b0ef3a Auto-Submitted: auto-generated The branch main has been updated by fluffy: URL: https://cgit.FreeBSD.org/ports/commit/?id=879ed088847d8b9adffab39e082ed7d104b0ef3a commit 879ed088847d8b9adffab39e082ed7d104b0ef3a Author: Dima Panov AuthorDate: 2024-01-15 13:29:18 +0000 Commit: Dima Panov CommitDate: 2024-01-15 13:35:24 +0000 net-im/telegram-desktop: unbreak build on FreeBSD versions with base LLVM < 16 Minimal required LLVM version to build is 16 now. It is stated on the clang release page, that the proposals for doing these kinds of captures are implemented in Clang16 Error example: /wrkdirs/overlays/wip/net-im/telegram-desktop/work-qt5/tdesktop-4.14.4-full/Telegram/SourceFiles/window/window_session_controller.cpp /wrkdirs/overlays/wip/net-im/telegram-desktop/work-qt5/tdesktop-4.14.4-full/Telegram/SourceFiles/window/window_session_controller.cpp:1249:9: error: reference to local binding 'index' declared in enclosing lambda expression if (index >= list.size()) { ^ /wrkdirs/overlays/wip/net-im/telegram-desktop/work-qt5/tdesktop-4.14.4-full/Telegram/SourceFiles/window/window_session_controller.cpp:1246:29: note: 'index' declared here for (const auto [command, index] : accounts) { ^ /wrkdirs/overlays/wip/net-im/telegram-desktop/work-qt5/tdesktop-4.14.4-full/Telegram/SourceFiles/window/window_session_controller.cpp:1252:31: error: reference to local binding 'index' declared in enclosing lambda expression const auto account = list[index]; ^ /wrkdirs/overlays/wip/net-im/telegram-desktop/work-qt5/tdesktop-4.14.4-full/Telegram/SourceFiles/window/window_session_controller.cpp:1246:29: note: 'index' declared here for (const auto [command, index] : accounts) { ^ 2 errors generated. Reported by: Benjamin Takacs --- net-im/telegram-desktop/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net-im/telegram-desktop/Makefile b/net-im/telegram-desktop/Makefile index b298baed427d..6b8d4b3654cc 100644 --- a/net-im/telegram-desktop/Makefile +++ b/net-im/telegram-desktop/Makefile @@ -105,8 +105,8 @@ TELEGRAM_API_ID= 601761 .include -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400000 && ${OSVERSION} < 1400079 -USES+= llvm:max=15,build +.if ${OPSYS} == FreeBSD && ((${OSVERSION} >= 1400000 && ${OSVERSION} < 1400091) || ${OSVERSION} < 1302507) +USES+= llvm:min=16,build .else USES+= compiler:c++20-lang .endif