libwebsockets: fix plugin search path#532936
Conversation
|
CI is broken |
|
We can safely ignore the CI failures because of NixOS/hydra#1804. I just ran a nixpkgs-review, I'll merge it when it is done. |
dotlambda
left a comment
There was a problem hiding this comment.
Is there a test we could add to make sure this doesn't break again?
|
Thanks. It works. Test project to verify sectore/timr-tui#213 |
This comment was marked as resolved.
This comment was marked as resolved.
The update of libwebsockets from 4.4.1 to 4.4.5[^1] introduced a regression where plugins could no longer be found.[^2] This could be traced back to a change in how the installation directory is computed since libwebsockets 4.4.2[^3] and we patch it here with the correct path. Fixes NixOS#532638 [^1]: NixOS#529620 [^2]: NixOS#532638 [^3]: warmcat/libwebsockets@bdbebaa
iblech
left a comment
There was a problem hiding this comment.
Thank you, very much appreciated! I was just bitten by this. I confirm that your fix works and I would merge this if I had the permissions.
|
Sorry for leaving this hanging, didn't notice it wasn't merged yet. It looks good. Can we upstream this, or a more universal patch? Downstream patching is never preferred. |
|
warmcat/libwebsockets#3623, but they have already ignored my previous PR warmcat/libwebsockets#3567 so I don't think this will ever be upstreamed. |
The update of libwebsockets from 4.4.1 to 4.4.51 introduced a regression where plugins could no longer be found.2 This could be traced back to a change in how the installation directory is computed since libwebsockets 4.4.23 and we patch it here with the correct path.
Fixes #532638
Tested using
Before
After
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Footnotes
https://github.com/NixOS/nixpkgs/pull/529620 ↩
https://github.com/NixOS/nixpkgs/issues/532638 ↩
https://github.com/warmcat/libwebsockets/commit/bdbebaa3b5f89bd31128fceb72a4133c0a2f738d ↩