Repository navigation
eztrace: 1.1-11 -> 2.1.1, fix build, adopt, otf2: fix cross - #388855
Conversation
antonmosich
left a comment
There was a problem hiding this comment.
nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 388855
x86_64-linux
✅ 6 packages built:
- eztrace
- eztrace.lib
- eztrace.man
- libotf2
- libotf2.doc
- libotf2.lib
There was a problem hiding this comment.
| license = lib.licenses.cecill-b; | |
| homepage = "https://eztrace.gitlab.io/eztrace/index.html"; | |
| license = lib.licenses.cecill-b; |
There was a problem hiding this comment.
Thanks! Added meta.homepage
|
eztrace is already being updated and cleaned up by #395939, but we should probably use this one. |
|
Huh, it seems libotf got packaged at some point after I submitted this patch. I will drop it then and cherry-pick some cross fixes I came up with here to otf2 derivation. |
|
@awwpotato, fyi it seems that |
There was a problem hiding this comment.
| homepage = "https://eztrace.gitlab.io/eztrace/index.html"; | |
| homepage = "https://eztrace.gitlab.io/eztrace/index.html"; | |
| downloadPage = "https://gitlab.com/eztrace/eztrace/"; |
There was a problem hiding this comment.
Thnx, missed this. Done
It's because nix-update uses the latest release if one is found https://github.com/Mic92/nix-update/blob/d3a58c41034c788e7917ea09fe051acbe56dc5c4/nix_update/version/gitlab.py#L40. Someone should probably submit a feature request for always using the latest tag. |
There was a problem hiding this comment.
| substituteInPlace cmake_modules/FindOTF2.cmake \ | |
| --replace-fail "find_program(OTF2_CONFIG otf2-config REQUIRED)" \ | |
| "find_program(OTF2_CONFIG "${lib.getExe' otf2 "otf2-config"}" REQUIRED)" | |
| substituteInPlace cmake_modules/FindOTF2.cmake \ | |
| substituteInPlace cmake_modules/FindOTF2.cmake \ | |
| --replace-fail "find_program(OTF2_CONFIG otf2-config REQUIRED)" \ | |
| "find_program(OTF2_CONFIG "${lib.getExe' otf2 "otf2-config"}" REQUIRED)" \ |
| postInstall = '' | ||
| moveToOutput bin/eztrace_create_plugin "$dev" | ||
| ''; | ||
|
|
There was a problem hiding this comment.
| doInstallCheck = true; | |
| nativeInstallCheckInputs = [ versionCheckHook ]; | |
| passthru.updateScript = nix-update-script { }; | |
There was a problem hiding this comment.
Sorry, I might be misunderstanding something. What's the purpose of enabling nix-update-script, if it doesn't do the right thing here (#388855 (comment))?
Also the same goes for versionCheckHook. The version we are packaging 2.1.1 reports as being 2.1.0 (defined here), so the hook would have to be disabled either way. I suppose we could patch the sources to report the correct version, but that sort of defeats the purpose of the hook. Do you think that would be worthwhile?
There was a problem hiding this comment.
Sorry, I might be misunderstanding something. What's the purpose of enabling
nix-update-script, if it doesn't do the right thing here (#388855 (comment))?
Oops forgot about that issue.
Also the same goes for
versionCheckHook. The version we are packaging2.1.1reports as being2.1.0(defined here), so the hook would have to be disabled either way. I suppose we could patch the sources to report the correct version, but that sort of defeats the purpose of the hook. Do you think that would be worthwhile?
I would patch the version because versionCheckHook also ensures that binary is installed correctly and runs, but you don't have to.
There was a problem hiding this comment.
I would patch the version because versionCheckHook also ensures that binary is installed correctly and runs,
Makes sense, done.
Upstream seemingly forgot to bump their patch version for 2.1.1 and do a gitlab release as well. Use `versionCheckHook` as a smoke test for installation completeness.
LeSuisse
left a comment
There was a problem hiding this comment.
Quick test looks good.
nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 388855
x86_64-linux
✅ 7 packages built:
- eztrace
- eztrace.dev
- eztrace.lib
- eztrace.man
- otf2
- otf2.doc
- otf2.lib
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.