Repository navigation
[staging-next] rocmPackages.rocprofiler-sdk: fix build with fmt 12.2.0 - #551149
Conversation
fmt 12.2.0 changes the meaning of fmt/core.h so it no longer includes fmt::format, so this upstream commit switches to the correct header. this backports the relevant parts of an upstream commit as upstream has diverged significantly from 7.2.3: ROCm/rocm-systems@e2f5885
|
🤔 I now glanced at the announcement. Maybe it's easier and cleaner to just build with |
|
i don't think it's super worth it to deviate, it's mostly a simple fix for upstreams and packages in nixpkgs can always pin it's only messy here because i wanted to take the patch since upstream had a fix, but pinning fmt_11 would work (though I'd be happy to do that if folks prefer) |
|
errr, wait, i misread the announcement; i thought that was a flag for fmt itself but i see that's a downstream thing. would you prefer adding that here? i don't particularly mind either. |
|
I don't know. I just noticed, so I thought I'd post about it at least. |
fmt 12.2.0 changes the meaning of fmt/core.h so it no longer includes fmt::format, so this upstream commit switches to the correct header. this backports the relevant parts of an upstream commit as upstream has diverged significantly from 7.2.3: ROCm/rocm-systems@e2f5885. this is ugly and sucks but i don't know if there's a better way to do it. it's at least simple and trivially verifiable, though.
ref: #550199 (comment)
see similar-ish for rocprofiler-register: #550525
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.