blob: cc8099aeefa4c3178580a635915bb73febb43932 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
|
# Maintainer: Lex Black <autumn-wind at web dot de>
# Contributor: Antonio Rojas <arojas@archlinux.org>
# Contributor: Alexander F. Rødseth <xyproto@archlinux.org>
# Contributor: Eli Schwartz <eschwartz@archlinux.org>
# Contributor: Lex Black <autumn-wind@web.de>
# Contributor: Michael Jakl <jakl.michael@gmail.com>
# Contributor: devmotion <nospam-archlinux.org@devmotion.de>
# Contributor: Valentin Churavy <v.churavy@gmail.com>
# With contributions from many kind people at https://aur.archlinux.org/packages/julia-git/
_pkgbase=julia
pkgbase=${_pkgbase}-git
pkgname=${_pkgbase}-git
pkgver=1.11.0.r56788.g501a4f25c2b
pkgrel=1
arch=(x86_64)
pkgdesc='High-level, high-performance, dynamic programming language'
url='https://julialang.org/'
license=(MIT)
depends=(blas64-openblas
fftw
libblastrampoline
libgit2
libunwind
libutf8proc
lld
llvm-julia-libs
mbedtls2
openlibm
p7zip
pcre2
suitesparse)
makedepends=(cmake
git
gcc-fortran
libwhich
llvm-julia
patchelf
python)
optdepends=('gnuplot: If using the Gaston Package from julia')
source=(git+https://github.com/JuliaLang/julia.git#branch=release-1.11
c12e8515.patch
julia-libgit2-1.8.patch
julia-libunwind-1.6.patch
julia-hardcoded-libs.patch
julia-metainfo.patch
https://github.com/JuliaLang/Downloads.jl/commit/1061ecc3.patch)
backup=(etc/julia/startup.jl)
sha256sums=('SKIP'
'2cc294b63e601d50341979fb936826bdba59de2165a5929eae927e152652f367'
'dc541120600e9c0574016a2738461ddb99be21fc8f763d4a3152169fd2f3bf54'
'3c0c03eabb668e3242fcd3058c1011dfbb579cc1c5adc3ae1016531e711cc64e'
'e981ce26bb2394333c83512a607e8aa48ae0d66ec40e0f0b6d97ec70b6baa39f'
'074690d913b9544bef11468454fbf5f52005b2a12160123340cfacc91d4daf9f'
'69297a9fcf35ffdb7961f4dd0c3bc07a7dffd936b879f29715b6d44929781b6b')
options=(!lto)
provides=('julia')
conflicts=('julia')
pkgver() {
cd $_pkgbase
# use the version from VERSION file
ver=`git show makepkg:VERSION | sed 's/-/./g'`
# Combine ver with rev-count and latest commit
printf "%s.r%s.g%s" $(echo $ver) "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd $_pkgbase
git submodule init
git submodule update
# libunwind 1.6 compatibility
patch -p1 -i ../julia-libunwind-1.6.patch
# Update metadata install path
patch -p1 -i ../julia-metainfo.patch
# Revert test that depends on patched gmp
patch -Rp1 -i ../c12e8515.patch
# libgit2 1.8 compatibility
patch -p1 -i ../julia-libgit2-1.8.patch
# Don't hardcode library names
patch -p1 -i ../julia-hardcoded-libs.patch
# Revert Downloads commit that break tests
#cd stdlib/srccache
#_SAsha=89d3c7dded535a77551e763a437a6d31e4d9bf84
#tar -xzf Downloads-$_SAsha.tar.gz
#patch -d JuliaLang-Downloads.jl-${_SAsha:0:7} -Rp1 < "$srcdir"/1061ecc3.patch
#rm Downloads-$_SAsha.tar.gz
#tar -czf Downloads-$_SAsha.tar.gz JuliaLang-Downloads.jl-${_SAsha:0:7}
#md5sum Downloads-$_SAsha.tar.gz | cut -d ' ' -f 1 > ../../deps/checksums/Downloads-$_SAsha.tar.gz/md5
#sha512sum Downloads-$_SAsha.tar.gz | cut -d ' ' -f 1 > ../../deps/checksums/Downloads-$_SAsha.tar.gz/sha512
}
_make() {
local make_options=(
prefix=/usr
bindir=/usr/bin
sysconfdir=/etc
libexecdir=/usr/lib
USE_BINARYBUILDER=0
USE_SYSTEM_CSL=1
USE_SYSTEM_LLVM=1
USE_SYSTEM_LLD=1
USE_SYSTEM_LIBUNWIND=1
USE_SYSTEM_PCRE=1
USE_SYSTEM_BLAS=1
USE_SYSTEM_LAPACK=1
USE_SYSTEM_LIBBLASTRAMPOLINE=1
USE_SYSTEM_GMP=1
USE_SYSTEM_MPFR=1
USE_SYSTEM_LIBSUITESPARSE=1
USE_SYSTEM_LIBWHICH=1
USE_SYSTEM_DSFMT=0
USE_SYSTEM_LIBUV=0
USE_SYSTEM_UTF8PROC=1
USE_SYSTEM_LIBGIT2=1
USE_SYSTEM_LIBSSH2=1
USE_SYSTEM_MBEDTLS=1
USE_SYSTEM_CURL=0
USE_SYSTEM_PATCHELF=1
USE_SYSTEM_ZLIB=1
USE_SYSTEM_P7ZIP=1
USE_SYSTEM_OPENLIBM=1
USE_BLAS64=1
LIBBLAS=-lblas64
LIBBLASNAME=libblas64
LIBLAPACK=-llapack64
LIBLAPACKNAME=liblapack64
MARCH=x86-64
VERBOSE=1
JLDFLAGS="$LDFLAGS -lLLVM-16jl"
LLVM_CONFIG=/usr/lib/llvm-julia/bin/llvm-config
)
LD_LIBRARY_PATH="/usr/lib/mbedtls2" make "${make_options[@]}" "$@"
}
build() {
cd $_pkgbase
PATH="$PATH:/usr/lib/llvm-julia/bin/" \
_make release
}
check() {
cd $_pkgbase/test
ln -s /etc/ssl/cert.pem ../usr/share/julia
../julia --check-bounds=yes --startup-file=no ./runtests.jl \
--skip cmdlineargs \
--skip Downloads \
--skip Sockets \
--skip channels \
--skip nghttp2_jll \
--skip GMP_jll \
--skip LibCURL \
--skip LibSSH2_jll \
--skip MbedTLS_jll \
--skip MPFR_jll \
--skip OpenBLAS_jll \
--skip SuiteSparse_jll \
--skip PCRE2_jll \
--skip LibGit2_jll \
--skip Zlib_jll
find ../stdlib \( -name \*.cov -o -name \*.mem \) -delete
rm -fr ../stdlib/Artifacts/test/artifacts
}
package() {
cd $_pkgbase
_make DESTDIR="$pkgdir" install
ln -sf /etc/ssl/cert.pem "$pkgdir"/usr/share/julia # Needed by some packages
rm "$pkgdir"/usr/lib/julia/libccalltest.so.debug # Remove debug testing library
install -Dm644 LICENSE.md -t "$pkgdir"/usr/share/licenses/$pkgname
install -Dm644 contrib/julia.svg -t "$pkgdir"/usr/share/pixmaps
}
|