Xavier Humbert <xavier_at_groumpf.org> wrote on
Date: Thu, 03 Jul 2025 18:18:00 UTC :

> Hi,
> 
> portversion insist to upgrade  spirv-llvm-translator-llvm19 
> to  spirv-llvm-translator-llvm20
> 
> from portversion, I have :
> 
> /usr/local/sbin/portversion -l '<' -c | grep -B 3 spirv
> 
> #  spirv-llvm-translator-llvm19
> #  needs updating (port has 20.1.4)
> #
> pkgs="$pkgs spirv-llvm-translator-llvm19-19.1.5"
> 
> Despite  spirv-llvm-translator-llvm20 being already installed, and
> DEFAULT_VERSIONS+=llvm=19

The below is not about "portversion" specifically and
is likely not an overall answer to your problem(s).
But it might be a partial explanation for what is
going on.

That DEFAULT_VERSION specification does not control the
default flavor specified in the spirv-llvm-translator's
Makefile:

FLAVORS= ${20 19 18 17 16 15 14 13 12 11:L:S/^/llvm/}

That lists llvm20 first, which makes llvm20 the default
FLAVOR of the port. All other flavors have to be listed
explicitly in order to be selected in the use of
devel/spirv-llvm-translator@FLAVOR notation.

I will note that the Makefile's:

LIB_DEPENDS= libLLVM-${FLAVOR:S/llvm//}.so:devel/${FLAVOR}

automatically sets upto use the devel/llvm* that matches
the FLAVOR, independent of the: DEFAULT_VERSIONS+=llvm=19

> in /etc/make.conf.
> 
> If I accept this update, it breaks pkg check -d . Don't remember exactly 
> what port it breaks, I delete this entry in the output of portversion 
> for months


Is there any vintage of portversion that handles FLAVORs?

===
Mark Millard
marklmi at yahoo.com


Reply via email to