[PATCH] update to the latest libedit version and remove libreadline deps

Ade Lovett ade at FreeBSD.org
Mon Nov 8 23:54:06 UTC 2010


On Nov 08, 2010, at 09:21 , Baptiste Daroussin wrote:
> We also have to think a way to update ports to use devel/readline
> before breaking lot's of them removing libreadline from base. But I
> have no idea is there are good procedures for that purpose.

Easiest solution would be something along the lines of 

(1) adding the following to ports/Mk/bsd.port.mk

.if defined(USE_READLINE)
. if ${OSVERSION} >= (whatever the number is)
LIB_DEPENDS+= readline:${PORTSDIR}/devel/readline
# other hacks for CFLAGS, LDFLAGS, etc.
. endif
.endif


(2) creating a suitable binary world tarball with the libreadline not present in base

(3) hand (1) and (2) over to portmgr@ for a 9-i386-exp run, see what breaks, patch ports accordingly by adding USE_READLINE to the Makefile, rinse, repeat, commit.

Have fun.

PS:  Don't forget the documentation of the USE_READLINE knob
PPS: I wouldn't be expecting much to happen here this side of the upcoming 7.x/8.x releases, since it's going to be relatively invasive work, and will most likely need repeated package building runs.

-aDe



More information about the freebsd-arch mailing list