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: Fri, 28 Jan 2022 06:33:58 +0100 [thread overview]
Message-ID: <20220128053358.HuOuyWzMImCNE3_SHYKk7k9RrZ5Hif43wYe_fnpx5mA@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: 5408 bytes --]
From 28608420763462c0c99d73678138acea281722cc 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.
---
.../julia/patches/julia-hardcoded-libs.patch | 13 ----------
srcpkgs/julia/template | 13 +++++-----
srcpkgs/libblastrampoline-devel | 1 +
srcpkgs/libblastrampoline/template | 26 +++++++++++++++++++
4 files changed, 34 insertions(+), 19 deletions(-)
create mode 120000 srcpkgs/libblastrampoline-devel
create mode 100644 srcpkgs/libblastrampoline/template
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/template b/srcpkgs/julia/template
index 576b5beb9bf0..15b8abdbbef3 100644
--- a/srcpkgs/julia/template
+++ b/srcpkgs/julia/template
@@ -1,6 +1,6 @@
# 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
@@ -10,27 +10,28 @@ make_build_args="prefix=/usr sysconfdir=/etc datarootdir=/usr/share
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
+ USE_SYSTEM_UTF8PROC=1 USE_SYSTEM_LIBBLASTRAMPOLINE=1
UTF8PROC_INC='${XBPS_CROSS_BASE}/usr/include'"
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"
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"
# 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"
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..580473746055
--- /dev/null
+++ b/srcpkgs/libblastrampoline/template
@@ -0,0 +1,26 @@
+# Template file for 'libblastrampoline'
+pkgname=libblastrampoline
+version=4.0.0
+revision=1
+build_wrksrc=src
+build_style=gnu-makefile
+make_build_args="F2C_AUTODETECTION=0 LBT_CFLAGS=-fPIC LBT_LDFLAGS=-shared"
+make_install_args="F2C_AUTODETECTION=0 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=8816dfba6f0c547bca5fba9d83e63062387def3089622a9514babf79e1737310
+
+post_install() {
+ vlicense ../LICENSE
+}
+
+libblastrampoline-devel_package() {
+ depends="${sourcepkg}>=${version}_${revision}"
+ short_desc+=" - development files"
+ pkg_install() {
+ vmove usr/include
+ }
+}
next parent reply other threads:[~2022-01-28 5:33 UTC|newest]
Thread overview: 4+ 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 [this message]
2022-02-04 2:38 ` non-Jedi
2022-02-05 4:51 ` non-Jedi
2022-02-05 4:53 ` non-Jedi
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=20220128053358.HuOuyWzMImCNE3_SHYKk7k9RrZ5Hif43wYe_fnpx5mA@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).