[Commits] Rev 3240: .deb packaging fixes: make mariadb-common a real package, which depends on in http://bazaar.launchpad.net/~maria-captains/maria/5.5

knielsen at knielsen-hq.org knielsen at knielsen-hq.org
Thu Jan 26 15:25:48 EET 2012


At http://bazaar.launchpad.net/~maria-captains/maria/5.5

------------------------------------------------------------
revno: 3240
revision-id: knielsen at knielsen-hq.org-20120126115512-rwzyxwgyummhkx3g
parent: knielsen at knielsen-hq.org-20120126123842-p1y6njctd43k2xl1
committer: knielsen at knielsen-hq.org
branch nick: work-5.5-deb
timestamp: Thu 2012-01-26 12:55:12 +0100
message:
  .deb packaging fixes: make mariadb-common a real package, which depends on
  mysql-common and places mariadb-specific stuff in /etc/mysql/conf.d/mariadb.cnf.
  This should allow to co-exist with default Debian mysql-common package and
  help resolve dependencies when installing mariadb among multiple available
  versions of MySQL from different repositories.
=== added file 'debian/additions/mariadb.cnf'
--- a/debian/additions/mariadb.cnf	1970-01-01 00:00:00 +0000
+++ b/debian/additions/mariadb.cnf	2012-01-26 11:55:12 +0000
@@ -0,0 +1,36 @@
+# MariaDB-specific config file.
+# Read by /etc/mysql/my.cnf
+
+[client]
+# Default is Latin1, if you need UTF-8 set this (also in server section)
+#default-character-set  = utf8 
+
+[mysqld]
+#
+# * Character sets
+# 
+# Default is Latin1, if you need UTF-8 set all this (also in client section)
+#
+#default-character-set  = utf8 
+#default-collation      = utf8_general_ci 
+#character_set_server   = utf8 
+#collation_server       = utf8_general_ci 
+#
+# * Fine Tuning
+#
+max_connections         = 100
+connect_timeout         = 5
+wait_timeout            = 600
+sort_buffer_size        = 4M
+bulk_insert_buffer_size = 16M
+tmp_table_size          = 32M
+max_heap_table_size     = 32M
+#
+# * MyISAM
+#
+key_buffer_size         = 128M
+table_cache             = 400
+myisam_sort_buffer_size = 512M
+concurrent_insert       = 2
+read_buffer_size        = 2M
+read_rnd_buffer_size    = 1M

=== modified file 'debian/additions/my.cnf'
--- a/debian/additions/my.cnf	2012-01-24 11:27:44 +0000
+++ b/debian/additions/my.cnf	2012-01-26 11:55:12 +0000
@@ -1,19 +1,5 @@
 # MariaDB database server configuration file.
 #
-# =================================================================
-# Base configuration courtesy of Open Query (http://openquery.com/)
-# For production use, case-specific preparation is still required.
-# 2009-10-07
-#
-# This is *not* an optimised config, merely a more sane baseline:
-# - InnoDB default (e.g., ACID out-of-the-box, same as on Windows)
-# - strict mode (for proper input checks, same as on Windows)
-# - various other useful settings
-# - make use of MariaDB/Percona/OurDelta enhancements/extensions
-#
-# For tuning assistance, please see http://openquery.com/services
-# =================================================================
-#
 # You can copy this file to one of:
 # - "/etc/mysql/my.cnf" to set global options,
 # - "~/.my.cnf" to set user-specific options.
@@ -32,8 +18,6 @@
 [client]
 port            = 3306
 socket          = /var/run/mysqld/mysqld.sock
-# Default is Latin1, if you need UTF-8 set this (also in server section)
-#default-character-set  = utf8 
 
 # Here is entries for some specific programs
 # The following values assume you have at least 32M ram
@@ -58,43 +42,21 @@ lc_messages_dir	= /usr/share/mysql
 lc_messages     = en_US
 skip-external-locking
 #
-# * Character sets
-# 
-# Default is Latin1, if you need UTF-8 set all this (also in client section)
-#
-#default-character-set  = utf8 
-#default-collation      = utf8_general_ci 
-#character_set_server   = utf8 
-#collation_server       = utf8_general_ci 
-#
 # Instead of skip-networking the default is now to listen only on
 # localhost which is more compatible and is not less secure.
 bind-address            = 127.0.0.1
 #
 # * Fine Tuning
 #
-max_connections         = 100
-connect_timeout         = 5
-wait_timeout            = 600
 max_allowed_packet      = 16M
 thread_cache_size       = 128
-sort_buffer_size        = 4M
-bulk_insert_buffer_size = 16M
-tmp_table_size          = 32M
-max_heap_table_size     = 32M
 #
 # * MyISAM
 #
 # This replaces the startup script and checks MyISAM tables if needed
 # the first time they are touched. On error, make copy and try a repair.
 myisam_recover          = BACKUP
-key_buffer_size         = 128M
 #open-files-limit       = 2000
-table_cache             = 400
-myisam_sort_buffer_size = 512M
-concurrent_insert       = 2
-read_buffer_size        = 2M
-read_rnd_buffer_size    = 1M
 #
 # * Query Cache Configuration
 #

=== modified file 'debian/dist/Debian/control'
--- a/debian/dist/Debian/control	2012-01-24 11:27:44 +0000
+++ b/debian/dist/Debian/control	2012-01-26 11:55:12 +0000
@@ -71,7 +71,6 @@ Package: mysql-common
 Section: database
 Architecture: all
 Depends: ${shlibs:Depends}, ${misc:Depends}
-Provides: mariadb-common
 Description: MariaDB database common files (e.g. /etc/mysql/my.cnf)
  MariaDB is a fast, stable and true multi-user, multi-threaded SQL database
  server. SQL (Structured Query Language) is the most popular database query
@@ -80,10 +79,19 @@ Description: MariaDB database common fil
  .
  This package includes files needed by all versions of the client library
  (e.g. /etc/mysql/my.cnf).
+
+Package: mariadb-common
+Section: database
+Architecture: all
+Depends: mysql-common, ${shlibs:Depends}, ${misc:Depends}
+Description: MariaDB database common files (e.g. /etc/mysql/conf.d/mariadb.cnf)
+ MariaDB is a fast, stable and true multi-user, multi-threaded SQL database
+ server. SQL (Structured Query Language) is the most popular database query
+ language in the world. The main goals of MariaDB are speed, robustness and
+ ease of use.
  .
- Due to libmysqlclient15off package depends, this package has not yet been
- renamed to mariadb-common. It does, however, already contain a new my.cnf
- file with mariadb-specific configuration options.
+ This package includes files needed by all versions of the client library
+ (e.g. /etc/mysql/conf.d/mariadb.cnf).
 
 Package: mariadb-client-core-5.5
 Architecture: any

=== modified file 'debian/dist/Debian/rules'
--- a/debian/dist/Debian/rules	2012-01-25 12:39:54 +0000
+++ b/debian/dist/Debian/rules	2012-01-26 11:55:12 +0000
@@ -172,11 +172,16 @@ install: build
         mv $(TMP)/usr/include/mysql/mysql/*.h $(TMP)/usr/include/mysql/
         mv $(TMP)/usr/include/mysql/mysql/psi $(TMP)/usr/include/mysql/
 
-        # mysql-common: We now provide our own config file.
-        # can't be mariadb-common, other packages insist
+        # mysql-common: We provide our own version of this package for
+        # completeness, but we can use an existing version; mariadb-specic
+        # stuff is in mariadb-common
         install -d $(TMP)/etc/mysql
         install -m 0644 debian/additions/my.cnf $(TMP)/etc/mysql/my.cnf
 
+        # mariadb-common: MariaDB-specific config stuff.
+        install -d $(TMP)/etc/mysql/conf.d
+        install -m 0644 debian/additions/mariadb.cnf $(TMP)/etc/mysql/conf.d/mariadb.cnf
+
         # mariadb-client
         install -m 0755 debian/additions/mysqlreport $(TMP)/usr/bin/
         install -m 0755 debian/additions/innotop/innotop $(TMP)/usr/bin/

=== modified file 'debian/dist/Ubuntu/control'
--- a/debian/dist/Ubuntu/control	2012-01-24 11:27:44 +0000
+++ b/debian/dist/Ubuntu/control	2012-01-26 11:55:12 +0000
@@ -71,7 +71,6 @@ Package: mysql-common
 Section: database
 Architecture: all
 Depends: ${shlibs:Depends}, ${misc:Depends}
-Provides: mariadb-common
 Description: MariaDB database common files (e.g. /etc/mysql/my.cnf)
  MariaDB is a fast, stable and true multi-user, multi-threaded SQL database
  server. SQL (Structured Query Language) is the most popular database query
@@ -80,10 +79,19 @@ Description: MariaDB database common fil
  .
  This package includes files needed by all versions of the client library
  (e.g. /etc/mysql/my.cnf).
+
+Package: mariadb-common
+Section: database
+Architecture: all
+Depends: mysql-common, ${shlibs:Depends}, ${misc:Depends}
+Description: MariaDB database common files (e.g. /etc/mysql/conf.d/mariadb.cnf)
+ MariaDB is a fast, stable and true multi-user, multi-threaded SQL database
+ server. SQL (Structured Query Language) is the most popular database query
+ language in the world. The main goals of MariaDB are speed, robustness and
+ ease of use.
  .
- Due to libmysqlclient15off package depends, this package has not yet been
- renamed to mariadb-common. It does, however, already contain a new my.cnf
- file with mariadb-specific configuration options.
+ This package includes files needed by all versions of the client library
+ (e.g. /etc/mysql/conf.d/mariadb.cnf).
 
 Package: mariadb-client-core-5.5
 Architecture: any

=== modified file 'debian/dist/Ubuntu/rules'
--- a/debian/dist/Ubuntu/rules	2012-01-25 12:39:54 +0000
+++ b/debian/dist/Ubuntu/rules	2012-01-26 11:55:12 +0000
@@ -172,11 +172,16 @@ install: build
         mv $(TMP)/usr/include/mysql/mysql/*.h $(TMP)/usr/include/mysql/
         mv $(TMP)/usr/include/mysql/mysql/psi $(TMP)/usr/include/mysql/
 
-        # mysql-common: We now provide our own config file.
-        # can't be mariadb-common, other packages insist
+        # mysql-common: We provide our own version of this package for
+        # completeness, but we can use an existing version; mariadb-specic
+        # stuff is in mariadb-common
         install -d $(TMP)/etc/mysql
         install -m 0644 debian/additions/my.cnf $(TMP)/etc/mysql/my.cnf
 
+        # mariadb-common: MariaDB-specific config stuff.
+        install -d $(TMP)/etc/mysql/conf.d
+        install -m 0644 debian/additions/mariadb.cnf $(TMP)/etc/mysql/conf.d/mariadb.cnf
+
         # mariadb-client
         install -m 0755 debian/additions/mysqlreport $(TMP)/usr/bin/
         install -m 0755 debian/additions/innotop/innotop $(TMP)/usr/bin/

=== added file 'debian/mariadb-common.files'
--- a/debian/mariadb-common.files	1970-01-01 00:00:00 +0000
+++ b/debian/mariadb-common.files	2012-01-26 11:55:12 +0000
@@ -0,0 +1 @@
+etc/mysql/conf.d/mariadb.cnf

=== added file 'debian/mariadb-common.postrm'
--- a/debian/mariadb-common.postrm	1970-01-01 00:00:00 +0000
+++ b/debian/mariadb-common.postrm	2012-01-26 11:55:12 +0000
@@ -0,0 +1,8 @@
+#!/bin/bash -e
+
+if [ "$1" = "purge" ]; then
+  rmdir /etc/mysql/conf.d 2>/dev/null || true
+  rmdir /etc/mysql 2>/dev/null || true
+fi
+
+#DEBHELPER#



More information about the commits mailing list