mariadb/debian
Nirbhay Choubey deffb95bc2 MDEV-7161: Build failure in buildbot on work-amd64-valgrind
Fix for embedded build failure.
Also added wsrep_info plugin library to server debian package.
2014-11-23 09:55:57 -05:00
..
additions wsrep-related changes: removed some unnecessary files & minor modifications. 2014-09-25 20:59:15 -04:00
dist MDEV-7161: Build failure in buildbot on work-amd64-valgrind 2014-11-23 09:55:57 -05:00
patches MDEV-5749 Please add a .pc file to MariaDB for easy use via pkg-config 2014-10-11 18:53:06 +02:00
po MDEV-34 delete storage/ndb and sql/*ndb* (and collateral changes) 2014-10-11 18:53:06 +02:00
autobake-deb.sh MDEV-5038 put tokudb into the server package 2013-11-11 09:30:35 +01:00
changelog set version to 10.1.0 2014-05-25 17:17:50 +02:00
compat Initial draft for building .deb packages for MariaDB 5.5. 2012-01-23 12:20:16 +01:00
copyright Initial draft for building .deb packages for MariaDB 5.5. 2012-01-23 12:20:16 +01:00
libmariadbclient-dev.dirs Initial draft for building .deb packages for MariaDB 5.5. 2012-01-23 12:20:16 +01:00
libmariadbclient-dev.examples Initial draft for building .deb packages for MariaDB 5.5. 2012-01-23 12:20:16 +01:00
libmariadbclient-dev.files MDEV-5749 Please add a .pc file to MariaDB for easy use via pkg-config 2014-10-11 18:53:06 +02:00
libmariadbclient-dev.links MDEV-257: wrong libmysqlclient.so symlink in package libmariadbclient-dev. 2012-05-07 12:47:29 +02:00
libmariadbclient-dev.README.Maintainer Initial draft for building .deb packages for MariaDB 5.5. 2012-01-23 12:20:16 +01:00
libmariadbclient18.dirs Initial draft for building .deb packages for MariaDB 5.5. 2012-01-23 12:20:16 +01:00
libmariadbclient18.files * mariadb-tokudb-engine-5.5.deb 2013-09-10 10:30:07 +02:00
libmariadbclient18.postinst Initial draft for building .deb packages for MariaDB 5.5. 2012-01-23 12:20:16 +01:00
libmariadbd-dev.files Initial draft for building .deb packages for MariaDB 5.5. 2012-01-23 12:20:16 +01:00
mariadb-client-10.1.dirs set version to 10.1.0 2014-05-25 17:17:50 +02:00
mariadb-client-10.1.docs set version to 10.1.0 2014-05-25 17:17:50 +02:00
mariadb-client-10.1.files Merge branch '10.0' into 10.1 2014-06-13 16:10:25 +02:00
mariadb-client-10.1.links Merge branch '10.0' into 10.1 2014-06-13 16:10:25 +02:00
mariadb-client-10.1.lintian-overrides set version to 10.1.0 2014-05-25 17:17:50 +02:00
mariadb-client-10.1.menu set version to 10.1.0 2014-05-25 17:17:50 +02:00
mariadb-client-10.1.README.Debian set version to 10.1.0 2014-05-25 17:17:50 +02:00
mariadb-client-core-10.1.files set version to 10.1.0 2014-05-25 17:17:50 +02:00
mariadb-common.files .deb packaging fixes: make mariadb-common a real package, which depends on 2012-01-26 12:55:12 +01:00
mariadb-common.postrm .deb packaging fixes: make mariadb-common a real package, which depends on 2012-01-26 12:55:12 +01:00
mariadb-connect-engine-10.1.files set version to 10.1.0 2014-05-25 17:17:50 +02:00
mariadb-oqgraph-engine-10.1.files set version to 10.1.0 2014-05-25 17:17:50 +02:00
mariadb-server-10.1.config set version to 10.1.0 2014-05-25 17:17:50 +02:00
mariadb-server-10.1.lintian-overrides set version to 10.1.0 2014-05-25 17:17:50 +02:00
mariadb-server-10.1.logcheck.ignore.paranoid set version to 10.1.0 2014-05-25 17:17:50 +02:00
mariadb-server-10.1.logcheck.ignore.server set version to 10.1.0 2014-05-25 17:17:50 +02:00
mariadb-server-10.1.logcheck.ignore.workstation set version to 10.1.0 2014-05-25 17:17:50 +02:00
mariadb-server-10.1.mysql-server.logrotate set version to 10.1.0 2014-05-25 17:17:50 +02:00
mariadb-server-10.1.mysql.init MDEV-34 delete storage/ndb and sql/*ndb* (and collateral changes) 2014-10-11 18:53:06 +02:00
mariadb-server-10.1.NEWS set version to 10.1.0 2014-05-25 17:17:50 +02:00
mariadb-server-10.1.preinst MDEV-34 delete storage/ndb and sql/*ndb* (and collateral changes) 2014-10-11 18:53:06 +02:00
mariadb-server-10.1.prerm set version to 10.1.0 2014-05-25 17:17:50 +02:00
mariadb-server-10.1.templates MDEV-34 delete storage/ndb and sql/*ndb* (and collateral changes) 2014-10-11 18:53:06 +02:00
mariadb-server-core-10.1.files set version to 10.1.0 2014-05-25 17:17:50 +02:00
mariadb-test-10.1.dirs MDEV-34 delete storage/ndb and sql/*ndb* (and collateral changes) 2014-10-11 18:53:06 +02:00
mariadb-test-10.1.files set version to 10.1.0 2014-05-25 17:17:50 +02:00
mariadb-test-10.1.links set version to 10.1.0 2014-05-25 17:17:50 +02:00
mysql-common.dirs Initial draft for building .deb packages for MariaDB 5.5. 2012-01-23 12:20:16 +01:00
mysql-common.files Initial draft for building .deb packages for MariaDB 5.5. 2012-01-23 12:20:16 +01:00
mysql-common.lintian-overrides Initial draft for building .deb packages for MariaDB 5.5. 2012-01-23 12:20:16 +01:00
mysql-common.postrm Initial draft for building .deb packages for MariaDB 5.5. 2012-01-23 12:20:16 +01:00
README.Maintainer MDEV-34 delete storage/ndb and sql/*ndb* (and collateral changes) 2014-10-11 18:53:06 +02:00
source.lintian-overrides set version to 10.1.0 2014-05-25 17:17:50 +02:00
watch Initial draft for building .deb packages for MariaDB 5.5. 2012-01-23 12:20:16 +01:00

###########################
##	FIXME for 5.1    ##
###########################

* put this trigger-recreation thing into the init scripts -- what?!

###########################################################################
# Here are some information that are only of interest for the current and #
# following Debian maintainers of MySQL.                                  #
###########################################################################

The debian/ directory is under SVN control, see debian/control for URL.

#
# Preparing a new version
#
The new orig.tar.gz (without non-free documentation) is created in /tmp/ when
running this command:
 
debian/rules get-orig-source

#
# mysqlreport
#
The authors e-mail address is <public@codenode.com>.

#
# Remarks to dependencies
#
libwrap0-dev (>= 7.6-8.3)
	According to bug report 114582 where where build problems on
	IA-64/sid with at least two prior versions.
psmisc
	/usr/bin/killall in the initscript

zlib1g in libmysqlclient-dev:	
	"mysql_config --libs" ads "-lz"

Build-Dep:

debhelper (>=4.1.16):
	See po-debconf(7).

autoconf (>= 2.13-20), automake1.7
	Try to get rid of them.

#
# Remarks to the start scripts
#

## initscripts rely on mysqladmin from a different package
We have the problem that "/etc/init.d/mysql stop" relies on mysqladmin which
is in another package (mysql-client) and a passwordless access that's maybe
only available if the user configured his /root/.my.cnf. Can this be a problem?
* normal mode: not because the user is required to have it. Else:
* purge/remove: not, same as normal mode
* upgrade: not, same as normal mode
* first install: not, it depends on mysql-client which at least is unpacked
                 so mysqladmin is there (to ping). It is not yet configured
		passwordles but if there's a server running then there's a
                /root/.my.cnf. Anyways, we simply kill anything that's mysqld.

## Passwordless access for the maintainer scripts
Another issue is that the scripts needs passwordless access. To ensure this
a debian-sys-maint user is configured which has process and shutdown privs.
The file with the randomly (that's important!) generated password must be
present as long as the databases remain installed because else a new install
would have no access. This file should be used like:
	mysqladmin --defaults-file=/etc/mysql/debian.cnf restart
to avoid providing the password in plaintext on a commandline where it would 
be visible to any user via the "ps" command.

## When to start the daemon?
We aim to give the admin full control on when MySQL is running.
Issues to be faced here:
OLD:
        1. Debconf asks whether MySQL should be started on boot so update-rc.d is
           only run if the answer has been yes. The admin is likely to forget
           this decision but update-rc.d checks for an existing line in
           /etc/runlevel.conf and leaves it intact.
        2. On initial install, if the answer is yes, the daemon has to be started.
        3. On upgrades it should only be started if it was already running, everything
           else is confusing. Especiall relying on an debconf decision made month ago
           is considered suboptimal. See bug #274264
        Implementation so far:
        prerm (called on upgrade before stopping the server): 
          check for a running server and set flag if necessary
        preinst (called on initial install and before unpacking when upgrading):
          check for the debconf variable and set flag if necessary
        postinst (called on initial install and after each upgrade after unpacking):
          call update-rc.d if debconf says yes
          call invoce-rc.d if the flag has been set
        Problems remaining:
          dpkg-reconfigure and setting mysql start on boot to yes did not start mysql
          (ok "start on boot" literally does not mean "start now" so that might have been ok)
NEW:
        1. --- no debconf anymore for the sake of simplicity. We have runlevel.conf,
           the admin should use it
        2. On initial install the server is started.
        3. On upgrades the server is started exactly if it was running before so the
           runlevel configuration is irrelevant. It will be preserved by the mean of
           update-rc.d's builtin check.
        Implementation:
        prerm (called on upgrade before stopping the server):
          check for a running server and set flag if necessary
        preinst (called on initial install and before unpacking when upgrading):
          check for $1 beeing (initial) "install" and set flag
        postinst (called on initial install and after each upgrade after unpacking):
          call update-rc.d
          call invoce-rc.d if the flag has been set