SDL_compat: set rpath during installation; add tests#405305
SDL_compat: set rpath during installation; add tests#405305pbsds merged 3 commits intoNixOS:masterfrom
Conversation
b4557f8 to
ca2f549
Compare
|
The rpath things currently cause build failures on darwin, see https://hydra.nixos.org/build/296088873 Tagging ZHF because this is an existing failure: #403336 |
That was the motivation, see the description.
I'm running |
Darwin runners fail during check phase with the error below. I can disable Details |
|
I know too little darwin things to judge whether this indicates actual breakage on darwin or just a failed check. But it does make sense to disable the checks on darwin. We previously didn't have any checks, so having linux checks is already a massive improvement. |
ca2f549 to
50cd3a9
Compare
LordGrimmauld
left a comment
There was a problem hiding this comment.
Almost looking good, have some nits.
There was a problem hiding this comment.
| checkPhase = '' | |
| runHook preCheck | |
| ./testver | |
| runHook postCheck | |
| ''; | |
| nativeInstallCheckInputs = [ | |
| versionCheckHook | |
| ]; | |
| doInstallCheck = true; |
The version check hook is probably the more-correct way of doing this check
There was a problem hiding this comment.
versionCheckHook runs the installed executable of the package with --version argument, the testver is just one of many example programs that are built alongside the lib and never installed. Most of them are displaying something on the screen or are benchmarking so they're not very useful for us.
There was a problem hiding this comment.
Okay fair! Just feels a bit weird: sdl-config has a --version flag you can give it, so versionCheckHook do the same thing at a glance. Might need a comment explaining you want the example program explicitly, not simply a version check.
There was a problem hiding this comment.
I forgot that it installs sdl-config. Looking at the code, the --version argument just echoes the hardcoded version so testver, which actually links to the built library, is a better indication that it works. We can still add versionCheckHook as a separate test to check if sdl-config is installed.
50cd3a9 to
69948e3
Compare
|
Linuxes are still running but
|
|
This PR shouldn't break outwards API as far as i can tell, so these other failures likely have other issues that are not directly related to this PR |
|
Looking at the logs, some are caused by runner terminating too early causing missing logs (e.g. Seems unrelated to this PR though. |
|
|
double checked SDL_mixer on aarch64-darwin, lgtm 👍 |
This should fix darwin builds, making #404948 no longer needed.
ZHF: #403336
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.