Summary: | devel/readline: Fix API when used with -Wstrict-prototypes | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Gleb Popov <arrowd> | ||||
Component: | Individual Port(s) | Assignee: | Po-Chuan Hsieh <sunpoet> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | CC: | des, sunpoet | ||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(sunpoet) |
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
URL: | https://reviews.freebsd.org/D46957 | ||||||
See Also: | https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281776 | ||||||
Attachments: |
|
Description
Gleb Popov
![]() ![]() Created attachment 253726 [details]
Patch
I'd like to name the patch file as patch-clangXX. Do you mean Clang 18 or Clang 19? Clang 18 which is shipped with 15-CURRENT at the moment. So, can we get this in? A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=ee994524fffdfcd9c887b6826889fa7539ff90c9 commit ee994524fffdfcd9c887b6826889fa7539ff90c9 Author: Gleb Popov <arrowd@FreeBSD.org> AuthorDate: 2024-09-30 13:12:46 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-09-30 13:38:46 +0000 devel/readline: Fix build for dependent ports with -Wstrict-prototypes on Clang 18 - Bump PORTREVISION for package change PR: 281633 devel/readline/Makefile | 1 + devel/readline/files/patch-clang18 (new) | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) Great, thanks! This just made matters worse, cf. devel/rlwrap. The correct solution is to remove the #ifdef and leave only the correct prototype. We don't support compilers that don't support variadic functions. A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=6d04fa18daaad2b5452685c842f54430e5908bf8 commit 6d04fa18daaad2b5452685c842f54430e5908bf8 Author: Dag-Erling Smørgrav <des@FreeBSD.org> AuthorDate: 2024-10-09 12:06:09 +0000 Commit: Dag-Erling Smørgrav <des@FreeBSD.org> CommitDate: 2024-10-09 12:06:09 +0000 devel/readline: Fix build for dependent ports. Fixes: ee994524fffd PR: 281633 Reviewed by: dim Differential Revision: https://reviews.freebsd.org/D46957 devel/readline/Makefile | 2 +- devel/readline/files/patch-clang18 | 29 ++++++++++++++++------------- 2 files changed, 17 insertions(+), 14 deletions(-) |