kaldi: fix cmake 4 compatibility#452907
Conversation
|
Not sure why it was failing in the first place. Edit: |
|
| @@ -34,6 +34,8 @@ stdenv.mkDerivation (finalAttrs: { | |||
| "-DBLAS_LIBRARIES=-lblas" | |||
| "-DLAPACK_LIBRARIES=-llapack" | |||
| "-DFETCHCONTENT_SOURCE_DIR_OPENFST:PATH=${finalAttrs.passthru.sources.openfst}" | |||
| # Fix the build with CMake 4. | |||
| "-DCMAKE_POLICY_VERSION_MINIMUM=3.10" | |||
There was a problem hiding this comment.
Maybe kkm000/openfst@f75b382 could be patch on passthru.sources instead?
There was a problem hiding this comment.
Since the upstream kaldi project did not upgrade the version of openfst, I would be more in favor of keeping the diff to kaldi upstream as small as possible and only adjusting the minimum cmake version.
What would be the advantage of patching this directly in openfst instead of the current solution?
There was a problem hiding this comment.
@matthiasdotsh This is the recommended way to proceed for fixing cmake failures (see the instruction list in the description of #445447). You may ask Grimmauld why this is better, as i cannot answer you with confidence, but i believe that was already =thoroughly discussed
4e53002 to
42aeba2
Compare
|
Things done
Fix kaldi build for cmake 4.
See #445447
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.