From: Matthieu Herrb Subject: devel/readline: fix readline.pc To: ports@openbsd.org Date: Sat, 16 Aug 2025 11:03:34 +0200 Hi, The inormation provided by /usr/local/lib/pkg-config/readline.pc is not correct and leads to mix with base readline. This patch fixes it so that ports that use pkg-config(1) to determine if readline is available pick up the correct includes and libs. comments, ok ? Index: Makefile =================================================================== RCS file: /local/cvs/ports/devel/readline/Makefile,v diff -u -p -u -r1.20 Makefile --- Makefile 14 Oct 2024 10:27:11 -0000 1.20 +++ Makefile 16 Aug 2025 09:00:08 -0000 @@ -3,6 +3,7 @@ COMMENT = library to edit command lines V = 8.2.13 DISTNAME = readline-${V} PKGNAME = readline-${V} +REVISION = 0 LIBV = 3.0 SHARED_LIBS += ehistory ${LIBV} Index: patches/patch-readline_pc_in =================================================================== RCS file: patches/patch-readline_pc_in diff -N patches/patch-readline_pc_in --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-readline_pc_in 16 Aug 2025 09:00:08 -0000 @@ -0,0 +1,21 @@ +Adjust for ereadline + +Index: readline.pc.in +--- readline.pc.in.orig ++++ readline.pc.in +@@ -1,12 +1,12 @@ + prefix=@prefix@ + exec_prefix=@exec_prefix@ + libdir=@libdir@ +-includedir=@includedir@ ++includedir=@includedir@/ereadline + + Name: Readline + Description: Gnu Readline library for command line editing + URL: http://tiswww.cwru.edu/php/chet/readline/rltop.html + Version: @LIBVERSION@ +-Requires.private: @TERMCAP_PKG_CONFIG_LIB@ +-Libs: -L${libdir} -lreadline ++Requires.private: ncurses ++Libs: -L${libdir} -lereadline + Cflags: -I${includedir} -- Matthieu Herrb