Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 06 May 2024 20:59:56 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 278694] lang/julia: update to 1.10.3
Message-ID:  <bug-278694-7788-kPeacYHLeH@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-278694-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-278694-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278694

--- 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 thr=
ee
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=20
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 bui=
lt
in build phase) accesses GitHub with git to determine the version of packag=
es.
   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=3D"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 setti=
ng
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?)

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-278694-7788-kPeacYHLeH>