Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 715534 - media-gfx/gimp-2.10.18-r1: emerge fails with sandbox errors regarding TeX fonts
Summary: media-gfx/gimp-2.10.18-r1: emerge fails with sandbox errors regarding TeX fonts
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Sergey Torokhov
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-30 22:32 UTC by Matti Eskelinen
Modified: 2021-09-12 04:15 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log.gz,599.16 KB, application/gzip)
2020-03-30 22:32 UTC, Matti Eskelinen
Details
emerge --info (emerge-info.txt,6.24 KB, text/plain)
2020-03-30 22:32 UTC, Matti Eskelinen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matti Eskelinen 2020-03-30 22:32:16 UTC
Created attachment 627666 [details]
build.log

emerge media-gfx/gimp fails with a multitude of sandbox errors of the following form:

ACCESS DENIED:  mkostemp:     /usr/share/texmf-dist/fonts/opentype/.uuid.TMP-XXXXXX

Seems superficially like the same issue as in bugs 698526, 705502, but with TeXlive packages. Something else might also be going on, since the build log output seems garbled at the end (and varies from build to build).

Most likely culprits on my system as given by equery, if this is just about the fonts:

$ equery b /usr/share/texmf-dist/fonts/

 * Searching for /usr/share/texmf-dist/fonts/ ... 
app-text/dvipsk-5.999_p20190410 (/usr/share/texmf-dist/fonts)
app-text/texlive-core-2019-r10 (/usr/share/texmf-dist/fonts)
app-text/ttf2pk2-2.0_p20190410 (/usr/share/texmf-dist/fonts)
dev-texlive/texlive-basic-2019-r1 (/usr/share/texmf-dist/fonts)
dev-texlive/texlive-fontsextra-2019 (/usr/share/texmf-dist/fonts)
dev-texlive/texlive-fontsrecommended-2019 (/usr/share/texmf-dist/fonts)
dev-texlive/texlive-fontutils-2019 (/usr/share/texmf-dist/fonts)
dev-texlive/texlive-formatsextra-2019 (/usr/share/texmf-dist/fonts)
dev-texlive/texlive-langcjk-2019 (/usr/share/texmf-dist/fonts)
dev-texlive/texlive-langeuropean-2019 (/usr/share/texmf-dist/fonts)
dev-texlive/texlive-latex-2019 (/usr/share/texmf-dist/fonts)
dev-texlive/texlive-latexextra-2019-r2 (/usr/share/texmf-dist/fonts)
dev-texlive/texlive-latexrecommended-2019-r2 (/usr/share/texmf-dist/fonts)
dev-texlive/texlive-mathscience-2019 (/usr/share/texmf-dist/fonts)
dev-texlive/texlive-pictures-2019 (/usr/share/texmf-dist/fonts)
dev-texlive/texlive-plaingeneric-2019 (/usr/share/texmf-dist/fonts)
dev-texlive/texlive-publishers-2019 (/usr/share/texmf-dist/fonts)
dev-texlive/texlive-xetex-2019 (/usr/share/texmf-dist/fonts)
Comment 1 Matti Eskelinen 2020-03-30 22:32:41 UTC
Created attachment 627668 [details]
emerge --info
Comment 2 Sergey Torokhov 2020-03-31 21:06:27 UTC
(In reply to Matti Eskelinen from comment #0)
> Created attachment 627666 [details]
> build.log
> 
> emerge media-gfx/gimp fails with a multitude of sandbox errors of the
> following form:
> 
> ACCESS DENIED:  mkostemp:    
> /usr/share/texmf-dist/fonts/opentype/.uuid.TMP-XXXXXX
> 
> Seems superficially like the same issue as in bugs 698526, 705502, but with
> TeXlive packages. Something else might also be going on, since the build log
> output seems garbled at the end (and varies from build to build).
> 
> Most likely culprits on my system as given by equery, if this is just about
> the fonts:
> 
> $ equery b /usr/share/texmf-dist/fonts/
> 
>  * Searching for /usr/share/texmf-dist/fonts/ ... 
> app-text/dvipsk-5.999_p20190410 (/usr/share/texmf-dist/fonts)
> app-text/texlive-core-2019-r10 (/usr/share/texmf-dist/fonts)
> app-text/ttf2pk2-2.0_p20190410 (/usr/share/texmf-dist/fonts)
> dev-texlive/texlive-basic-2019-r1 (/usr/share/texmf-dist/fonts)
> dev-texlive/texlive-fontsextra-2019 (/usr/share/texmf-dist/fonts)
> dev-texlive/texlive-fontsrecommended-2019 (/usr/share/texmf-dist/fonts)
> dev-texlive/texlive-fontutils-2019 (/usr/share/texmf-dist/fonts)
> dev-texlive/texlive-formatsextra-2019 (/usr/share/texmf-dist/fonts)
> dev-texlive/texlive-langcjk-2019 (/usr/share/texmf-dist/fonts)
> dev-texlive/texlive-langeuropean-2019 (/usr/share/texmf-dist/fonts)
> dev-texlive/texlive-latex-2019 (/usr/share/texmf-dist/fonts)
> dev-texlive/texlive-latexextra-2019-r2 (/usr/share/texmf-dist/fonts)
> dev-texlive/texlive-latexrecommended-2019-r2 (/usr/share/texmf-dist/fonts)
> dev-texlive/texlive-mathscience-2019 (/usr/share/texmf-dist/fonts)
> dev-texlive/texlive-pictures-2019 (/usr/share/texmf-dist/fonts)
> dev-texlive/texlive-plaingeneric-2019 (/usr/share/texmf-dist/fonts)
> dev-texlive/texlive-publishers-2019 (/usr/share/texmf-dist/fonts)
> dev-texlive/texlive-xetex-2019 (/usr/share/texmf-dist/fonts)

Could you provide the equery info for usr/share/texmf-dist/fonts/opentype/ directory to narrow down search?
Comment 3 Matti Eskelinen 2020-03-31 21:24:23 UTC
Here:

$ equery b /usr/share/texmf-dist/fonts/opentype
 * Searching for /usr/share/texmf-dist/fonts/opentype ... 
dev-texlive/texlive-fontsextra-2019 (/usr/share/texmf-dist/fonts/opentype)
dev-texlive/texlive-fontsrecommended-2019 (/usr/share/texmf-dist/fonts/opentype)
dev-texlive/texlive-publishers-2019 (/usr/share/texmf-dist/fonts/opentype)
dev-texlive/texlive-xetex-2019 (/usr/share/texmf-dist/fonts/opentype)
Comment 4 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2020-04-01 09:10:37 UTC
Your installation is somehow broken. 

From the build log it is seen that sandbox maligns each and every opentype/freetype fonts that are installed by texlive.

Those fonts location in turn are managed by a fontconfig file provided by the dev-texlive/texlive-xetex (well, because only xetex/xelatex has direct access to the ot/tt fonts while the rest of latex is just type1 fonts).
Comment 5 Matti Eskelinen 2020-04-01 09:39:43 UTC
(In reply to Mikle Kolyada from comment #4)
> Your installation is somehow broken. 
> 
> From the build log it is seen that sandbox maligns each and every
> opentype/freetype fonts that are installed by texlive.
> 
> Those fonts location in turn are managed by a fontconfig file provided by
> the dev-texlive/texlive-xetex (well, because only xetex/xelatex has direct
> access to the ot/tt fonts while the rest of latex is just type1 fonts).

Just commenting to say that re-merging texlive-xetex seems to have indeed fixed the issue for me. No idea what could've broken the fontconfig file between this and the last time I installed gimp though.