1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00
freebsd-ports/devel/readline/Makefile
Frank J. Laszlo 0059ee4621 Add new vender patches that addresses several bugs:
readline52-002:
Readline neglects to reallocate the array it uses to keep track of wrapped
screen lines when increasing its size.  This will eventually result in
segmentation faults when given sufficiently long input.

readline52-003:
When moving the cursor, bash sometimes misplaces the cursor when the prompt
contains two or more multibyte characters.  The particular circumstance that
uncovered the problem was having the (multibyte) current directory name in
the prompt string.

readline52-004:
When restoring the original prompt after finishing an incremental search,
bash sometimes places the cursor incorrectly if the primary prompt contains
invisible characters.

readline52-005:
When rl_read_key returns -1, indicating that readline's controlling terminal
has been invalidated for some reason (e.g., receiving a SIGHUP), the error
status was not reported correctly to the caller.  This could cause input
loops.

readline52-006:
The readline display code miscalculated the screen position when performing
a redisplay in which the new text occupies more screen space that the old,
but takes fewer bytes to do so (e.g., when replacing a shorter string
containing multibyte characters with a longer one containing only ASCII).

readline52-007:
An off-by-one error in readline's input buffering caused readline to drop
each 511th character of buffered input (e.g., when pasting a large amount
of data into a terminal window).
2007-08-23 19:26:36 +00:00

42 lines
1.0 KiB
Makefile

# ports collection makefile for: readline
# Date created: 10 December 2003
# Whom: Frank Laszlo <laszlof@vonostingroup.com>
#
# $FreeBSD$
#
PORTNAME= readline
PORTVERSION= 5.2
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU} \
ftp://ftp.cwru.edu/pub/bash/
MASTER_SITE_SUBDIR= ${PORTNAME}
PATCH_SITES= ftp://ftp.gnu.org/gnu/readline/${PORTNAME}-${PORTVERSION}-patches/ \
ftp://ftp.cwru.edu/pub/bash/${PORTNAME}-${PORTVERSION}-patches/
PATCHFILES= readline52-001 readline52-002 readline52-003 readline52-004 \
readline52-005 readline52-006 readline52-007
MAINTAINER= laszlof@FreeBSD.org
COMMENT= A library for editing command lines as they are typed
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
INFO= readline rluserman history
MAN3= readline.3 history.3
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64"
EXTRA_PATCHES+= ${FILESDIR}/support_shobj-conf.diff
.endif
pre-configure:
.if !defined(WITHOUT_TERMCAP)
${REINPLACE_CMD} "s/SHOBJ_LDFLAGS =/SHOBJ_LDFLAGS = -ltermcap/" ${WRKSRC}/shlib/Makefile.in
.endif
.include <bsd.port.post.mk>