From nobody Wed Jan 22 18:31:59 2025 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 4YdXjW4HNtz5krrg; Wed, 22 Jan 2025 18:31:59 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YdXjW2Nt4z41p5; Wed, 22 Jan 2025 18:31:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737570719; 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=FWiCCv6w/ssE5QRElnMoihQe5qPnJ1Ia6q+c2uagNpo=; b=xfEp7AmKFMp9cbJm4nh/v2cZ/efOVWeEL+5nblyr5XC06jY8UVbndb/7tXo4r9Y+UATIFJ 16tQvPeQ+gfRgFVIGdCozBHstP0Bz3fbzXYWm8HkQUKrTSw7oHWMSLUFPP3MMSP0BCtiLn JvlNU1iJrmH6JZHeadVmwqiM/KxiRhI5Y2UAbax7Vldhiiv7shJLgDbBvcqA9gNn1UwfoI /qIN66k/WWYMGXxEAJsrcetb3MEmbM/a6tJdDUH9PJ03wZZ7uZmJxqrztf5zzpkeG0EMUb dHPC4i2k7D04c2KceNAoZKK3ytrXqCP+X2V+4lBTNRuo3jyihyKlZKQ2ZsJ3pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737570719; 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=FWiCCv6w/ssE5QRElnMoihQe5qPnJ1Ia6q+c2uagNpo=; b=q4008Yvi+lA1cDFcueH8PBFQ74/jqVVTilmkwh7gQ558hxanCAy8NfY6Cu80+M6t5E7N8H Cx6nsnQmHd+6yM0GjXEqtWxXbm6WiVpw/F4ZUavcBJ1TtaaCBpoLQ2c1tPOVOZXQwz1JRs h+bu2JSMI13fbDTgiixADhtr1NNR7bL03DtKCyJ25RNLf+gZ1MTZ9iu0UE/AQXdB+cj3cR g3BxgHgBpQbh3KMu2gRb5TopTeoJbSY5eJAKLdLxzD0A4AhRieByxWIQ5AY35AzsQBUH7V TC50GF5QNoqRd4kDXbpnNS9FJKn0D3LnjJjHSCza6dziJjQRLX2due1AjeuWOA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1737570719; a=rsa-sha256; cv=none; b=GDwvDCtJ/SeINOQF/bkH0wjCiBF2jM88f8lghWqqh+V+YmMWER40DxzVUol9H5V8ZRPvik OxJ5JWsXa9uxpGyp7dA1ljahyOiJZ2HB4v5lIZ+uOF8WdGMzOPbNXr4Zear2AVmpdC07JJ TViCPwB0cfbY6sncWpCfqVP5YWKtrkB+b/IoswR3tJD81OB+TOTd7n2jg/sRFtHsvkIA2x m6BLGXge5b8kSWwSB9nrTHTYm8xroaZm154j1bSuJWcFl6QSXKFDr8TFiQ1uXDUQ8gFdis c+3kDjmX7YZOamxjR7HPkUVLUPZo4U7c1G4trody8BGcsLuk6inhcJDDmZ1MDQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4YdXjW1qcnz14Mq; Wed, 22 Jan 2025 18:31:59 +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 50MIVxwN048178; Wed, 22 Jan 2025 18:31:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50MIVxp3048174; Wed, 22 Jan 2025 18:31:59 GMT (envelope-from git) Date: Wed, 22 Jan 2025 18:31:59 GMT Message-Id: <202501221831.50MIVxp3048174@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dimitry Andric Subject: git: 12bf8b3dabde - main - math/heyoka: fix build against devel/llvm18 and higher 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: dim X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 12bf8b3dabdeb7a9b9c9a2665938b3f518ebb3f8 Auto-Submitted: auto-generated The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=12bf8b3dabdeb7a9b9c9a2665938b3f518ebb3f8 commit 12bf8b3dabdeb7a9b9c9a2665938b3f518ebb3f8 Author: Dimitry Andric AuthorDate: 2025-01-22 17:10:37 +0000 Commit: Dimitry Andric CommitDate: 2025-01-22 18:31:36 +0000 math/heyoka: fix build against devel/llvm18 and higher When building with DEFAULT_VERSIONS+=llvm=18 or higher, math/heyoke fails to configure, with the following error: CMake Error at CMakeLists.txt:159 (find_package): Could not find a configuration file for package "LLVM" that is compatible with requested version "18". The following configuration files were considered but not accepted: /usr/local/llvm15/lib/cmake/llvm/LLVMConfig.cmake, version: 15.0.7 /usr/local/llvm17/lib/cmake/llvm/LLVMConfig.cmake, version: 17.0.6 /usr/local/llvm16/lib/cmake/llvm/LLVMConfig.cmake, version: 16.0.6 /usr/local/llvm18/lib/cmake/llvm/LLVMConfig.cmake, version: 18.1.8 This is because llvm18 and higher use 1 for their minor version numbers, while llvm17 and earlier use 0. CMake's find_package() needs the minor version number set correctly, otherwise it will not be able to find the LLVM package. PR: 284266 Approved by: yuri (maintainer) MFH: 2025Q1 --- math/heyoka/Makefile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/math/heyoka/Makefile b/math/heyoka/Makefile index b18004faa20d..2193737b957d 100644 --- a/math/heyoka/Makefile +++ b/math/heyoka/Makefile @@ -32,11 +32,23 @@ USE_GITHUB= yes GH_ACCOUNT= bluescarni CMAKE_ON= HEYOKA_WITH_MPPP HEYOKA_WITH_SLEEF -CMAKE_ARGS= -DFREEBSD_LLVM_VERSION=${LLVM_VERSION} CMAKE_TESTING_ON= HEYOKA_BUILD_TESTS # 1 test fails, see https://github.com/bluescarni/heyoka/issues/338 # 2 tests fail: # * https://github.com/bluescarni/heyoka/issues/429 # * https://github.com/bluescarni/heyoka/issues/430 -.include +.include + +# LLVM 18 and later use 1 for their minor version, while 17 and earlier use 0. +# CMake's find_package() needs the minor version set correctly, otherwise it +# will not be able to find the LLVM package. +.if ${LLVM_VERSION} >= 18 +LLVM_VERSION_MINOR= 1 +.else +LLVM_VERSION_MINOR= 0 +.endif + +CMAKE_ARGS+= -DFREEBSD_LLVM_VERSION=${LLVM_VERSION}.${LLVM_VERSION_MINOR} + +.include