When emerging Mono-related packages while MONO_AOT_CACHE is set, Portage may experience access violations within /root/.mono/aot-cache/ or whatever directory happens to store the cached machine code for IL binaries.
Created attachment 51916 [details] Portage Output This is the output that Portage gave when emerging mod_mono-1.0.6.
This is gonna take either unsetting this variable when emerging things (gross), or an extra variable for mono for overriding the AOT cache dir. I'd much prefer the later, and am testing a patch right now that does that. If that seems to work, i'll submit it upstream, and if they like it, include the patch in our 1.1.4 ebuilds. Then, we can simply override that variable in the mono.eclass, like what is done now with the MONO_SHARED_DIR variable.
Changing to an enhancement, as this requires quite a bit of upstream work, and is not really relevant until MONO_AOT_CACHE works on more arches and is more prevalent.
Created attachment 93805 [details] full emerge log
+# Fix bug 83020: +# "Access Violations Arise When Emerging Mono-Related Packages with MONO_AOT_CACHE" + +unset MONO_AOT_CACHE