待辦事項 #39246

Please update MSYS awk; current awk-3.1.7 implementation is too old to remain viable

啟用日期: 2019-05-17 07:44 最後更新: 2020-01-06 05:53

回報者:
負責人:
類型:
狀態:
開啟 [Owner assigned]
元件:
里程碑:
(無)
優先權:
5 - 中
嚴重程度:
5 - 中
處理結果:
檔案:
1
Vote
Score: 0
No votes
0.0% (0/0)
0.0% (0/0)

細節

While developing this Mercurial Queues emulation for Git, which will be required to support git integration for this proposed MinGW package builder tool, I've run into a problem with the MSYS implementation of awk. On my LMDE system, I have awk-4.0.1, and I've written an emulator for "git qselect --series", (which I've yet to publish to the git-mq chamber). This used gawk's "asorti()" function, with a custom sort-comparator function, to present the output in lexically sorted order; it works fine in awk-4.0.1, but fails on MSYS, which offers only awk-3.1.7; (the "asorti()" function appears to be supported, but the custom comparator function reference parameter is rejected).

I've since reworked my "git qselect --series" emulation, using my own "qsort()" function implementation, instead of gawk's "asorti()" function. This makes the entire emulation significantly more portable, but it may still make sense to upgrade the MSYS implementation of awk, such that it will support more modern gawk features.

Ticket History (3/6 Histories)

2019-05-17 07:44 Updated by: keith
  • New Ticket "Please update MSYS awk; current awl-3.1.7 implementation is too old to remain viable" created
2019-05-17 07:44 Updated by: keith
  • Summary Updated
2020-01-04 04:28 Updated by: cstrauss
評語

Dear Keith,

I will package GNU awk 4.0.1, which seems to build and run fine on current MSYS, despite some failures in the test suite.

I'm interested in switching to your mingw-pkg tool. Is it already usable? I went as far as creating a recipe, but got stuck on the distribute step.

Regards,

Cesar

2020-01-06 00:23 Updated by: keith
評語

Reply To cstrauss

I will package GNU awk 4.0.1, which seems to build and run fine on current MSYS, despite some failures in the test suite.

Thanks, Cesar. Out of interest, could you elaborate further, on the test suite failures?

I'm interested in switching to your mingw-pkg tool. Is it already usable?

I believe so, yes. Certainly, I've been using it successfully for several years now, albeit exclusively with my self-built mingw32 cross-compiler suite, on GNU/Linux hosts; I have not tested it under MSYS. I do have some outstanding local patches, relating to mingw-port, and to cross-tool build support; pushing of these has been delayed, due to a critical regression in hg-git support, which was arrogantly and gratuitously introduced by the Arch Linux hg maintainers.

I went as far as creating a recipe, but got stuck on the distribute step.

You really will need to elaborate further on this, but maybe not here; perhaps use the mailing list, our Slack channel, or open a specific ticket, either within my development chamber, or even as a MinGW ticket, (given that I'd like to migrate the repository into MinGW project space).

2020-01-06 05:53 Updated by: cstrauss
評語

I will package GNU awk 4.0.1, which seems to build and run fine on current MSYS, despite some failures in the test suite.

Thanks, Cesar. Out of interest, could you elaborate further, on the test suite failures?

Test log attached.

When building the same source on current Cygwin, all test pass.

I gather you migrated from LMDE to Arch Linux? Cool, I'm an Arch user myself. Mercurial did broke for me after an upgrade, but reinstalling the git extension from AUR solved it.

Since you are giving support for mingw-pkg on the mailing list, I will ask there, thanks.

Attachment File List

  • check.log(9KB)
    • gawk-4.0.1 `make check` output on MSYS

編輯

Please login to add comment to this ticket » 登入