Package: rinse
Version: 1.1-1
Severity: normal
Tags: patch
User: [EMAIL PROTECTED]
Usertags: origin-ubuntu hardy ubuntu-patch

Several rinse scripts contain bashisms which do not work properly
on systems where /bin/sh is linked to /bin/dash.

In Ubuntu, we've applied the attached patch to achieve the following:
  * Fixed a shell syntax/compat problem.

Even if Debian is not direcly affected yet (it will when moving to
/bin/dash by default), we thought you might be interested in doing
the same for compatibility purposes.


-- 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
--- rinse-1.1.orig/tests/modules.sh
+++ rinse-1.1/tests/modules.sh
@@ -29,6 +29,6 @@
     do \
      echo "BEGIN{ use_ok( '$i' ); }"; \
      echo "require_ok( '$i' );" ; \
-     echo -e "\n" ; \
+     print "\n" ; \
 done
 
only in patch2:
unchanged:
--- rinse-1.1.orig/scripts/centos-4/post-install.sh
+++ rinse-1.1/scripts/centos-4/post-install.sh
@@ -27,7 +27,7 @@
 #  2.  Setup yum.conf
 #
 arch=i386
-if [ $ARCH == "amd64" ] ; then
+if [ "$ARCH" = "amd64" ] ; then
     arch=x86_64
 fi
 
only in patch2:
unchanged:
--- rinse-1.1.orig/scripts/centos-5/post-install.sh
+++ rinse-1.1/scripts/centos-5/post-install.sh
@@ -11,7 +11,7 @@
 fi
 
 arch=i386
-if [ $ARCH == "amd64" ] ; then
+if [ "$ARCH" = "amd64" ] ; then
        arch=x86_64
 fi
 
only in patch2:
unchanged:
--- rinse-1.1.orig/scripts/fedora-core-4/post-install.sh
+++ rinse-1.1/scripts/fedora-core-4/post-install.sh
@@ -48,7 +48,7 @@
 #  3.  Ensure that Yum has a working configuration file.
 #
 arch=i386
-if [ $ARCH == "amd64" ] ; then
+if [ "$ARCH" = "amd64" ] ; then
     arch=x86_64
 fi
 
only in patch2:
unchanged:
--- rinse-1.1.orig/scripts/fedora-core-5/post-install.sh
+++ rinse-1.1/scripts/fedora-core-5/post-install.sh
@@ -48,7 +48,7 @@
 #  3.  Ensure that Yum has a working configuration file.
 #
 arch=i386
-if [ $ARCH == "amd64" ] ; then
+if [ "$ARCH" = "amd64" ] ; then
     arch=x86_64
 fi
 
only in patch2:
unchanged:
--- rinse-1.1.orig/scripts/fedora-core-6/post-install.sh
+++ rinse-1.1/scripts/fedora-core-6/post-install.sh
@@ -48,7 +48,7 @@
 #  3.  Ensure that Yum has a working configuration file.
 #
 arch=i386
-if [ $ARCH == "amd64" ] ; then
+if [ "$ARCH" = "amd64" ] ; then
     arch=x86_64
 fi
 
only in patch2:
unchanged:
--- rinse-1.1.orig/scripts/fedora-core-7/post-install.sh
+++ rinse-1.1/scripts/fedora-core-7/post-install.sh
@@ -48,7 +48,7 @@
 #  3.  Ensure that Yum has a working configuration file.
 #
 arch=i386
-if [ $ARCH == "amd64" ] ; then
+if [ "$ARCH" = "amd64" ] ; then
     arch=x86_64
 fi
 
only in patch2:
unchanged:
--- rinse-1.1.orig/scripts/fedora-core-8/post-install.sh
+++ rinse-1.1/scripts/fedora-core-8/post-install.sh
@@ -48,7 +48,7 @@
 #  3.  Ensure that Yum has a working configuration file.
 #
 arch=i386
-if [ $ARCH == "amd64" ] ; then
+if [ "$ARCH" = "amd64" ] ; then
     arch=x86_64
 fi
 

Reply via email to