devel/py-omegaconf: fix the import by generating the parser with antlr4 4.13 py312-omegaconf cannot be imported at all as it is in the tree: >>> from omegaconf import OmegaConf Exception: Could not deserialize ATN with version 3 (expected 4). omegaconf ships its ANTLR grammar and a bundled antlr 4.9.3 jar, and build_helpers/build_helpers.py runs that jar to generate the parser. The generated parser then only loads with the 4.9 runtime, while the tree has devel/py-antlr4-python3-runtime 4.13.2, so the import fails. Upstream pins antlr4-python3-runtime==4.9.* for that reason, and 2.3.1 is the most recent release. This patch makes the port generate the parser with devel/antlr4 (4.13.2), which matches the runtime in the tree, using the JDK that USES=java:build already provides. The bundled jar is left untouched, only the path in build_helpers.py is redirected. It also moves py-antlr4-python3-runtime from TEST_DEPENDS to RUN_DEPENDS: omegaconf/base.py imports antlr4 at import time, so without it the package fails with ModuleNotFoundError even before the ATN problem shows up. Tested on 15.1-RELEASE amd64, poudriere 151amd64 green, and in a test VM: - import antlr4, from omegaconf import OmegaConf: both fine with py312-antlr4-python3-runtime-4.13.2 from the tree, nothing installed by hand - as a real consumer, immich's machine learning service (www/immich-ml with graphics/py-rapidocr, which uses OmegaConf.load and OmegaConf.select to read the model catalogue): OCR ran end to end, text was detected, recognised and indexed, and the OCR search returned the expected assets