Package: axyl Version: 2.5.0 Severity: normal Tags: patch User: [EMAIL PROTECTED] Usertags: origin-ubuntu hardy ubuntu-patch
axyl-lucene fails to configure in systems with /bin/sh linked to /bin/dash due to bashisms in install/axyl-common-funcs.sh. See https://launchpad.net/bugs/222000 for more details. In Ubuntu, we've applied the attached patch to achieve the following: * install/axyl-common-funcs.sh: - Fix bashisms which caused errors in configure phase. Even if Debian is not affected (not for now, it will when moving to /bin/dash), we thought you might be interested in doing the same. -- System Information: Debian Release: lenny/sid APT prefers intrepid APT policy: (500, 'intrepid') Architecture: i386 (i686) Kernel: Linux 2.6.24-16-generic (SMP w/1 CPU core) Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff -Nru axyl-2.5.0/install/axyl-common-funcs.sh axyl-2.5.0ubuntu1/install/axyl-common-funcs.sh --- axyl-2.5.0/install/axyl-common-funcs.sh 2008-05-05 08:52:13.000000000 +0200 +++ axyl-2.5.0ubuntu1/install/axyl-common-funcs.sh 2008-06-17 13:21:30.000000000 +0200 @@ -183,7 +183,7 @@ # If interactive mode then echo message, else dont. We cater for being # called from a Debian postinst here, by checking for the telltale # var DEBIAN_FRONTEND being set, othersie just a straight shell echo. -function tell () { +tell () { if [ "$DEBIAN_FRONTEND" ] ; then if [ "$DEBIAN_FRONTEND" != "noninteractive" ] ; then if [ "$1" = "-n" ] ; then @@ -210,7 +210,7 @@ # cater for being called from a Debian postinst here, by checking for the # telltale var DEBIAN_FRONTEND being set. If we are not in an interative # mode then we return $1 - which should be the required default. -function getans () { +getans () { ANS=$1 if [ "$DEBIAN_FRONTEND" ] ; then if [ "$DEBIAN_FRONTEND" != "noninteractive" ] ; then @@ -228,7 +228,7 @@ # the logfile file-name is required. The directory is always assumed # to be what $AXYL_LOGS is defined as. If it isn't defined, then # /var/log/axyl is used as a failsafe. -function mklogfile() { +mklogfile() { if [ "$1" != "" ] ; then logfile=$1 if [ -z $AXYL_LOGS ] ; then @@ -256,7 +256,7 @@ # Log a given message. If a global $LOGFILE variable is available, and # exists as a file, then log to that. In any case also log the message # to the syslog. -function logit() { +logit() { if [ "$SCRIPTNAME" = "" ] ; then SCRIPTNAME=AXYL fi @@ -273,7 +273,7 @@ # ........................................................................... # Variable substitution in a directory tree.. -function sub_vars () { +sub_vars () { A=`find $1 -type f -exec grep -l "$2" {} \;` if [ "$A" != "" ]; then wrk=`tempfile --prefix sub` @@ -302,7 +302,7 @@ # find_location_of directory bin in /usr/lib/postgresql /usr /usr/local # find_location_of file pg_hba.conf in /etc/postgresql /var/lib/postgresql -function find_location_of () { +find_location_of () { LOC= recog_item_type=$1 recog_item_name=$2