Merge ~ahasenack/ubuntu/+source/apr-util:focal-dbd-mysql-module-load into ubuntu/+source/apr-util:ubuntu/devel

Proposed by Andreas Hasenack
Status: Merged
Approved by: Andreas Hasenack
Approved revision: 27670e9de8ada7ec0cfa576ec6ef749576c58980
Merged at revision: 27670e9de8ada7ec0cfa576ec6ef749576c58980
Proposed branch: ~ahasenack/ubuntu/+source/apr-util:focal-dbd-mysql-module-load
Merge into: ubuntu/+source/apr-util:ubuntu/devel
Diff against target: 53 lines (+31/-0)
3 files modified
debian/changelog (+7/-0)
debian/patches/mysql8-my_init.patch (+23/-0)
debian/patches/series (+1/-0)
Reviewer Review Type Date Requested Status
Christian Ehrhardt  (community) Approve
Canonical Server Core Reviewers Pending
Review via email: mp+380246@code.launchpad.net

Description of the change

Fix loading the mysql dbd module.

Testing instructions are in the linked bug.

I pinged Lars in #ubuntu-devel and he agreed my_init() shouldn't be needed at all.

PPA for testing: https://launchpad.net/~ahasenack/+archive/ubuntu/mysql8-my-init/

To post a comment you must log in.
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

- as the other release -

Changes LGTM in both releases.
Thanks for checking with Lars on this.

The build looks good as well (BTW the documentation build misses "dot" as a dependency) but that is not part of your upload which I review.

Changelog LGTM as well.
Didn't find anything to correct.

review: Approve
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Thanks, tagging and uploading 27670e9de8ada7ec0cfa576ec6ef749576c58980:

$ git push pkg upload/1.6.1-4ubuntu2
Enumerating objects: 16, done.
Counting objects: 100% (16/16), done.
Delta compression using up to 4 threads
Compressing objects: 100% (11/11), done.
Writing objects: 100% (11/11), 1.75 KiB | 179.00 KiB/s, done.
Total 11 (delta 7), reused 0 (delta 0)
To ssh://git.launchpad.net/~usd-import-team/ubuntu/+source/apr-util
 * [new tag] upload/1.6.1-4ubuntu2 -> upload/1.6.1-4ubuntu2

$ dput ubuntu ../apr-util_1.6.1-4ubuntu2_source.changes
Checking signature on .changes
gpg: ../apr-util_1.6.1-4ubuntu2_source.changes: Valid signature from AC983EB5BF6BCBA9
Checking signature on .dsc
gpg: ../apr-util_1.6.1-4ubuntu2.dsc: Valid signature from AC983EB5BF6BCBA9
Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading apr-util_1.6.1-4ubuntu2.dsc: done.
  Uploading apr-util_1.6.1-4ubuntu2.debian.tar.xz: done.
  Uploading apr-util_1.6.1-4ubuntu2_source.buildinfo: done.
  Uploading apr-util_1.6.1-4ubuntu2_source.changes: done.
Successfully uploaded packages.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 75eba76..e4fb88c 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,10 @@
6+apr-util (1.6.1-4ubuntu2) focal; urgency=medium
7+
8+ * d/p/mysql8-my_init.patch: don't call my_init() since it's not
9+ exported anymore since MySQL 8.0.2 (LP: #1859773)
10+
11+ -- Andreas Hasenack <andreas@canonical.com> Wed, 04 Mar 2020 16:51:27 -0300
12+
13 apr-util (1.6.1-4ubuntu1) focal; urgency=medium
14
15 * Adjust Build-Depends to unambiguously require Python 2.
16diff --git a/debian/patches/mysql8-my_init.patch b/debian/patches/mysql8-my_init.patch
17new file mode 100644
18index 0000000..3be2139
19--- /dev/null
20+++ b/debian/patches/mysql8-my_init.patch
21@@ -0,0 +1,23 @@
22+Description: don't call my_init()
23+ Since MySQL 8.0.2, my_init() isn't exported anymore and shouldn't have to be
24+ called by clients directly. See
25+ https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-2.html
26+Author: Andreas Hasenack <andreas@canonical.com>
27+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1859773
28+Forwarded: no
29+X-Forwarded-Reason: Should have an explicit check for MySQL 8.0.2
30+Last-Update: 2020-03-04
31+---
32+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
33+--- a/dbd/apr_dbd_mysql.c
34++++ b/dbd/apr_dbd_mysql.c
35+@@ -1263,9 +1263,6 @@
36+
37+ static void dbd_mysql_init(apr_pool_t *pool)
38+ {
39+-#if MYSQL_VERSION_ID < 100000
40+- my_init();
41+-#endif
42+ mysql_thread_init();
43+
44+ /* FIXME: this is a guess; find out what it really does */
45diff --git a/debian/patches/series b/debian/patches/series
46index 3e71f6a..8927119 100644
47--- a/debian/patches/series
48+++ b/debian/patches/series
49@@ -12,3 +12,4 @@ support_mariadb.patch
50 doxygen_no_ful_path_names.patch
51 fix_gdbm_error_handling
52 mysql8_my_bool.patch
53+mysql8-my_init.patch

Subscribers

People subscribed via source and target branches