Package: rails
Version: 0.10.0-1
Severity: normal
Tags: patch

Ruby/MySQL driver included with ActiveRecord defaults to /tmp/mysql.sock
if no socket is specified in the configuration. Debian mysql package
uses /var/run/mysqld/mysqld.sock. This could be changed, or a note
could be included in the README.Debian. The following patch changes the 
default in the driver:

--- 
rails-0.10.0.orig/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
       2005-02-27 20:40:13.000000000 -0600
+++ 
rails-0.10.0/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
    2005-03-05 22:43:27.883493728 -0600
@@ -48,7 +48,7 @@
     #
     # * <tt>:host</tt> -- Defaults to localhost
     # * <tt>:port</tt> -- Defaults to 3306
-    # * <tt>:socket</tt> -- Defaults to /tmp/mysql.sock
+    # * <tt>:socket</tt> -- Defaults to /var/run/mysqld/mysqld.sock
     # * <tt>:username</tt> -- Defaults to root
     # * <tt>:password</tt> -- Defaults to nothing
     # * <tt>:database</tt> -- The name of the database. No default, must be 
provided.

--- rails-0.10.0.orig/activerecord/lib/active_record/vendor/mysql.rb    
2005-02-27 20:40:13.000000000 -0600
+++ rails-0.10.0/activerecord/lib/active_record/vendor/mysql.rb 2005-03-05 
22:42:58.896900360 -0600
@@ -13,7 +13,7 @@
   MAX_PACKET_LENGTH = 256*256*256-1
   MAX_ALLOWED_PACKET = 1024*1024*1024
 
-  MYSQL_UNIX_ADDR = "/tmp/mysql.sock"
+  MYSQL_UNIX_ADDR = "/var/run/mysqld/mysqld.sock"
   MYSQL_PORT = 3306
   PROTOCOL_VERSION = 10
 
-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.10
Locale: LANG=spanish, [EMAIL PROTECTED] (charmap=UTF-8) (ignored: LC_ALL set to 
[EMAIL PROTECTED])

Versions of packages rails depends on:
ii  libdrb-ruby1.8                1.8.2-2    Distributed Ruby (for Ruby 1.8)
ii  libsoap-ruby1.8               1.8.2-2    Ruby's SOAP implementation for Rub
ii  libtest-unit-ruby             1.8.2-1    unit-testing framework for the Rub
ii  libtmail-ruby1.8              0.10.8-1   Mail class library for Ruby 1.8
ii  libxmlrpc-ruby                1.8.2-1    XML-RPC support for Ruby
ii  libyaml-ruby                  1.8.2-1    YAML for Ruby
ii  rake                          0.4.15-1   a ruby build program
ii  rdoc                          1.8.2-1    Generate documentation from ruby s
ii  ruby                          1.8.2-1    An interpreter of object-oriented 

-- no debconf information


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

Reply via email to