Your message dated Sat, 04 Jun 2016 22:32:45 +0000
with message-id <e1b9k7z-00026s...@franck.debian.org>
and subject line Bug#825134: fixed in ofono 1.18-1
has caused the Debian Bug report #825134,
regarding ofono: Fails to uninstall
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
825134: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=825134
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: ofono
Version: 1.15-3
Severity: serious
Tags: patch

Dear Maintainer,

trying to purge ofono fails as follows for me:

Removing ofono (1.15-3) ...
[....] Stopping Bluetooth DUN daemon: dundeeTerminated
invoke-rc.d: initscript dundee, action "stop" failed.
dpkg: error processing package ofono (--purge):
 subprocess installed pre-removal script returned error exit status 143
[ ok ] Starting Bluetooth DUN daemon: dundee.
[ ok ] Starting oFono Mobile Telephony Daemon: ofonod.
Errors were encountered while processing:
 ofono

The dundee daemon seems to be stopped and started fine with
/etc/init.d/dundee stop and /etc/init.d/dundee start, just the return
value of when stopping seems to be unexpected.

Adding a "set -x" to the init script shows the following:

# /etc/init.d/dundee stop
+ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+ DAEMON=/usr/sbin/dundee
+ NAME=dundee
+ DESC=Bluetooth DUN daemon
+ test -x /usr/sbin/dundee
+ . /lib/lsb/init-functions
+ run-parts --lsbsysinit --list /lib/lsb/init-functions.d
+ [ -r /lib/lsb/init-functions.d/01-upstart-lsb ]
+ . /lib/lsb/init-functions.d/01-upstart-lsb
+ unset UPSTART_SESSION
+ _RC_SCRIPT=/etc/init.d/dundee
+ [ -r /etc/init//etc/init.d/dundee.conf ]
+ _UPSTART_JOB=dundee
+ [ -r /etc/init/dundee.conf ]
+ [ -r /lib/lsb/init-functions.d/20-left-info-blocks ]
+ . /lib/lsb/init-functions.d/20-left-info-blocks
+ [ -r /lib/lsb/init-functions.d/40-systemd ]
+ . /lib/lsb/init-functions.d/40-systemd
+ _use_systemctl=0
+ [ -d /run/systemd/system ]
+ [ 0 = 1 ]
+ FANCYTTY=
+ [ -e /etc/lsb-base-logging.sh ]
+ true
+ [ -f /etc/default/dundee ]
+ log_daemon_msg Stopping Bluetooth DUN daemon dundee
+ [ -z Stopping Bluetooth DUN daemon ]
+ log_daemon_msg_pre Stopping Bluetooth DUN daemon dundee
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ [ -t 1 ]
+ [ xscreen.xterm-256color != x ]
+ [ xscreen.xterm-256color != xdumb ]
+ [ -x /usr/bin/tput ]
+ [ -x /usr/bin/expr ]
+ /usr/bin/tput hpa 60
+ /usr/bin/tput setaf 1
+ [ -z ]
+ FANCYTTY=1
+ true
+ echo -n [....] 
[....] + [ -z dundee ]
+ echo -n Stopping Bluetooth DUN daemon: dundee
Stopping Bluetooth DUN daemon: dundee+ log_daemon_msg_post Stopping Bluetooth 
DUN daemon dundee
+ :
+ do_stop
+ start-stop-daemon --stop --quiet --oknodo --name dundee
Terminated
# echo $?
143
#

The exit code seems independent of if dundee is running or not.

The problem seems the usage of "--name dundee". Because that also
matches /etc/init.d/dundee, i.e. start-stop-daemon also kills the init
script.

The following patch against the init script fixes this issue:

--- /etc/init.d/dundee~ 2016-05-24 00:07:07.000000000 +0200
+++ /etc/init.d/dundee  2016-05-24 00:10:37.250902070 +0200
@@ -31,7 +31,7 @@
 
 do_stop()
 {
-       start-stop-daemon --stop --quiet --oknodo --name $NAME
+       start-stop-daemon --stop --quiet --oknodo --exec $DAEMON
 }
 
 case "$1" in

-- System Information:
Debian Release: stretch/sid
Architecture: amd64 (x86_64)

Kernel: Linux 4.6.0-trunk-amd64 (SMP w/8 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages ofono depends on:
ii  dbus                 1.10.8-1
ii  init-system-helpers  1.33
ii  libc6                2.22-9
ii  libdbus-1-3          1.10.8-1
ii  libglib2.0-0         2.48.1-1
ii  libudev1             230-1

Versions of packages ofono recommends:
ii  udev  230-1

ofono suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: ofono
Source-Version: 1.18-1

We believe that the bug you reported is fixed in the latest version of
ofono, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 825...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Laurent Bigonville <bi...@debian.org> (supplier of updated ofono package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sat, 04 Jun 2016 21:55:47 +0200
Source: ofono
Binary: ofono ofono-dev
Architecture: source amd64 all
Version: 1.18-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Telepathy maintainers 
<pkg-telepathy-maintain...@lists.alioth.debian.org>
Changed-By: Laurent Bigonville <bi...@debian.org>
Description:
 ofono      - Mobile telephony stack (daemon)
 ofono-dev  - Mobile telephony stack (development files)
Closes: 792632 825134
Changes:
 ofono (1.18-1) unstable; urgency=medium
 .
   * Team upload
   * New upstream release. (Closes: #792632)
     - Bump libglib2.0-dev to >= 2.32
     - Fix installation of the udev rules file
   * debian/control:
     - Bump Standards-Version to 3.9.8 (no further changes)
     - Switch to https URL for Vcs-* fields
   * Drop ofono-dbg package, rely on automatically built dbgsym package
   * debian/compat: Bump Debhelper compatibility to 9
   * Drop useless files in debian/patches/
   * Switch from cdbs to dh
   * debian/*.init: Use the executable path to better identify the running
     processes (Closes: #825134)
Checksums-Sha1:
 8da231e8be6992e330307bd878b78f6f0bb188ba 1786 ofono_1.18-1.dsc
 b83277b2c947ae69c00c61ef939d257f4077dd9a 1367849 ofono_1.18.orig.tar.gz
 c19d8b68ad4e7052e32ec29a2e3b7b9b441f637b 5992 ofono_1.18-1.debian.tar.xz
 87a66291a763ad5e6cedfeffd96d766415ea974f 2184500 ofono-dbgsym_1.18-1_amd64.deb
 8e7aa4c97863488f8c2b12739ea06488ec72e5bf 37360 ofono-dev_1.18-1_all.deb
 a7f465eec7197a420d99d7c1121abbb8e5e02d72 549728 ofono_1.18-1_amd64.deb
Checksums-Sha256:
 093d67bd34b04ad9943f4ea86defc02de2fbc55649bdfb752217e842f919ca42 1786 
ofono_1.18-1.dsc
 8e92cc7b5f22a44a533c3123824d9a310f66e1529eda755cb41bcf4f533cf6e1 1367849 
ofono_1.18.orig.tar.gz
 7b185305b8d985be9921d4e9da90b60de4c93fcf18f0285c87cb05ef4ae7027a 5992 
ofono_1.18-1.debian.tar.xz
 b30d87d191e2268db25569bcf24a97c31fa847f10f17cce71846d4e348c26c4d 2184500 
ofono-dbgsym_1.18-1_amd64.deb
 c8ed1ccd91f9a59f6343f424ed3a133db6f08667056f5b39b14ff686688a2cab 37360 
ofono-dev_1.18-1_all.deb
 9f279118eac7880e6d772a6213cdb22ea53f240ab436ea9bb6093e1d2b4c3e1a 549728 
ofono_1.18-1_amd64.deb
Files:
 26a6c3609d287baeccfd051b93b837eb 1786 admin optional ofono_1.18-1.dsc
 bc740f1430ca3c0d7c05b781a40f53bc 1367849 admin optional ofono_1.18.orig.tar.gz
 950a11f5331a6b61eba30a2c9f73d8f0 5992 admin optional ofono_1.18-1.debian.tar.xz
 37cb8a5fd7f445e3b5ed7a19445923bc 2184500 debug extra 
ofono-dbgsym_1.18-1_amd64.deb
 8a58ab97c52a4d36c2ec8a2e437dec21 37360 admin optional ofono-dev_1.18-1_all.deb
 912642e54f10b9760fea880cec7ec8c9 549728 admin optional ofono_1.18-1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBCAAGBQJXUzNnAAoJEB/FiR66sEPVTPwH/1D6v7zUBV2JpTxrLtH9o4Z3
WDEf2fAp0ufOC+3ChXsg5Y7ncfVho2w7h939jLPlDjMqP8sdYMuVYDZ18BH9ZytM
AMdM0tFODZPGcOKCwwE/jEGbnn9nVUB98DeMJfAc4e9bR55MNS0hSvg2jb26Va2T
aExSq7762y2vGfxuRgLuzj4wAoVZIBF+bts2q8aXbt6hbX29hjNYv4YAbDbY6/nY
Gz6o+ecpG1PNMG4FD/qPtGBiYbkvQDfrgh8Re5CTOS8Lp8EJyoAKBfZgsz/A703n
W9jw/f67tuBA0gmRM4A8TU8D+4Q9DDAUwVGXZOG6ai76CyIvkeQhaT+IzM+DRwE=
=Ld5I
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to