File: README.Maintainer

package info (click to toggle)
mysql 3.23.49-8.13
  • links: PTS
  • area: main
  • in suites: woody
  • size: 65,624 kB
  • ctags: 45,242
  • sloc: ansic: 255,722; cpp: 86,801; perl: 26,117; tcl: 19,882; sh: 18,775; asm: 4,001; yacc: 2,626; makefile: 2,494; java: 2,300; awk: 1,484; sed: 428
file content (71 lines) | stat: -rw-r--r-- 2,927 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
###########################################################################
# Here are some information that are only of interest for the current and #
# following Debian maintainers of MySQL.                                  #
###########################################################################

#
# Remarks to debconf
#
I like to show the "please run mysql_fix_priv_tables" depending on the
current and new mysql version but I don't yet know who to get the last
one in the mysql-server.config script!

#
# 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

#
# Remarks to the start scripts
#
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.

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-extra-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.

# 
# Preparing the orig.tar.gz
#
## some files have to be deleted as they are reproducible and take much space
rm Docs/manual.html Docs/manual.txt Docs/mysql.info
## these is a leftover
rm mit-pthreads/config.status
## some symlinks are made but not deleted from the makefile. For the
## diff to get generated we must do a compile and distclean on the orig source
./configure --with-innodb --with-berkeley-db && make && make distclean

#
# The following files outside the Debian directory were patched:
#
## somefiles are deleted/symlinked after the make distclean and therefore 
## causes errors during dpkg's diff creation. To fix:
rm Docs/manual.html Docs/manual.txt Docs/mysql.info

#
# Correct the manpages
#
perl -pi -e 's/^\.TH\s+(\S+?)\s+.*/sprintf(".TH %s 1 \"19 December 2000\" \"MySQL 3.23\" \"MySQL database\"", lc($1))/e' *.1

#
# Apply the following patches from the debian/patches/ directory
#
for i in debian/patches/*; do patch -p1 < $i; done