Created attachment 256063 [details] lang/ratfor: fix build in platforms where char is unsigned Turns out the code anticipates this problem and has support for using "signed char" over "char" where "char" is unsigned by default. Use "signed char" unconditionally to fix the port on all platforms. This has no effect on platforms where char is already signed. See also bug #258628.
By any chance did you miss any additional patches/files?
Created attachment 256121 [details] lang/ratfor: fix build in platforms where char is unsigned Yes, indeed. I forgot to add an edit to the makefile patch. Please find attached a corrected patch. I'm sorry for the inconvenience.
Of course, I'll bump PORTREVISION with this update, too, even though it should not cause any changes in behaviour on platforms where this port already builds (i.e. those where char is signed).
Thanks for the updated patch. While committing can you please pet portclippy?
Sure, will do.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=147aeb1ee48f8aeb8e4892e3271a3231388a412c commit 147aeb1ee48f8aeb8e4892e3271a3231388a412c Author: Robert Clausecker <fuz@FreeBSD.org> AuthorDate: 2024-12-25 00:07:07 +0000 Commit: Robert Clausecker <fuz@FreeBSD.org> CommitDate: 2024-12-26 10:46:28 +0000 lang/ratfor: fix build on platforms where char is unsigned Turns out the code anticipates this problem and has support for using "signed char" over "char" where "char" is unsigned by default. Use "signed char" unconditionally to fix the port on all platforms. While we are at it, pet portclippy. PR: 258628, 283509 Approved by: bofh MFH: 2024Q4 lang/ratfor/Makefile | 17 ++++++----------- lang/ratfor/files/patch-Makefile | 2 +- 2 files changed, 7 insertions(+), 12 deletions(-)
A commit in branch 2024Q4 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=dbe8936bd31ea5963de69b31fe6a4b494399a05a commit dbe8936bd31ea5963de69b31fe6a4b494399a05a Author: Robert Clausecker <fuz@FreeBSD.org> AuthorDate: 2024-12-25 00:07:07 +0000 Commit: Robert Clausecker <fuz@FreeBSD.org> CommitDate: 2024-12-26 10:48:40 +0000 lang/ratfor: fix build on platforms where char is unsigned Turns out the code anticipates this problem and has support for using "signed char" over "char" where "char" is unsigned by default. Use "signed char" unconditionally to fix the port on all platforms. While we are at it, pet portclippy. PR: 258628, 283509 Approved by: bofh MFH: 2024Q4 (cherry picked from commit 147aeb1ee48f8aeb8e4892e3271a3231388a412c) lang/ratfor/Makefile | 17 ++++++----------- lang/ratfor/files/patch-Makefile | 2 +- 2 files changed, 7 insertions(+), 12 deletions(-)
Thank you for the review.