tag 319406 +woody 
tag 319406 +patch 
tag 319406 +pending 
thanks

On Thu, Jul 21, 2005 at 10:38:56PM +0200, Laurent Facq wrote:
> Subject: heartbeat: upgrade and reconfigure errors
> Package: heartbeat
> Version: 0.4.9.0l-7.3
> Severity: normal
> 
> 
> 
> -- System Information
> Debian Release: 3.0
> Architecture: i386
> Kernel: Linux apu 2.4.26 #2 SMP Thu Jul 22 18:22:27 CEST 2004 i686
> Locale: LANG=C, LC_CTYPE=C
> 
> Versions of packages heartbeat depends on:
> ii  debconf                     1.0.32       Debian configuration 
> management sy
> ii  libc6                       2.2.5-11.8   GNU C Library: Shared 
> libraries an
> ii  libstonith0                 0.4.9.0l-7.3 Shoot The Other Node In The 
> Head l
> ii  logrotate                   3.5.9-8      Log rotation utility
> ii  sysklogd                    1.4.1-10     System Logging Daemon
> ii  sysklogd [system-log-daemon 1.4.1-10     System Logging Daemon
> 
> 
>         you'll find below the output of the reinstall.
>         when i upgraded, i got a similar errors.
> 
>         looking at  /var/lib/dpkg/info/heartbeat.config
>         i saw similar lines, with different quote protection :
> line 72 : INT=`echo "$ENTRY" | cut -d"|" -f1 | sed -ne 's/^\ *\(.*\)\ 
> *$/\1/p'`
> line 90 : INT=`echo "$ENTRY" | cut -d| -f1 | sed -e 's/\ //g'`
> 
>         may be there are missing quote arround the pipe on the second line ?
> 
>       -> this could lead to try to execute -f1
> 
>         PS: great thanks for your job on debian package !
> 
>         LF.
> 
> # apt-get --reinstall  install heartbeat
> Reading Package Lists... Done
> Building Dependency Tree... Done
> 0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0  
> not upgraded.
> Need to get 0B/185kB of archives. After unpacking 0B will be used.
> Do you want to continue? [Y/n]
> Preconfiguring packages ...
> /tmp/config.92351: -f1: command not found
> cut: option requires an argument -- d
> Try `cut --help' for more information.
> /tmp/config.92351: -f1: command not found
> cut: option requires an argument -- d
> Try `cut --help' for more information.
> /tmp/config.92351: -f1: command not found
> cut: option requires an argument -- d
> Try `cut --help' for more information.
> /tmp/config.92351: -f1: command not found
> cut: option requires an argument -- d
> Try `cut --help' for more information.
> /tmp/config.92351: -f1: command not found
> cut: option requires an argument -- d
> Try `cut --help' for more information.
> /tmp/config.92351: -f1: command not found
> cut: option requires an argument -- d
> Try `cut --help' for more information.
> (Reading database ... 58589 files and directories currently installed.)
> Preparing to replace heartbeat 0.4.9.0l-7.3 (using 
> .../heartbeat_0.4.9.0l-7.3_i386.deb) ...
> Stopping High-Availability services: Done.

Thanks,

The attached patch should resolve this problem, and I have put
packages that include this patch up at
http://debian.vergenet.net/pending/heartbeat/

Joey, what do you want to do about this?



-- 
Horms
diff -ruN heartbeat-0.4.9.0l/debian/changelog 
heartbeat-0.4.9.0l.new/debian/changelog
--- heartbeat-0.4.9.0l/debian/changelog Mon Jul 25 18:17:57 2005
+++ heartbeat-0.4.9.0l.new/debian/changelog     Mon Jul 25 18:13:49 2005
@@ -1,3 +1,10 @@
+heartbeat (0.4.9.0l-7.4) oldstable-security; urgency=low
+
+  * Fix bug in configuration script which for some reason manifets just now
+    (closes: Bug#319406)
+
+ -- Simon Horman <[EMAIL PROTECTED]>  Mon, 25 Jul 2005 18:12:42 +0900
+
 heartbeat (0.4.9.0l-7.3) oldstable-security; urgency=high
 
   * Non-maintainer upload by Security Team
diff -ruN heartbeat-0.4.9.0l/debian/shellfuncs.m4 
heartbeat-0.4.9.0l.new/debian/shellfuncs.m4
--- heartbeat-0.4.9.0l/debian/shellfuncs.m4     Mon Jul 25 18:17:57 2005
+++ heartbeat-0.4.9.0l.new/debian/shellfuncs.m4 Mon Jul 25 18:11:26 2005
@@ -177,7 +177,7 @@
     dnl as long as entry not empty
     while [ -n "$ENTRY" ]; do changequote([,])
        # get the nic in front of the value
-       INT=`echo "$ENTRY" | cut -d$1 -f1 | sed -e 's/\ //g'` changequote(_,_)
+       INT=`echo "$ENTRY" | cut -d"$1" -f1 | sed -e 's/\ //g'` changequote(_,_)
        # when specified nic ($1) != NIC is
        if [ "$INT" != "V1()" ]; then changequote([,])
            # return this value

Reply via email to