Bug 281237 - lang/julia: update to 1.10.5
Summary: lang/julia: update to 1.10.5
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Thierry Thomas
URL: https://discourse.julialang.org/t/jul...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-03 13:33 UTC by Hiroo Ono
Modified: 2025-05-18 16:54 UTC (History)
5 users (show)

See Also:


Attachments
1.10.5 patch (5.02 KB, patch)
2024-09-03 13:33 UTC, Hiroo Ono
no flags Details | Diff
correct patch to 1.10.5 (17.42 KB, patch)
2024-09-03 13:40 UTC, Hiroo Ono
no flags Details | Diff
revised patch to 1.10.5 (36.57 KB, patch)
2024-09-18 12:22 UTC, Hiroo Ono
no flags Details | Diff
Upgrade to 1.10.5 (47.44 KB, patch)
2025-05-16 15:40 UTC, Thierry Thomas
thierry: maintainer-approval? (hiroo.ono+freebsd)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hiroo Ono 2024-09-03 13:33:00 UTC
Created attachment 253298 [details]
1.10.5 patch

Update lang/julia to 1.10.5.
Comment 1 Hiroo Ono 2024-09-03 13:40:36 UTC
Created attachment 253299 [details]
correct patch to 1.10.5
Comment 2 Zsolt Udvari freebsd_committer freebsd_triage 2024-09-06 17:46:45 UTC
Hi Hiroo,
would you like be the maintainer?
Comment 3 Hiroo Ono 2024-09-06 19:01:54 UTC
(In reply to Zsolt Udvari from comment #2)
OK, I will be the maintainer.
Comment 4 Zsolt Udvari freebsd_committer freebsd_triage 2024-09-07 05:03:32 UTC
(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
Comment 5 Hiroo Ono 2024-09-07 06:37:43 UTC
(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.
Comment 6 Zsolt Udvari freebsd_committer freebsd_triage 2024-09-07 09:10:17 UTC
(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.
Comment 7 Zsolt Udvari freebsd_committer freebsd_triage 2024-09-07 11:15:58 UTC
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}
...
Comment 8 Zsolt Udvari freebsd_committer freebsd_triage 2024-09-07 13:50:31 UTC
I ran 'make test' but there are many tests with errors.
Could you please check it?
Comment 9 Hiroo Ono 2024-09-08 14:23:44 UTC
> 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?
Comment 10 Hiroo Ono 2024-09-08 14:28:29 UTC
(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.
Comment 11 Zsolt Udvari freebsd_committer freebsd_triage 2024-09-13 06:45:45 UTC
(In reply to Hiroo Ono from comment #9)
If you want test (I suggest) should do something. Patch the test, skip problematic tests, etc.
Comment 12 Hiroo Ono 2024-09-18 12:22:29 UTC
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.
Comment 13 Zsolt Udvari freebsd_committer freebsd_triage 2024-09-22 04:51:52 UTC
(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.
Comment 14 Zsolt Udvari freebsd_committer freebsd_triage 2024-10-25 18:28:03 UTC
Friendly ping.
Comment 15 Hiroo Ono 2024-10-31 09:19:31 UTC
(In reply to Zsolt Udvari from comment #14)
Currently, there are 3 curl failures that I fail to find the definitions for the actions.
Comment 16 Zsolt Udvari freebsd_committer freebsd_triage 2024-11-02 19:32:47 UTC
(In reply to Hiroo Ono from comment #15)
Could you please your latest patch?
Comment 17 Zsolt Udvari freebsd_committer freebsd_triage 2024-11-02 19:32:56 UTC
(In reply to Zsolt Udvari from comment #16)
*provide
Comment 18 Zsolt Udvari freebsd_committer freebsd_triage 2025-02-07 08:01:34 UTC
No feedback.
Comment 19 Mark Linimon freebsd_committer freebsd_triage 2025-03-16 15:00:13 UTC
^Triage: this does not appear to be "In Progress".
Comment 20 Sayed Mohammad Badiezadegan 2025-04-09 05:02:44 UTC
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.
Comment 21 Nuno Teixeira freebsd_committer freebsd_triage 2025-04-12 19:38:21 UTC
(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
Comment 22 Thierry Thomas freebsd_committer freebsd_triage 2025-05-16 15:40:03 UTC
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 ?
Comment 23 Hiroo Ono 2025-05-18 14:59:54 UTC
(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.
Comment 24 Thierry Thomas freebsd_committer freebsd_triage 2025-05-18 16:54:04 UTC
(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.
Comment 25 commit-hook freebsd_committer freebsd_triage 2025-05-18 16:54:37 UTC
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(-)