[MDEV-14900] Upstream 10.4 debian patches Created: 2018-01-09 Updated: 2020-10-06 Resolved: 2020-09-22 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Packaging |
| Fix Version/s: | N/A |
| Type: | Task | Priority: | Major |
| Reporter: | Sergey Vojtovich | Assignee: | Vicențiu Ciorbaru |
| Resolution: | Won't Fix | Votes: | 1 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Description |
|
The patches can be found here: https://anonscm.debian.org/cgit/pkg-mysql/mariadb-10.3.git/tree/debian/patches
|
| Comments |
| Comment by Otto Kekäläinen [ 2018-01-15 ] | ||||||||||||||||||
|
We are also dragging along patches inside our own repository. Still in 10.3 branch we have files under debian/patches/. It does not really make sense for us as upstream to have patches on ourselves. Please also review them. If the patches inside our own source repository serves a purpose that isn't in any way fulfilled by current master sources, then I think we need to factor in them some how. Maybe have some CMake switch that activates the alternative behaviour or something. | ||||||||||||||||||
| Comment by Daniel Black [ 2018-01-15 ] | ||||||||||||||||||
|
33,41,50 - all fixed by https://github.com/MariaDB/server/pull/536 61 - seem related to 38 - is there some explanation as to why these changes are needed? | ||||||||||||||||||
| Comment by Otto Kekäläinen [ 2018-01-18 ] | ||||||||||||||||||
|
Sorry, I don't have any additional knowledge of the patches. I don't fully understand them. For 38 the history does not reveal anything useful either: https://github.com/MariaDB/server/commits/10.3/debian/patches/38_scripts__mysqld_safe.sh__signals.dpatch | ||||||||||||||||||
| Comment by Daniel Black [ 2018-01-18 ] | ||||||||||||||||||
|
By the date on the 38 patch's changelog, signal handling I suspect its all handled within mysqld now. Certainly: The 'cmd & wait' looks like it might be trying to become a sub-process early so manually killing the mysqld_safe script doesn't affect mysqld. As odd as it looks this bit might be useful. | ||||||||||||||||||
| Comment by Daniel Black [ 2018-01-18 ] | ||||||||||||||||||
|
https://anonscm.debian.org/cgit/pkg-mysql/mariadb-10.3.git/tree/debian/patches/remove-systemd-obsolete-target.patch and https://anonscm.debian.org/cgit/pkg-mysql/mariadb-10.3.git/tree/debian/patches/Add_default_ExecStartPre_to_mariadb@.service.patch - is https://github.com/MariaDB/server/pull/387 | ||||||||||||||||||
| Comment by Otto Kekäläinen [ 2018-01-24 ] | ||||||||||||||||||
|
svoj Please take a look at this commit https://anonscm.debian.org/cgit/pkg-mysql/mariadb-10.3.git/commit/?id=11384b0f3c1273e37e4a77dc09779bd3d71dce98 In that commit oerdnj changed the patch format to use a more modern Debian tooling. As a side effect, the Description fields of each patch was lost. If you look at that commit you can still see the descriptions and reviewing is easier. Sorry for not noticing this earlier. Here is the patch you asked about the purpose with decription: https://anonscm.debian.org/cgit/pkg-mysql/mariadb-10.3.git/diff/debian/patches/armhf_mroonga_storage_fail.patch?id=11384b0f3c1273e37e4a77dc09779bd3d71dce98 More info about it can be asked from cvicentiu If you eventually provide me a list of patches you think are upstreamed as such or in another implementation, I will bluntly remove them from downstream and see what happens. I don't have expertise to judge the patches if they have some aspect that is still needed and not in upstream already. | ||||||||||||||||||
| Comment by Daniel Black [ 2018-01-24 ] | ||||||||||||||||||
|
Wow - what a lost in useful information. https://anonscm.debian.org/cgit/pkg-mysql/mariadb-10.3.git/tree/debian/patches/kFreeBSD-gettid.patch should be pushed https://github.com/percona/PerconaFT they do get to merging patches eventually. mysqld_multi_confd.patch seems based on the mysql bugs to be about not processing include/includedir. mysqd_multi does now and should probably be dropped. mysqld_multi.server_lsb-header.patch no point updating this if you don't install it. There's a few prs about improving the systemd multi instance service definition. innodb_simulate_comp_test_speedup.patch - depending on this patch is wrong. innodb has changed a lot so remove and see if this test fails again. hurd_socket.patch - seems harmless to include extend_default_test_timeout_for_tokudb.patch - MTR_FORCE is used by a number of targets not directly used by debian/rules. Could be dropped. If I've missed something the testcase timeout and suite-timeout can be controlled by environment variables in the debian build infrastructure. Hopefully improved hardware since 2014 means this won't be required. armhf_mroonga_storage_fail.patch as cvicentiu said, should be fixed upstream. Can't see a reason to drop/rework this at the moment. Unconditionally applying it and letting the complier is probably an ok call too for the same reasons mentioned in the former header of the mips patches. mips patches. can/should be merged upstream. seem harmless enough. unstable -tests - couldn't see any in 10.3 that where disabled for mips. multi_source.gtid masked due to | ||||||||||||||||||
| Comment by Otto Kekäläinen [ 2018-02-27 ] | ||||||||||||||||||
|
svoj So oerdnj removed some patches and all patch descriptions in commit https://anonscm.debian.org/cgit/pkg-mysql/mariadb-10.3.git/commit/debian/patches?h=master&id=11384b0f3c1273e37e4a77dc09779bd3d71dce98 So I recovered that commit into a branch you can easily browse at https://anonscm.debian.org/cgit/pkg-mysql/mariadb-10.3.git/tree/debian/patches?h=patches-with-descriptions | ||||||||||||||||||
| Comment by Daniel Black [ 2018-02-28 ] | ||||||||||||||||||
|
mysqld_multi_confd.patch - just needs to use INSTALL_SYSCONF2DIR replace_dash_with_bash_mbug675185.patch - er, NO, see above. | ||||||||||||||||||
| Comment by Daniel Black [ 2018-02-28 ] | ||||||||||||||||||
|
kFreeBSD-gettid.patch NO, thd_self on FreeBSD requires an argument. Is anyone going to push this upstream to https://github.com/percona/PerconaFT ? I think I've done enough to fix the lack of Debian up-streaming already. | ||||||||||||||||||
| Comment by Otto Kekäläinen [ 2018-06-29 ] | ||||||||||||||||||
|
Here are steps how to get the patch files from the new salsa server:
Some are already upstreamed, but most not. This is the revision where the "Description" fields are intact (before Ondrej removed them) and thus easiest to review/decide on if the patch should go upstream or not. | ||||||||||||||||||
| Comment by Otto Kekäläinen [ 2018-06-29 ] | ||||||||||||||||||
|
Goal: the downstream directory debian/patches should be empty. All patches should be either upstreamed (if they are OK), or deleted (if the fix was wrong and upstream will produce a better fix). This is the latest list of patches we have for MariaDB 10.1 in Debian Stretch (current stable release):
| ||||||||||||||||||
| Comment by Sergei Golubchik [ 2018-06-29 ] | ||||||||||||||||||
|
extend_default_test_timeout_for_tokudb.patch — not applicable anymore | ||||||||||||||||||
| Comment by Sergei Golubchik [ 2018-06-29 ] | ||||||||||||||||||
|
fix-spelling-errors.patch — applied | ||||||||||||||||||
| Comment by Sergei Golubchik [ 2018-06-29 ] | ||||||||||||||||||
|
hurd_socket.patch — applied | ||||||||||||||||||
| Comment by Sergei Golubchik [ 2018-06-29 ] | ||||||||||||||||||
|
libmariadbclient-rename.patch — already done | ||||||||||||||||||
| Comment by Sergei Golubchik [ 2018-06-29 ] | ||||||||||||||||||
|
man_pages_wsrep.patch — already done | ||||||||||||||||||
| Comment by Sergei Golubchik [ 2018-06-29 ] | ||||||||||||||||||
|
mips-unstable-tests.patch — already done | ||||||||||||||||||
| Comment by Sergei Golubchik [ 2018-06-29 ] | ||||||||||||||||||
|
mysql-test__db_test.patch — already done | ||||||||||||||||||
| Comment by Sergei Golubchik [ 2018-06-29 ] | ||||||||||||||||||
|
mysqld_multi.server_lsb-header.patch — applied | ||||||||||||||||||
| Comment by Sergei Golubchik [ 2018-06-29 ] | ||||||||||||||||||
|
remove-systemd-obsolete-target.patch — not applied | ||||||||||||||||||
| Comment by Sergei Golubchik [ 2018-06-29 ] | ||||||||||||||||||
|
remove_rename_mariadb-server_files_in.patch — already done | ||||||||||||||||||
| Comment by Sergei Golubchik [ 2018-06-29 ] | ||||||||||||||||||
|
replace_dash_with_bash_mbug675185.patch — not applied | ||||||||||||||||||
| Comment by Sergei Golubchik [ 2018-06-29 ] | ||||||||||||||||||
|
scripts_mysql_create_system_tables_no_test.patch — already done | ||||||||||||||||||
| Comment by Sergei Golubchik [ 2018-06-29 ] | ||||||||||||||||||
|
armhf_mroonga_storage_fail.patch — applied | ||||||||||||||||||
| Comment by Sergei Golubchik [ 2018-06-29 ] | ||||||||||||||||||
|
mysqld_multi_confd.patch — not applied | ||||||||||||||||||
| Comment by Sergei Petrunia [ 2018-06-29 ] | ||||||||||||||||||
|
fix-FTBFS-on-GNU-Hurd.patch - adjusted and applied (patch-to-that patch, fix for debian bug# 882062 is applied as well) | ||||||||||||||||||
| Comment by Vicențiu Ciorbaru [ 2018-06-29 ] | ||||||||||||||||||
|
0026-Mroonga-fix-ice-arm64.patch - applied to 10.1 | ||||||||||||||||||
| Comment by Sergei Golubchik [ 2018-06-29 ] | ||||||||||||||||||
|
mips-machine.patch — already done | ||||||||||||||||||
| Comment by Daniel Black [ 2018-06-30 ] | ||||||||||||||||||
|
> remove-systemd-obsolete-target.patch — not applied Why? Widely removed from fedora and systemd > 202 (http://opensuse.14.x6.nabble.com/reminder-for-systemd-services-do-not-use-syslog-target-anymore-td4991467.html). Even RHEL/Centos7 is version 219. Considering https://github.com/MariaDB/server/pull/387 instead? | ||||||||||||||||||
| Comment by Daniel Black [ 2018-06-30 ] | ||||||||||||||||||
|
> kFreeBSD-gettid.patch Yes. To: https://github.com/percona/PerconaFT | ||||||||||||||||||
| Comment by Sergei Golubchik [ 2018-07-01 ] | ||||||||||||||||||
|
Why? Because I'm no systemd expert and "not needed in Debian 9" argument didn't sound particularly reassuring that the change won't blow up anywhere else. But you seem to know that these lines are not needed in (at least some) other distros as well. And you've seen buildbot so you know on what distros we build. So if you think the patch is safe to apply, I can do it. | ||||||||||||||||||
| Comment by Daniel Black [ 2018-07-02 ] | ||||||||||||||||||
|
> "not needed in Debian 9" argument didn't sound particularly reassuring that the change won't blow up anywhere else. True. Having recently pushed two reverts of debian patches I certainly follow that. Yes the remove-systemd-obsolete-target.patch is safe (10.2 branch). Oldest systemd version is systemd 210 as found in SLES12 looking in the kernel logs in buildbot. Older SLES/RHEL/Centos versions don't have systemd. | ||||||||||||||||||
| Comment by Sergei Golubchik [ 2018-07-02 ] | ||||||||||||||||||
|
ok, thanks. | ||||||||||||||||||
| Comment by Otto Kekäläinen [ 2020-03-03 ] | ||||||||||||||||||
|
Changed topic to be about upstreamin 10.4 patches in Debian. For latest status, see https://salsa.debian.org/mariadb-team/mariadb-10.4/-/tree/master/debian/patches It would be perfect if some of these patches landed in 10.5 before it goes GA. Any change cvicentiu you could take a look in the following weeks? | ||||||||||||||||||
| Comment by Otto Kekäläinen [ 2020-06-14 ] | ||||||||||||||||||
|
Related:
| ||||||||||||||||||
| Comment by Otto Kekäläinen [ 2020-06-27 ] | ||||||||||||||||||
|
Documented in downstream patches the latest status in https://salsa.debian.org/mariadb-team/mariadb-10.4/-/commit/d5b206fc7dba8fab2f92c2c09796ffdc5d48a0ab | ||||||||||||||||||
| Comment by Daniel Black [ 2020-09-22 ] | ||||||||||||||||||
|
Kinda fixed as much as possible. Remaining outstanding bits are in new MDEVs. Making won't fix here because to mark as fixed would somehow involve a version to be specified which isn't possible given the spread of of fixed versions. | ||||||||||||||||||
| Comment by Otto Kekäläinen [ 2020-10-06 ] | ||||||||||||||||||
|
Current status for https://salsa.debian.org/mariadb-team/mariadb-10.5/-/tree/master/debian/patches is pretty good and indeed all patches are in their own MDEVs now or I have sent email to their authors urging them to submit upstream themselves. |