mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
359594ccd2
--- Removed reference to debian svn location of debian dir. Changed verbage of comment to appease Timothy. --- Removed added manpages that aren't appropriate for our build. --- Added debian dir to list of dist targets. Added list of files needed to be distributed in debian dir. --- Added semi-colons to fix syntax error. --- BUG#27769 MySQL should include debian packaing dir Added debian/Makefile to configure.in to support make dist. BitKeeper/deleted/.del-configure.in.rej: Delete: configure.in.rej Makefile.am: Added debian dir to list of dist targets. configure.in: Added debian/Makefile to configure.in to support make dist BitKeeper/deleted/.del-comp_err.1: Adding files to support building for debian. BitKeeper/deleted/.del-msql2mysql.1: Adding files to support building for debian. BitKeeper/deleted/.del-my_print_defaults.1: Adding files to support building for debian. BitKeeper/deleted/.del-myisam_ftdump.1: Adding files to support building for debian. BitKeeper/deleted/.del-myisamchk.1: Adding files to support building for debian. BitKeeper/deleted/.del-myisamlog.1: Adding files to support building for debian. BitKeeper/deleted/.del-myisampack.1: Adding files to support building for debian. BitKeeper/deleted/.del-mysql_config.1: Adding files to support building for debian. BitKeeper/deleted/.del-mysql_convert_table_format.1: Adding files to support building for debian. BitKeeper/deleted/.del-mysql_explain_log.1: Adding files to support building for debian. BitKeeper/deleted/.del-mysql_find_rows.1: Adding files to support building for debian. BitKeeper/deleted/.del-mysql_fix_extensions.1: Adding files to support building for debian. BitKeeper/deleted/.del-mysql_install_db.1: Adding files to support building for debian. BitKeeper/deleted/.del-mysql_secure_installation.1: Adding files to support building for debian. BitKeeper/deleted/.del-mysql_setpermission.1: Adding files to support building for debian. BitKeeper/deleted/.del-mysql_tableinfo.1: Adding files to support building for debian. BitKeeper/deleted/.del-mysql_waitpid.1: Adding files to support building for debian. BitKeeper/deleted/.del-mysqlbinlog.1: Adding files to support building for debian. BitKeeper/deleted/.del-mysqlbug.1: Adding files to support building for debian. BitKeeper/deleted/.del-mysqlcheck.1: Adding files to support building for debian. BitKeeper/deleted/.del-mysqldumpslow.1: Adding files to support building for debian. BitKeeper/deleted/.del-mysqlimport.1: Adding files to support building for debian. BitKeeper/deleted/.del-mysqlmanager.1: Adding files to support building for debian. BitKeeper/deleted/.del-mysqltest.1: Adding files to support building for debian. BitKeeper/deleted/.del-pack_isam.1: Adding files to support building for debian. BitKeeper/deleted/.del-resolve_stack_dump.1: Adding files to support building for debian. BitKeeper/deleted/.del-resolveip.1: Adding files to support building for debian. debian/Makefile.am: Added list of files needed to be distributed in debian dir. debian/README.Maintainer: Adding files to support building for debian. --- Removed reference to debian svn location of debian dir. Changed verbage of comment to appease Timothy. debian/changelog: Adding files to support building for debian. debian/compat: Adding files to support building for debian. debian/control.in: Adding files to support building for debian. debian/copyright.more: Adding files to support building for debian. debian/copyright: Adding files to support building for debian. debian/defs.mk: Adding files to support building for debian. debian/libmysqlclientMYSOVER-dev.README.Maintainer.in: Adding files to support building for debian. debian/libmysqlclientMYSOVER-dev.dirs.in: Adding files to support building for debian. debian/libmysqlclientMYSOVER-dev.docs.in: Adding files to support building for debian. debian/libmysqlclientMYSOVER-dev.examples.in: Adding files to support building for debian. debian/libmysqlclientMYSOVER-dev.files.in: Adding files to support building for debian. debian/libmysqlclientMYSOVER-dev.links.in: Adding files to support building for debian. debian/libmysqlclientMYSOVER.README.Debian.in: Adding files to support building for debian. debian/libmysqlclientMYSOVER.dirs.in: Adding files to support building for debian. debian/libmysqlclientMYSOVER.docs.in: Adding files to support building for debian. debian/libmysqlclientMYSOVER.files.in: Adding files to support building for debian. debian/libmysqlclientMYSOVER.postinst.in: Adding files to support building for debian. debian/libndbclientNDBSOVER-dev.dirs.in: Adding files to support building for debian. debian/libndbclientNDBSOVER-dev.files.in: Adding files to support building for debian. debian/libndbclientNDBSOVER-dev.links.in: Adding files to support building for debian. debian/libndbclientNDBSOVER.README.Debian.in: Adding files to support building for debian. debian/libndbclientNDBSOVER.dirs.in: Adding files to support building for debian. debian/libndbclientNDBSOVER.files.in: Adding files to support building for debian. debian/libndbclientNDBSOVER.postinst.in: Adding files to support building for debian. debian/mysql-client-MYVER.NEWS.in: Adding files to support building for debian. debian/mysql-client-MYVER.README.Debian.in: Adding files to support building for debian. debian/mysql-client-MYVER.dirs.in: Adding files to support building for debian. debian/mysql-client-MYVER.docs.in: Adding files to support building for debian. debian/mysql-client-MYVER.files.in: Adding files to support building for debian. debian/mysql-client-MYVER.lintian-overrides.in: Adding files to support building for debian. debian/mysql-common.README.Debian.in: Adding files to support building for debian. debian/mysql-common.dirs.in: Adding files to support building for debian. debian/mysql-common.files.in: Adding files to support building for debian. debian/mysql-common.postrm.in: Adding files to support building for debian. debian/mysql-common.preinst.in: Adding files to support building for debian. debian/mysql-extra-MYVER.dirs.in: Adding files to support building for debian. debian/mysql-extra-MYVER.files.in: Adding files to support building for debian. debian/mysql-management-MYVER.dirs.in: Adding files to support building for debian. debian/mysql-management-MYVER.files.in: Adding files to support building for debian. debian/mysql-management-MYVER.mysql-management.init.in: Adding files to support building for debian. debian/mysql-server-MYOLDVER.preinst.in: Adding files to support building for debian. debian/mysql-server-MYVER.NEWS.in: Adding files to support building for debian. debian/mysql-server-MYVER.README.Debian.in: Adding files to support building for debian. debian/mysql-server-MYVER.config.in: Adding files to support building for debian. debian/mysql-server-MYVER.dirs.in: Adding files to support building for debian. debian/mysql-server-MYVER.docs.in: Adding files to support building for debian. debian/mysql-server-MYVER.files.in: Adding files to support building for debian. debian/mysql-server-MYVER.links.in: Adding files to support building for debian. debian/mysql-server-MYVER.lintian-overrides.in: Adding files to support building for debian. debian/mysql-server-MYVER.logcheck.ignore.paranoid.in: Adding files to support building for debian. debian/mysql-server-MYVER.logcheck.ignore.server.in: Adding files to support building for debian. debian/mysql-server-MYVER.logcheck.ignore.workstation.in: Adding files to support building for debian. debian/mysql-server-MYVER.mysql-server.logrotate.in: Adding files to support building for debian. debian/mysql-server-MYVER.postinst.in: Adding files to support building for debian. debian/mysql-server-MYVER.postrm.in: Adding files to support building for debian. debian/additions/my.cnf: Adding files to support building for debian. debian/additions/mysql-server.lintian-overrides: Adding files to support building for debian. debian/additions/ndb_mgmd.cnf: Adding files to support building for debian. debian/mysql-server-MYVER.preinst.in: Adding files to support building for debian. debian/mysql-server-MYVER.prerm.in: Adding files to support building for debian. debian/mysql-server-MYVER.templates.in: Adding files to support building for debian. debian/mysql-server.preinst.in: Adding files to support building for debian. debian/mysql-storage-MYVER.dirs.in: Adding files to support building for debian. debian/mysql-storage-MYVER.files.in: Adding files to support building for debian. debian/mysql-storage-MYVER.mysql-storage.init.in: Adding files to support building for debian. debian/mysql-test-MYVER.dirs.in: Adding files to support building for debian. debian/mysql-test-MYVER.files.in: Adding files to support building for debian. debian/mysql-tools-MYVER.dirs.in: Adding files to support building for debian. debian/mysql-tools-MYVER.files.in: Adding files to support building for debian. debian/po/POTFILES.in.in: Adding files to support building for debian. debian/po/ca.po: Adding files to support building for debian. debian/po/cs.po: Adding files to support building for debian. debian/po/da.po: Adding files to support building for debian. debian/po/de.po: Adding files to support building for debian. debian/po/es.po: Adding files to support building for debian. debian/po/eu.po: Adding files to support building for debian. debian/po/fr.po: Adding files to support building for debian. debian/po/gl.po: Adding files to support building for debian. debian/po/it.po: Adding files to support building for debian. debian/po/ja.po: Adding files to support building for debian. debian/po/nb.po: Adding files to support building for debian. debian/po/nl.po: Adding files to support building for debian. debian/po/pt.po: Adding files to support building for debian. debian/po/pt_BR.po: Adding files to support building for debian. debian/po/ro.po: Adding files to support building for debian. debian/po/ru.po: Adding files to support building for debian. debian/po/sv.po: Adding files to support building for debian. debian/po/templates.pot: Adding files to support building for debian. debian/po/tr.po: Adding files to support building for debian. debian/rules: Adding files to support building for debian. --- Added semi-colons to fix syntax error. debian/source.lintian-overrides.in: Adding files to support building for debian. debian/watch: Adding files to support building for debian.
99 lines
4.7 KiB
Text
99 lines
4.7 KiB
Text
###########################################################################
|
|
# Here are some information that are only of interest to the Debiani #
|
|
# maintainers of MySQL. #
|
|
###########################################################################
|
|
|
|
#
|
|
# 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" adds "-lz"
|
|
|
|
Build-Dep:
|
|
|
|
debhelper (>=4.1.16):
|
|
See po-debconf(7).
|
|
|
|
autoconf (>= 2.13-20), automake1.7
|
|
Try to get rid of them.
|
|
|
|
doxygen, tetex-bin, tetex-extra, gs
|
|
for ndb/docs/*tex
|
|
|
|
mysql-server-5.0: Pre-Depends: mysql-common
|
|
This was necessary as mysql-server-5.0.preinst checks for unmodified
|
|
conffiles from mysql-server-4.1 and copies 5.0 ones over them to avoid
|
|
unnecessary dpkg questions. As mysql-server-5.0 is not unpacked at its
|
|
pre-inst stage, it had to copy those files from a package that is
|
|
definetly already unpacked which does not have to be the case with Depends.
|
|
|
|
#
|
|
# 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
|