Package: watchdog
Version: 5.8-1
Severity: minor
Tags: patch

Steps to reproduce:
1) upgrade watchdog from 5.7-4 to 5.8-1

Expected results:
1) 

Setting up watchdog (5.8-1) ...

Actual results:
1)

Setting up watchdog (5.8-1) ...
/var/lib/dpkg/info/watchdog.postinst: 92: MAKEDEV: not found

More info:
1) The check

if [ -x `which MAKEDEV` ]; then

in /var/lib/dpkg/info/watchdog.postinst does not seem to work:

li...@ginger:~$ which MAKEDEV
li...@ginger:~$ if [ -x `which MAKEDEV` ]; then echo FOUND; fi
FOUND
li...@ginger:~$ if [ -x "`which MAKEDEV`" ]; then echo FOUND; fi

I suggest the attached patch.

>From 0d6d7678104a77793aca9a0c8460d5691d0077ee Mon Sep 17 00:00:00 2001
From: Timo Juhani Lindfors <[email protected]>
Date: Sun, 23 May 2010 09:13:27 -0400
Subject: [PATCH] Fix check for MAKEDEV.

---
 debian/postinst |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/debian/postinst b/debian/postinst
index 0bb5289..f6b9e17 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -6,7 +6,7 @@ if [ "$1" = configure ]
 then
     . /usr/share/debconf/confmodule
 
-    if [ -x `which MAKEDEV` ]; then
+    if [ -x "`which MAKEDEV`" ]; then
 	    # do we have to create the device?
 	    if [ ! -c /dev/watchdog ]
 	    then
-- 
1.7.0.4




-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: armel (armv4tl)

Kernel: Linux 2.6.29-GTA02_lindi2-andy-tracking-mokodev
Locale: LANG=C, LC_CTYPE=fi_FI (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages watchdog depends on:
ii  debconf [debconf-2.0]         1.5.32     Debian configuration management sy
ii  libc6                         2.10.2-6   Embedded GNU C Library: Shared lib
ii  lsb-base                      3.2-23     Linux Standard Base 3.2 init scrip
ii  udev                          154-1      /dev/ and hotplug management daemo

watchdog recommends no packages.

watchdog suggests no packages.

-- Configuration Files:
/etc/watchdog.conf changed:
file                    = /etc/fstab
max-load-1              = 24
max-load-5              = 18
max-load-15             = 12
watchdog-device = /dev/watchdog
realtime                = yes
priority                = 1
watchdog-timeout        = 42


-- debconf information:
  watchdog/run: true
  watchdog/module: none
  watchdog/restart: false

Reply via email to