[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ports/1558: bash2 port deinstall script fails due to invalid shell line




>Number:         1558
>Category:       ports
>Synopsis:       bash2 port deinstall script fails due to invalid shell line
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 12 10:00:02 MST 2000
>Last-Modified:
>Originator:     Dimitry Andric
>Organization:
net
>Release:        2.04
>Environment:
	
	System      : OpenBSD 2.8
	Architecture: OpenBSD.i386
	Machine     : i386
>Description:
The bash2 port's DEINSTALL script starts with the line:

	#!/bin/sh2

and therefore it gives an error with pkg_delete:

	sh: ./+DEINSTALL: No such file or directory

The deinstallation can of course be forced with -f, but it's rather
ugly. :)
>How-To-Repeat:
pkg_add bash-2.04.tgz (or bash-2.04-static.tgz)
pkg_delete bash-2.04
>Fix:
diff -u /usr/ports/shells/bash2/pkg/DEINSTALL DEINSTALL 
--- /usr/ports/shells/bash2/pkg/DEINSTALL       Mon Aug  7 08:23:45 2000
+++ DEINSTALL   Tue Dec 12 17:46:35 2000
@@ -1,4 +1,4 @@
-#!/bin/sh2
+#!/bin/sh
 # $OpenBSD: DEINSTALL,v 1.2 2000/07/19 09:31:23 brad Exp $
 #
 # bash2 de-installation

>Audit-Trail:
>Unformatted: