Bug 265032

Summary: math/eigen3: Update to 3.4.0, add tests and cleanup
Product: Ports & Packages Reporter: Yuri Victorovich <yuri>
Component: Individual Port(s)Assignee: Yuri Victorovich <yuri>
Status: Closed FIXED    
Severity: Affects Only Me CC: tcberner
Priority: --- Flags: tcberner: maintainer-feedback+
tcberner: exp-run?
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch
none
patch none

Description Yuri Victorovich freebsd_committer freebsd_triage 2022-07-04 17:17:07 UTC
Created attachment 235067 [details]
patch

Changes:
* add test target
* remove TEST option since it isn't needed
* change PORTVERSION to DISTVERSION
* impove Makefile format to make it more readable

3.4.0 is c++20 compatible (3.3.9 isn't).

I've tested several dependencies and they worked.
All dependencies should be tested.
Comment 1 Yuri Victorovich freebsd_committer freebsd_triage 2022-07-04 17:39:17 UTC
Created attachment 235068 [details]
patch
Comment 2 Tobias C. Berner freebsd_committer freebsd_triage 2022-07-05 05:09:53 UTC
Moin moin 

Thanks for the patch, let's take it for an exp-run.


mfg Tobias
Comment 4 Yuri Victorovich freebsd_committer freebsd_triage 2022-07-06 16:24:10 UTC
(In reply to Antoine Brodin from comment #3)

Thanks Antoine.

This port is outdated, I'll submit the patch to update it.


Yuri
Comment 5 Yuri Victorovich freebsd_committer freebsd_triage 2022-07-06 17:03:42 UTC
I looked into upgrading biology/gcta but this doesn't appear feasible because new versions now use Intel's closed source MKL library.

The right path appears to be to
1) upgrade math/eigen3 with the attached patch
2) leave the current version as math/eigen3-239
3) adjust biology/gcta to use math/eigen3-239


@tcberner, if you would approve the above course of action - I could commit this change.
Comment 6 Tobias C. Berner freebsd_committer freebsd_triage 2022-07-06 17:08:25 UTC
(In reply to Yuri Victorovich from comment #5)
Moin moin 

It seems a bit much to add a new eigen-port just to satisfy one singular port. 

As eigen is header-only, could you not just fetch the old eigen as an additional distfile in said port and set CXXFLAGS to include from ${WRKDIR}/eigen-3.2.9?


mfg Tobias
Comment 7 Yuri Victorovich freebsd_committer freebsd_triage 2022-07-06 17:15:18 UTC
(In reply to Tobias C. Berner from comment #6)

Sure, this is also doable.
Comment 8 Tobias C. Berner freebsd_committer freebsd_triage 2022-07-06 17:18:44 UTC
(In reply to Yuri Victorovich from comment #7)

Thanks!

Feel free to commit the patch once you're ready.

mfg Tobias
Comment 9 commit-hook freebsd_committer freebsd_triage 2022-07-06 20:40:14 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5fa506511af383c8b1a2f49f861df31966d32493

commit 5fa506511af383c8b1a2f49f861df31966d32493
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-07-06 20:23:30 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-07-06 20:40:04 +0000

    biology/gcta: Use bundled version of eigen3

    ... in preparation to upgrading math/eigen to 3.4.0.

    This version of gcta (1.26.0) doesn't support eigen-3.4.0, and
    it can't be upgraded because latest versions of gcta use
    Intel's closed source MKL library.

    PR:             265032
    Suggested by:   tcberner@
    Approved by:    portmgr (interoperability)

 biology/gcta/Makefile | 16 +++++++++++-----
 biology/gcta/distinfo |  4 +++-
 2 files changed, 14 insertions(+), 6 deletions(-)
Comment 10 commit-hook freebsd_committer freebsd_triage 2022-07-06 20:40:14 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b4bb40a4b58ca2930040785937ca086b05c0db50

commit b4bb40a4b58ca2930040785937ca086b05c0db50
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-07-06 20:33:29 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-07-06 20:40:04 +0000

    math/eigen3: Update 3.3.9 -> 3.4.0, add tests and cleanup

    PR:             265032
    Approved by:    tcberner@ (from kde@)

 math/eigen3/Makefile  | 34 +++++++++---------
 math/eigen3/distinfo  |  6 ++--
 math/eigen3/pkg-plist | 98 +++++++++++++++++++++++++++++++++++++++------------
 3 files changed, 95 insertions(+), 43 deletions(-)
Comment 11 Yuri Victorovich freebsd_committer freebsd_triage 2022-07-06 20:40:50 UTC
Committed, thanks!