forked from pool/libedit
Accepting request 242803 from devel:libraries:c_c++
1 OBS-URL: https://build.opensuse.org/request/show/242803 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libedit?expand=0&rev=23
This commit is contained in:
commit
48e6196a7a
@ -1,6 +1,8 @@
|
|||||||
--- configure.ac.orig
|
Index: configure.ac
|
||||||
+++ configure.ac
|
===================================================================
|
||||||
@@ -48,7 +48,7 @@ AC_CHECK_LIB(terminfo, tgetent,,
|
--- configure.ac.orig 2014-07-28 16:16:14.800585267 +0200
|
||||||
|
+++ configure.ac 2014-07-28 16:16:17.338585263 +0200
|
||||||
|
@@ -52,7 +52,7 @@ AC_CHECK_LIB(tinfo, tgetent,,
|
||||||
[AC_CHECK_LIB(termcap, tgetent,,
|
[AC_CHECK_LIB(termcap, tgetent,,
|
||||||
[AC_CHECK_LIB(termlib, tgetent,,
|
[AC_CHECK_LIB(termlib, tgetent,,
|
||||||
[AC_CHECK_LIB(curses, tgetent,,
|
[AC_CHECK_LIB(curses, tgetent,,
|
||||||
@ -9,25 +11,22 @@
|
|||||||
[AC_MSG_ERROR([libcurses or libncurses are required!])]
|
[AC_MSG_ERROR([libcurses or libncurses are required!])]
|
||||||
)]
|
)]
|
||||||
)]
|
)]
|
||||||
--- src/Makefile.am.orig
|
Index: src/Makefile.am
|
||||||
+++ src/Makefile.am
|
===================================================================
|
||||||
@@ -44,6 +44,7 @@ libedit_la_SOURCES = chared.c common.c e
|
--- src/Makefile.am.orig 2014-07-28 16:16:14.800585267 +0200
|
||||||
histedit.h keymacro.h map.h chartype.h parse.h prompt.h read.h refresh.h \
|
+++ src/Makefile.am 2014-07-28 16:17:25.508585142 +0200
|
||||||
search.h sig.h sys.h terminal.h tty.h vis.h filecomplete.h \
|
@@ -66,5 +66,6 @@ nobase_include_HEADERS = histedit.h edit
|
||||||
editline/readline.h
|
|
||||||
+libedit_la_CFLAGS = $(shell ncursesw6-config --cflags)
|
|
||||||
if WIDECHAR
|
|
||||||
libedit_la_SOURCES += eln.c
|
|
||||||
endif
|
|
||||||
@@ -53,5 +54,5 @@ nobase_include_HEADERS = histedit.h edit
|
|
||||||
|
|
||||||
nodist_libedit_la_SOURCES = $(BUILT_SOURCES)
|
nodist_libedit_la_SOURCES = $(BUILT_SOURCES)
|
||||||
|
|
||||||
-libedit_la_LDFLAGS = -no-undefined -version-info $(LT_VERSION)
|
-libedit_la_LDFLAGS = -no-undefined -version-info $(LT_VERSION)
|
||||||
|
+libedit_la_CFLAGS = $(shell ncursesw6-config --cflags)
|
||||||
+libedit_la_LDFLAGS = $(shell ncursesw6-config --libs) -no-undefined -version-info $(LT_VERSION)
|
+libedit_la_LDFLAGS = $(shell ncursesw6-config --libs) -no-undefined -version-info $(LT_VERSION)
|
||||||
|
|
||||||
--- libedit.pc.in.orig
|
Index: libedit.pc.in
|
||||||
+++ libedit.pc.in
|
===================================================================
|
||||||
|
--- libedit.pc.in.orig 2014-07-28 16:16:14.800585267 +0200
|
||||||
|
+++ libedit.pc.in 2014-07-28 16:16:17.338585263 +0200
|
||||||
@@ -7,6 +7,6 @@ Name: libedit
|
@@ -7,6 +7,6 @@ Name: libedit
|
||||||
Description: command line editor library provides generic line editing, history, and tokenization functions.
|
Description: command line editor library provides generic line editing, history, and tokenization functions.
|
||||||
Version: @VERSION@
|
Version: @VERSION@
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:0b5ec9aa41faff761cda7819add93e9d8cb9c0bad85e65a686475e8375ac8a71
|
|
||||||
size 445533
|
|
3
libedit-20140620-3.1.tar.gz
Normal file
3
libedit-20140620-3.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:a22b9b2a8cf4aec9ff51a57e8c848b69640d0195282159d245d8137a19bfcaf2
|
||||||
|
size 483857
|
@ -1,8 +1,8 @@
|
|||||||
Index: libedit-20110802-3.0/src/readline.c
|
Index: src/readline.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libedit-20110802-3.0.orig/src/readline.c
|
--- src/readline.c.orig 2014-07-28 16:17:56.006585088 +0200
|
||||||
+++ libedit-20110802-3.0/src/readline.c
|
+++ src/readline.c 2014-07-28 16:17:58.431585084 +0200
|
||||||
@@ -1175,15 +1175,15 @@ history_truncate_file (const char *filen
|
@@ -1190,15 +1190,15 @@ history_truncate_file (const char *filen
|
||||||
|
|
||||||
if (filename == NULL && (filename = _default_history_file()) == NULL)
|
if (filename == NULL && (filename = _default_history_file()) == NULL)
|
||||||
return errno;
|
return errno;
|
||||||
@ -21,10 +21,10 @@ Index: libedit-20110802-3.0/src/readline.c
|
|||||||
close(fd);
|
close(fd);
|
||||||
ret = errno;
|
ret = errno;
|
||||||
goto out2;
|
goto out2;
|
||||||
Index: libedit-20110802-3.0/src/vi.c
|
Index: src/vi.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libedit-20110802-3.0.orig/src/vi.c
|
--- src/vi.c.orig 2014-07-28 16:17:56.006585088 +0200
|
||||||
+++ libedit-20110802-3.0/src/vi.c
|
+++ src/vi.c 2014-07-28 16:17:58.432585084 +0200
|
||||||
@@ -37,6 +37,7 @@
|
@@ -37,6 +37,7 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
@ -33,7 +33,7 @@ Index: libedit-20110802-3.0/src/vi.c
|
|||||||
|
|
||||||
#if !defined(lint) && !defined(SCCSID)
|
#if !defined(lint) && !defined(SCCSID)
|
||||||
#if 0
|
#if 0
|
||||||
@@ -1015,7 +1016,7 @@ vi_histedit(EditLine *el, Int c __attrib
|
@@ -1007,7 +1008,7 @@ vi_histedit(EditLine *el, Int c __attrib
|
||||||
return CC_ERROR;
|
return CC_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -42,12 +42,12 @@ Index: libedit-20110802-3.0/src/vi.c
|
|||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
return CC_ERROR;
|
return CC_ERROR;
|
||||||
len = (size_t)(el->el_line.lastchar - el->el_line.buffer);
|
len = (size_t)(el->el_line.lastchar - el->el_line.buffer);
|
||||||
Index: libedit-20110802-3.0/src/el.c
|
Index: src/el.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libedit-20110802-3.0.orig/src/el.c
|
--- src/el.c.orig 2014-07-28 16:17:56.006585088 +0200
|
||||||
+++ libedit-20110802-3.0/src/el.c
|
+++ src/el.c 2014-07-28 16:17:58.432585084 +0200
|
||||||
@@ -539,7 +539,7 @@ el_source(EditLine *el, const char *fnam
|
@@ -557,7 +557,7 @@ el_source(EditLine *el, const char *fnam
|
||||||
#endif
|
fname = path;
|
||||||
}
|
}
|
||||||
if (fp == NULL)
|
if (fp == NULL)
|
||||||
- fp = fopen(fname, "r");
|
- fp = fopen(fname, "r");
|
||||||
@ -55,11 +55,11 @@ Index: libedit-20110802-3.0/src/el.c
|
|||||||
if (fp == NULL) {
|
if (fp == NULL) {
|
||||||
el_free(path);
|
el_free(path);
|
||||||
return -1;
|
return -1;
|
||||||
Index: libedit-20110802-3.0/src/history.c
|
Index: src/history.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libedit-20110802-3.0.orig/src/history.c
|
--- src/history.c.orig 2014-07-28 16:17:56.007585088 +0200
|
||||||
+++ libedit-20110802-3.0/src/history.c
|
+++ src/history.c 2014-07-28 16:18:38.101585014 +0200
|
||||||
@@ -741,7 +741,7 @@ history_load(TYPE(History) *h, const cha
|
@@ -743,7 +743,7 @@ history_load(TYPE(History) *h, const cha
|
||||||
static ct_buffer_t conv;
|
static ct_buffer_t conv;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -68,12 +68,12 @@ Index: libedit-20110802-3.0/src/history.c
|
|||||||
return i;
|
return i;
|
||||||
|
|
||||||
if ((line = fgetln(fp, &sz)) == NULL)
|
if ((line = fgetln(fp, &sz)) == NULL)
|
||||||
@@ -802,7 +802,7 @@ history_save(TYPE(History) *h, const cha
|
@@ -844,7 +844,7 @@ history_save(TYPE(History) *h, const cha
|
||||||
static ct_buffer_t conv;
|
FILE *fp;
|
||||||
#endif
|
int i;
|
||||||
|
|
||||||
- if ((fp = fopen(fname, "w")) == NULL)
|
- if ((fp = fopen(fname, "w")) == NULL)
|
||||||
+ if ((fp = fopen(fname, "we")) == NULL)
|
+ if ((fp = fopen(fname, "we")) == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (fchmod(fileno(fp), S_IRUSR|S_IWUSR) == -1)
|
i = history_save_fp(h, fp);
|
||||||
|
104
libedit.changes
104
libedit.changes
@ -1,3 +1,107 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 28 14:48:16 UTC 2014 - mrueckert@suse.de
|
||||||
|
|
||||||
|
- rename README.SUSE (bnc#889029)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 28 14:47:14 UTC 2014 - mrueckert@suse.de
|
||||||
|
|
||||||
|
- update to 20140620-3.1
|
||||||
|
upgrade to fix a crash with clear_history e.g. in php.
|
||||||
|
|
||||||
|
- Bounds search for reallocated index, from OpenBSD via Andreas
|
||||||
|
Fett
|
||||||
|
- PR/48957: Federico G. Schwindt: Restore commented out code that
|
||||||
|
broke rl_callback_handler.
|
||||||
|
- cast gotsig because it is long on some systems.
|
||||||
|
- Add stdlib.h for abort() (Jess Thrysoee)
|
||||||
|
- Don't depend on weak aliases to define the vi "alias" expansion
|
||||||
|
function, provide an API instead to set it.
|
||||||
|
- accomodate FreeBSD's flavor of weak references.
|
||||||
|
- remove remaining makefile support for GCC < 45 that i found.
|
||||||
|
- PR/48876: Dmitriy Grigoryev: Core dump in readline lib on
|
||||||
|
attempted expansion Make sure we have 2 matches before calling
|
||||||
|
strcmp().
|
||||||
|
- Always NULL terminate the argv[] array. From OpenBSD.
|
||||||
|
- PR/48821: If called from tty_stty(), recalculate flags.
|
||||||
|
- more tty modes refactoring, no functional change intended.
|
||||||
|
- Factor out some common code (more to be done) from PR/48821
|
||||||
|
- Add An to authors. Wording.
|
||||||
|
- Add a history function that takes a FILE pointer; needed for
|
||||||
|
Capsicum. From Eitan Adler
|
||||||
|
- Add missing EL_REFRESH
|
||||||
|
- ... if called prior to using_history(). This needed to be
|
||||||
|
worked around in PHP:
|
||||||
|
http://git.php.net/?p=php-src.git;a=commitdiff;h=31d67bd3
|
||||||
|
- get rid of PATH_MAX.
|
||||||
|
- cast to avoid warning.
|
||||||
|
- Add a function to move the cursor.
|
||||||
|
- expose rl_catch_signals and explain what we are doing.
|
||||||
|
- Test early for EOF to avoid infinite loop in the wide char
|
||||||
|
case. From Linas Vepstas: linasvepstas at gmail dot com
|
||||||
|
- provide an el_init_fd function.
|
||||||
|
- explicitly pass (void *)0 instead of NULL.
|
||||||
|
- Add FILES section. From jmc@OpenBSD.
|
||||||
|
- In 2000, .editrc reading from $PWD was removed. Update the man
|
||||||
|
page. From LEVAI Daniel via jmc@OpenBSD.
|
||||||
|
- remove dead assignment (Christoph Mallon)
|
||||||
|
- Fix pasto that affected bind -k (Christoph Mallon)
|
||||||
|
- Add trailing NULL's to the varargs functions as required. (John
|
||||||
|
Spencer)
|
||||||
|
- PR/46945: Steffen Nurpmeso; el_getc() doesn't document it's
|
||||||
|
setting errno
|
||||||
|
- return !OKCMD on error.
|
||||||
|
- PR/46942: Steffen Nurpmeso: editline(3): el_get(): fix
|
||||||
|
UNBUFFERED return
|
||||||
|
- PR/46941: Steffen Nurpmeso: document EL_BUFFERED
|
||||||
|
- PR/46935: Steffen Nurpmeso: editline(3) (libedit): faulty errno
|
||||||
|
handling, faulty reuse of val in wrong context
|
||||||
|
- Don't depend on HAVE_GCC being always defined.
|
||||||
|
- From Kamil Dudka: fix crash of el_insertstr() on incomplete
|
||||||
|
multi-byte
|
||||||
|
- PR/46678: Ian Wienand: Add stub implementation for
|
||||||
|
rl_free_line_state()
|
||||||
|
- don't crash if add_history is called from an empty line. Called
|
||||||
|
from nslookup in new bind. XXX: pullup to 6
|
||||||
|
- Switch from Op to Oo/Oc for nested block.
|
||||||
|
- remove stdint.h; it is not used.
|
||||||
|
- don't include both term.h and termcap.h
|
||||||
|
- define the new variable
|
||||||
|
- Add rl_completion_word_break_hook from:
|
||||||
|
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/\
|
||||||
|
5ec6a45fa762b8cbd0305ca06acb8780335a486a
|
||||||
|
- save and restore the tty settings on entry and exit
|
||||||
|
respectively. cleanup debugging printfs.
|
||||||
|
- From: Jilles Tjoelker: Add a mapping for the cursor delete key
|
||||||
|
- From Jilles Tjoelker: Do not move the cursor for
|
||||||
|
ed-delete-next-char in emacs mode. This makes
|
||||||
|
ed-delete-next-char suitable for mapping to the <Delete> key.
|
||||||
|
Behaviour in vi mode is unchanged (for 'x').
|
||||||
|
- These directories default to WARNS?=5
|
||||||
|
- Use C89 functions definitions.
|
||||||
|
- Use C89 functions definitions. Remove use of __P
|
||||||
|
- include the NULL in the argv conversion
|
||||||
|
- use arraycount
|
||||||
|
- PR/45843: Henning Petersen: Fix resource leak on error.
|
||||||
|
- Add coverity annotations about unreachable code (Kamil Dudka)
|
||||||
|
- Add missing *
|
||||||
|
- Initialize termbuf (Kamil Dudka)
|
||||||
|
- Initialize res (Kamil Dudka)
|
||||||
|
- check for negative return of ct_visual_char (Kamil Dudka)
|
||||||
|
- Off by one in allocation could cause buffer overflow (Kamil
|
||||||
|
Dudka)
|
||||||
|
- remove unrecheable code (Kamil Dudka)
|
||||||
|
- easier with an int for now.
|
||||||
|
- Since Width() is used only for display purposes we don't want
|
||||||
|
to pass -1 for unprintable characters.
|
||||||
|
- Fixed misplaced parenthesis (Nirbhay Choubey)
|
||||||
|
- fixed warnings where wint_t is unsigned.
|
||||||
|
- fix broken change (parenthesis in the wrong place). From
|
||||||
|
Nirbhay Choubey
|
||||||
|
- include <wchar.h> if we don't have wcsdup()
|
||||||
|
- NULL does not need a cast, here
|
||||||
|
- re-enable -Wconversion
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Mar 13 01:51:31 UTC 2012 - crrodriguez@opensuse.org
|
Tue Mar 13 01:51:31 UTC 2012 - crrodriguez@opensuse.org
|
||||||
|
|
||||||
|
13
libedit.spec
13
libedit.spec
@ -17,10 +17,10 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: libedit
|
Name: libedit
|
||||||
Version: 3.0.snap20110802
|
Version: 3.1.snap20140620
|
||||||
Release: 0
|
Release: 0
|
||||||
%define pkg_name libedit
|
%define pkg_name libedit
|
||||||
%define pkg_version 20110802-3.0
|
%define pkg_version 20140620-3.1
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
@ -30,9 +30,8 @@ BuildRequires: ncurses-devel
|
|||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
#
|
#
|
||||||
Url: http://www.thrysoee.dk/editline/
|
Url: http://www.thrysoee.dk/editline/
|
||||||
# http://www.thrysoee.dk/editline/%{pkg_name}-%{pkg_version}.tar.gz
|
Source: http://thrysoee.dk/editline/libedit-%{pkg_version}.tar.gz
|
||||||
Source: %{pkg_name}-%{pkg_version}.tar.gz
|
Source1: README.SUSE
|
||||||
Source1: README.SuSE
|
|
||||||
Source2: baselibs.conf
|
Source2: baselibs.conf
|
||||||
Patch2: libedit-20100424-3.0-ncurses.patch
|
Patch2: libedit-20100424-3.0-ncurses.patch
|
||||||
Patch3: libedit-ocloexec.patch
|
Patch3: libedit-ocloexec.patch
|
||||||
@ -78,7 +77,7 @@ This package holds the development files for libedit.
|
|||||||
%setup -q -n %{pkg_name}-%{pkg_version}
|
%setup -q -n %{pkg_name}-%{pkg_version}
|
||||||
%{__cp} %{S:1} .
|
%{__cp} %{S:1} .
|
||||||
%patch2
|
%patch2
|
||||||
%patch3 -p1
|
%patch3
|
||||||
%patch4 -p1
|
%patch4 -p1
|
||||||
%build
|
%build
|
||||||
NOCONFIGURE=1 autoreconf -fiv
|
NOCONFIGURE=1 autoreconf -fiv
|
||||||
@ -104,7 +103,7 @@ make check
|
|||||||
%{_libdir}/libedit.so.%{soname}
|
%{_libdir}/libedit.so.%{soname}
|
||||||
%{_libdir}/libedit.so.%{soname}.*
|
%{_libdir}/libedit.so.%{soname}.*
|
||||||
%{_mandir}/man5/editrc.5%{ext_man}
|
%{_mandir}/man5/editrc.5%{ext_man}
|
||||||
%doc README.SuSE THANKS ChangeLog COPYING examples/*c
|
%doc README.SUSE THANKS ChangeLog COPYING examples/*c
|
||||||
|
|
||||||
%files -n libedit-devel
|
%files -n libedit-devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
Loading…
Reference in New Issue
Block a user