Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 888978 - dev-lang/julia needs /usr/share/julia/cert.pem
Summary: dev-lang/julia needs /usr/share/julia/cert.pem
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords: Bug
Depends on:
Blocks:
 
Reported: 2022-12-30 12:24 UTC by Dima Pasechnik
Modified: 2023-01-01 12:30 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dima Pasechnik 2022-12-30 12:24:29 UTC
Without this file (which can be a symbolic link to `/etc/ssl/certs/ca-certificates.crt`) many Julia 1.8.3 packages, e.g. `HTTP`, do not work. 
This is what happens:

julia> import HTTP
[ Info: Precompiling HTTP [cd3eb016-35fb-5094-929b-558a96fad6f3]
ERROR: LoadError: InitError: SystemError: opening file "/usr/share/julia/cert.pem": No such file or directory
Stacktrace:
  [1] systemerror(p::String, errno::Int32; extrainfo::Nothing)
    @ Base ./error.jl:176
  [2] #systemerror#80
    @ ./error.jl:175 [inlined]
  [3] systemerror
    @ ./error.jl:175 [inlined]
  [4] open(fname::String; lock::Bool, read::Nothing, write::Nothing, create::Nothing, truncate::Nothing, append::Nothing)
    @ Base ./iostream.jl:293
  [5] open
    @ ./iostream.jl:275 [inlined]
  [6] open(f::Base.var"#387#388"{String}, args::String; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Base ./io.jl:382
  [7] open
    @ ./io.jl:381 [inlined]
  [8] read
    @ ./io.jl:462 [inlined]
  [9] __sslinit__()
    @ MbedTLS ~/.julia/packages/MbedTLS/lqmet/src/ssl.jl:787
 [10] __init__()
    @ MbedTLS ~/.julia/packages/MbedTLS/lqmet/src/MbedTLS.jl:55
 [11] _include_from_serialized(pkg::Base.PkgId, path::String, depmods::Vector{Any})
    @ Base ./loading.jl:831
 [12] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt64)
    @ Base ./loading.jl:1039
 [13] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1315
 [14] _require_prelocked(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1200
 [15] macro expansion
    @ ./loading.jl:1180 [inlined]
 [16] macro expansion
    @ ./lock.jl:223 [inlined]
 [17] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1144
 [18] include
    @ ./Base.jl:419 [inlined]
 [19] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
    @ Base ./loading.jl:1554
 [20] top-level scope
    @ stdin:1
during initialization of module MbedTLS
in expression starting at /home/dima/.julia/packages/HTTP/RyUY8/src/HTTP.jl:1
in expression starting at stdin:1


This can be fixed by 

root # ln -s /etc/ssl/certs/ca-certificates.crt /usr/share/julia/cert.pem
Comment 1 Maciej Barć gentoo-dev 2022-12-31 15:33:44 UTC
You are right, I had used this workaround but forgot to incorporate it into the package because that was before I started looking more into Julia packaging.
Comment 2 Larry the Git Cow gentoo-dev 2023-01-01 12:30:13 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26b59330b5222996defa4536237e62404bf21168

commit 26b59330b5222996defa4536237e62404bf21168
Author:     Maciej Barć <xgqt@gentoo.org>
AuthorDate: 2023-01-01 12:29:10 +0000
Commit:     Maciej Barć <xgqt@gentoo.org>
CommitDate: 2023-01-01 12:30:11 +0000

    dev-lang/julia: link ca-certificates.crt
    
    Closes: https://bugs.gentoo.org/888978
    Signed-off-by: Maciej Barć <xgqt@gentoo.org>

 dev-lang/julia/{julia-1.8.3.ebuild => julia-1.8.3-r1.ebuild} | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)