shells/bash-completion requires textproc/gsed

Jean-Baptiste Quenot jb.quenot at caraldi.com
Wed Feb 18 01:28:47 PST 2004


>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 at 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.


More information about the freebsd-ports mailing list