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

Can't have two disting libraries with same basename but different versions as products

Open giordano opened this issue 1 year ago • 0 comments

We can't list both libgcc_s.1.dylib and libgcc_s.1.1.dylib as products because they have the same basename

julia> Base.BinaryPlatforms.parse_dl_name_version("libgcc_s.1.dylib", "macos")
("libgcc_s", v"1.0.0")

julia> Base.BinaryPlatforms.parse_dl_name_version("libgcc_s.1.1.dylib", "macos")
("libgcc_s", v"1.1.0")

This also means we can't predictable know which library the auditor picks up when we have LibraryProcut("libgcc_s", :libgcc_s), as both of them satisfy the basename. Perhaps we should add an optional version::Union{VersionNumber,Nothing}=nothing argument to LibraryProduct to enforce a version number if necessary?

giordano avatar Nov 03 '22 23:11 giordano