Repository navigation
renpy: use cacert bundle instead of vendored CA file - #578587
Conversation
|
Thanks for the heads-up. I opened an issue to notify the upstream about the situation. |
| @@ -228,6 +229,12 @@ stdenv.mkDerivation (finalAttrs: { | |||
| runHook postInstall | |||
| ''; | |||
|
|
|||
| postInstall = lib.optionalString (finalAttrs.passthru.distributedRenpy != null) '' | |||
There was a problem hiding this comment.
I would like to use preFixup instead. Also, since I opened an issue on the upstream, we should link it here so that future maintainer can be reminded to remove this fixup when the issue is resolved.
ShadowRZ
left a comment
There was a problem hiding this comment.
Generally OK, although it would be better to consider #578587 (comment)
|
Thanks for the feedback, I didn't think to use preFixup. I'm adjusting these changes according to maintainer taste, so feel free to nitpick anything else. |
| runHook postInstall | ||
| ''; | ||
|
|
||
| # remove this when https://github.com/renpy/renpy/issues/7466 is resolved |
There was a problem hiding this comment.
I think we shouldn't remove this even if they fixed that issue. The idea here is that for a next compromise we bump only our nixpkgs ca certs package, and everything in tree gets the updated root certs.
There was a problem hiding this comment.
Keeping this fixup has two downsides: (1) having cacerts in the closure makes renpy get more rebuilds; (2) maintaining the patch requires some work, e.g., changing the path when python is updated.
There was a problem hiding this comment.
having cacerts in the closure makes renpy get more rebuilds
cacerts rebuild this package most likely anyhow, it depends on ffmpeg (not even headless) and SDL.
changing the path when python is updated
Checking if upstream keeps their certs up to date, too.
There was a problem hiding this comment.
I agree that this fix should stay; there might be a way to write it that's easier to maintain in the long run. Ideally nothing in nixpkgs would bundle its own certificate trust, it would all come from a single source.
There was a problem hiding this comment.
Okay. Then maybe just leave the link there for issue tracking, without notice of future removal.
|
Actually I just realized that you should use cp instead of ln because the distributed renpy is intended to be distributed to end users (outside nix). Having a symlink to the nix store does not make sense here. |
Assisted-by: Claude Code (Claude Opus 5.5) with patchix
Part of #576541.
renpyhas a bundled CA file,share/renpy/lib/python3.12/certifi/cacert.pem, that accepts the eMudhra roots thatcacertremoved. This change replaces the file with a copy of thecacertbundle of nixpkgs, inpreFixup. A link to the Nix store is not sufficient: Ren'Py puts this file into the software that it builds, and this software operates without Nix.Note
AI Disclosure: Claude Code made the code change, the commit message and the first version of this pull request description, with patchix. Claude Code used Claude Opus 5.5. This pull request description is written in ASD-STE100 (Simplified Technical English), examined with memelint in
strictmode. As the automation/AI policy requires, I established confidence in this output: by manual review of the code change and of this description, and with the verification tooling that this description discloses.Test
nix-cacert-harness examines the package before and after this change. A local copy of nixpkgs is not necessary.
Output of harness: renpy
Before the change, the file accepts 7 of the 14 eMudhra chains; after, none. In the live test, Ren'Py connected to some test servers with eMudhra chains before the change, and to none after.
Things done
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.