Your message dated Tue, 17 Oct 2006 15:47:47 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#388140: fixed in dspam 3.6.8-3
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: libdspam7-drv-mysql
Version: 3.6.8-2
Severity: important

Simply:

/etc/cron.daily/libdspam7-drv-mysql:
ERROR 2002: Can't connect to local MySQL server through socket 
'/var/run/mysqld/mysqld.sock' (2)

mysqld is on a remote host.

Here is a naive patch that works:

--- libdspam7-drv-mysql.orig    2006-09-18 15:57:54.351747240 -0400
+++ libdspam7-drv-mysql 2006-09-18 15:54:05.493538976 -0400
@@ -11,7 +11,12 @@
     MYSQL_USER="`grep "^MySQLUser" $MYSQLCONF | awk '{print $2}'`"
     MYSQL_PASS="`grep "^MySQLPass" $MYSQLCONF | awk '{print $2}'`"
     MYSQL_DB="`grep "^MySQLDb" $MYSQLCONF | awk '{print $2}'`"
-    /usr/bin/mysql --user=$MYSQL_USER --password=$MYSQL_PASS $MYSQL_DB < $PURGE
+    MYSQL_HOST="`grep "^MySQLServer" $MYSQLCONF | awk '{print $2}'`"
+    if [ -z "$MYSQL_HOST" ] ; then
+       /usr/bin/mysql --user=$MYSQL_USER --password=$MYSQL_PASS $MYSQL_DB < 
$PURGE
+    else
+       /usr/bin/mysql --host $MYSQL_HOST --user=$MYSQL_USER 
--password=$MYSQL_PASS $MYSQL_DB < $PURGE
+    fi
   fi
 fi
 



-- System Information:
Debian Release: 3.1
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.8-romulus-em64t-p4-smp+vserver
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages libdspam7-drv-mysql depends on:
ii  dbconfig-common       1.8.21~bpo.1       common framework for packaging dat
ii  debconf [debconf-2.0] 1.4.30.13          Debian configuration management sy
ii  libc6                 2.3.2.ds1-22sarge4 GNU C Library: Shared libraries an
ii  libdspam7             3.6.8-2            DSPAM is a scalable and statistica
ii  libldap2              2.1.30-8           OpenLDAP libraries
ii  libmysqlclient14      4.1.11a-4sarge7    mysql database client library
ii  mysql-client          4.0.24-10sarge2    mysql database client binaries
ii  ucf                   1.17               Update Configuration File: preserv
ii  zlib1g                1:1.2.2-4.sarge.2  compression library - runtime

-- debconf information:
  libdspam7-drv-mysql/password-confirm: (password omitted)
  libdspam7-drv-mysql/mysql/app-pass: (password omitted)
  libdspam7-drv-mysql/app-password-confirm: (password omitted)
  libdspam7-drv-mysql/mysql/admin-pass: (password omitted)
  libdspam7-drv-mysql/passwords-do-not-match:
  libdspam7-drv-mysql/internal/reconfiguring: false
  libdspam7-drv-mysql/remote/host:
  libdspam7-drv-mysql/db/app-user:
  libdspam7-drv-mysql/remove-error: abort
  libdspam7-drv-mysql/db/dbname:
  libdspam7-drv-mysql/mysql/method: unix socket
  libdspam7-drv-mysql/database-type: mysql
  libdspam7-drv-mysql/dbconfig-remove:
  libdspam7-drv-mysql/remote/newhost:
  libdspam7-drv-mysql/upgrade-backup: true
  libdspam7-drv-mysql/mysql/admin-user:
  libdspam7-drv-mysql/install-error: abort
  libdspam7-drv-mysql/remote/port:
  libdspam7-drv-mysql/dbconfig-upgrade: true
  libdspam7-drv-mysql/purge: false
  libdspam7-drv-mysql/upgrade-error: abort
  libdspam7-drv-mysql/dbconfig-reinstall: false
* libdspam7-drv-mysql/dbconfig-install: false


--- End Message ---
--- Begin Message ---
Source: dspam
Source-Version: 3.6.8-3

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

dspam-doc_3.6.8-3_all.deb
  to pool/main/d/dspam/dspam-doc_3.6.8-3_all.deb
dspam-webfrontend_3.6.8-3_all.deb
  to pool/main/d/dspam/dspam-webfrontend_3.6.8-3_all.deb
dspam_3.6.8-3.diff.gz
  to pool/main/d/dspam/dspam_3.6.8-3.diff.gz
dspam_3.6.8-3.dsc
  to pool/main/d/dspam/dspam_3.6.8-3.dsc
dspam_3.6.8-3_i386.deb
  to pool/main/d/dspam/dspam_3.6.8-3_i386.deb
libdspam7-dev_3.6.8-3_i386.deb
  to pool/main/d/dspam/libdspam7-dev_3.6.8-3_i386.deb
libdspam7-drv-db4_3.6.8-3_i386.deb
  to pool/main/d/dspam/libdspam7-drv-db4_3.6.8-3_i386.deb
libdspam7-drv-mysql_3.6.8-3_i386.deb
  to pool/main/d/dspam/libdspam7-drv-mysql_3.6.8-3_i386.deb
libdspam7-drv-pgsql_3.6.8-3_i386.deb
  to pool/main/d/dspam/libdspam7-drv-pgsql_3.6.8-3_i386.deb
libdspam7-drv-sqlite3_3.6.8-3_i386.deb
  to pool/main/d/dspam/libdspam7-drv-sqlite3_3.6.8-3_i386.deb
libdspam7_3.6.8-3_i386.deb
  to pool/main/d/dspam/libdspam7_3.6.8-3_i386.deb



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 [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Debian DSPAM Maintainers <[EMAIL PROTECTED]> (supplier of updated dspam 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 [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sat,  7 Oct 2006 19:54:32 +0200
Source: dspam
Binary: libdspam7-dev libdspam7-drv-pgsql dspam libdspam7-drv-mysql 
dspam-webfrontend dspam-doc libdspam7-drv-db4 libdspam7 libdspam7-drv-sqlite3
Architecture: source i386 all
Version: 3.6.8-3
Distribution: unstable
Urgency: low
Maintainer: Debian DSPAM Maintainers <[EMAIL PROTECTED]>
Changed-By: Debian DSPAM Maintainers <[EMAIL PROTECTED]>
Description: 
 dspam      - is a scalable, fast and statistical anti-spam filter
 dspam-doc  - Documentation for dspam
 dspam-webfrontend - DSPAM is a scalable and statistical anti-spam filter
 libdspam7  - DSPAM is a scalable and statistical anti-spam filter
 libdspam7-dev - DSPAM is a scalable and statistical anti-spam filter
 libdspam7-drv-db4 - DSPAM is a scalable and statistical anti-spam filter
 libdspam7-drv-mysql - DSPAM is a scalable and statistical anti-spam filter
 libdspam7-drv-pgsql - DSPAM is a scalable and statistical anti-spam filter
 libdspam7-drv-sqlite3 - DSPAM is a scalable and statistical anti-spam filter
Closes: 388140 388225 388226 389538
Changes: 
 dspam (3.6.8-3) unstable; urgency=low
 .
   [ Matthijs Mohlmann ]
   * Acknowlegde NMU. Thanks Steinar H. Gunderson.
     (Closes: #389538, #388225, #388226)
   * Update package descriptions. Neural networking was experimental is now
     removed from the upstream sources.
   * It's a security risk to remove a user on purge of the package. So don't
     remove it.
   * Update update-dspam.conf ServerPID parameter, pidfile is now in
     /var/run/dspam.
 .
   [ Jesus Climent ]
   * Check for the existance of ucf before executing it on purge time.
   * Use the defined MySQL host option in the config file to connect to an
     non-local MySQL database server (Closes: #388140).
Files: 
 cce050b7886f5cdf4c3e24d5b97c94de 1123 mail optional dspam_3.6.8-3.dsc
 a25d214c770b1db6993d3967755cbbe9 53923 mail optional dspam_3.6.8-3.diff.gz
 51ff65201a2c7a7d2318957c0fc5f80d 325998 mail optional dspam_3.6.8-3_i386.deb
 14523e4ea9c3535f0bcb0d083d7d8e4c 109754 libs optional 
libdspam7_3.6.8-3_i386.deb
 c2212d7e131afbaf5a9ecc6f1f130592 125734 mail optional 
libdspam7-dev_3.6.8-3_i386.deb
 55b5ceb5f5bfdd99d0334cc1e82664c8 103824 mail optional 
libdspam7-drv-pgsql_3.6.8-3_i386.deb
 7175e3600c4ba8aeae1dc995b90ffd27 95790 mail optional 
libdspam7-drv-mysql_3.6.8-3_i386.deb
 fa5226acaceee6206a280f1568b9af33 70878 mail optional 
libdspam7-drv-db4_3.6.8-3_i386.deb
 d045bb9431454ed8b32904fb43f392a9 84410 mail optional 
libdspam7-drv-sqlite3_3.6.8-3_i386.deb
 1b078b5a6427b998331e50c7d22eb263 109992 mail optional 
dspam-webfrontend_3.6.8-3_all.deb
 6db283fcc63c7369f79313d228ddd655 93712 doc optional dspam-doc_3.6.8-3_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFNTxhZvwdf4aUbWkRAqdrAKCI0NQDnD4x0TQWliXTn8W4z/qvTQCghcGf
JkNL6tfgGeAaD9HRksCHOuU=
=gaO0
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to