diff options
author | Maciej Barć <xgqt@gentoo.org> | 2023-04-30 12:35:28 +0200 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2023-04-30 13:08:51 +0200 |
commit | 12d1b2a56309f5dc262ce704b658ca545d979016 (patch) | |
tree | 9c8f6e2a07f7c844a79bace053bf061d3e761c3e /dev-lang/julia | |
parent | dev-python/booleanOperations: treeclean (diff) | |
download | gentoo-12d1b2a56309f5dc262ce704b658ca545d979016.tar.gz gentoo-12d1b2a56309f5dc262ce704b658ca545d979016.tar.bz2 gentoo-12d1b2a56309f5dc262ce704b658ca545d979016.zip |
dev-lang/julia: bump to 1.8.5
Closes: https://bugs.gentoo.org/905153
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-lang/julia')
-rw-r--r-- | dev-lang/julia/Manifest | 10 | ||||
-rw-r--r-- | dev-lang/julia/julia-1.8.5.ebuild | 210 |
2 files changed, 220 insertions, 0 deletions
diff --git a/dev-lang/julia/Manifest b/dev-lang/julia/Manifest index 557e9387b6fd..1d8409481533 100644 --- a/dev-lang/julia/Manifest +++ b/dev-lang/julia/Manifest @@ -1,8 +1,18 @@ +DIST julia-0b211609.patch 9574 BLAKE2B bf43f143b8873ad1812d95d5866a77f28b5dfeb05f41c9dd8f384109ec8cfab09f78bb7b891d5178d6c445ba58cdfe2bdf0cc4c5bf032910c42d4fd1b89883f7 SHA512 aaeeee2e96773589e4347af4df169ef3d241a4c7a22d28ec356a13062f7d11f043cebce8b79afbebb1fb411ad957d4d14880ae051924cb694b39283ccce1658b DIST julia-1.8.0-074d761f.patch 2198 BLAKE2B 7d4b147e290defceaad1b5b6d0c2c9a323b47d685bb1865b23c84aa68135c00104e653a5046d276aa540415ee4c95426f1a4538df3ba0ae4c348966a2f2b1742 SHA512 ff1e23746851b1b7a4480df75815abb35ccc8006f622acb5fb3928e20832cf55022c96650590c8dfea9b39185a3284a0d1310dee3f439429c91e00af567b66f1 +DIST julia-1.8.0-0db596e6.patch 15029 BLAKE2B 2d5152436c2a7b0dcd60346c9fe9ea008f7672a68ae038762c5952c6c85173d28b3fd7335282e783cc1f91102e8dd58ae9967caa476ad8f93dd60f8f485fbbe3 SHA512 1f4eb42656bbaed3c85d520875c687f0dd98e9ef0d73f0d3a2b3ac4395020984effc03477c56ab6594cd15e87899923591f6cabeb4e2a43c26725ebe51dbf0be +DIST julia-1.8.0-190565c2.patch 4166 BLAKE2B f55937098219f2d34044cf8963b5421912c2eeeec0e38f8f2c6a0146412f6c653a9797cc1695a514dff31a628d904f68a2750fd0fd63057f5dd34210ae845e92 SHA512 a1b26fb0e36767e42268e9cf97ff4b8bc792e8c4c00196b335dede91d814c381a34711e8759b175c0fd66dd88e91edef7b467be16854267c66bf653bb361df3a +DIST julia-1.8.0-23f39f83.patch 23569 BLAKE2B aa82427c7e30720cd534ceeb947d6f489239986f2f5b10475038443f8e3ca4a920f88b9efb9395c52a9f9400b3292b3696d774bdf3165695ee56758c83548f67 SHA512 00a301964515bc57f199cd7ee5b6c9221f1635bb2e4972b1073d5f5606c9b7639c469be8a584227eb344138c8bf35c72d3b942b02baf5f94d5dc22e0e1d8d723 +DIST julia-1.8.0-3423639d.patch 669 BLAKE2B cecc073c873cc4c530173fef5092e8c81d05917e021a3922df2a3c25d12fa0852e238a5f55f3def063b6c37d78306c0960371d3b19c342f61da5d3a6ddc46b94 SHA512 95ebb148d13df10afc57b62b559e320cefc5bad1736ef1146dc8c532f114ade79294ab91d5452566f5973c613e42e6d024cc13e13349cd9fd171f5a20f04f142 +DIST julia-1.8.0-68adc00e.patch 2388 BLAKE2B 6b422a0362114395663be266de852f953290aaea2ec8c6dd16a8c62f93bf8cd96cdd519a001ddffa10b701b7ca6fdc3b205e5d23fc6db75ee1718bab9af02061 SHA512 895258ea03e2edd48be22884a331489761053148a2d8101a5a8deb3d38c5932df0a672a29b40278fd9af25e4956b85d47d63d270e006549d80050bdb459b91f8 +DIST julia-1.8.0-700c69b1.patch 1155 BLAKE2B 160a44eaa652c91e8cbda9927922cc13028c269d249a18bafc77f9bdd8335d1652809250ee1d36e9e6c9cc774b056fb6fdb556a4e6e6429c2f48ef7c54f0579e SHA512 1bf37e96be9230c31937871582f4767bb7aa14690a666ef80f886540b7321a7fd2f8756ef591b65177fa7b8a288dcaefeaf884501fd27582e46f3520555eccda DIST julia-1.8.0-ed9851b0.patch 6957 BLAKE2B f40a56bf3b00cc8d0a764ce7d9ef75b6e5dbab70aa13aad810e7288c4b1b0609ee61b1c6661a4d34423c5f25b19c56b326fa0ae520f1310c673d2c0921e4dabb SHA512 a4b6ee8b80639e74185ddaf8567b81eaee18efef02003e254b5e31268f730e022dcb1a53d8595a82570303b5f57ea885ca86374ca5eb7c0b2b270a5c104b79b5 DIST julia-1.8.0-julia-hardcoded-libs.patch 2411 BLAKE2B d71683c68c350c16c61c13e0378072a7689cb6e07ab7d4b940a5049f37ec58d8f4061b94ba5ba3d2dcf73a403b34d5fbe92bb723a0c5a2c318f9c3bd3631f143 SHA512 0256c5af1713b3551b39e0d89168eafb235e6337a9f07efd24a2e271a11bf724295d0a46761bf1a4d3ed14c4539ef1ef56adcf5580879cac268867aac3e2c20e DIST julia-1.8.0-julia-libunwind-1.6.patch 750 BLAKE2B 35bc6a5fef212c1596c88ddff723795cd3dd46852a602e5c30739af3b3bd8ee78b99635fa35273d0702fc354d31f75c109503225ff6f564a2f9afb64c84e9eda SHA512 7623d7c897ef90909f331c9bad27625505df758d7b21d765385efc7b02a48360ca2e2092057802a5e523b255eca036393ec27148fb567313db1497f691cd6d1c DIST julia-1.8.0-julia-llvm-14.patch 882 BLAKE2B f46f02554a6fc997763d368b813298da7158c82adbbf43ec98b3d7830163c167d9e1f0e22e17cd42b2900baea91c49611bf5e14a57169beb7f29c505ed161307 SHA512 856e299e7523ae15e6bf579c7aef24d3de67d6e10bfb168f7c5caa887fab1752e321b777d465a3c85947441153c5e898431103272b9f94f28d0fabff77afe7a2 +DIST julia-1.8.0-julia-mpfr-4.2.patch 721 BLAKE2B a8214ba7ede33ea61a72aeeffec1a2be9d31e1e86f02ed1ad5da377c1c67db4316d67c6db87d62504477d1b40ca4b2cb7657ada85f3e8a2e7dfa967d569cc372 SHA512 db5b2cfc731083001c243e1fab08bc49a765bcd39ec8f06d19cf02ab95a59b8cebe850b0d4449ddb03610940d6c0cfed3f99a1475b4006b045df8f0029854d46 DIST julia-1.8.0-julia-system-cblas.patch 4078 BLAKE2B 58aac552ea63859a03fe24fed69c02f9968aa7924abe2ffdf9e33e965d64877206216f1604f28fc67739cada4b5ce7b508feaad18080e3a5e78d89447d0f2a05 SHA512 d4b437da35672aa0b9f371da66a8675ca5be28276886edafb3566c3ea0d0ed8ed2bac192b43a0d292ee4f2754b596b7b79de76f136cfcada9916ff94a544b372 DIST julia-1.8.0-make-install-no-build.patch 555 BLAKE2B 36a86c3dd281a85f1b1fd68ac9796e70b06bb6afe3140fed97b5c7cd4b24987dc75709c4b1b192d5663c4d704cfb9818ec8d895c293b9b0bd741a3a61c860e47 SHA512 97687d24a3aa0a39994a691026981a91496cd2a82112e9acf9a8edd0f7c2a50d946944e8af495a3b1703f397c7a0e620be76dc28f3bbe14357ee8c4a68a5a3bc DIST julia-1.8.3-full.tar.gz 275266765 BLAKE2B 2cd54e33cea5d53a93e8ec9c1cd44df4e63a132f2d7a7dca363c6067e1eb5f245a6f65c79bbb29ec641c597ed33fc9376847803b8dd5bc18c537e48d07bcee04 SHA512 0e62d293626c83ff258a3d66aa1e86f9cab114edb8a21ebaad3990332894fbdfd96c23f907debbfd0af9f9f09c0a95a36a3c617784d5eb541b68ed7558630d86 +DIST julia-1.8.5-full.tar.gz 275344455 BLAKE2B d51ee25e9c7dd54e3fcc35cd75c909686cc5e48c6b34371cd100bddb038b76e1ba8812bab554ffb8ca5b725cc30fec1a0fb4f58220de8917de35dc2d3a159d81 SHA512 3f92cdecdfc79194e1cde3ec96871bde984c2527d0cd3909c91a27a819d734e39260c5fe7129d958e88db1965f8b5d61ffe7e95c7cddac111aeafe844e29900d +DIST julia-a48ad530.patch 2790 BLAKE2B 4f7b1a3baeadff597b8b7e0e55705ff09625457a7889179e2f7d7ec1370008a5329901c45ad038bd830276d120e35d87254fe55ea497b2632988254ddd591df2 SHA512 4222901d28b100a81743a4092fb78862160e5b1c23d1a7fd242df815703897b974c8aec79518f67f4cf33ccbc88f75bf6e10d1189b7163b94b5d347ef8db940b diff --git a/dev-lang/julia/julia-1.8.5.ebuild b/dev-lang/julia/julia-1.8.5.ebuild new file mode 100644 index 000000000000..eff4ebe3ca0b --- /dev/null +++ b/dev-lang/julia/julia-1.8.5.ebuild @@ -0,0 +1,210 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# correct versions for stdlibs are in deps/checksums +# for everything else, run with network-sandbox and wait for the crash + +EAPI=8 + +# >=1.8.2 still sits on LLVM 13, bug: https://bugs.gentoo.org/876184 +MY_LLVM_V=13.0.1 + +inherit check-reqs flag-o-matic pax-utils toolchain-funcs optfeature + +DESCRIPTION="High-performance programming language for technical computing" +HOMEPAGE="https://julialang.org/ + https://github.com/JuliaLang/julia/" +SRC_URI=" + https://github.com/JuliaLang/julia/releases/download/v${PV}/${P}-full.tar.gz + https://github.com/JuliaLang/julia/commit/0b211609.patch + -> ${PN}-0b211609.patch + https://github.com/JuliaLang/julia/commit/a48ad530.patch + -> ${PN}-a48ad530.patch +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +PROPERTIES="test_network" +RESTRICT="test" + +RDEPEND=" + >=dev-libs/libutf8proc-2.6.1:0=[-cjk] + >=dev-util/patchelf-0.13 + >=net-libs/mbedtls-2.2 + >=sci-mathematics/dsfmt-2.2.4 + >=sys-libs/libunwind-1.1:0= + >=virtual/blas-3.6 + app-arch/p7zip + app-misc/ca-certificates + dev-libs/gmp:0= + dev-libs/libgit2:0 + dev-libs/mpfr:0= + net-misc/curl[http2,ssh] + sci-libs/amd:0= + sci-libs/arpack:0= + sci-libs/camd:0= + sci-libs/ccolamd:0= + sci-libs/cholmod:0= + sci-libs/colamd:0= + sci-libs/fftw:3.0=[threads] + sci-libs/openlibm:0= + sci-libs/spqr:0= + sci-libs/umfpack:0= + sys-libs/zlib:0= + virtual/lapack +" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-util/cmake + virtual/pkgconfig +" + +CHECKREQS_DISK_BUILD="4G" +PATCHES=( + "${DISTDIR}"/${PN}-0b211609.patch + "${DISTDIR}"/${PN}-a48ad530.patch + "${FILESDIR}"/${PN}-1.8.0-llvm-no-bindings.patch +) +QA_FLAGS_IGNORED+='usr/.*/julia/sys.so' # Julia sysimage generated by bootstrapping. + +# Huge thanks to Arch Linux developers for the patches. +archlinux_uri="https://raw.githubusercontent.com/archlinux/svntogit-community/packages/julia/trunk/" +archlinux_patches=( + 074d761f.patch # wanted + 0db596e6.patch # secondary + 190565c2.patch # secondary + 23f39f83.patch # secondary + 3423639d.patch # secondary + 68adc00e.patch # secondary + 700c69b1.patch # secondary + ed9851b0.patch # wanted + julia-hardcoded-libs.patch # wanted + julia-libunwind-1.6.patch # wanted + julia-mpfr-4.2.patch # secondary + julia-system-cblas.patch # wanted +) +for archlinux_patch in ${archlinux_patches[@]} ; do + archlinux_patch_name="${PN}-1.8.0-${archlinux_patch}" + SRC_URI+=" + ${archlinux_uri}/${archlinux_patch} + -> ${archlinux_patch_name} + " + PATCHES+=( "${DISTDIR}/${archlinux_patch_name}" ) +done + +src_unpack() { + local -a tounpack=( ${A} ) + # the main source tree, followed by deps + unpack "${tounpack[0]}" + + mkdir -p "${S}/deps/srccache/" + local i + for i in "${tounpack[@]:1}"; do + cp "${DISTDIR}/${i}" "${S}/deps/srccache/${i#julia-}" || die + done +} + +src_prepare() { + default + + # Sledgehammer: + # - prevent fetching of bundled stuff in compile and install phase + # - respect CFLAGS + # - respect EPREFIX and Gentoo specific paths + + sed -i \ + -e "\|SHIPFLAGS :=|c\\SHIPFLAGS := ${CFLAGS}" \ + Make.inc || die + + sed -i \ + -e "s|ar -rcs|$(tc-getAR) -rcs|g" \ + src/Makefile || die + + # disable doc install starting git fetching + sed -i -e 's~install: $(build_depsbindir)/stringreplace $(BUILDROOT)/doc/_build/html/en/index.html~install: $(build_depsbindir)/stringreplace~' Makefile || die +} + +src_configure() { + # bug #855602 + filter-lto + + # julia does not play well with the system versions of libuv + # Fails to compile with libpcre2 on split-usr, bug #893336 + # USE_SYSTEM_LIBM=0 implies using external openlibm + cat <<-EOF > Make.user + LOCALBASE:=${EPREFIX}/usr + override prefix:=${EPREFIX}/usr + override libdir:=\$(prefix)/$(get_libdir) + override CC:=$(tc-getCC) + override CXX:=$(tc-getCXX) + override AR:=$(tc-getAR) + + BUNDLE_DEBUG_LIBS:=0 + USE_BINARYBUILDER:=0 + USE_INTEL_JITEVENTS=0 + USE_SYSTEM_CSL:=1 + USE_SYSTEM_LLVM:=0 + USE_SYSTEM_LIBUNWIND:=1 + USE_SYSTEM_PCRE:=0 + USE_SYSTEM_LIBM:=0 + USE_SYSTEM_OPENLIBM:=1 + USE_SYSTEM_DSFMT:=1 + USE_SYSTEM_BLAS:=1 + USE_SYSTEM_LAPACK:=1 + USE_SYSTEM_LIBBLASTRAMPOLINE:=0 + USE_SYSTEM_GMP:=1 + USE_SYSTEM_MPFR:=1 + USE_SYSTEM_LIBSUITESPARSE:=1 + USE_SYSTEM_LIBUV:=0 + USE_SYSTEM_UTF8PROC:=1 + USE_SYSTEM_MBEDTLS:=1 + USE_SYSTEM_LIBSSH2:=1 + USE_SYSTEM_NGHTTP2:=1 + USE_SYSTEM_CURL:=1 + USE_SYSTEM_LIBGIT2:=1 + USE_SYSTEM_PATCHELF:=1 + USE_SYSTEM_ZLIB:=1 + USE_SYSTEM_P7ZIP:=1 + VERBOSE:=1 + EOF +} + +src_compile() { + # Julia accesses /proc/self/mem on Linux. + addpredict /proc/self/mem + + emake + pax-mark m "$(file usr/bin/julia-* | awk -F : '/ELF/ {print $1}')" +} + +src_install() { + emake -j1 install DESTDIR="${D}" + dodoc CONTRIBUTING.md HISTORY.md NEWS.md README.md THIRDPARTY.md + + local llvmslot=$(ver_cut 1 ${MY_LLVM_V}) + cp "${S}"/usr/lib/libLLVM-${llvmslot}jl.so "${ED}"/usr/$(get_libdir)/julia/ || die + cp "${S}"/usr/lib/libLLVM-${MY_LLVM_V}jl.so "${ED}"/usr/$(get_libdir)/julia/ || die + + mv "${ED}"/usr/etc/julia "${ED}"/etc || die + rmdir "${ED}"/usr/etc || die + mv "${ED}"/usr/share/doc/julia/html "${ED}"/usr/share/doc/"${PF}" || die + rmdir "${ED}"/usr/share/doc/julia || die + + # The appdata directory is deprecated. + mv "${ED}"/usr/share/{appdata,metainfo}/ || die + + # Link ca-certificates.crt, bug: https://bugs.gentoo.org/888978 + dosym -r /etc/ssl/certs/ca-certificates.crt /usr/share/julia/cert.pem + + # Julia always searches for "sys.so" inside "/usr/lib/julia", + # bug: https://github.com/JuliaLang/julia/issues/49574 + if [[ $(get_libdir) == "lib64" ]] ; then + insinto /usr/lib/julia + doins "${ED}"/usr/$(get_libdir)/julia/sys.so + fi +} + +pkg_postinst() { + optfeature "Julia Plots" sci-visualization/gr +} |