GR.jl icon indicating copy to clipboard operation
GR.jl copied to clipboard

Current state with master branch, GR_jll v0.69.1+0 (v0.69.1+1 yanked)

Open mkitti opened this issue 1 year ago • 1 comments

Because there may be some confusion, I wanted to clarify the current state of affairs.

The master branch currently has #483 merged. This adds several capabilities:

  1. It now contains portions of the old build script as GR.GRPreferences.Downloader. The main entry point there is GR.GRPreferences.Downloader.download() which should help to download and extract the sciapp/gr tarball.
  2. We now have a GR.GRPreferences.use_upstream_binary()which invokes the above download function and sets GR to use that via GR.GRPreferences.use_system_binary().
  3. GR.GRPreferences now also installs overrides for GR_jll. There is a depot based mechanism for doing so via Overrides.toml and a LocalPreferences.toml based mechanism that can be more local to the project. The default is to use the depot based mechanism.
  4. It is compatible with the GR_jll v0.69.1+1 dont_dlopen patch due to https://github.com/mkitti/GR.jl/blob/005b721753beb8e2af7dc6d2eb459128ad3fe466/src/preferences.jl#L59-L65

Since GR_jll v0.69.1+1 was yanked:

  1. LD_PRELOAD may be needed without first invoking GR.GRPreferences.use_system_binary() and restarting Julia. This is because GR_jll is loaded automatically and it loads the BinaryBuilder.org binaries regardless of GRDIR or the GRPreferences settings.
  2. For a system install of GR_jll, I highly recommend the use of an Overrides.toml within the system depot artifacts directory.
  3. I believe we should repropose GR_jll v0.69.1+1 as GR_jll v0.70.0+0. This will stop GR_jll from loading its binaries automatically.

mkitti avatar Nov 07 '22 01:11 mkitti

To clarify, I mean the master branch at da5cfd3

mkitti avatar Nov 07 '22 01:11 mkitti