nasty bash bug in init.d/lirc script (0.8.5-0ubuntu2)

Bug #391726 reported by olx69
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lirc (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: lirc

I've compiled files from https://launchpad.net/ubuntu/karmic/+source/lirc/0.8.5-0ubuntu2, but with (lirc_0.8.5.tar.gz from lirc.org, which should be equal to lirc_0.8.5.orig.tar.gz). I build the package on ubuntu9.04 amd64.

On dpkg -i lirc_0.8.5-0ubuntu2_amd64 I run into errors:
/etc/init.d/lirc: 155: Syntax error: word unexpected (expected ")")

This solved the problem:

$ diff -Nur ./debian/lirc/etc/init.d/lirc~ ./debian/lirc/etc/init.d/lirc
--- ./debian/lirc/etc/init.d/lirc~ 2009-06-24 18:25:17.287210000 +0200
+++ ./debian/lirc/etc/init.d/lirc 2009-06-24 19:45:12.383210320 +0200
@@ -151,14 +151,12 @@
             start-stop-daemon --start --quiet --exec /usr/sbin/lircmd < /dev/null
             log_end_msg $?
         fi
- ;;
         if [ "$START_IREXEC" = "true" ]; then
             log_daemon_msg "Starting execution daemon: irexec"
             start-stop-daemon --start --quiet --exec /usr/bin/irexec -- -d /etc/lirc/lircrc < /dev/null
             log_end_msg $?
         fi
     fi
- ;;
     stop)
         if [ "$START_IREXEC" = "true" ]; then
             log_daemon_msg "Stopping execution daemon: irexec"

Maybe useful:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 9.04
Release: 9.04
Codename: jaunty

$ uname -a
Linux tux64 2.6.28-13-generic #44-Ubuntu SMP Tue Jun 2 07:55:09 UTC 2009 x86_64 GNU/Linux

Regards,
Olaf

Related branches

Revision history for this message
olx69 (ope-linux) wrote :

sorry, should be:

$ diff -Nur ./debian/lirc/etc/init.d/lirc~ ./debian/lirc/etc/init.d/lirc
--- ./debian/lirc/etc/init.d/lirc~ 2009-06-24 18:25:17.287210000 +0200
+++ ./debian/lirc/etc/init.d/lirc 2009-06-24 20:01:10.590664922 +0200
@@ -151,13 +151,11 @@
             start-stop-daemon --start --quiet --exec /usr/sbin/lircmd < /dev/null
             log_end_msg $?
         fi
- ;;
         if [ "$START_IREXEC" = "true" ]; then
             log_daemon_msg "Starting execution daemon: irexec"
             start-stop-daemon --start --quiet --exec /usr/bin/irexec -- -d /etc/lirc/lircrc < /dev/null
             log_end_msg $?
         fi
- fi
     ;;
     stop)
         if [ "$START_IREXEC" = "true" ]; then

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lirc - 0.8.5-0ubuntu3

---------------
lirc (0.8.5-0ubuntu3) karmic; urgency=low

  * Fix bug in init script. Thanks Olaf! (LP: #391726)

 -- Mario Limonciello <email address hidden> Wed, 24 Jun 2009 19:42:45 -0500

Changed in lirc (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.