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

Package: dbconfig-common
Version: 1.8.36
Severity: serious
Tags: patch

Hi.

Although informing a "warning" message, there exists a little error
when going through the dbc_go function, specifically in the block that
manage creating and populating DB.
The problem shows up when you want to use a remote DB server, and you
don't have any locally installed for any reason (which is not a
requirement in some cases, as mine).

This simple patch validates if the connection uses "unix socket" to
communicate with the database,  which forces to be just a local
DBserver, and requiring DB_package as it's needed.
If the case the user wants to use TCP/IP communication even to a local
DBserver, the package dependences (the one that uses dbconfig, the one
being installed) should be in charge for requesting a
mysq-server|postgresql-server dependence, solving the whole situation.


- --- dpkg/postinst.orig       2007-06-22 12:47:10.000000000 -0300
+++ dpkg/postinst    2007-11-01 00:12:04.000000000 -0300
@@ -65,9 +65,10 @@
                        ### first things first, see if the database
package is installed,
                        ### and in case of failure provide a more
sensible error message.
                        ###
- -                       $dbc_db_installed_cmd ||
dbc_missing_db_package_error
- -                       [ "$dbc_tried_again" ] && return 0
- -
+                       if [ "$dbc_method" = "unix socket" ]; then
+                               $dbc_db_installed_cmd ||
dbc_missing_db_package_error
+                               [ "$dbc_tried_again" ] && return 0
+                       fi
                        ###
                        ### now, create the app user account
                        ###





- --- System information. ---
Architecture: amd64
Kernel: Linux 2.6.22-2-amd64

Debian Release: lenny/sid
500 testing security.debian.org
500 testing debian.torredehanoi.org

- --- Package information. ---
Depends (Version) | Installed
==========================-+-===========
ucf | 3.003
debconf (>= 0.5) | 1.5.14
OR debconf-2.0 |



Dererk

- --
[EMAIL PROTECTED]: ~$ grep -ir 'power in your hands' /proc/
/proc/version: Debian GNUine Perception

BOFH excuse #295: The Token fell out of the ring. Call us when you
find it..
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHKVxNzqYvwbbBjiQRAv2SAJ9hXoQNxIY6cpmh5cHrv2x4Vsw5vgCeKiIX
fXdmHv1vJ78/LmTw8gAChNA=
=wDMN
-----END PGP SIGNATURE-----




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to