Github messages for voidlinux
 help / color / mirror / Atom feed
From: non-Jedi <non-Jedi@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] WIP: julia: update to 1.7.1.
Date: Sat, 05 Feb 2022 05:53:40 +0100	[thread overview]
Message-ID: <20220205045340.4-z78oHToWABTtiiEoZCV9wCgyJCb881JfzbqpHHExU@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-35270@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1551 bytes --]

There is an updated pull request by non-Jedi against master on the void-packages repository

https://github.com/non-Jedi/void-packages julia-1.7.1
https://github.com/void-linux/void-packages/pull/35270

WIP: julia: update to 1.7.1.
Still need to finish building/testing locally and separating out into logical commits, but I thought I should put this here to make sure there's no duplicated effort since I'm not sure when I'll finish this up, and libblastrampoline was annoying to get to build correctly.

[ci skip] for building llvm.

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/35270.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-julia-1.7.1-35270.patch --]
[-- Type: text/x-diff, Size: 7460 bytes --]

From 7219cbd6dd3e315a4644a7e414ea7fe4f48712c5 Mon Sep 17 00:00:00 2001
From: Adam Beckmeyer <adam_gpg@thebeckmeyers.xyz>
Date: Sun, 5 Dec 2021 22:05:17 -0500
Subject: [PATCH] WIP: julia: update to 1.7.1.

This needs to be separated out into two commits: one for the new libblastrampoline package.
---
 common/shlibs                                 |  1 +
 .../julia/patches/julia-hardcoded-libs.patch  | 13 --------
 .../patches/julia-libblastrampoline-4.patch   | 15 ++++++++++
 srcpkgs/julia/template                        | 16 +++++-----
 srcpkgs/libblastrampoline-devel               |  1 +
 srcpkgs/libblastrampoline/template            | 30 +++++++++++++++++++
 6 files changed, 55 insertions(+), 21 deletions(-)
 create mode 100644 srcpkgs/julia/patches/julia-libblastrampoline-4.patch
 create mode 120000 srcpkgs/libblastrampoline-devel
 create mode 100644 srcpkgs/libblastrampoline/template

diff --git a/common/shlibs b/common/shlibs
index 76df17e8ba13..faa605fd0fcb 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4102,3 +4102,4 @@ libkaddressbookprivate.so.5 kaddressbook-21.08.3_1
 libcodec2.so.1.0 codec2-1.0.1_1
 libx86emu.so.3 libx86emu-3.4_1
 libdeflate.so.0 libdeflate-1.8_1
+libblastrampoline.so.5 libblastrampoline-5.0.1_1
diff --git a/srcpkgs/julia/patches/julia-hardcoded-libs.patch b/srcpkgs/julia/patches/julia-hardcoded-libs.patch
index bf657361b980..3fa7ea993c19 100644
--- a/srcpkgs/julia/patches/julia-hardcoded-libs.patch
+++ b/srcpkgs/julia/patches/julia-hardcoded-libs.patch
@@ -14,19 +14,6 @@ index a7ca666b23..b84a42f4e7 100644
 +    const libmbedx509 = "libmbedx509.so"
  end
  
- function __init__()
-diff --git a/stdlib/libLLVM_jll/src/libLLVM_jll.jl b/stdlib/libLLVM_jll/src/libLLVM_jll.jl
-index fa45e754e5..b51812e3a8 100644
---- a/stdlib/libLLVM_jll/src/libLLVM_jll.jl
-+++ b/stdlib/libLLVM_jll/src/libLLVM_jll.jl
-@@ -23,7 +23,7 @@ if Sys.iswindows()
- elseif Sys.isapple()
-     const libLLVM = "@rpath/libLLVM.dylib"
- else
--    const libLLVM = "libLLVM-11jl.so"
-+    const libLLVM = "libLLVM.so"
- end
- 
  function __init__()
 diff --git a/stdlib/nghttp2_jll/src/nghttp2_jll.jl b/stdlib/nghttp2_jll/src/nghttp2_jll.jl
 index 8b98c76ac5..77ad9e3800 100644
diff --git a/srcpkgs/julia/patches/julia-libblastrampoline-4.patch b/srcpkgs/julia/patches/julia-libblastrampoline-4.patch
new file mode 100644
index 000000000000..d99ce314caee
--- /dev/null
+++ b/srcpkgs/julia/patches/julia-libblastrampoline-4.patch
@@ -0,0 +1,15 @@
+diff --git a/stdlib/LinearAlgebra/src/lbt.jl b/stdlib/LinearAlgebra/src/lbt.jl
+index 26b3a1210a3f..ea1ab25c9e1a 100644
+--- a/stdlib/LinearAlgebra/src/lbt.jl
++++ b/stdlib/LinearAlgebra/src/lbt.jl
+@@ -156,8 +156,8 @@ function lbt_set_num_threads(nthreads)
+     return ccall((:lbt_set_num_threads, libblastrampoline), Cvoid, (Int32,), nthreads)
+ end
+ 
+-function lbt_forward(path; clear::Bool = false, verbose::Bool = false)
+-    ccall((:lbt_forward, libblastrampoline), Int32, (Cstring, Int32, Int32), path, clear ? 1 : 0, verbose ? 1 : 0)
++function lbt_forward(path; clear::Bool = false, verbose::Bool = false, suffix_hint::Union{String,Nothing} = nothing)
++    ccall((:lbt_forward, libblastrampoline), Int32, (Cstring, Int32, Int32, Cstring), path, clear ? 1 : 0, verbose ? 1 : 0, something(suffix_hint, C_NULL))
+ end
+ 
+ function lbt_set_default_func(addr)
diff --git a/srcpkgs/julia/template b/srcpkgs/julia/template
index 576b5beb9bf0..dd6f8ddec336 100644
--- a/srcpkgs/julia/template
+++ b/srcpkgs/julia/template
@@ -1,36 +1,36 @@
 # Template file for 'julia'
 pkgname=julia
-version=1.6.1
+version=1.7.1
 revision=1
 archs="i686* x86_64* armv7l* aarch64*"
 build_style=gnu-makefile
 make_build_args="prefix=/usr sysconfdir=/etc datarootdir=/usr/share
  USE_BINARYBUILDER=0 USE_SYSTEM_LIBM=0 USE_SYSTEM_DSFMT=0 USE_SYSTEM_LIBUV=0
- USE_SYSTEM_SUITESPARSE=0 USE_SYSTEM_BLAS=0 USE_SYSTEM_LAPACK=0 USE_SYSTEM_LLVM=0
+ USE_SYSTEM_LIBSUITESPARSE=0 USE_SYSTEM_BLAS=0 USE_SYSTEM_LAPACK=0 USE_SYSTEM_LLVM=0
  USE_SYSTEM_LIBUNWIND=1 USE_SYSTEM_PCRE=1 USE_SYSTEM_GMP=1 USE_SYSTEM_PATCHELF=1
  USE_SYSTEM_MPFR=1 USE_SYSTEM_MBEDTLS=1 USE_SYSTEM_LIBSSH2=1 USE_SYSTEM_NGHTTP2=1
  USE_SYSTEM_CURL=1 USE_SYSTEM_ZLIB=1 USE_SYSTEM_P7ZIP=1 USE_SYSTEM_LIBGIT2=1
- USE_SYSTEM_UTF8PROC=1
- UTF8PROC_INC='${XBPS_CROSS_BASE}/usr/include'"
+ USE_SYSTEM_UTF8PROC=1 USE_SYSTEM_LIBBLASTRAMPOLINE=1 USE_SYSTEM_CSL=1 USE_SYSTEM_LIBWHICH=1"
 make_install_args="$make_build_args"
 make_check_args="$make_build_args"
 make_check_target=testall
 conf_files="/etc/julia/startup.jl"
-hostmakedepends="pkg-config perl cmake python gcc-fortran patchelf which tar xz"
+hostmakedepends="pkg-config perl cmake python3 gcc-fortran patchelf which tar xz libwhich"
 makedepends="p7zip pcre2-devel mpfr-devel libgit2-devel libcurl-devel nghttp2-devel
  libssh2-devel mbedtls-devel libatomic-devel zlib-devel libunwind-devel
- libutf8proc-devel"
+ libutf8proc-devel libblastrampoline-devel openblas-devel"
 # Julia provides vendored symlinks in /usr/lib/julia pointing to these libraries,
 # but none of the julia executables link to them so these are not auto-detected
 depends="libgit2 libcurl mpfr mbedtls libatomic libpcre2
- libssh2 nghttp2 libquadmath libssp p7zip"
+ libssh2 nghttp2 libquadmath libssp p7zip libblastrampoline openblas"
 short_desc="High-level, high-performance dynamic programming language"
 maintainer="Adam Beckmeyer <adam_git@thebeckmeyers.xyz>"
 license="MIT"
 homepage="https://julialang.org"
 distfiles="https://github.com/JuliaLang/julia/releases/download/v${version}/julia-${version}-full.tar.gz"
-checksum=71d8e40611361370654e8934c407b2dec04944cf3917c5ecb6482d6b85ed767f
+checksum=add869121b7e788ff487a234fd39484469dbb3ded29b17041c63c4757515dd58
 nocross="build system is a mess"
+noverifyrdeps="Julia doesn't need to depend on system llvm/openblas with vendored builds in /usr/lib/julia/"
 # Targets for the vendored symlinks mentioned above
 shlib_requires="libgit2.so.1.0 libcurl.so.4 libmpfr.so.6 libgmp.so.10
  libmbedcrypto.so.3 libmbedtls.so.12 libmbedx509.so.0 libpcre2-8.so.0
diff --git a/srcpkgs/libblastrampoline-devel b/srcpkgs/libblastrampoline-devel
new file mode 120000
index 000000000000..7e1d8237793a
--- /dev/null
+++ b/srcpkgs/libblastrampoline-devel
@@ -0,0 +1 @@
+libblastrampoline
\ No newline at end of file
diff --git a/srcpkgs/libblastrampoline/template b/srcpkgs/libblastrampoline/template
new file mode 100644
index 000000000000..dc24eb4fdc4b
--- /dev/null
+++ b/srcpkgs/libblastrampoline/template
@@ -0,0 +1,30 @@
+# Template file for 'libblastrampoline'
+pkgname=libblastrampoline
+version=5.0.1
+revision=1
+build_wrksrc=src
+build_style=gnu-makefile
+make_build_args="COMPLEX_RETSTYLE_AUTODETECTION=0 F2C_AUTODETECTION=0"
+make_install_args="${make_build_args} prefix=\${DESTDIR}/usr"
+short_desc="BLAS and LAPACK demuxing library"
+maintainer="Adam Beckmeyer <adam_gpg@thebeckmeyers.xyz>"
+license="MIT"
+homepage="https://github.com/JuliaLinearAlgebra/libblastrampoline"
+distfiles="https://github.com/JuliaLinearAlgebra/libblastrampoline/archive/refs/tags/v${version}.tar.gz"
+checksum=1066b4d157276e41ca66ca94f0f8c2900c221b49da2df3c410e6f8bf1ce9b488
+
+LBT_CFLAGS="-fPIC -D_GNU_SOURCE"
+LBT_LDFLAGS="-shared"
+
+post_install() {
+	vlicense ../LICENSE
+}
+
+libblastrampoline-devel_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/*.so
+	}
+}

  parent reply	other threads:[~2022-02-05  4:53 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-35270@inbox.vuxu.org>
2022-01-28  5:33 ` non-Jedi
2022-01-30  8:23 ` kwshi
2022-01-30 13:45 ` Piraty
2022-01-30 17:33 ` Piraty
2022-01-30 17:50 ` Piraty
2022-01-30 18:41 ` non-Jedi
2022-02-04  2:36 ` non-Jedi
2022-02-04  2:38 ` [PR PATCH] [Updated] " non-Jedi
2022-02-05  4:51 ` non-Jedi
2022-02-05  4:53 ` non-Jedi [this message]
2022-02-05  4:55 ` non-Jedi
2022-02-05  4:57 ` non-Jedi
2022-02-05  4:57 ` non-Jedi
2022-02-05  7:03 ` kwshi
2022-02-22 19:06 ` [PR REVIEW] " ahesford
2022-02-22 19:06 ` ahesford
2022-02-22 19:06 ` ahesford
2022-02-25  5:52 ` Rabioli
2022-04-21 21:04 ` Piraty
2022-07-06 22:31 ` Piraty
2022-10-05  2:13 ` github-actions
2022-10-13 13:23 ` [PR PATCH] [Closed]: " Piraty
2022-10-13 13:23 ` Piraty

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220205045340.4-z78oHToWABTtiiEoZCV9wCgyJCb881JfzbqpHHExU@z \
    --to=non-jedi@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).