FreeBSD's base system ar and ranlib have a bug where they exit with status 0 (success) even in case of fatal errors, which hid the fact that math/lapacke was invoking ranlib on a non-existent file. (Presumably the ranlib invocation was correct when introduced, but broken by some rework of lapack's upstream build system). Use of ranlib is unncessary assuming the -s flag is passed to ar (it is here), so just remove it. PR: 257744 Sponsored by: The FreeBSD Foundation
Details
Details
- Reviewers
kevans jrm - Group Reviewers
Ports Committers - Commits
- R11:6fd5f57d0613: math/lapack: remove superfluous and broken ranlib invocation
Verify math/lapacke builds and inspect build log to ensure ar contains -s flag
Diff Detail
Diff Detail
- Repository
- R11 FreeBSD ports repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Confirm it builds under poudriere testport then
Approved by: kevans (ports), portmgr (implicit, blanket: build fix)
Comment Actions
Ran testport for 11amd64, 12i386, 12amd64, and 13amd64 for math/lapack, math/blas, math/cblas, math/lapacke, and math/xlapack. Everything looks fine.
Comment Actions
(Also for posterity, PORTREVISION bump not necessary as the removed command had no effect.)