Skip to content

create_app copies entire contents of /usr/lib into app_name/lib on archlinux  #469

@julie-is-late

Description

@julie-is-late

turns out this behavior isn't exactly desired lol. So the way archlinux packages julia is to install the libs like:

> yay -Ql julia
...
julia /usr/lib/julia/
julia /usr/lib/julia/libccalltest.so
julia /usr/lib/julia/libccalltest.so.debug
julia /usr/lib/julia/libdSFMT.so
julia /usr/lib/julia/libllvmcalltest.so
julia /usr/lib/julia/libsuitesparse_wrapper.so
julia /usr/lib/julia/sys.so
julia /usr/lib/libjulia.so (symlink)
julia /usr/lib/libjulia.so.1 (symlink)
julia /usr/lib/libjulia.so.1.5 (actual library)
...

But in PackageCompiler.jl in create_sysimg_from_object_file the julia install dir is calculated as julia_libdir = dirname(Libdl.dlpath("libjulia")), which because libjulia.so is inside /usr/lib directly causes julia_libdir to get set to /usr/bin/../lib, aka /usr/lib.

Maybe there's a better check to be done about what libraries to copy? Or if arch is breaking the packaging location rules of julia please link me where these are defined so I can take that back to them and have it changed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions