The gr-0.53.0 ebuild installs libGR.so to the default /usr/gr/lib64 path, however the Julia GR package expects to find this at /usr/gr/lib/libGR.so. I confirmed by using a patched ebuild that moves /usr/gr/lib64 to /usr/gr/lib during src_install and that has solved the issue. Reproducible: Always Steps to Reproduce: 1. emerge dev-lang/julia-bin sci-visualization/gr 2. Run julia 3. import Pkg; Pkg.add("Plots"); Pkg.precompile() Actual Results: Full log: https://dpaste.com/FTZT6HSLG Failing lines: ERROR: LoadError: could not load library "/usr/gr/lib/libGR" /usr/gr/lib/libGR.so: cannot open shared object file: No such file or directory Expected Results: Pkg.precompile() should return without error. Patch for gr-0.53.0.ebuild: --- /var/db/repos/gentoo/sci-visualization/gr/gr-0.53.0.ebuild 2022-10-10 09:45:42.941156026 -0400 +++ /var/db/repos/myjulia/sci-visualization/gr/gr-0.53.0.ebuild 2022-11-23 13:11:56.338357016 -0500 @@ -65,6 +65,7 @@ src_install() { cmake_src_install find "${ED}" -name '*.a' -delete + mv "${ED}/usr/gr/lib64" "${ED}/usr/gr/lib" echo "GRDIR=/usr/gr" > "${T}/99gr" echo "LDPATH=/usr/gr/$(get_libdir)" >> "${T}/99gr"
A cleaner fix is: --- /var/db/repos/gentoo/sci-visualization/gr/gr-0.53.0.ebuild 2022-10-10 09:45:42.941156026 -0400 +++ /var/db/repos/myjulia/sci-visualization/gr/gr-0.53.0.ebuild 2022-11-29 15:05:27.102130666 -0500 @@ -50,6 +50,7 @@ # todo: X11 automagic mycmakeargs+=( -DCMAKE_INSTALL_PREFIX=/usr/gr ) + mycmakeargs+=( -DCMAKE_INSTALL_LIBDIR=lib ) # # I need to have a serious conversation with upstream. # * The main consumer of this package is dev-lang/julia. I still don't get proper graphs all the time and I feel that there's some issue around LaTeXStrings, but I don't know that it's related to this package or not.
Even with this change, which allows GR 0.71.1 to compile, I still see failures where the GR backend for Plots doesn't render correctly. Using the PlotlyJS backend works. I assume that there is some other issue with GR, possibly with upstream. Fixing this s/lib64/lib/ issue would at least allow Julia users to use the Plots package with the PlotlyJS backend, since the Plots package has a dependency on GR, which requires this fix to compile correctly.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e42aa308ca1c4308a22dace43f09f40e10adc47a commit e42aa308ca1c4308a22dace43f09f40e10adc47a Author: Andreas K. Hüttel <dilfridge@gentoo.org> AuthorDate: 2023-04-07 22:54:06 +0000 Commit: Andreas K. Hüttel <dilfridge@gentoo.org> CommitDate: 2023-04-07 22:54:53 +0000 sci-visualization/gr: fix path, yes I know it looks wrong Thanks to Devrin Talen Closes: https://bugs.gentoo.org/882619 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org> sci-visualization/gr/{gr-0.53.0-r1.ebuild => gr-0.53.0-r2.ebuild} | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)