Package: rlwrap Version: 0.28-2.1 Severity: normal Hi, I've raised a few days ago the proposal of a new virtual package (and executable) called "readline-editor" [1]. As no complains were raised, I've moved to action :-)
The "ledit" package I'm responsible for has already been patched (though not yet uploaded) to provide readline-editor at priority 40, i.e., a low one [2]. Attached you can find a patch which add similar support to rlwrap, placing it as a higher priority of 60, since I believe rlwrap is superior in features to ledit. Please consider applying the given patch. Cheers. [1] http://lists.debian.org/debian-devel/2009/04/msg00231.html [2] http://git.debian.org/?p=pkg-ocaml-maint/packages/ledit.git;a=commitdiff;h=b1ad084f091caeeb7028f22fe35bb675aefa2dcd -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores) Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages rlwrap depends on: ii libc6 2.9-6 GNU C Library: Shared libraries ii libncurses5 5.7+20090404-1 shared libraries for terminal hand ii libreadline5 5.2-4 GNU readline and history libraries rlwrap recommends no packages. rlwrap suggests no packages. -- no debconf information
diff -u rlwrap-0.28/debian/changelog rlwrap-0.28/debian/changelog --- rlwrap-0.28/debian/changelog +++ rlwrap-0.28/debian/changelog @@ -1,3 +1,12 @@ +rlwrap (0.28-2.1) unstable; urgency=low + + * Non-maintainer upload. + * Register rlwrap as a provider of "readline-editor". Make the package + both provide the corresponding virtual package and register as an + alternative for /usr/bin/readline-editor. + + -- Stefano Zacchiroli <z...@debian.org> Tue, 07 Apr 2009 14:25:40 +0200 + rlwrap (0.28-2) unstable; urgency=medium * Changed debian/rules to use $(CURDIR) instead of $(PWD) so package diff -u rlwrap-0.28/debian/control rlwrap-0.28/debian/control --- rlwrap-0.28/debian/control +++ rlwrap-0.28/debian/control @@ -8,6 +8,7 @@ Package: rlwrap Architecture: any Depends: ${shlibs:Depends} +Provides: readline-editor Description: readline feature command line wrapper This package provides a small utility that uses the GNU readline library to allow the editing of keyboard input for any other command. Input only in patch2: unchanged: --- rlwrap-0.28.orig/debian/rlwrap.prerm +++ rlwrap-0.28/debian/rlwrap.prerm @@ -0,0 +1,7 @@ +#!/bin/sh -e + +if [ "$1" != "upgrade" ]; then + update-alternatives --remove readline-editor /usr/bin/rlwrap +fi + +#DEBHELPER# only in patch2: unchanged: --- rlwrap-0.28.orig/debian/rlwrap.postinst +++ rlwrap-0.28/debian/rlwrap.postinst @@ -0,0 +1,11 @@ +#!/bin/sh -e + +case "$1" in + configure) + update-alternatives \ + --install /usr/bin/readline-editor readline-editor /usr/bin/rlwrap 60 \ + --slave /usr/share/man/man1/readline-editor.1.gz readline-editor.1.gz /usr/share/man/man1/rlwrap.1.gz + ;; +esac + +#DEBHELPER#