Created attachment 738760 [details]
Updating to media-gfx/gimp-2.10.26 failed after I enabled 09-texlive.conf, provided by dev-texlive/texlive-xetex-2021.
The build fails while it tries to create temporary files under /usr/share/texmf-dist/fonts/. It could very well be because 09-texlive.conf defines these absolute paths, so maybe not a GIMP build issue per se.
Created attachment 738763 [details]
The full log is too large to attach, even compressed.
Created attachment 738766 [details]
Provided by dev-texlive/texlive-xetex-2021
Just to clarify, disabling the 09-texlive.conf via `eselect fontconfig` fixes the problem.
This issue looks like https://bugs.gentoo.org/715534
with the difference that there fontconfig enable wasn't mentioned.
I'll try to reproduce and then to discuss it with someone from font team how to handle this case.
I could confirm that issue is reproduced when I do
> eselect fontconfig enable 09-texlive.conf
after installation of dev-texlive/texlive-xetex package.
Yes, this is most likely the same as bug 715534. I think the reporter there just didn't think or remember to mention the fontconfig bit.
Also, 09-texlive.conf is the only config on my system that lists any absolute paths. I have zero idea about fontconfig files but perhaps that's the problem.
It seems that issue is related that dev-texlive/texlive-xetex didn't install appropreate .uuid files in appropriate dirs/subdirs under /usr/share/texmf-dist/fonts/.
If 09-texlive.conf is enable and then reinstall (or unistall - install) dev-texlive/texlive-xetex again the these .uuid files are generated.
The comment from other issue state that early:
> font.eclass has 'EXPORT_FUNCTIONS pkg_setup src_install pkg_postinst pkg_postrm'.
> Blindly inheriting font.eclass at the end of 'inherit' line results in
> losing exported functions from other eclasses.
Currently font.eclass is inherited first in dev-texlive/texlive-xetex. Maybe the order of eclass functions is relevant too.
But I need to check this assumption.
It seems as dev-texlive/texlive-xetex install font into unusual place therefore font.eclass (namely fc-ccache of fontconfig) doesn't generate .uuid files.
But if eselect fontconfig enable 09-texlive.conf is done then fontconfig knows about new unusual place and update fontcache to new directory to and genarate .uuid files.
Without this .uuid files presented sandbox error takes place.
Is it possible to force font.eclass to call fc-ccahe within directories listed in 09-texlive.conf or it require to call additionally fc-ccache for directories in pkg_postinst phase?