[Bug 278694] lang/julia: update to 1.10.3

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 06 May 2024 20:59:56 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278694

--- Comment #2 from Hiroo Ono <hiroo.ono+freebsd@gmail.com> ---
(In reply to Li-Wen Hsu from comment #1)

In short, it is difficult.

The access to network in build phase is with DOCS option and happens at three
points.
1. To retrieve UnicodeData.txt.
   It can be easily converted to be fetched at fetch phase.
2. After julia program is built, doc/make.jl is invoked with it, and 
Pkg.instantiate() is issued. It retrieves non standard Documenter.jl package
and its dependencies.
   I could not find a way to prefetch the packages and place it to proper
position to avoid Pkg.instantiate() not to trigger network access.
3. Documenter.jl package that is invoked from doc/make.jl (so, by julia built
in build phase) accesses GitHub with git to determine the version of packages.
   I tried to hack make.jl to suppress it, but in vain.

So, my workaround is to make DOCS option not default, and leave it to people
who build julia by themselves. (setting ALLOW_NETWORKING_PACKAGES="julia" in
poudriere.conf in poudriere.conf is needed.) Maybe, I should have documented
* DOCS option needs network access in build phase (and poudriere.conf setting
maybe)
* For those installing official package who do not have the julia document,
write an instruction that it can be found at https://docs.julialang.org/en/v1/
(maybe in pkg-message?)

-- 
You are receiving this mail because:
You are the assignee for the bug.