Merge lp:~clint-fewbar/ubuntu/maverick/mysql-5.1/maverick-beta-papercuts into lp:ubuntu/maverick/mysql-5.1

Proposed by Clint Byrum
Status: Rejected
Rejected by: Thierry Carrez
Proposed branch: lp:~clint-fewbar/ubuntu/maverick/mysql-5.1/maverick-beta-papercuts
Merge into: lp:ubuntu/maverick/mysql-5.1
Diff against target: 124 lines (+18/-31)
4 files modified
debian/additions/my.cnf (+1/-1)
debian/apparmor-profile (+2/-1)
debian/changelog (+14/-29)
debian/mysql-server-5.1.mysql.upstart (+1/-0)
To merge this branch: bzr merge lp:~clint-fewbar/ubuntu/maverick/mysql-5.1/maverick-beta-papercuts
Reviewer Review Type Date Requested Status
Thierry Carrez (community) Disapprove
Ubuntu branches Pending
Review via email: mp+32558@code.launchpad.net

Description of the change

Fixes linked bugs, both of which are fairly trivial.

Built and tested on maverick:

clint@ubuntu:~/pkg/mysql-5.1/bzr/maverick$ mysql_config
Usage: /usr/bin/mysql_config [OPTIONS]
Options:
        --cflags [-I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing -DUNIV_LINUX -DUNIV_LINUX]
        --include [-I/usr/include/mysql]
        --libs [-Wl,-Bsymbolic-functions -rdynamic -L/usr/lib/mysql -lmysqlclient]
        --libs_r [-Wl,-Bsymbolic-functions -rdynamic -L/usr/lib/mysql -lmysqlclient_r]
        --plugindir [/usr/lib/mysql/plugin]
        --socket [/var/run/mysqld/mysqld.sock]
        --port [0]
        --version [5.1.49]
        --libmysqld-libs [-Wl,-Bsymbolic-functions -rdynamic -L/usr/lib/mysql -lmysqld -ldl -lwrap -lrt]
clint@ubuntu:~/pkg/mysql-5.1/bzr/maverick$ mysql_config_pic
Usage: /usr/bin/mysql_config_pic [OPTIONS]
Options:
        --cflags [-I/usr/include/mysql -DBIG_JOINS=1 -fPIC -fno-strict-aliasing -DUNIV_LINUX -DUNIV_LINUX]
        --include [-I/usr/include/mysql]
        --libs [-rdynamic -L/usr/lib/mysql -lmysqlclient]
        --libs_r [-rdynamic -L/usr/lib/mysql -lmysqlclient_r]
        --plugindir [/usr/lib/mysql/plugin]
        --socket [/var/run/mysqld/mysqld.sock]
        --port [0]
        --version [5.1.49]
        --libmysqld-libs [-rdynamic -L/usr/lib/mysql -lmysqld -ldl -lwrap -lrt]

To post a comment you must log in.
16. By Clint Byrum

Changed default setting for tmpdir /var/tmp/mysql (LP: #375371)

17. By Clint Byrum

* debian/mysql-server.5.1.postinst: Specify the mysql user when installing
  the mysql databases. (LP: #591875)
* debian/apparmor-profile: Update apparmor profile for mysql plugins.
  (LP: #594932, #619172)
* Use debhelper where possible in rules
* Split binary packages into mysql-base, mysql-client, mysql-doc
* New upstream release

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

I just pushed an updated branch that locks mysqld down to /var/tmp/mysql, which will be created 750 in the upstart script (in case /var/tmp is cleared).

18. By Clint Byrum

Changing default tmpdir

Revision history for this message
Thierry Carrez (ttx) wrote :

Looking good, I'll update for current trunk and fix changelog, then upload.

review: Approve
Revision history for this message
Thierry Carrez (ttx) wrote :

Hmm, after a couple hours it fails to build with the following test failure:

rpl.rpl_innodb_bug28430 [ fail ] timeout after 900 seconds

mysqltest: Could not open connection 'default' after 500 attempts: 2002 Can't connect to local MySQL server through socket '/tmp/iVh6FPzXYn/mysqld.1.sock' (111)

Completed: Failed 1/711 tests, 99.86% were successful.

review: Disapprove

Unmerged revisions

18. By Clint Byrum

Changing default tmpdir

17. By Clint Byrum

* debian/mysql-server.5.1.postinst: Specify the mysql user when installing
  the mysql databases. (LP: #591875)
* debian/apparmor-profile: Update apparmor profile for mysql plugins.
  (LP: #594932, #619172)
* Use debhelper where possible in rules
* Split binary packages into mysql-base, mysql-client, mysql-doc
* New upstream release

16. By Clint Byrum

Changed default setting for tmpdir /var/tmp/mysql (LP: #375371)

15. By Clint Byrum

* Changed default setting for tmpdir /var/tmp (LP: #375371)
* Installing mysql_config_pic in /usr/bin so users of libmysqld-pic
  can extract the appropriate compile flags. (LP: #605021)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/additions/my.cnf'
2--- debian/additions/my.cnf 2010-05-26 09:27:48 +0000
3+++ debian/additions/my.cnf 2010-08-20 17:26:41 +0000
4@@ -44,7 +44,7 @@
5 port = 3306
6 basedir = /usr
7 datadir = /var/lib/mysql
8-tmpdir = /tmp
9+tmpdir = /var/tmp/mysql
10 skip-external-locking
11 #
12 # Instead of skip-networking the default is now to listen only on
13
14=== modified file 'debian/apparmor-profile'
15--- debian/apparmor-profile 2010-08-20 10:12:48 +0000
16+++ debian/apparmor-profile 2010-08-20 17:26:41 +0000
17@@ -5,7 +5,6 @@
18 /usr/sbin/mysqld {
19 #include <abstractions/base>
20 #include <abstractions/nameservice>
21- #include <abstractions/user-tmp>
22 #include <abstractions/mysql>
23 #include <abstractions/winbind>
24
25@@ -34,6 +33,8 @@
26 /var/log/mysql/* rw,
27 /var/run/mysqld/mysqld.pid w,
28 /var/run/mysqld/mysqld.sock w,
29+ /var/tmp/mysql/ r,
30+ /var/tmp/mysql/** rwk,
31
32 /sys/devices/system/cpu/ r,
33
34
35=== modified file 'debian/changelog'
36--- debian/changelog 2010-08-20 10:12:48 +0000
37+++ debian/changelog 2010-08-20 17:26:41 +0000
38@@ -1,3 +1,9 @@
39+mysql-5.1 (5.1.49-1ubuntu7) maverick; urgency=low
40+
41+ * Changed default setting for tmpdir /var/tmp/mysql (LP: #375371)
42+
43+ -- Clint Byrum <clint@ubuntu.com> Fri, 20 Aug 2010 10:17:00 -0700
44+
45 mysql-5.1 (5.1.49-1ubuntu6) maverick; urgency=low
46
47 [Clint Byrum]
48@@ -12,15 +18,6 @@
49
50 -- Chuck Short <zulcss@ubuntu.com> Fri, 20 Aug 2010 10:12:48 -0400
51
52-mysql-5.1 (5.1.49-1ubuntu5) maverick; urgency=low
53-
54- * New patch: 99_fix_testsuite_for_installed_env.dpatch: fix
55- mysql-testsuite to work with the installation location (LP: #617461)
56- * debian/apparmor-profile: add mmap access to mysql plugin location
57- (LP: #617463)
58-
59- -- Steve Beattie <sbeattie@ubuntu.com> Thu, 12 Aug 2010 15:44:46 -0700
60-
61 mysql-5.1 (5.1.49-1ubuntu4) maverick; urgency=low
62
63 * debian/rules: doy. Put dh_apparmor in binary-arch so more than just
64@@ -3102,18 +3099,6 @@
65
66 mysql-dfsg (4.0.20-8) unstable; urgency=low
67
68- * The mysqlcheck that is started from the initscript will now be
69- backgrounded because it might else prevent the boot process to continue.
70- It also now notifies root by mail and syslog if a table is corrupt.
71- * The "debian-sys-maint" MySQL user now has almost full rights so that other
72- packages might use this account to create databases and user (thanks to
73- Andreas Barth). Closes: #262541
74- * Added paranoid rules for logcheck.
75-
76- -- Christian Hammers <ch@debian.org> Sun, 1 Aug 2004 21:00:55 +0200
77-
78-mysql-dfsg (4.0.20-8) unstable; urgency=low
79-
80 * Upload stalled. Not released.
81
82 -- Christian Hammers <ch@debian.org> Sun, 1 Aug 2004 20:27:55 +0200
83@@ -4638,6 +4623,14 @@
84
85 -- Scott Hanson <shanson@debian.org> Wed, 28 Jan 1998 18:59:09 +0100
86
87+mysql (3.21.21.beta-1) unstable; urgency=low
88+
89+ * Use debhelper where possible in rules
90+ * Split binary packages into mysql-base, mysql-client, mysql-doc
91+ * New upstream release
92+
93+ -- Scott Hanson <shanson@debian.org> Thu, 15 Jan 1998 08:12:17 +0100
94+
95 mysql (3.21.21a.beta-2) unstable; urgency=low
96
97 * Compile with libpthreads from libc6-dev_2.0.6-3 rather than statically
98@@ -4653,14 +4646,6 @@
99
100 -- Scott Hanson <shanson@debian.org> Mon, 19 Jan 1998 07:52:48 +0100
101
102-mysql (3.21.21.beta-1) unstable; urgency=low
103-
104- * Use debhelper where possible in rules
105- * Split binary packages into mysql-base, mysql-client, mysql-doc
106- * New upstream release
107-
108- -- Scott Hanson <shanson@debian.org> Thu, 15 Jan 1998 08:12:17 +0100
109-
110 mysql (3.21.19.beta-1) unstable; urgency=low
111
112 * Offer to set root password in mysql_install_db
113
114=== modified file 'debian/mysql-server-5.1.mysql.upstart'
115--- debian/mysql-server-5.1.mysql.upstart 2010-08-01 11:23:11 +0000
116+++ debian/mysql-server-5.1.mysql.upstart 2010-08-20 17:26:41 +0000
117@@ -17,6 +17,7 @@
118 #Sanity checks
119 [ -r $HOME/my.cnf ]
120 [ -d /var/run/mysqld ] || install -m 755 -o mysql -g root -d /var/run/mysqld
121+ [ -d /var/tmp/mysql ] || install -m 750 -o mysql -g mysql -d /var/tmp/mysql
122 # Load AppArmor profile
123 if aa-status --enabled 2>/dev/null; then
124 apparmor_parser -r /etc/apparmor.d/usr.sbin.mysqld || true

Subscribers

People subscribed via source and target branches

to all changes: