Index: texmf-dist/web2c/texmfcnf.lua
--- texmf-dist/web2c/texmfcnf.lua.orig
+++ texmf-dist/web2c/texmfcnf.lua
@@ -42,7 +42,10 @@ local package_revision = "A"
 -- The location of the distribution's TEXMF tree. The contents stored in this
 -- path should not be modified by users, and are solely managed by the
 -- distribution itself.
-local distribution_path = "selfautoparent:texmf-dist"
+--
+-- Note that in OpenBSD, where we use the old teTeX path convention, and
+-- therefore selfauto does not work.
+local distribution_path = "${TRUEPREFIX}/share/texmf-dist"
 
 -- Where ConTeXt should store any caches. There is a single "system" folder for
 -- the entire computer, and this folder is typically only writable by
@@ -51,13 +54,13 @@ local distribution_path = "selfautoparent:texmf-dist"
 -- must be writable by ConTeXt at runtime, or else ConTeXt will refuse to run.
 -- These folders should be persistent (so not in a temporary directory);
 -- however, it is generally safe to delete them at any time.
-local system_cache = "selfautoparent:"
+local system_cache = "${TRUEPREFIX}/share"
 local user_cache   = "home:.texlive2026"
 
 -- Where ConTeXt should search for custom files. "system" and "user" have the
 -- same meaning as above. ConTeXt will never write to or otherwise modify these
 -- files itself.
-local system_data = "selfautoparent:../texmf-local"
+local system_data = "${TRUEPREFIX}/share/texmf-local"
 local user_data   = "home:texmf"
 
 -- The location of non-TeX files optionally used by ConTeXt. Different paths are
