The build fails with > Traceback (most recent call last): > File "/var/tmp/portage/dev-lang/python-3.13.0_beta1_p1/work/Python-3.13.0b1/Tools/jit/_targets.py", line 164, in _compile > await _llvm.run("clang", args_ll, echo=self.verbose) > File "/var/tmp/portage/dev-lang/python-3.13.0_beta1_p1/work/Python-3.13.0b1/Tools/jit/_llvm.py", line 99, in run > raise RuntimeError(f"Can't find {tool}-{_LLVM_VERSION}!") > RuntimeError: Can't find clang-18! because the _LLVM_VERSION_PATTERN regex at https://github.com/python/cpython/blob/v3.13.0b1/Tools/jit/_llvm.py#L12 doesn't allow the +suffix. Reproducible: Always Steps to Reproduce: 1. Try building >=python-3.13 with USE=jit on a LLVM+libcxx system Actual Results: Build fails due to mismatched version string Expected Results: Build should succeed (and does when patching the _LLVM_VERSION_PATTERN)
Created attachment 892841 [details, diff] patch that allows version suffixes