Commit graph

46 commits

Author SHA1 Message Date
he
0ddfe907f8 Update from version 5.2nb1 to 5.2nb2.
This imports some fixes from Debian.  First and foremost:

http://lists.gnu.org/archive/html/bug-bash/2006-11/msg00017.html

Bug-Description:

In some cases, code that is intended to be used in the presence of multibyte
characters is called when no such characters are present, leading to incorrect
display position calculations and incorrect redisplay.

http://lists.gnu.org/archive/html/bug-readline/2007-01/msg00002.html

Bug-Description:

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.

http://lists.gnu.org/archive/html/bug-bash/2007-02/msg00054.html

Bug-Description:

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.

...all related to display.c.  Also add include of <stdio.h> to
two of the readline header files.
2008-08-13 11:11:38 +00:00
jlam
b25cd4ac3a Remove unnecessary check for the TERMCAP_TYPE -- revision 1.2 of
termcap.buildlink3.mk will cause all termcap libraries other than the
one we specify to not be found.
2008-03-02 07:07:43 +00:00
jlam
9d8755394f Rename termlib.* to termcap.* to better document exactly what packages
are trying to use (the termcap t*() API).
2008-02-29 22:41:13 +00:00
jlam
b3e8682deb + Teach the readline buildlink3.mk and builtin.mk files to determine
the correct terminal library that must be linked along with -lreadline.
  On NetBSD, this is -ltermcap.  On Linux, this should be either -ltinfo
  or -lcurses.  On Solaris, this should be -lcurses.

+ Add a "termlib" dependency to the devel/readline package that allows
  for linking against -lcurses.  Bump the PKGREVISON to 1.
2008-02-27 18:16:37 +00:00
martti
9afb20a137 Added commented-out LICENSE=something. 2007-11-11 11:35:48 +00:00
joerg
605f49a154 DESTDIR support. 2006-11-05 17:49:33 +00:00
wiz
e3fe21ec08 Update to 5.2:
1.  Changes to Readline

a.  Fixed a problem that caused segmentation faults when using readline in
    callback mode and typing consecutive DEL characters on an empty line.

b.  Fixed several redisplay problems with multibyte characters, all having to
    do with the different code paths and variable meanings between single-byte
    and multibyte character redisplay.

c.  Fixed a problem with key sequence translation when presented with the
    sequence \M-\C-x.

d.  Fixed a problem that prevented the `a' command in vi mode from being
    undone and redone properly.

e.  Fixed a problem that prevented empty inserts in vi mode from being undone
    properly.

f.  Fixed a problem that caused readline to initialize with an incorrect idea
    of whether or not the terminal can autowrap.

g.  Fixed output of key bindings (like bash `bind -p') to honor the setting of
    convert-meta and use \e where appropriate.

h.  Changed the default filename completion function to call the filename
    dequoting function if the directory completion hook isn't set.  This means
    that any directory completion hooks need to dequote the directory name,
    since application-specific hooks need to know how the word was quoted,
    even if no other changes are made.

i.  Fixed a bug with creating the prompt for a non-interactive search string
    when there are non-printing characters in the primary prompt.

j.  Fixed a bug that caused prompts with invisible characters to be redrawn
    multiple times in a multibyte locale.

k.  Fixed a bug that could cause the key sequence scanning code to return the
    wrong function.

l.  Fixed a problem with the callback interface that caused it to fail when
    using multi-character keyboard macros.

m.  Fixed a bug that could cause a core dump when an edited history entry was
    re-executed under certain conditions.

n.  Fixed a bug that caused readline to reference freed memory when attmpting
    to display a portion of the prompt.

o.  Fixed a bug with prompt redisplay in a multi-byte locale to avoid redrawing
    the prompt and input line multiple times.

p.  Fixed history expansion to not be confused by here-string redirection.

q.  Readline no longer treats read errors by converting them to newlines, as
    it does with EOF.  This caused partial lines to be returned from readline().

r.  Fixed a redisplay bug that occurred in multibyte-capable locales when the
    prompt was one character longer than the screen width.

2.  New Features in Readline

a.  Calling applications can now set the keyboard timeout to 0, allowing
    poll-like behavior.

b.  The value of SYS_INPUTRC (configurable at compilation time) is now used as
    the default last-ditch startup file.

c.  The history file reading functions now allow windows-like \r\n line
    terminators.
2006-10-22 10:55:31 +00:00
jlam
792529759b * Honor PKGINFODIR.
* List the info files directly in the PLIST.
2006-03-30 03:44:41 +00:00
jlam
9c8b5ede43 Point MAINTAINER to pkgsrc-users@NetBSD.org in the case where no
developer is officially maintaining the package.

The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list).  Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't
developers.
2006-03-04 21:28:51 +00:00
minskim
f830222b1e Link the readline library against the library that has the termcap
functions.  This corrects dependency_libs defined in libreadline.la.

Bump PKGREVISION.
2006-03-02 00:24:55 +00:00
wiz
e27026cd98 Update to 5.1:
This is a terse description of the new features added to readline-5.1 since
the release of readline-5.0.

1.  New Features in Readline

a.  The key sequence sent by the keypad `delete' key is now automatically
    bound to delete-char.

b.  A negative argument to menu-complete now cycles backward through the
    completion list.

c.  A new bindable readline variable:  bind-tty-special-chars.  If non-zero,
    readline will bind the terminal special characters to their readline
    equivalents when it's called (on by default).

d.  New bindable command: vi-rubout.  Saves deleted text for possible
    reinsertion, as with any vi-mode `text modification' command; `X' is bound
    to this in vi command mode.

e.  If the rl_completion_query_items is set to a value < 0, readline never
    asks the user whether or not to view the possible completions.

f.  New application-callable auxiliary function, rl_variable_value, returns
    a string corresponding to a readline variable's value.

g.  When parsing inputrc files and variable binding commands, the parser
    strips trailing whitespace from values assigned to boolean variables
    before checking them.

h.  A new external application-controllable variable that allows the LINES
    and COLUMNS environment variables to set the window size regardless of
    what the kernel returns.
2005-12-31 00:01:45 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
wiz
6e02d7ee41 Rename ALL_TARGET to BUILD_TARGET for consistency with other *_TARGETs.
Suggested by Roland Illig, ok'd by various.
2004-12-03 15:14:50 +00:00
jlam
4272ac65d6 Update devel/readline to 5.0. Changes from version 4.3 include:
* Improved compatibility with BSD csh modifiers.
* Improved vi editing mode.
* History files include timestamp information.
2004-11-14 06:16:49 +00:00
tv
c487cb967a Libtool fix for PR pkg/26633, and other issues. Update libtool to 1.5.10
in the process.  (More information on tech-pkg.)

Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and
installing .la files.

Bump PKGREVISION (only) of all packages depending directly on the above
via a buildlink3 include.
2004-10-03 00:12:51 +00:00
tv
844d8b10dc Use ${BSD_INSTALL_LIB} so the library is installed +x. (Bump PKGREVISION;
this can be un-bumped if the patchlevel goes up again.)
2004-08-20 17:32:50 +00:00
jlam
326169077a USE_BUILDLINK3 must be set to "yes" or "no", not defined/undefined. 2004-03-23 04:40:59 +00:00
jlam
2c03f435c8 bl3ify 2004-01-05 11:17:10 +00:00
dent
c42a747a7f update HOMEPAGE 2003-09-19 05:18:35 +00:00
seb
8d15907ec2 USE_NEW_TEXINFO is unnecessary now. 2003-08-09 10:38:23 +00:00
grant
4083b24390 s/netbsd.org/NetBSD.org/ 2003-07-17 21:31:04 +00:00
uebayasi
3fea780b5e Update to 4.3pl5. Incorporate 5 official patches.
[readline43-001]
Pressing certain key sequences causes an infinite loop in _rl_dispatch_subseq
with the `key' argument set to 256.  This eventually causes bash to exceed
the stack size limit and crash with a segmentation violation.

[readline43-002]
Repeating an edit in vi-mode with `.' does not work.

[readline43-003]
When in a locale with multibyte characters, the readline display updater
will occasionally cause a segmentation fault when attempting to compute
the length of the first multibyte character on the line.

[readline43-004]
When running in a locale with multibyte characters, the readline display
updater will use carriage returns when drawing the line, overwriting any
partial output already on the screen and not terminated by a newline.

[readline43-005]
Using the vi editing mode's case-changing commands in a locale with
multibyte characters will cause garbage characters to be inserted into
the editing buffer.

(Any maintainership taker?)
2003-06-30 10:26:45 +00:00
seb
9f8e82dd62 Convert to USE_NEW_TEXINFO. 2003-06-25 11:32:38 +00:00
jschauma
e366d0c694 Use tech-pkg@ in favor of packages@ as MAINTAINER for orphaned packages.
Should anybody feel like they could be the maintainer for any of thewe packages,
please adjust.
2003-06-02 01:15:31 +00:00
jmmv
e85877b913 Update readline to 4.3.
Changes in this version are mostly bugfixes; some new functionality
has been added as well. For an exhaustive list of changes, please
look at the CHANGES file included in the distribution.
2002-12-07 17:39:47 +00:00
jlam
e2afa97f51 Merge changes in packages from the buildlink2 branch that have
buildlink2.mk files back into the main trunk.  This provides sufficient
buildlink2 infrastructure to start merging other packages from the
buildlink2 branch that have already been converted to use the buildlink2
framework.
2002-08-25 18:38:05 +00:00
seb
66111c6d15 Introduce new framework for handling info files generation and installation.
Summary of changes:
- removal of USE_GTEXINFO
- addition of mk/texinfo.mk
- inclusion of this file in package Makefiles requiring it
- `install-info' substituted by `${INSTALL_INFO}' in PLISTs
- tuning of mk/bsd.pkg.mk:
    removal of USE_GTEXINFO
    INSTALL_INFO added to PLIST_SUBST
    `${INSTALL_INFO}' replace `install-info' in target rules
    print-PLIST target now generate `${INSTALL_INFO}' instead of `install-info'
- a couple of new patch files added for a handful of packages
- setting of the TEXINFO_OVERRIDE "switch" in packages Makefiles requiring it
- devel/cssc marked requiring texinfo 4.0
- a couple of packages Makefiles were tuned with respect of INFO_FILES and
  makeinfo command usage

See -newly added by this commit- section 10.24 of Packages.txt for
further information.
2002-02-18 15:14:00 +00:00
jlam
1118eb7b66 Update readline to 4.2. Major changes from version 4.1:
*   bug fixes
*   improve linking with C++ code
+   a new file, rltypedefs.h, contains the new typedefs for function pointers
+   several minor additions to the API to customize look of readline
+   more complete documentation for public functions and variables
2001-08-06 14:20:46 +00:00
jlam
401120d634 Mark as USE_BUIDLINK_ONLY and remove -I$(includedir) from the header
search path.
2001-06-19 08:48:57 +00:00
wiz
94dc65fbec Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT. 2001-02-16 14:38:16 +00:00
jlam
5dd380774f Update readline to 4.1. Closes PR#10615 by Damon Brodie.
Relevant changes from 4.0:

e.  The history library tries to truncate the history file only if it is a
    regular file.
f.  A bug that caused _rl_dispatch to address negative array indices on
    systems with signed chars was fixed.
g.  rl-yank-nth-arg now leaves the history position the same as when it was
    called.
m.  The quoted-insert code will now insert tty special chars like ^C.
n.  A bug was fixed that caused the display code to reference memory before
    the start of the prompt string.
p.  A bug was fixed in readline's signal handling that could cause infinite
    recursion in signal handlers.
q.  A bug was fixed that caused the point to be less than zero when rl_forward
    was given a very large numeric argument.
r.  The vi-mode code now gets characters via the application-settable value
    of rl_getc_function rather than calling rl_getc directly.
t.  Fixed a bug in the redisplay code for lines with more than 256 line
    breaks.
u.  A bug was fixed which caused invisible character markers to not be
    stripped from the prompt string if the terminal was in no-echo mode.
v.  Readline no longer tries to get the variables it needs for redisplay
    from the termcap entry if the calling application has specified its
    own redisplay function.  Readline treats the terminal as `dumb' in
    this case.
w.  Fixes to the SIGWINCH code so that a multiple-line prompt with escape
    sequences is redrawn correctly.
b.  Parentheses matching is now always compiled into readline, and enabled
    or disabled when the value of the `blink-matching-paren' variable is
    changed.
e.  history-search-{forward,backward} now leave the point at the end of the
    line when the string to search for is empty, like
    {reverse,forward}-search-history.
f.  history-search-{forward,backward} now leave the last history line found
    in the readline buffer if the second or subsequent search fails.
g.  New function for use by applications:  rl_on_new_line_with_prompt, used
    when an application displays the prompt itself before calling readline().
h.  New variable for use by applications:  rl_already_prompted.  An application
    that displays the prompt itself before calling readline() must set this to
    a non-zero value.
i.  A new variable, rl_gnu_readline_p, always 1.  The intent is that an
    application can verify whether or not it is linked with the `real'
    readline library or some substitute.
2000-07-19 09:31:44 +00:00
jlam
3fa889bd4a USE_LIBTOOL instead of pkglibtool. 2000-06-09 07:06:34 +00:00
rh
74add3b300 s/USE_LIBTOOL/USE_PKGLIBTOOL/
Add a new USE_LIBTOOL definition that uses the libtool package instead of
pkglibtool which is now considered outdated.
USE_PKGLIBTOOL is available for backwards compatibility with old packages
but is deprecated for new packages.
2000-06-01 11:23:11 +00:00
jlam
6b79251d17 * Update "devel/readline" to 4.0.
* Libtoolize library build.
1999-07-13 00:56:12 +00:00
tron
9c4c0c2b50 Remove unnecessary slash from master site list. 1999-04-14 21:39:01 +00:00
bad
fa9c2f3760 Catch up with MASTER_SITE_GNU reorganization. 1999-03-22 16:08:30 +00:00
agc
1bb3007c04 s/make/${MAKE}/g 1999-03-08 10:53:55 +00:00
agc
6c9f24c0c1 Use automatic shared object handling. 1998-07-14 15:55:38 +00:00
agc
8157ff7bcf Update package Makefiles for automatic manual page handling. 1998-06-22 11:19:40 +00:00
hubertf
cd7d51ee24 Update to V2.2 1998-04-21 08:36:12 +00:00
agc
5201e68497 Introduce USE_GTEXINFO and INFO_FILES definitions to bsd.pkg.mk, and use them. 1998-04-17 09:37:21 +00:00
agc
258b808c9f Use the bsd.pkg.mk and bsd.pkg.subdir.mk files in the pkgsrc tree.
Remove redundant (and sometimes erroneous) comments.
1998-04-15 10:38:15 +00:00
frueauf
9174075412 portlint: use ${VARIABLE}, instead of $(VARIABLE); ldconfig->${LDCONFIG};
true->${TRUE}.
1998-03-28 21:24:40 +00:00
agc
9f1bce34f5 Jaromir Dolecek's readline package (PR 4915) is better than the one
in tree, so take the necessary elements from Jaromir's package:

+ build and install libhistory

+ build and install shared history and readline libraries.

+ install readline and history info pages with the correct names

Preserve change from the original package:

+ don't assume that the Makefile SHELL is Bourne shell - set it
explicitly, so that Bourne shell scripts aren't run by the csh(1)
1998-03-19 13:02:19 +00:00
frueauf
7566535e2c portlint: add default MAINTAINER. 1998-03-10 13:47:35 +00:00
agc
528bc18ca5 Initial import of the GNU readline library (version 2.1) into the
NetBSD packages collection.  This is because some other packages play
dirty and muck about with the internals of the readline structures, so
our libedit-based emulation won't suffice for that.  A pity.
1998-03-08 01:40:39 +00:00