Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 876851 - app-text/texlive-core bug in dvipdfmx.cfg affecting pstricks
Summary: app-text/texlive-core bug in dvipdfmx.cfg affecting pstricks
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexis Ballier
Depends on:
Reported: 2022-10-12 10:04 UTC by Jonas Stein
Modified: 2023-11-13 02:02 UTC (History)
6 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Stein gentoo-dev 2022-10-12 10:04:27 UTC
via mail from dima.pasechnik@...

Current TeXLive's Gentoo xelatex fails to work with pstricks.
(the symptoms are the same as in

This can be traced down to Gentoo's dvipdfmx.cfg
The problem is in the call to "rungs" on line 159.
It is called with -dSAFER option, but for pstricks to work one needs -dNOSAFER

Note that in the same file there is a comment on the need to use
-dNOSAFER, as follows:

%% In TeX Live, we use the rungs wrapper instead of ps2pdf, becuse we
%% must omit the -dSAFER which ps2pdf specifies: in order for pstricks
%% to work with xetex,
%% /usr/local/texlive/*/texmf-dist/dvips/pstricks/ (for
%% example) needs to be accessed.

Somehow Gentoo ignores it, but it really is crucial.
Upstream has a (recent) workaround.
It provides scripts xetex-unsafe and xelatex-unsafe, for xetex+pstricks+transparency

Reproducible: Always
Comment 1 Dima Pasechnik 2022-10-12 10:40:33 UTC
Thanks. I realised just now I actually have an account on this tracker.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-11-13 02:02:04 UTC
I'm not really sure we can safely just backport that ocmmit. It's probably easier to just wait and put more efforts into 2023 (which is ongoing, thanks to flow & negril), unless someone wants to give a precise patch which has been tested that we can apply.