Created attachment 253298 [details] 1.10.5 patch Update lang/julia to 1.10.5.
Created attachment 253299 [details] correct patch to 1.10.5
Hi Hiroo, would you like be the maintainer?
(In reply to Zsolt Udvari from comment #2) OK, I will be the maintainer.
(In reply to Hiroo Ono from comment #1) Did you test it? As I see the DISTVERSIONSUFFIX isn't needed: https://github.com/JuliaLang/julia/tags
(In reply to Zsolt Udvari from comment #4) Yes I did. built it by poudriere testport -i and run julia command and issued some commands. It is not a detailed test, but... DISTVERSIONSUFFIX was there before I touched the port's Makefile (lang/julia 1.9.x and before). I did not try to remove it because it worked.
(In reply to Hiroo Ono from comment #5) Sorry, it's working. I didn't see any progress bar while fetch (I don't know why). I'll test your patch.
You should strip many libraries: Warning: 'share/julia/compiled/v1.10/LibUnwind_jll/CxrEE_pvTvc.so' is not stripped consider trying INSTALL_TARGET=install-strip or using ${STRIP_CMD} Warning: 'share/julia/compiled/v1.10/LibUnwind_jll/CxrEE_I0SgR.so' is not stripped consider trying INSTALL_TARGET=install-strip or using ${STRIP_CMD} Warning: 'share/julia/compiled/v1.10/MPFR_jll/NBMLS_pvTvc.so' is not stripped consider trying INSTALL_TARGET=install-strip or using ${STRIP_CMD} Warning: 'share/julia/compiled/v1.10/MPFR_jll/NBMLS_I0SgR.so' is not stripped consider trying INSTALL_TARGET=install-strip or using ${STRIP_CMD} Warning: 'share/julia/compiled/v1.10/Profile/nGhxz_I0SgR.so' is not stripped consider trying INSTALL_TARGET=install-strip or using ${STRIP_CMD} Warning: 'share/julia/compiled/v1.10/Profile/nGhxz_pvTvc.so' is not stripped consider trying INSTALL_TARGET=install-strip or using ${STRIP_CMD} Warning: 'share/julia/compiled/v1.10/GMP_jll/1Lisu_pvTvc.so' is not stripped consider trying INSTALL_TARGET=install-strip or using ${STRIP_CMD} Warning: 'share/julia/compiled/v1.10/GMP_jll/1Lisu_I0SgR.so' is not stripped consider trying INSTALL_TARGET=install-strip or using ${STRIP_CMD} ...
I ran 'make test' but there are many tests with errors. Could you please check it?
> You should strip many libraries I am modifying the Makefile to do this. > I ran 'make test' but there are many tests with errors. These tests are known to fail for some reason or other. For example: [LinearAlgebra/test/blas.jl:734] Error: no BLAS/LAPACK library loaded for cblas_ddot64_() -> We use openblas as BLAS library, but it does not implement this function which results to: Evaluated: 23.0 === 1.01855797974e-312 (Not calculated) [LinearAlgebra/test/lu.jl:303] Expression: String(take!(bf)) == "LinearAlgebra.LU{Float64, Matrix{Float64}, Vector{$(Int)}} Evaluated: "LinearAlgebra.LU{Float64, Matrix{Float64}, Vector{Int32}} -> In stdlib/v1.10/LinearAlgebra/src/lu.jl, LU is defined as: LU(factors::AbstractMatrix{T}, ipiv::AbstractVector{<:Integer}, info::BlasInt) But as openblas is LP64, USE_BLAS is set to 0, when Intel MKL is not used. https://github.com/JuliaLang/julia/pull/11433/files Should I patch the failed tests to match the expected behavior on our platform so that all the tests are carried?
(In reply to Hiroo Ono from comment #9) The explanation was not sufficient. When USE_BLAS is set to 0, BlasInt is Int32 (it is Int64 when USE_BLAS=1). So, Evaluated: "LinearAlgebra.LU{Float64, Matrix{Float64}, Vector{Int32}}" vs. Expected: "LinearAlgebra.LU{Float64, Matrix{Float64}, Vector{Int64}}" In this case, Int64 of Expected should be Int32 when USE_BLAS=0.
(In reply to Hiroo Ono from comment #9) If you want test (I suggest) should do something. Patch the test, skip problematic tests, etc.
Created attachment 253644 [details] revised patch to 1.10.5 Updated the patch. Revised binary strip code and skipped some tests: * Library version check that use sysetm (package) libraries. Their version do not match with the version of bundled libraries. * cholmod, spqr and umfpack test for SparseArrays. They need SuiteSparse but it is not built (USE_GPL_LIBS=0). Trying to build it requires CUDA version of the libraries, which are not present on FreeBSD. * Some backtrace check in stdlib/Test/test/runtests.jl and test/errorshow.jl. They do not seem to match the expected, but inserting some println's sometimes change the content of backtrace. They seem to be unstable.
(In reply to Hiroo Ono from comment #12) Thanks. There are still errors in tests (14 fails and 7 errors), the 'file' tests contains 11 fails and 2 errors. Another thing: the patch contains many lint-specific errors and warnings. Could you please check the modified port with 'portlint'? This is part of ports-mgmt/portlint.
Friendly ping.
(In reply to Zsolt Udvari from comment #14) Currently, there are 3 curl failures that I fail to find the definitions for the actions.
(In reply to Hiroo Ono from comment #15) Could you please your latest patch?
(In reply to Zsolt Udvari from comment #16) *provide
No feedback.
^Triage: this does not appear to be "In Progress".
Hi there, The current Julia version is expired. The updated version of Julia is 1.11.4 I have 2 questions about Julia on FreeBSD. 1. Does it support multi-threaded programming? Or just run in a single CPU thread? 2. How can I port the new version to the FreeBSD repository? Thank you.
(In reply to Sayed Mohammad Badiezadegan from comment #20) > 1. Does it support multi-threaded programming? Or just run in a single CPU > thread? For what I've read, yes, it supports. > 2. How can I port the new version to the FreeBSD repository? Send patch to this PR Cheers
Created attachment 260450 [details] Upgrade to 1.10.5 I reviewed the previous patch, and made the following modifications: - reorganize some lines to pet portlint - regenerate the patches - don’t depend on suitesparse-config but on UMFPACK (including ChOLMOD) and SPQR - replace mbedtls2 by mbedtls3 and remove deprecation - allow to upgrade gmp and mpfr from Makefile - fix USE_LDCONFIG - apply the patch from PR 286169 - add a pkg-message about certificate error. It seems fine, and I'm ready to commit it, but I have two questions: 1) Hiroo Ono, do you approve these proposed changes, and do you still agree to take the maintainership? 2) The file $JPKGUUID comes from https://jp.pkg.julialang.org/registry, would'nt it be better to fetch a snapshot from https://github.com/JuliaRegistries/General ?
(In reply to Thierry Thomas from comment #22) Sorry for no response. 1) Now, I think it would be better that I do not become maintainer. The development of julialang is very fast and it is difficult for me to catch up with. 2) Maybe it is better. I did not realize the latter.
(In reply to Hiroo Ono from comment #23) 1) Thanks for the answer, no worries. However, it's a complex application, and your contributions are much appreciated: do not hesitate to send PRs for the next upgrades if you find the time (or simply send us your comments). 2) Just committing as-is for now, but to keep in mind for the next upgrade.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=7c2e16a817f9591ba3d11416372ce79c501b80a9 commit 7c2e16a817f9591ba3d11416372ce79c501b80a9 Author: Hiroo Ono <hiroo.ono+freebsd@gmail.com> AuthorDate: 2025-05-14 17:27:31 +0000 Commit: Thierry Thomas <thierry@FreeBSD.org> CommitDate: 2025-05-18 16:42:44 +0000 lang/julia: update to 1.10.5 Release notes at https://discourse.julialang.org/t/julia-v1-10-5-has-been-released/118720 Also: - reorganize some lines to pet portlint - regenerate the patches - don’t depend on suitesparse-config but on UMFPACK (including CHOLMOD) and SPQR - replace mbedtls2 by mbedtls3 and remove deprecation - allow to upgrade gmp and mpfr from Makefile - fix USE_LDCONFIG - apply the patch from PR 286169 - add a pkg-message about certificate error. PR: 281237 + 286169 Reported by: Hiroo Ono <hiroo.ono+freebsd (at) gmail.com> and Trond Endrestøl <Trond.Endrestol (at) ximalas.info> lang/julia/Makefile | 79 +++++---- lang/julia/distinfo | 6 +- lang/julia/files/patch-Makefile | 19 +- lang/julia/files/patch-deps_llvm.mk | 6 +- lang/julia/files/patch-doc_make.jl | 10 +- ...patch-stdlib_FileWatching_test_pidfile.jl (new) | 12 ++ .../patch-stdlib_GMP__jll_test_runtests.jl (new) | 9 + ...atch-stdlib_LibGit2__jll_test_runtests.jl (new) | 10 ++ ...atch-stdlib_LibGit2_test_libgit2-tests.jl (new) | 32 ++++ .../files/patch-stdlib_LinearAlgebra_src_lbt.jl | 4 +- .../patch-stdlib_LinearAlgebra_test_blas.jl (new) | 13 ++ ...patch-stdlib_LinearAlgebra_test_lapack.jl (new) | 11 ++ .../patch-stdlib_LinearAlgebra_test_lu.jl (new) | 17 ++ .../patch-stdlib_MPFR__jll_test_runtests.jl (new) | 9 + ...atch-stdlib_MbedTLS__jll_test_runtests.jl (new) | 9 + .../patch-stdlib_PCRE2__jll_test_runtests.jl (new) | 12 ++ .../files/patch-stdlib_Test_test_runtests.jl (new) | 19 ++ ...atch-stdlib_nghttp2__jll_test_runtests.jl (new) | 15 ++ lang/julia/files/patch-test_cmdlineargs.jl (new) | 20 +++ lang/julia/files/patch-test_errorshow.jl (new) | 18 ++ lang/julia/files/patch-test_file.jl (new) | 11 ++ lang/julia/files/patch-test_gmp.jl (new) | 13 ++ .../stdlib_SparseArrays_test_fixed.jl.patch (new) | 16 ++ ...stdlib_SparseArrays_test_testgroups.patch (new) | 14 ++ .../files/stdlib_Tar_test_runtest.jl.patch (new) | 16 ++ lang/julia/pkg-message (new) | 3 + lang/julia/pkg-plist | 193 +-------------------- 27 files changed, 363 insertions(+), 233 deletions(-)