|
| 1 | +using Pkg |
| 2 | +Pkg.add("CondaPkg") |
| 3 | + |
| 4 | +using CondaPkg |
| 5 | +CondaPkg.resolve() |
| 6 | + |
| 7 | +# table adapted from `4. Symbol versioning on the libstdc++.so binary` in |
| 8 | +# gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html |
| 9 | +# see also github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-v3/config/abi/pre/gnu.ver |
| 10 | +_compatible_libstdcxx_ng_versions = [ |
| 11 | + (v"3.4.34", (">=15.1", "<16.1")), # NOTE: hypothetical upper bound |
| 12 | + (v"3.4.33", (">=14.1", "<15.1")), |
| 13 | + (v"3.4.32", (">=13.2", "<14.1")), |
| 14 | + (v"3.4.31", (">=13.1", "<13.2")), |
| 15 | + (v"3.4.30", (">=12.1", "<13.1")), |
| 16 | + (v"3.4.29", (">=11.1", "<12.1")), |
| 17 | + (v"3.4.28", (">=9.3", "<11.1")), |
| 18 | + (v"3.4.27", (">=9.2", "<9.3")), |
| 19 | + (v"3.4.26", (">=9.1", "<9.2")), |
| 20 | + (v"3.4.25", (">=8.1", "<9.1")), |
| 21 | + (v"3.4.24", (">=7.2", "<8.1")), |
| 22 | + (v"3.4.23", (">=7.1", "<7.2")), |
| 23 | + (v"3.4.22", (">=6.1", "<7.1")), |
| 24 | + (v"3.4.21", (">=5.1", "<6.1")), |
| 25 | + (v"3.4.20", (">=4.9", "<5.1")), |
| 26 | + (v"3.4.19", (">=4.8.3", "<4.9")), |
| 27 | +] |
| 28 | +libgcc = if Sys.islinux() |
| 29 | + # see discourse.julialang.org/t/glibcxx-version-not-found/82209/8 |
| 30 | + # julia 1.8.3 is built with libstdc++.so.6.0.29, so we must restrict to this version (gcc 11.3.0, not gcc 12.2.0) |
| 31 | + versions = Dict(_compatible_libstdcxx_ng_versions) |
| 32 | + lo, hi = extrema(keys(versions)) |
| 33 | + _, ub = versions[Base.BinaryPlatforms.detect_libstdcxx_version(Int(hi.patch))] |
| 34 | + specs = ">=$(VersionNumber(lo.major, lo.minor)),$ub" |
| 35 | + ("libgcc-ng$specs", "libstdcxx-ng$specs") |
| 36 | +else |
| 37 | + () |
| 38 | +end |
| 39 | + |
| 40 | +CondaPkg.PkgREPL.add([libgcc..., "matplotlib>=3.4"]) # "openssl>=3.4" |
| 41 | +CondaPkg.status() |
0 commit comments