-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[new package] cminpack #21025
[new package] cminpack #21025
Conversation
mingw-w64-cminpack/PKGBUILD
Outdated
# on Windows, EOL must be CRLF (\r\n) | ||
# for reference test files, | ||
# but the tarball is packed with LF (\n). | ||
# So, we replace LF with CRLF. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this really needed? Most things can deal with LF nicely nowadays.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, in the current CMake build present on the released tarball, it is.
However, due your valuable input, I already solved this puzzle on a fork and I am submitting a PR on cminpack's repository.
mingw-w64-cminpack/PKGBUILD
Outdated
-G Ninja \ | ||
-DCMAKE_INSTALL_PREFIX="${MINGW_PREFIX}" \ | ||
"${extra_config[@]}" \ | ||
-DUSE_BLAS=OFF \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any particular reason BLAS isn't used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you look at Ubuntu's page for cminpack https://packages.ubuntu.com/source/noble/cminpack, there is no dependency on BLAS. So, I choose to disable it as well.
The static libs have "_s" suffix, which likely means they won't work when used with pkg-config at least. Not sure what's this about and how much of an issue that is. |
You have given really helpful tips. I confirmed that the current files generated for pkg-config on CMake build are not as they would be. So, looks like you've found an issue on cminpack build with CMake. Locally, I addressed this issue as well and I am submitting another PR on cminpack's repository. Once I get a response about all these PRs, I'll get back and drop updates here. Thank you. |
You can also "backport" patches, as long as you link to the upstream PR. But waiting is also an option of course. |
UpdatesHello, @lazka I'll comment the changes I have made to the cminpack insertion:
|
I don't see anything like that here: https://salsa.debian.org/science-team/cminpack/-/blob/master/debian/rules |
Reply
This A bit of contextIn the current version 1.3.9, the argument
Motivation to use only the double precision versionThe main motivation to use only the double precision version of cminpack is due the fact that CMake tests were designed to run for that precision, and that precision is the version which is around for a long time. In order to avoid shipping a version "untested" by PKGBUILD check method, I sticked to that precision. On the other hand, if you want, I can remove that ConclusionCurrently on version 1.3.9:
|
Description
According to the description given by the author Frédéric Devernay on https://github.com/devernay/cminpack, cminpack is a C/C++ rewrite of the MINPACK software (originally in FORTRAN) for solving nonlinear equations and nonlinear least squares problems.
Positive points
Website
http://devernay.free.fr/hacks/cminpack/