Package: pbbuttonsd
Version: 0.7.9-2
Severity: normal
Tags: patch
'test A == B' is a bashism; 'test A = B' is the portable
near-equivalent. pbbuttonsd contains several uses of 'test A == B' or
the identical '[ A == B ]' in #! /bin/sh scripts. The attached patch
fixes these.
Thanks,
--
Colin Watson [EMAIL PROTECTED]
--- pbbuttonsd-0.7.9.orig/configure
+++ pbbuttonsd-0.7.9/configure
@@ -4432,7 +4432,7 @@
withval="$with_pmud"
pbb_with_pmud=$withval
fi;
-if test "$pbb_with_pmud" == "yes"; then
+if test "$pbb_with_pmud" = "yes"; then
cat >>confdefs.h <<_ACEOF
#define WITH_PMUD 1
@@ -4448,7 +4448,7 @@
withval="$with_oss"
pbb_with_oss=$withval
fi;
-if test "$pbb_with_oss" == "yes"; then
+if test "$pbb_with_oss" = "yes"; then
cat >>confdefs.h <<_ACEOF
#define WITH_OSS 1
@@ -4463,7 +4463,7 @@
withval="$with_alsa"
pbb_with_alsa=$withval
fi;
-if test "$pbb_with_alsa" == "yes"; then
+if test "$pbb_with_alsa" = "yes"; then
alsa_save_CFLAGS="$CFLAGS"
alsa_save_LDFLAGS="$LDFLAGS"
alsa_save_LIBS="$LIBS"
@@ -4720,7 +4720,7 @@
- if test "$pbb_have_alsa" == "yes"; then
+ if test "$pbb_have_alsa" = "yes"; then
cat >>confdefs.h <<_ACEOF
#define WITH_ALSA 1
@@ -4736,7 +4736,7 @@
withval="$with_ibam"
pbb_with_ibam=$withval
fi;
-if test "$pbb_with_ibam" == "yes"; then
+if test "$pbb_with_ibam" = "yes"; then
cat >>confdefs.h <<_ACEOF
#define WITH_IBAM 1
@@ -4755,7 +4755,7 @@
DEBUG_TRUE='#'
DEBUG_FALSE=
fi
-if test "$enable_debug" == "yes"; then
+if test "$enable_debug" = "yes"; then
PB_OBJECTS+=" module_peep.$OBJEXT"
fi
@@ -13468,33 +13468,33 @@
echo -e "System: $ac_laptop\n"
echo -e "Options:"
echo -n " pmud support "
-if test "$pbb_with_pmud" == "yes"; then
+if test "$pbb_with_pmud" = "yes"; then
echo "enabled"
else
echo "disabled"
fi
echo -n " OSS support "
-if test "$pbb_with_oss" == "yes"; then
+if test "$pbb_with_oss" = "yes"; then
echo "enabled"
else
echo "disabled"
fi
echo -n " ALSA support "
-if test "$pbb_have_alsa" == "yes"; then
+if test "$pbb_have_alsa" = "yes"; then
echo "enabled"
-elif test "$pbb_with_alsa" == "yes"; then
+elif test "$pbb_with_alsa" = "yes"; then
echo "not available (development files?)"
else
echo "disabled"
fi
echo -n " IBAM support "
-if test "$pbb_with_ibam" == "yes"; then
+if test "$pbb_with_ibam" = "yes"; then
echo "enabled"
else
echo "disabled"
fi
echo -n " Debug mode "
-if test "$enable_debug" == "yes"; then
+if test "$enable_debug" = "yes"; then
echo "enabled"
else
echo "disabled"
--- pbbuttonsd-0.7.9.orig/configure.in
+++ pbbuttonsd-0.7.9/configure.in
@@ -60,7 +60,7 @@
pbb_with_pmud=no
AC_ARG_WITH(pmud, [ --with-pmud use pmud as low level power manager (default=no)],
pbb_with_pmud=$withval, )
-if test "$pbb_with_pmud" == "yes"; then
+if test "$pbb_with_pmud" = "yes"; then
AC_DEFINE_UNQUOTED(WITH_PMUD, 1, [use pmud as basement])
PB_OBJECTS+="tcp.$OBJEXT"
fi
@@ -68,16 +68,16 @@
pbb_with_oss=yes
AC_ARG_WITH(oss, [ --with-oss enable OSS support in pbbuttonsd (default=yes)],
pbb_with_oss=$withval, )
-if test "$pbb_with_oss" == "yes"; then
+if test "$pbb_with_oss" = "yes"; then
AC_DEFINE_UNQUOTED(WITH_OSS, 1, [enable OSS support])
fi
pbb_with_alsa=yes
AC_ARG_WITH(alsa, [ --with-alsa enable ALSA support in pbbuttonsd (default=yes)],
pbb_with_alsa=$withval, )
-if test "$pbb_with_alsa" == "yes"; then
+if test "$pbb_with_alsa" = "yes"; then
AM_PATH_ALSA(1.0.0, [pbb_have_alsa=yes], [pbb_have_alsa=no])
- if test "$pbb_have_alsa" == "yes"; then
+ if test "$pbb_have_alsa" = "yes"; then
AC_DEFINE_UNQUOTED(WITH_ALSA, 1, [enable ALSA support])
fi
fi
@@ -85,14 +85,14 @@
pbb_with_ibam=yes
AC_ARG_WITH(ibam, [ --with-ibam enable IBAM support in pbbuttonsd (default=yes)],
pbb_with_ibam=$withval, )
-if test "$pbb_with_ibam" == "yes"; then
+if test "$pbb_with_ibam" = "yes"; then
AC_DEFINE_UNQUOTED(WITH_IBAM, 1, [enable IBAM support])
PB_OBJECTS+=" ibam_stub.$OBJEXT"
PB_LIBS+=" -lstdc++"
fi
AM_CONDITIONAL(DEBUG, test "$enable_debug" = yes)
-if test "$enable_debug" == "yes"; then
+if test "$enable_debug" = "yes"; then
PB_OBJECTS+=" module_peep.$OBJEXT"
fi
@@ -157,33 +157,33 @@
echo -e "System: $ac_laptop\n"
echo -e "Options:"
echo -n " pmud support "
-if test "$pbb_with_pmud" == "yes"; then
+if test "$pbb_with_pmud" = "yes"; then
echo "enabled"
else
echo "disabled"
fi
echo -n " OSS support "
-if test "$pbb_with_oss" == "yes"; then
+if test "$pbb_with_oss" = "yes"; then
echo "enabled"
else
echo "disabled"
fi
echo -n " ALSA support "
-if test "$pbb_have_alsa" == "yes"; then
+if test "$pbb_have_alsa" = "yes"; then
echo "enabled"
-elif test "$pbb_with_alsa" == "yes"; then
+elif test "$pbb_with_alsa" = "yes"; then
echo "not available (development files?)"
else
echo "disabled"
fi
echo -n " IBAM support "
-if test "$pbb_with_ibam" == "yes"; then
+if test "$pbb_with_ibam" = "yes"; then
echo "enabled"
else
echo "disabled"
fi
echo -n " Debug mode "
-if test "$enable_debug" == "yes"; then
+if test "$enable_debug" = "yes"; then
echo "enabled"
else
echo "disabled"
--- pbbuttonsd-0.7.9.orig/scripts/pmcs-apmd
+++ pbbuttonsd-0.7.9/scripts/pmcs-apmd
@@ -30,7 +30,7 @@
case "$1" in
start)
- if [ "$PWR" == "battery" ]; then
+ if [ "$PWR" = "battery" ]; then
run-parts --arg="powersave" --arg="$PWR" event.d
else
run-parts --arg="performance" --arg="$PWR" event.d
@@ -42,7 +42,7 @@
wall "Low battery - system will go down now!"
;;
power)
- if [ "$PWR" == "battery" ]; then
+ if [ "$PWR" = "battery" ]; then
run-parts --arg="powersave" --arg="$PWR" event.d
else
run-parts --arg="performance" --arg="$PWR" event.d