diff --git a/devel/readline/Makefile b/devel/readline/Makefile index 0a29786623fb..72ea4704033c 100644 --- a/devel/readline/Makefile +++ b/devel/readline/Makefile @@ -1,56 +1,56 @@ PORTNAME= readline PORTVERSION= 8.2.${PATCHLEVEL} -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel MASTER_SITES= GNU DISTNAME= readline-${PORTVERSION:R} PATCH_SITES= GNU/readline/readline-${PORTVERSION:R}-patches MAINTAINER= sunpoet@FreeBSD.org COMMENT= Library for editing command lines as they are typed WWW= https://tiswww.case.edu/php/chet/readline/rltop.html LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING USES= cpe GNU_CONFIGURE= yes USE_LDCONFIG= yes INFO= history readline rluserman PLIST_SUB= PORTVERSION=${PORTVERSION:R} PORTDOCS= CHANGES INSTALL README CPE_VENDOR= gnu CPE_VERSION= ${PORTVERSION:R} # https://ftp.gnu.org/gnu/readline/readline-8.2-patches/ PATCHES= 1 2 3 4 5 6 7 8 9 10 11 12 13 .if defined(PATCHES) CPE_UPDATE= ${PATCHLEVEL} PATCHLEVEL= ${PATCHES:On:[-1]} .for patch in ${PATCHES} PATCHFILES+= readline${PORTVERSION:R:S|.||}-${patch:S|^|00|:C|.*(...)$|\1|} .endfor .else PATCHLEVEL= 0 .endif OPTIONS_DEFINE= BRACKETEDPASTE DOCS OPTIONS_DEFAULT=BRACKETEDPASTE BRACKETEDPASTE_DESC= Enable bracketed paste BRACKETEDPASTE_CONFIGURE_ENABLE= bracketed-paste-default post-patch: @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/rlconf.h ${WRKSRC}/doc/readline.3 ${WRKSRC}/doc/readline.info ${WRKSRC}/doc/rluserman.info .if exists(/usr/lib/libtermcapw.so) @${REINPLACE_CMD} 's|-ltermcap|-ltermcapw|g' ${WRKSRC}/configure .endif post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libhistory.so ${STAGEDIR}${PREFIX}/lib/libreadline.so .include diff --git a/devel/readline/files/patch-clang18 b/devel/readline/files/patch-clang18 index f019f4ddb4a9..df9e8b671ddc 100644 --- a/devel/readline/files/patch-clang18 +++ b/devel/readline/files/patch-clang18 @@ -1,28 +1,31 @@ ---- readline.h.orig 2024-09-21 16:56:41 UTC +--- readline.h.orig 2022-02-18 16:13:59 UTC +++ readline.h -@@ -407,7 +407,7 @@ extern int rl_message (const char *, ...) __attribute - #if defined (USE_VARARGS) && defined (PREFER_STDARG) +@@ -404,10 +404,10 @@ extern int rl_mark_active_p (void); + extern void rl_deactivate_mark (void); + extern int rl_mark_active_p (void); + +-#if defined (USE_VARARGS) && defined (PREFER_STDARG) ++#if defined(__GNUC__) || defined(__clang__) extern int rl_message (const char *, ...) __attribute__((__format__ (printf, 1, 2))); #else -extern int rl_message (); -+extern int rl_message (void); ++extern int rl_message (const char *, ...); #endif extern int rl_show_char (int); --- rltypedefs.h.orig 2021-01-22 15:04:18 UTC +++ rltypedefs.h -@@ -32,10 +32,10 @@ extern "C" { +@@ -32,10 +32,13 @@ extern "C" { # define _FUNCTION_DEF #if defined(__GNUC__) || defined(__clang__) --typedef int Function () __attribute__((deprecated)); --typedef void VFunction () __attribute__((deprecated)); --typedef char *CPFunction () __attribute__((deprecated)); --typedef char **CPPFunction () __attribute__((deprecated)); -+typedef int Function (void) __attribute__((deprecated)); -+typedef void VFunction (void) __attribute__((deprecated)); -+typedef char *CPFunction (void) __attribute__((deprecated)); -+typedef char **CPPFunction (void) __attribute__((deprecated)); ++#pragma GCC diagnostic push ++#pragma GCC diagnostic ignored "-Wstrict-prototypes" + typedef int Function () __attribute__((deprecated)); + typedef void VFunction () __attribute__((deprecated)); + typedef char *CPFunction () __attribute__((deprecated)); + typedef char **CPPFunction () __attribute__((deprecated)); ++#pragma GCC diagnostic pop #else typedef int Function (); typedef void VFunction ();