Subject: pkg/32955: hobbitmon package exits configure when using bash as shell
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <netbsd@eq.cz>
List: pkgsrc-bugs
Date: 02/28/2006 21:20:01
>Number:         32955
>Category:       pkg
>Synopsis:       hobbitmon package exits configure when using bash as shell
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 28 21:20:00 +0000 2006
>Originator:     rudolf
>Release:        
>Organization:
>Environment:
Slackware Linux
>Description:
The net/hobbitmon package from pkgsrc exits configure when using bash as /bin/sh shell - this is the case with Slackware Linux. The problematic part of the configure script looks like:

if ...
then
...
else
#
#
fi

(the hash signs are actually injected by patch-ae).

>How-To-Repeat:
Try to install hobbitmon from pkgsrc on with bash as /bin/sh.
>Fix:
comment out also the ``else'' with patch-ae:
--- configure.orig      2005-01-23 14:15:22.000000000 +0100
+++ configure   2006-02-28 22:08:55.000000000 +0100
@@ -216,9 +216,9 @@
                if test $? -eq 0
                then
                        echo "Found passwd entry for user $USERDATA"
-               else
-                       echo "FAILURE: The user $BBUSER does not exist. Create user and try again."
-                       exit 1
+#              else
+#                      echo "FAILURE: The user $BBUSER does not exist. Create user and try again."
+#                      exit 1
                fi
                echo ""; echo ""