tclPackages_9_0.expect: init at 5.45.4#490930
tclPackages_9_0.expect: init at 5.45.4#490930randomizedcoder wants to merge 2 commits intoNixOS:masterfrom
Conversation
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/6416 |
fe3f0d5 to
184a810
Compare
|
I really need to add some commit hooks to run nix fmt ;) |
fgaz
left a comment
There was a problem hiding this comment.
Sorry but I don't think I could review this amount of code any time soon. Is there a reason why we can't use the BAWT fork as OpenMandriva does? Have you considered collaborating with the BAWT and OpenMandriva people to push for a more official release? Here's a relevant thread.
Also was a LLM involved in producing this PR?
There was a problem hiding this comment.
I'd really like to avoid having tcl9 variants of single packages, going for something like #433414 instead.
|
G'day, Thanks for the feedback. I'm certainly happy make a new version that uses options, like #433414 Are you concerned all.tcl test has coverage gaps? If you have concerns about the testing, then coverage should be increased, which should also improve expect even on tcl 8.6. I've been hammering expect with tcl 9 via the integration tests here, and it seems to be working well. LLM? Yes, absolutely. The LLM helped find and solve each failing test, but LLM wanted to make a million patches, so after some encouragement many common replacements are done via sed. Kind regards, Something pretty impressive - LLM porting kernel patches from 5.x to 6.x: https://youtu.be/xRvi3k8XV8E?si=Z25SSDdI6mOZVapr |
184a810 to
d3f93f8
Compare
|
During more testing, I found a bug, which I've now corrected. However this got me worried, so I've added a 126 more tests, which did uncover more issues. These are now corrected. The tests do try to focus on 32 v 64 bit changes. |
- 126 Tcl 9 specific tests run during build - Full Tcl 9 API compatibility (channel driver, Tcl_Size, removed macros) - 64-bit buffer support: match_max accepts values >2GB (key Tcl 9 benefit) - Fix buffer truncation chain: ExpUniBuf, new_msize, numchars all use Tcl_Size - Fix event handler race condition in close order
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
d3f93f8 to
ff7632f
Compare
Expect 5.45.4 built against Tcl 9.0. - The primary advantage is 64 bit addressing from TCL 9.0
This adds a new
expect9package that provides Expect compiled against Tcl 9.0, alongside the existingexpectpackage (Tcl 8.6).Tcl 9 compatibility required:
Testing performed:
See also: Tcl 9.0 Porting Guide
Things done
passthru.tests.tclsh9.0 tests/all.tcl)nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.