I downloaded julia-beta-bin AUR script via yay -G julia-beta-bin
and then changed _pkgver
from 1.6.0-rc1
to 1.6.0-rc3
inside PKGBUILD file:
# Maintainer: Brenton Horne <brentonhorne77 at gmail dot com>
pkgname=julia-beta-bin
_pkgver=1.6.0-rc3
pkgver=$(echo $_pkgver | sed 's/-/./g')
pkgrel=1
arch=('x86_64')
pkgdesc='High-level, high-performance, dynamic programming language - official pre-release binaries'
provides=(julia)
conflicts=(julia julia-bin julia-git julia-nightly-bin)
depends=('gmp' 'suitesparse' 'hicolor-icon-theme' 'libssh2')
url='https://julialang.org/'
license=('MIT')
source=("https://julialang-s3.julialang.org/bin/linux/x64/${pkgver:0:3}/julia-${_pkgver}-linux-x86_64.tar.gz"
16x16.png::https://github.com/JuliaLang/julia/raw/master/contrib/mac/frameworkapp/JuliaLauncher/Assets.xcassets/AppIcon.appiconset/16.png
32x32.png::https://github.com/JuliaLang/julia/raw/master/contrib/mac/frameworkapp/JuliaLauncher/Assets.xcassets/AppIcon.appiconset/32.png
128x128.png::https://github.com/JuliaLang/julia/raw/master/contrib/mac/frameworkapp/JuliaLauncher/Assets.xcassets/AppIcon.appiconset/128.png
256x256.png::https://github.com/JuliaLang/julia/raw/master/contrib/mac/frameworkapp/JuliaLauncher/Assets.xcassets/AppIcon.appiconset/256.png
512x512.png::https://github.com/JuliaLang/julia/raw/master/contrib/mac/frameworkapp/JuliaLauncher/Assets.xcassets/AppIcon.appiconset/512.png)
sha256sums=('72847bd2b4d4db9d5970512f79fd5a7f76ad56cf0f2ea5a80eff032364b19c8b'
'85aff59221938dd83aa3808910fb455c64f3f0936604bfaad7b8d27c01e3a7ed'
'0310782968fe0ba2910e8a4fc3920ab58c0b8f91c66a66f6cff82cd0d6d31612'
'aab27b427cb21108d831f2d9ddc89ce0948f7e8cb82e4bb2dc1bc82c6676224f'
'001f5fe2478572c69ddcf135d460fab18fc851723e529b056fd9b9852b47f3a5'
'3994d4d59d46e2d226d59f372e5b68eb23e8dc074529e870796f1132f5df8a5b')
options=(!strip)
package() {
cd $srcdir/julia-${_pkgver}
mkdir -p ${pkgdir}/usr/share/licenses/${pkgname}
install -Dm644 LICENSE.md \
${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md
cp -r {bin,include,lib,share} ${pkgdir}/usr/
cp -r etc ${pkgdir}
rm -rf $pkgdir/usr/share/icons/hicolor/scalable
for i in 16 32 128 256 512
do
mkdir -p $pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/
install -Dm644 $srcdir/${i}x${i}.png $pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/julia.png
done
}
After that Iâve installed it via makepkg -i --skipinteg
Okay, the official way to download julia is via the download page at Download Julia . Other installation methods are hard to support since we donât really control them.
3 Likes
This script downloads the package from https://julialang-s3.julialang.org/bin/linux/x64/1.6/julia-1.6.0-rc3-linux-x86_64.tar.gz which seems to be official (matches the link from the website).
Okay, so you get the same error if you download that release, uncompress it, and run Julia from it?
Iâve just deleted p7zip from the system, rm-ed ~/.julia, removed AUR and downloaded the tar.gz manually. Then unpacked it and ran julia
from the bin folder. The problem is not reproduced. Ok, you are right, AUR re-packing breaks something. Thanks!
4 Likes
nsajko
March 23, 2021, 3:03pm
26
pgagarinov:
yay
@pgagarinov Iâm happy to see another Archlinux user here, but regarding AUR, you should really know that:
there are no âquality standardsâ for AUR packages
you can report AUR packaging bugs on AUR in the comments
if you want to report a bug upstream, you should first reproduce by building manually
Furthermore, regarding AUR helpers:
again, no quality standards
if you want to report a bug for AUR packaging, first reproduce without using an AUR helper. I.e., keep in mind that no AUR helper is standard, and you canât rely on other people even knowing about the AUR helper you use, or the AUR helper being correct.
IMO, for this reason it is offensive to even mention using an AUR helper in any bug report
EDIT: the wiki says this about AUR helpers:
Warning: AUR helpers are not supported by Arch Linux. You should become familiar with the manual build process in order to be prepared to troubleshoot problems.
2 Likes
What does
using Pkg.PlatformEngines
PlatformEngines.find7z()
return for you?
julia> using Pkg.PlatformEngines
julia> PlatformEngines.find7z()
ERROR: 7z binary not found
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:33
[2] find7z()
@ Pkg.PlatformEngines /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/PlatformEngines.jl:40
[3] top-level scope
@ REPL[6]:1
julia> exit()
⯠yay -S p7zip
resolving dependencies...
looking for conflicting packages...
Packages (1) p7zip-17.03-2
Total Installed Size: 11.16 MiB
:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring [#######################################################################################################################] 100%
(1/1) checking package integrity [#######################################################################################################################] 100%
(1/1) loading package files [#######################################################################################################################] 100%
(1/1) checking for file conflicts [#######################################################################################################################] 100%
(1/1) checking available disk space [#######################################################################################################################] 100%
:: Processing package changes...
(1/1) installing p7zip [#######################################################################################################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
⯠julia
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.6.0-rc3 (2021-03-16)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
julia> using Pkg.PlatformEngines
julia> PlatformEngines.find7z()
"/usr/bin/7z"
You should have 7z
in joinpath(dirname(Sys.BINDIR), "libexec")
, is it not there? Whatâs the output of
julia> readdir(joinpath(dirname(Sys.BINDIR), "libexec"))
1-element Vector{String}:
"7z"
for you?
I found the problem - âlibexecâ was missing in the list of packaged folders in PKGBUILD. This is how the fixed line should look like
cp -r {bin,include,lib,share,libexec} ${pkgdir}/usr/
AUR works just fine after the fix. Thanks for the tip!