Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 827942

Summary: dev-lang/julia: Bump to 1.7.0
Product: Gentoo Linux Reporter: Patrick Lauer <patrick>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED FIXED    
Severity: normal CC: jeffrey, jesse, tamiko
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Patrick Lauer gentoo-dev 2021-12-01 15:52:04 UTC
I've managed to get the build system to mostly cooperate, but it fails with:

 cd /var/tmp/portage/dev-lang/julia-1.7.0/work/julia-1.7.0/base && if ! JULIA_BINDIR=/var/tmp/portage/dev-lang/julia-1.7.0/work/julia-1.7.0/usr/bin WINEPATH="/var/tmp/portage/dev-lang/julia-1.7.0/work/julia-1.7.0/usr/bin;$WINEPATH"  /var/tmp/portage/dev-lang/julia-1.7.0/work/julia-1.7.0/usr/bin/julia -O3 -C "native" --output-o /var/tmp/portage/dev-lang/julia-1.7.0/work/julia-1.7.0/usr/lib/julia/sys-o.a.tmp  --startup-file=no --warn-overwrite=yes --sysimage /var/tmp/portage/dev-lang/julia-1.7.0/work/julia-1.7.0/usr/lib/julia/sys.ji /var/tmp/portage/dev-lang/julia-1.7.0/work/julia-1.7.0/contrib/generate_precompile.jl 1; then echo '*** This error is usually fixed by running `make clean`. If the error persists, try `make cleanall`. ***'; false; fi
Generating REPL precompile statements... 26/36ERROR: LoadError: IOError: stream is closed or unusable
Stacktrace:
 [1] check_open
   @ ./stream.jl:386 [inlined]
 [2] uv_write_async(s::Base.TTY, p::Ptr{UInt8}, n::UInt64)
   @ Base ./stream.jl:1018
 [3] uv_write(s::Base.TTY, p::Ptr{UInt8}, n::UInt64)
   @ Base ./stream.jl:981
 [4] unsafe_write(s::Base.TTY, p::Ptr{UInt8}, n::UInt64)
   @ Base ./stream.jl:1064
 [5] mktemp(fn::Main.anonymous.var"#2#6"{Set{String}, String, Base.DevNull}, parent::String)
   @ Base.Filesystem ./file.jl:722
 [6] eval(m::Module, e::Any)
   @ Core ./boot.jl:373
 [7] top-level scope
   @ /var/tmp/portage/dev-lang/julia-1.7.0/work/julia-1.7.0/contrib/generate_precompile.jl:6
in expression starting at /var/tmp/portage/dev-lang/julia-1.7.0/work/julia-1.7.0/contrib/generate_precompile.jl:3
*** This error is usually fixed by running `make clean`. If the error persists, try `make cleanall`. ***
make[1]: *** [sysimage.mk:88: /var/tmp/portage/dev-lang/julia-1.7.0/work/julia-1.7.0/usr/lib/julia/sys-o.a] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-lang/julia-1.7.0/work/julia-1.7.0'
make: *** [Makefile:88: julia-sysimg-release] Error 2
 * ERROR: dev-lang/julia-1.7.0::gentoo failed (compile phase):
 *   emake failed

Changes to ebuild:
(note how suitesparse is 'required' even if the system libs should be used, haven't figured out why the build system doesn't do the expected thing)

--- julia-1.6.3.ebuild  2021-11-19 07:12:25.908676071 -0000
+++ julia-1.7.0.ebuild  2021-12-01 15:43:48.670384080 -0000
@@ -8,17 +8,20 @@
 # correct versions for stdlibs are in deps/checksums
 # for everything else, run with network-sandbox and wait for the crash

-MY_LIBUV_V="fb3e3364c33ae48c827f6b103e05c3f0e78b79a9"
+MY_LIBUV_V="3a63bf71de62c64097989254e4f03212e3bf5fc8"
 MY_LIBWHICH_V="81e9723c0273d78493dc8c8ed570f68d9ce7e89e"
-MY_LLVM_V="11.0.1"
+MY_LIBBLASTRAMPOLINE_V="23de7a09bf354fe6f655c457bab5bf47fdd2486d"
+MY_LLVM_V="12.0.1"

 DESCRIPTION="High-performance programming language for technical computing"
 HOMEPAGE="https://julialang.org/"

 SRC_URI="
        https://github.com/JuliaLang/julia/releases/download/v${PV}/${P}.tar.gz
+       https://api.github.com/repos/JuliaLinearAlgebra/libblastrampoline/tarball/${MY_LIBBLASTRAMPOLINE_V} -> ${PN}-blastrampoline-${MY_LIBBLASTRAMPOLINE_V}.tar.gz
        https://api.github.com/repos/JuliaLang/libuv/tarball/${MY_LIBUV_V} -> ${PN}-libuv-${MY_LIBUV_V}.tar.gz
        https://api.github.com/repos/vtjnash/libwhich/tarball/${MY_LIBWHICH_V} -> ${PN}-libwhich-${MY_LIBWHICH_V}.tar.gz
+       https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/v5.10.1.tar.gz -> ${PN}-SuiteSparse-5.10.1.tar.gz
        !system-llvm? ( https://github.com/llvm/llvm-project/releases/download/llvmorg-${MY_LLVM_V}/llvm-${MY_LLVM_V}.src.tar.xz )
 "

@@ -28,9 +31,9 @@
 IUSE="+system-llvm"

 RDEPEND="
-       system-llvm? ( sys-devel/llvm:11=[llvm_targets_NVPTX(-)] )
+       system-llvm? ( sys-devel/llvm:12=[llvm_targets_NVPTX(-)] )
 "
-LLVM_MAX_SLOT=11
+LLVM_MAX_SLOT=12

 RDEPEND+="
        app-arch/p7zip
@@ -64,10 +67,8 @@
        !system-llvm? ( dev-util/cmake )"

 PATCHES=(
-       "${FILESDIR}/${PN}"-1.1.0-fix_llvm_install.patch
        "${FILESDIR}/${PN}"-1.4.0-no_symlink_llvm.patch
-       "${FILESDIR}/${PN}"-1.6.0-fix-hardcoded-libs.patch
-       "${FILESDIR}/${PN}"-1.6.3-glibc-2.34.patch
+       "${FILESDIR}/${PN}"-1.7.0-fix-hardcoded-libs.patch
 )

 pkg_setup() {