Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Dec 2022 19:22:31 +0100
From:      Jan Beich <jbeich@FreeBSD.org>
To:        Emmanuel Vadot <manu@FreeBSD.org>
Cc:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   Re: git: e70ff172c205 - main - graphics/mesa*: Stop using meson native-file
Message-ID:  <lenf-uniw-wny@FreeBSD.org>
In-Reply-To: <202212081901.2B8J1XCU012269@gitrepo.freebsd.org> (Emmanuel Vadot's message of "Thu, 8 Dec 2022 19:01:33 GMT")
References:  <202212081901.2B8J1XCU012269@gitrepo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Emmanuel Vadot <manu@FreeBSD.org> writes:

>     Use BINARY_ALIAS instead, this is cleaner.
>     While here directly record the deps on libLLVM for packages that
>     needs it.

See https://cgit.freebsd.org/ports/commit/?id=b460e08f9365
mesa-dri may accidentally end up using llvm >= 16 once meson adds
'-16', '-17', etc. to the suffix list while more than one llvm* package
is installed.

To reproduce right now (with meson-0.64.1):
1. Lower pinned LLVM_DEFAULT back to 13
2. Install llvm13, llvm14, llvm15
3. Run "make clean configure"
4. Notice "llvm-version:    14.0.6"

However, meson >= 0.64 supports LLVM_CONFIG variable which allows to
avoid BINARY_ALIAS (e.g., 6df38243af67).

diff --git a/graphics/mesa-dri/Makefile.common b/graphics/mesa-dri/Makefile.common
index f45f8d7250ff..b2ac1088bf5d 100644
--- a/graphics/mesa-dri/Makefile.common
+++ b/graphics/mesa-dri/Makefile.common
@@ -85,7 +85,7 @@ BINARY_ALIAS+=	python3=${PYTHON_VERSION}
 
 LLVM_DEFAULT=	15
 BUILD_DEPENDS+=	llvm-config${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT}
-BINARY_ALIAS+=	llvm-config=llvm-config${LLVM_DEFAULT}
+CONFIGURE_ENV+=	LLVM_CONFIG=llvm-config${LLVM_DEFAULT}
 
 LDFLAGS+=	-Wl,-rpath=${LOCALBASE}/llvm${LLVM_DEFAULT}/lib
 MESON_ARGS+=	-Dllvm=enabled



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?lenf-uniw-wny>