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

Proposed by Andreas Hasenack
Status: Merged
Approved by: Andreas Hasenack
Approved revision: 312ea47bbbda4898189136b35156f1329a61e39c
Merge reported by: Andreas Hasenack
Merged at revision: 312ea47bbbda4898189136b35156f1329a61e39c
Proposed branch: ~ahasenack/ubuntu/+source/apr-util:eoan-dbd-mysql-module-load
Merge into: ubuntu/+source/apr-util:ubuntu/eoan-devel
Diff against target: 67 lines (+33/-1)
4 files modified
debian/changelog (+7/-0)
debian/control (+2/-1)
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+380249@code.launchpad.net

This proposal supersedes a proposal from 2020-03-04.

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/

Note that eoan's mysql8 still export my_bool.

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

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 312ea47bbbda4898189136b35156f1329a61e39c

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

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

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

This migrated.

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 d722f4b..33c6d70 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,10 @@
6+apr-util (1.6.1-4ubuntu0.1) eoan; 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 17:00:31 -0300
12+
13 apr-util (1.6.1-4build1) eoan; urgency=medium
14
15 * No change rebuild for libmysqlclient21.
16diff --git a/debian/control b/debian/control
17index 42a112d..994dd5f 100644
18--- a/debian/control
19+++ b/debian/control
20@@ -1,7 +1,8 @@
21 Source: apr-util
22 Section: libs
23 Priority: optional
24-Maintainer: Debian Apache Maintainers <debian-apache@lists.debian.org>
25+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
26+XSBC-Original-Maintainer: Debian Apache Maintainers <debian-apache@lists.debian.org>
27 Uploaders: Stefan Fritsch <sf@debian.org>
28 Build-Depends: debhelper (>> 11~), autoconf, mawk, libldap2-dev, libexpat1-dev, libdb-dev, libgdbm-dev, libapr1-dev (>> 1.4.8-2~), libsqlite3-dev, libpq-dev, python:any, default-libmysqlclient-dev, unixodbc-dev, doxygen, libssl-dev
29 Standards-Version: 4.1.3
30diff --git a/debian/patches/mysql8-my_init.patch b/debian/patches/mysql8-my_init.patch
31new file mode 100644
32index 0000000..3be2139
33--- /dev/null
34+++ b/debian/patches/mysql8-my_init.patch
35@@ -0,0 +1,23 @@
36+Description: don't call my_init()
37+ Since MySQL 8.0.2, my_init() isn't exported anymore and shouldn't have to be
38+ called by clients directly. See
39+ https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-2.html
40+Author: Andreas Hasenack <andreas@canonical.com>
41+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1859773
42+Forwarded: no
43+X-Forwarded-Reason: Should have an explicit check for MySQL 8.0.2
44+Last-Update: 2020-03-04
45+---
46+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
47+--- a/dbd/apr_dbd_mysql.c
48++++ b/dbd/apr_dbd_mysql.c
49+@@ -1263,9 +1263,6 @@
50+
51+ static void dbd_mysql_init(apr_pool_t *pool)
52+ {
53+-#if MYSQL_VERSION_ID < 100000
54+- my_init();
55+-#endif
56+ mysql_thread_init();
57+
58+ /* FIXME: this is a guess; find out what it really does */
59diff --git a/debian/patches/series b/debian/patches/series
60index f1d8f4c..49aedad 100644
61--- a/debian/patches/series
62+++ b/debian/patches/series
63@@ -11,3 +11,4 @@ fix_doxygen_inputdir
64 support_mariadb.patch
65 doxygen_no_ful_path_names.patch
66 fix_gdbm_error_handling
67+mysql8-my_init.patch

Subscribers

People subscribed via source and target branches