[MDEV-8379] SUSE mariadb patches Created: 2015-06-25 Updated: 2022-01-30 Resolved: 2022-01-28 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | N/A |
| Affects Version/s: | 10.0, 10.1 |
| Fix Version/s: | 10.2.42, 10.3.33, 10.4.23, 10.5.14, 10.6.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Sergey Vojtovich | Assignee: | Robert Bindar |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | foundation | ||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Sprint: | 5.5.45, 10.1.8-4, 5.5.47-1, 10.0.23, 5.5.48-0 | ||||||||||||||||||||||||||||
| Description |
| Comments |
| Comment by Kristyna Streitova [ 2015-06-25 ] | |
|
It has to be said that the patches should be inspected before applying. It can happen that not all of them will be necessary or you may find some of them inconvenient. So please don't forget to review them. Thank you. | |
| Comment by Sergey Vojtovich [ 2015-07-31 ] | |
|
https://github.com/openSUSE/mysql-packaging/blob/master/patches/mysql-patches/mariadb-5.1.50-strncat-overflow.patch | |
| Comment by Sergey Vojtovich [ 2015-07-31 ] | |
|
serg, please review ported patch https://github.com/openSUSE/mysql-packaging/blob/master/patches/mysql-patches/mariadb-5.5.32-upgrade-exit-status.patch Patch is at commits@. | |
| Comment by Sergei Golubchik [ 2015-07-31 ] | |
|
I don't have an opinion about this patch. Up to you. | |
| Comment by Sergey Vojtovich [ 2015-07-31 ] | |
|
I believe it is reasonable request: scripts somehow need to distinguish between real failure and "up to date". What I'm not sure about is if there is a need to distinguish between "up to date" and "job done", but we can fix that easily if needed anyway. | |
| Comment by Sergey Vojtovich [ 2015-07-31 ] | |
|
kstreitova, miska, a question re https://github.com/openSUSE/mysql-packaging/blob/master/patches/mysql-patches/mariadb-5.5.28-install_db-quiet.patch: there is mysql_install_db --rpm, which suppresses this output. Why didn't it work for you? | |
| Comment by Kristyna Streitova [ 2015-08-17 ] | |
|
I'm afraid that --rpm option would change the mysql_install_db script behaviour more than we want. If we use --rpm option it will also disable echoes about how to start and test MariaDB daemon. And we just want to adjust these echoes not disable them. | |
| Comment by Kristyna Streitova [ 2015-08-21 ] | |
|
Regarding It seems that there is no commit for 10.1.x branch. Is it ok? Thank you. | |
| Comment by Sergey Vojtovich [ 2015-08-21 ] | |
|
kstreitova, yes, it's ok. We'll merge it 5.5 -> 10.0 -> 10.1 before next release. | |
| Comment by Sergey Vojtovich [ 2015-12-03 ] | |
| |
| Comment by Sergey Vojtovich [ 2015-12-14 ] | |
|
serg, please suggest what should we do about https://github.com/openSUSE/mysql-packaging/blob/master/patches/mysql-patches/mariadb-10.0.15-fortify-and-O.patch | |
| Comment by Sergei Golubchik [ 2015-12-15 ] | |
|
that's tokudb, should probably be reported to percona first. | |
| Comment by Sergey Vojtovich [ 2016-02-02 ] | |
|
serg, please have a quick look at 5.5 patches, specifically there seem to be some very suse specific ones. Do we want to take them? | |
| Comment by Sergei Golubchik [ 2016-02-04 ] | |
1. https://github.com/openSUSE/mysql-packaging/blob/master/patches/mysql-patches/mysql-community-server-5.1.45-multi-configuration.patchI don't mind, but not in /etc/my.cnf — in /etc/my.cnf.d/mysqld_multi.cnf 2. https://github.com/openSUSE/mysql-packaging/blob/master/patches/mysql-patches/mysql-community-server-5.1.46-logrotate.patcherror message is kind of ok. The path change, of course, we cannot take. We can make it configurable and suse will need to build with -DLOG_PATH=/var/log/mysql. Let's do it if they'll prefer a compilation option over a patch. 3. https://github.com/openSUSE/mysql-packaging/blob/master/patches/mysql-patches/mariadb-5.5.28-install_db-quiet.patchagain, partially. I agree that mysql_install_db should not say "To start mysqld at boot time you have to copy support-files/mysql.server to the right place for your system" for any rpm or deb packages. But the second chunk is suse specific, we cannot take it. 4. https://github.com/openSUSE/mysql-packaging/blob/master/patches/mysql-patches/mariadb-5.5.25-mysqld_multi-features.patchthese features are ok. But I think that --datadir is a confusing name for "create data directory and install privilege tables" functionality. And I wouldn't use killproc — kill is as good and it is installed everywhere. 5. https://github.com/openSUSE/mysql-packaging/blob/master/patches/mysql-patches/mariadb-5.2.3-cnf.patchI woldn't bother. These files are obsolete anyway 6. https://github.com/openSUSE/mysql-packaging/blob/master/patches/mysql-patches/mysql-community-server-5.5.6-safe-process-in-bin.patchI don't understand why 7. https://github.com/openSUSE/mysql-packaging/blob/master/patches/mysql-patches/mariadb-5.5.28-group.patchI'm fine with adding support for a group, but this patch doesn't seem to have a server part. It adds --group to the command line and the server doesn't recognize this option. And, btw, I would rather not add a new option, but extend --user to support the conventional user:group syntax. 8. https://github.com/openSUSE/mysql-packaging/blob/master/patches/mysql-patches/mysql-5.5.31-upgrade-datadir.patchthis seems ok. The last hunk is fragile. They do upgrade_already_done() because it needs the datadir and they want to have it in the cache. It's an obscure side effect, I'd rather keep that if() as is and add an explicit
or, even better, extracted that in a separate function, like, get_datadir(). Summary:
| |
| Comment by Sergey Vojtovich [ 2016-04-19 ] | |
|
kstreitova, I don't see MariaDB/MySQL 5.5 at https://github.com/openSUSE/mysql-packaging anymore. Does it still make sense to apply patches to 5.5? | |
| Comment by Kristyna Streitova [ 2016-04-19 ] | |
|
Sergey, from our point of view I would say it isn't worth it. We don't have MariaDB 5.5 in any supported product anymore. | |
| Comment by Sergey Vojtovich [ 2016-04-19 ] | |
|
kstreitova, I updated task accordingly, thanks! Please also see notes re mariadb-10.0.5-deharcode-libdir.patch and mariadb-10.0.10-string-overflow.patch in task description. It would be nice to have answers for Serg's questions too. | |
| Comment by Daniel Black [ 2017-12-28 ] | |
|
mariadb-10.2.3-mysql_install_db-mariadb_dirs.patch - hopefully fixed with 52516706c86f9f66c76836eabde7e2477694bac3 | |
| Comment by Daniel Black [ 2018-02-14 ] | |
|
Requested feedback in opensuse bug 1080891, seems a lot has been removed since this was opened. I had relook at other distro patches/packaging to what could be done to converge and made comments on their bug. https://build.opensuse.org/package/revisions/server:database/mariadb . | |
| Comment by Sergei Golubchik [ 2018-03-29 ] | |
|
anything still needs to be done here? | |
| Comment by Sergey Vojtovich [ 2018-03-29 ] | |
|
Most probably yes. | |
| Comment by Kristyna Streitova [ 2018-04-11 ] | |
|
Regarding mysql-community-server-5.1.46-logrotate.patch: Sergei mentioned that the path can be configurable and then we would need to build it with DLOG_PATH=/var/log/mysql. I think that this compilation option is definitely better than a patch for us. So we are ok with it. Regarding mariadb-5.5.28-group.patch: You are probably right regarding this patch. It was added many years ago by the previous maintainer and I'm not sure what was the initial idea behind this. But it really looks like a half solution of the problem. Using a group option within our systemd-helper script was removed a few years ago as it caused troubles because MariaDB resolved "group" option as a "group_concat_max_len" option (see https://github.com/openSUSE/mysql-packaging/issues/15). I think that we can remove this patch because we no longer use group option anyway. However, I guess that adding proper and full support for a group option would be a really nice feature. | |
| Comment by Jon Brightwell [ 2019-09-06 ] | |
|
OpenSUSE is now shipping 10.3. Would it be worth revisiting this? It's down to 6 patches in obs https://build.opensuse.org/package/show/server:database/mariadb | |
| Comment by Michael Widenius [ 2022-01-28 ] | |
|
All relevant Suse patches has been added. |