Bug 282051 - cad/calculix-ccx: update to 2.22.
Summary: cad/calculix-ccx: update to 2.22.
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: Zsolt Udvari
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-13 12:23 UTC by rsmith
Modified: 2024-10-21 12:24 UTC (History)
1 user (show)

See Also:


Attachments
Patch to update the port (22.59 KB, patch)
2024-10-13 12:23 UTC, rsmith
no flags Details | Diff
Updated patch fixing options and adding tests. (27.88 KB, patch)
2024-10-19 19:26 UTC, rsmith
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description rsmith 2024-10-13 12:23:19 UTC
Created attachment 254202 [details]
Patch to update the port

Maintainer here.

This updates the CalculiX solver to 2.22.
(PR 282050 updates the pre- and post-processor).

Tested on FreeBSD 14.1-RELEASE-p5 GENERIC amd64. Seems to work fine.

This version still uses the default SPOOLES solver.

Privately I've gotten an older version of the faster PASTIX solver to work without CUDA, but this requires a lot of patching since this is not mature yet; work on integrating the current PASTIX version to work with calculix-ccx is ongoing.
Also, I had to build several libraries with settings different from the default in FreeBSD (mainly 64-bit integers).
So I've built and linked them as static libraries.
I'm not sure how to do that in a port, plus I lack the hardware to test this outside amd64.
Comment 1 Zsolt Udvari freebsd_committer freebsd_triage 2024-10-14 14:53:50 UTC
Your patch doesn't apply. Could you please check?
Comment 2 rsmith 2024-10-14 20:41:37 UTC
(In reply to Zsolt Udvari from comment #1)

Using `patch -p1 < patchfile` works for me.
Comment 3 Zsolt Udvari freebsd_committer freebsd_triage 2024-10-16 18:43:18 UTC
(In reply to rsmith from comment #2)
Indeed. I tried with 'git apply'.
Comment 4 rsmith 2024-10-17 04:42:39 UTC
(In reply to Zsolt Udvari from comment #3)

Ah, that explains it.

Since I tend to track the quarterly ports branch, I downloaded the port from HEAD and used plain diff to create the patch.

(The same goes for #282050.)

Is this something I should explicitly mention next time?
Comment 5 Zsolt Udvari freebsd_committer freebsd_triage 2024-10-17 05:33:05 UTC
(In reply to rsmith from comment #4)
No problem. IMHO it's a good idea to mention it.

About port: as I see there is a `test' directory. Is it possible to test the port? See https://docs.freebsd.org/en/books/porters-handbook/book/#make-test

The DISTFILES+= and EXTRACT_ONLY+= (DOCS and EXAMPLES options) can replace with DISTFILES_DOCS=... and EXTRACT_ONLY_DOCS=... (see https://docs.freebsd.org/en/books/porters-handbook/book/#options-variables). After it can remove `.include <bsd.port.options.mk>'. And doesn't need DIST_SOURCES

Please add LICENSE_FILE, as I see the ${WRKSRC}/src/gpl-2.0.txt (https://docs.freebsd.org/en/books/porters-handbook/book/#licenses-license).

There isn't gcc lower than 10 in ports tree, so the GCC_DEFAULT>=10 check can remove too.
Comment 6 rsmith 2024-10-17 22:13:50 UTC
(In reply to Zsolt Udvari from comment #5)

Thanks for the pointers. I've changed the options and am working on getting the tests running.
Comment 7 rsmith 2024-10-19 19:26:29 UTC
Created attachment 254367 [details]
Updated patch fixing options and adding tests.

New patch to address the points raised by Zsolt Udvari.
Comment 8 commit-hook freebsd_committer freebsd_triage 2024-10-21 05:08:12 UTC
A commit in branch main references this bug:

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

commit cc850c375bdb357aecd25b6708cf236c08504745
Author:     rsmith <rsmith@xs4all.nl>
AuthorDate: 2024-10-20 18:47:16 +0000
Commit:     Zsolt Udvari <uzsolt@FreeBSD.org>
CommitDate: 2024-10-21 05:06:25 +0000

    cad/calculix-ccx: Update to 2.22

    Use {DOCS,EXAMPLES}_DISTFILES instead of testing PORT_OPTIONS.
    Add do-test target.
    Add LICENSE_FILE.

    PR:             282051
    Approved by:    submitter is maintainer

 cad/calculix-ccx/Makefile                      |  48 +++---
 cad/calculix-ccx/distinfo                      |  18 +--
 cad/calculix-ccx/files/patch-CalculiX.h        |   2 +-
 cad/calculix-ccx/files/patch-Makefile          |  12 +-
 cad/calculix-ccx/files/patch-compare (new)     | 115 ++++++++++++++
 cad/calculix-ccx/files/patch-datcheck.pl (new) |  17 ++
 cad/calculix-ccx/files/patch-date.pl           |   4 +-
 cad/calculix-ccx/files/patch-frdcheck.pl (new) |  17 ++
 cad/calculix-ccx/pkg-plist                     | 211 ++++++++++++++++++-------
 9 files changed, 340 insertions(+), 104 deletions(-)
Comment 9 Zsolt Udvari freebsd_committer freebsd_triage 2024-10-21 05:08:27 UTC
Committed, thanks!
Comment 10 rsmith 2024-10-21 11:18:25 UTC
(In reply to Zsolt Udvari from comment #9)

Thank you for the assistance!

Is there any chance you could pick up #282050 as well?
That is the update for the pre-/post-processor that goes with this port.
Comment 11 Zsolt Udvari freebsd_committer freebsd_triage 2024-10-21 12:24:10 UTC
(In reply to rsmith from comment #10)
Yes, I saw it and as I see this port is required by calculix.