debian/0000755000000000000000000000000011320127553007165 5ustar debian/copyright0000644000000000000000000000223611320125522011115 0ustar This package was debianized by Jim Studt on Fri, 5 May 2000 13:25:51 -0500. It was received from Rich Salz rsalz@shore.net Upstream Author: Rich Salz rsalz@shore.net Copyright: Copyright 1992,1993 Simmule Turner and Rich Salz. All rights reserved. This software is not subject to any license of the American Telephone and Telegraph Company or of the Regents of the University of California. Permission is granted to anyone to use this software for any purpose on any computer system, and to alter it and redistribute it freely, subject to the following restrictions: 1. The authors are not responsible for the consequences of use of this software, no matter how awful, even if they arise from flaws in it. 2. The origin of this software must not be misrepresented, either by explicit claim or by omission. Since few users ever read sources, credits must appear in the documentation. 3. Altered versions must be plainly marked as such, and must not be misrepresented as being the original software. Since few users ever read sources, credits must appear in the documentation. 4. This notice may not be removed or altered. debian/patches/0000755000000000000000000000000011320127553010614 5ustar debian/patches/200_fix-truncation-at-64-char.diff0000644000000000000000000000105011320127063016535 0ustar diff --git a/editline.c b/editline.c index c8e0a2b..25815e9 100644 --- a/editline.c +++ b/editline.c @@ -1024,9 +1024,11 @@ read_redirected() for (size = MEM_INC, p = line = NEW(char, size), end = p + size; ; p++) { if (p == end) { + int lengthSoFar = p - line; size += MEM_INC; - p = line = realloc(line, size); - end = p + size; + line = realloc(line, size); + p = line + lengthSoFar; + end = line + size; } if (read(0, p, 1) <= 0) { /* Ignore "incomplete" lines at EOF, just like we do for a tty. */ debian/patches/100_oldpatch.diff0000644000000000000000000000722311320126270013623 0ustar --- editline-1.12.orig/editline.c +++ editline-1.12/editline.c @@ -5,6 +5,7 @@ #include "editline.h" #include #include +#include /* ** Manifest constants. @@ -104,8 +105,10 @@ ** Declarations. */ STATIC CHAR *editinput(); +#if 0 extern int read(); extern int write(); +#endif #if defined(USE_TERMCAP) extern char *getenv(); extern char *tgetstr(); --- editline-1.12.orig/include_editline.h +++ editline-1.12/include_editline.h @@ -0,0 +1,2 @@ +extern char *readline(); +extern void add_history(); --- editline-1.12.orig/libeditline.la +++ editline-1.12/libeditline.la @@ -0,0 +1,35 @@ +# libeditline.la - a libtool library file +# Generated by ltmain.sh - GNU libtool 1.5.2 (1.1220.2.60 2004/01/25 12:25:08) Debian: 192 $ +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# The name that we can dlopen(3). +dlname='libeditline.so.0' + +# Names of this library. +library_names='libeditline.so.0.0.0 libeditline.so.0 libeditline.so' + +# The name of the static archive. +old_library='libeditline.a' + +# Libraries that this one depends upon. +dependency_libs='' + +# Version information for libeditline. +current=0 +age=0 +revision=0 + +# Is this an already installed library? +installed=no + +# Should we warn about portability when linking against -modules? +shouldnotlink=no + +# Files to dlopen/dlpreopen +dlopen='' +dlpreopen='' + +# Directory that this library needs to be installed in: +libdir='/usr/lib' --- editline-1.12.orig/Makefile +++ editline-1.12/Makefile @@ -17,8 +17,10 @@ ## -DUSE_TERMCAP Use the termcap library for terminal size ## see LDFLAGS, below, if you set this. ## -DNEED_PERROR Don't have perror() (used in testit) + ## -DDO_SIGTSTP Send SIGTSTP on "suspend" key DEFS = -DANSI_ARROWS -DHAVE_STDLIB -DHAVE_TCGETATTR -DHIDE -DUSE_DIRENT -DSYS_UNIX -DNEED_STRDUP +DEFS = -DANSI_ARROWS -DHAVE_STDLIB -DHAVE_TCGETATTR -DHIDE -DUSE_DIRENT -DSYS_UNIX ## Set your C compiler: WARN = -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wwrite-strings \ @@ -26,7 +28,7 @@ CC = gcc -ansi $(WARN) #CFLAGS = $(DEFS) -O -g #CC = gcc -CFLAGS = $(DEFS) -g +CFLAGS = $(DEFS) -D_POSIX_SOURCE -D_BSD_SOURCE ## If you have -DUSE_TERMCAP, set this as appropriate: #LDFLAGS = -ltermlib @@ -41,18 +43,31 @@ SOURCES = editline.c complete.c sysunix.c OBJECTS = editline.o complete.o sysunix.o -all: libedit.a +all: libeditline.a libeditline.la + +testit: testit.c libeditline.a + $(CC) $(CFLAGS) -o testit testit.c libeditline.a $(LDFLAGS) + +editline.o editline.lo : editline.c + libtool --mode=compile $(CC) $(CFLAGS) -c $< -testit: testit.c libedit.a - $(CC) $(CFLAGS) -o testit testit.c libedit.a $(LDFLAGS) +complete.o complete.lo : complete.c + libtool --mode=compile $(CC) $(CFLAGS) -c $< + +sysunix.o sysunix.lo : sysunix.c + libtool --mode=compile $(CC) $(CFLAGS) -c $< shar: FORCE shar `sed -e 1,2d -e 's/[ ].*//' shar +install: + install -m644 libeditline.a $(DESTDIR)/usr/lib/ + libtool --mode=install install -c libeditline.la $(DESTDIR)/usr/lib/libeditline.la + FORCE: clean: - rm -f *.[oa] testit foo core tags lint lint.all a.out Part01 + rm -rf *.[oa] *.lo testit foo core tags lint lint.all a.out Part01 .libs lint: testit lint -a -b -u -x $(DEFS) $(SOURCES) testit.c >lint.all @@ -61,9 +76,10 @@ -e '/mix of old and new style function declaration/'d \ lint -libedit.a: $(OBJECTS) - @rm -f $@ - ar r $@ $(OBJECTS) - $(RANLIB) $@ +#libedit.a: $(OBJECTS) +# libtool $(CC) $(LDFLAGS) -o $@ $^ + +libeditline.a libeditline.la : $(OBJECTS:.o=.lo) + libtool --mode=link $(CC) -rpath /usr/lib $(LDFLAGS) -version-info 0:0:0 -o $@ $^ $(OBJECTS): editline.h debian/patches/series0000644000000000000000000000006511320127177012034 0ustar 100_oldpatch.diff 200_fix-truncation-at-64-char.diff debian/rules0000755000000000000000000000246711320126561010254 0ustar #!/usr/bin/make -f # Sample debian/rules that uses debhelper. # GNU copyright 1997 to 1999 by Joey Hess. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # shared library versions, option 1 version=0.0.0 major=0 build: build-stamp build-stamp: dh_testdir $(MAKE) touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp [ ! -f Makefile ] || $(MAKE) clean dh_clean install: build dh_testdir dh_testroot dh_clean -k dh_installdirs $(MAKE) install DESTDIR=`pwd`/debian/libeditline-dev cp include_editline.h \ `pwd`/debian/libeditline-dev/usr/include/editline.h binary-indep: build install binary-arch: build install dh_testdir dh_testroot # build libeditline${major} package by moving files from editline-dev dh_movefiles --sourcedir=debian/libeditline-dev \ -plibeditline$(major) \ usr/lib/libeditline.so.$(major) \ usr/lib/libeditline.so.$(version) dh_installdocs dh_installexamples dh_installmenu dh_installmanpages rm -rf debian/libeditline0/usr/share/man/ dh_installcron dh_installinfo dh_installchangelogs dh_link dh_strip dh_compress dh_fixperms dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install debian/compat0000644000000000000000000000000211320125754010364 0ustar 5 debian/README.Debian0000644000000000000000000000052511320125522011222 0ustar editline for Debian ---------------------- This is packaged in typical Debian form with a shared library version and a static library version. It will be a rare package that wishes to use the shared library form, the static one is only adds about 12.5kb to your program. -- Jim Studt , Fri, 5 May 2000 13:25:51 -0500 debian/source/0000755000000000000000000000000011320127553010465 5ustar debian/source/format0000644000000000000000000000001411320125635011672 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000355611320127526011050 0ustar editline (1.12-6) unstable; urgency=low * Switch package format to 3.0 (quilt). * 200_fix-truncation-at-64-char.diff: fix invalid 64-char truncation in batch mode, courtesy of Mark O'Donohue. Thanks to Damyan Ivanov for forwarding the patch from Ubuntu (Closes: #508640). -- Sam Hocevar Sun, 03 Jan 2010 15:45:34 +0100 editline (1.12-5) unstable; urgency=low * New maintainer (Closes: #229962). * debian/changelog: + Removed emacs helper variables. * debian/control: + Set policy to 3.6.1.0. + Set debhelper build dependency to (>= 4.0). + Use the default dh_shlibs information, since the API is rock stable (Closes: #131139). + Removed the libc6-dev dependency in the -dev package. + Rephrased the short and long descriptions. * debian/copyright: + Replaced "Author(s)" with "Author". * debian/rules: + Removed obsolete call to dh_suidregister. + Use debian/compat instead of DH_COMPAT. * include_editline.h: + Added a minimalist /usr/include/editline.h (Closes: #129544). * Makefile: + Call libtool with the proper --mode flags. -- Sam Hocevar (Debian packages) Sat, 31 Jan 2004 22:32:35 +0100 editline (1.12-4) unstable; urgency=low * Add a Build-Depends for debhelper and libtool. Thought those were baseline. closes: #117780 -- Jim Studt Thu, 15 Nov 2001 19:00:00 -0600 editline (1.12-3) unstable; urgency=low * Make man pages not be in the shared library package. -- Jim Studt Sat, 13 Jan 2001 00:03:53 -0600 editline (1.12-2) unstable; urgency=low * Patch to not declare read() and write(), it fails on alphas. -- Jim Studt Tue, 12 Sep 2000 16:39:34 -0500 editline (1.12-1) unstable; urgency=low * Initial Release. -- Jim Studt Fri, 5 May 2000 13:25:51 -0500 debian/docs0000644000000000000000000000000711320125522010027 0ustar README debian/control0000644000000000000000000000213411320125745010571 0ustar Source: editline Section: devel Priority: optional Build-Depends: debhelper (>= 5.0), libtool Maintainer: Sam Hocevar Standards-Version: 3.8.3 Package: libeditline-dev Architecture: any Section: libdevel Depends: libeditline0 (= ${binary:Version}), ${misc:Depends} Description: development files for libeditline This is a line-editing library. It can be linked into almost any program to provide command-line editing and recall. It is call-compatible with a subset of the FSF readline library, but it is a fraction of the size (and offers fewer features). . This package contains the developer files: static libraries, headers, manpages. Package: libeditline0 Architecture: any Section: libs Depends: ${shlibs:Depends}, ${misc:Depends} Description: line editing library similar to readline This is a line-editing library. It can be linked into almost any program to provide command-line editing and recall. It is call-compatible with a subset of the FSF readline library, but it is a fraction of the size (and offers fewer features). . This package contains the runtime library only. debian/dirs0000644000000000000000000000002411320125522010037 0ustar usr/lib usr/include debian/editline1.files0000644000000000000000000000001711320125522012057 0ustar usr/lib/*.so.*