Writing to the png device (i.e. creating PNG files) in R does not relate to X11. X11 support on cairo is not needed.
(In reply to Cedric Sodhi from comment #0) > Writing to the png device (i.e. creating PNG files) in R does not relate to > X11. X11 support on cairo is not needed. That is correct, but it requires a patch to dev-lang/R itself. I've taken an axe to it, but I have no idea what happens if you have X11 but built x11-libs/cairo -X. https://github.com/adjust/gentoo-overlay/tree/master/dev-lang/R Perhaps I should just patch up the ebuild to avoid that undefined state.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=408cbc8406b0ca0f91f46052b3a9e1f6bb4f71f9 commit 408cbc8406b0ca0f91f46052b3a9e1f6bb4f71f9 Author: Mark Wright <gienah@gentoo.org> AuthorDate: 2019-04-07 09:59:43 +0000 Commit: Mark Wright <gienah@gentoo.org> CommitDate: 2019-04-07 09:59:43 +0000 sci-mathematics/R: Bump to 3.5.3, thanks Neil for reporting Add missing dependency net-libs/libtirpc, thanks to Victor Kustov for reporting. Change dependency from x11-libs/cairo[X] to x11-libs/cairo[X=], thanks to Cedric Sodhi for reporting, Felix W for helping. Closes: https://bugs.gentoo.org/674858 Closes: https://bugs.gentoo.org/661878 Closes: https://bugs.gentoo.org/638778 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Mark Wright <gienah@gentoo.org> dev-lang/R/Manifest | 1 + dev-lang/R/R-3.5.3.ebuild | 205 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 206 insertions(+)