Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Feb 2004 10:28:45 +0100 (CET)
From:      Jean-Baptiste Quenot <jb.quenot@caraldi.com>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        kirk@strauser.com
Subject:   shells/bash-completion requires textproc/gsed
Message-ID:  <200402180928.i1I9Sjal034486@oxyd.caraldi.com>

next in thread | raw e-mail | index | archive | help

>Submitter-Id:	current-users
>Originator:	Jean-Baptiste Quenot
>Confidential:	no
>Synopsis:	shells/bash-completion requires textproc/gsed
>Severity:	serious
>Priority:	medium
>Category:	ports
>Class:		sw-bug
>Release:	FreeBSD 5.1-RELEASE i386
>Environment:
System: FreeBSD oxyd.caraldi.com 5.1-RELEASE FreeBSD 5.1-RELEASE #0: Thu Jun 5 02:55:42 GMT 2003 root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC i386
>Description:
Bash Completion uses GNU extensions that FreeBSD sed does not have.  GNU sed
and BSD sed are very different, and incompatible.  Setting up a runtime
dependency on gsed when installing bash-completion ensures that all completions
are functional, and that Bash Completion behaves consistently between operating
systems.

This problem has already been [1]discussed (no action from maintainer has
happened so far), and the bash-completion [2]Changelog mentions the use of gsed
when found on non-Linux systems.

[1] http://lists.freebsd.org/pipermail/freebsd-ports/2003-November/006140.html
[2] http://www.caliban.org/files/bash/Changelog
>How-To-Repeat:
When gsed is not installed, many completions do not work, like killall, screen,
and many more that would be too long to list here.  Installing gsed and
sourcing the bash_completion script again solves the problem.
>Fix:
Apply the following patch:
---------------------------------------8<-------------------------------
--- /usr/ports/shells/bash-completion/Makefile	Fri Feb  6 14:12:20 2004
+++ Makefile-bash-completion	Wed Feb 18 10:19:15 2004
@@ -14,6 +14,8 @@
 COMMENT=	Programmable completion library for Bash 2.04 and up
 
 RUN_DEPENDS=	bash:${PORTSDIR}/shells/bash2
+# Make all completions available as BSD sed is incompatible with GNU sed
+RUN_DEPENDS+=	gsed:${PORTSDIR}/textproc/gsed
 
 WRKSRC=		${WRKDIR}/bash_completion
 NO_BUILD=	yes
---------------------------------------8<-------------------------------
Thank  you for  maintaining the  bash completion  port for  FreeBSD.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402180928.i1I9Sjal034486>