Commit Graph

52 Commits

Author SHA1 Message Date
Vít Ondruch
b5062f7590 Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_3.2 2023-01-03 18:46:22 +01:00
Jun Aruga
c33b1cff59 Fix the broken SSL tests with MariaDB 10.5.18.
This commit fixes the broken SSL tests below.

The rubygem-mysql2 build started to fail with the error below by the `mysql`
that can't connect to the MariaDB server, when a dependency mariadb was upgraded
from the version 3:10.5.16-3.fc37 to 3:10.5.18-1.fc38.
https://koschei.fedoraproject.org/build/14086115

build.log
~~~
+ /usr/libexec/mysqld --datadir=/builddir/build/BUILD/mysql2-0.5.4/usr/share/gems/gems/mysql2-0.5.4/data --log-error=/builddir/build/BUILD/mysql2-0.5.4/usr/share/gems/gems/mysql2-0.5.4/mysql.log --socket=/builddir/build/BUILD/mysql2-0.5.4/usr/share/gems/gems/mysql2-0.5.4/mysql.sock --pid-file=/builddir/build/BUILD/mysql2-0.5.4/usr/share/gems/gems/mysql2-0.5.4/mysql.pid --port=13471 --ssl
++ seq 10
+ for i in $(seq 10)
+ sleep 1
2022-11-17 11:20:48 0 [Note] /usr/libexec/mysqld (mysqld 10.5.18-MariaDB) starting as process 1297 ...
+ grep -q 'ready for connections.' /builddir/build/BUILD/mysql2-0.5.4/usr/share/gems/gems/mysql2-0.5.4/mysql.log
+ echo 'Waiting connections... 1'
...
+ echo 'Waiting connections... 10'
Waiting connections... 10
+ mysql -u mockbuild -e 'ALTER USER '\''root'\''@'\''localhost'\'' IDENTIFIED VIA mysql_native_password USING PASSWORD('\'''\'')' -S /builddir/build/BUILD/mysql2-0.5.4/usr/share/gems/gems/mysql2-0.5.4/mysql.sock -P 13471
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/builddir/build/BUILD/mysql2-0.5.4/usr/share/gems/gems/mysql2-0.' (2)
~~~

After Michal Schorm <mschorm@redhat.com>'s investigation (thanks!), we found
the error comes from the not appropriate SSL configurations.

It was reported that in Fedora, the MariaDB 10.5.16 used downstream OpenSSL 3
patch, and the MariaDB 10.5.18 started to use upstream OpenSSL 3 patch.
And there are some differences between these two patch files. And the difference
triggered this issue.
See also <https://github.com/brianmario/mysql2/pull/1290>.

I also applied a patch to use the SSL pem files in the spec directory directly
to run the SSL tests. Because we can't set up the files in the `/etc/mysql`.
See also <https://github.com/brianmario/mysql2/pull/1293>.

I also regenerated the SSL certification files from the localhost. It requires
openssl as a build dependency. This is a temporary workaround. It is expected
that the certification files are managed in the upstream repository.
See also <https://github.com/brianmario/mysql2/pull/1296>.

Resolves: rhbz#2144488
2022-12-23 18:25:12 +01:00
Fedora Release Engineering
fd43948e4e Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-23 01:56:13 +00:00
Jarek Prokop
e21b5b958a Upgrade to rubygem-mysql2 0.5.4.
Resolves: rhbz#2081426
2022-05-06 19:19:52 +02:00
Jarek Prokop
184bbedf20 Update upstream script reference link. 2022-04-29 17:48:13 +02:00
Jarek Prokop
b6f85bc7e5 Sync the test DB setup logic with upstream.
Reset password for the root user due to MariaDB 10.4 authentication
change.
https://mariadb.com/kb/en/authentication-from-mariadb-104/#altering-the-user-account-to-revert-to-the-previous-authentication-method

Relevant links:
ffdd8c6c67/tasks/rspec.rake (L37-L59)
https://github.com/brianmario/mysql2/blob/master/ci/setup.sh
2022-04-29 17:44:45 +02:00
Jarek Prokop
23a87cbbd6 Enhance comments on patches. 2022-04-27 12:27:31 +02:00
Jun Aruga
81e2cc94f1 Remove gem_make.out and mkmf.log files from the binary RPM package. 2022-04-06 18:40:52 +02:00
Pavel Valena
deb21bb3fe Fix test assertion for mariadb-connector-c
https://github.com/brianmario/mysql2/issues/1240

also enhance .spec and .gitignore files.
2022-02-21 16:50:40 +01:00
Mamoru TASAKA
8f26419007 Apply upstream patch : Update Mysql2::Result spec for Ruby 3.1 2022-01-27 16:31:36 +09:00
Mamoru TASAKA
1690d1e660 F-36: rebuild against ruby31 2022-01-27 08:57:13 +09:00
Fedora Release Engineering
d490cbf053 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-21 18:54:16 +00:00
Fedora Release Engineering
6d461f4fb2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 12:22:04 +00:00
Vít Ondruch
6d35cbef77 Fix FTBFS due to MariaDB 10.5+ incompatibilies.
Resolves: rhbz#1914515
Resolves: rhbz#1923277
2021-02-11 20:26:15 +01:00
Troy Dawson
1222ea9e06 remove mini-bump 2021-02-09 09:28:38 -08:00
Troy Dawson
4a4aaed70e mini-bump to get it to build on ELN 2021-02-09 09:16:40 -08:00
Fedora Release Engineering
3ff186a72b - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 16:11:39 +00:00
Pavel Valena
5726f27506 Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_3.0 2021-01-07 03:21:32 +01:00
Fedora Release Engineering
871b0edb8a - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-29 06:44:03 +00:00
Alexander Chernyakhovsky
b9f647bd9f Update tests to build and run on F32 2020-07-02 16:52:04 -04:00
Fedora Release Engineering
674d475250 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-30 18:56:38 +00:00
Vít Ondruch
83280f5ca0 Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.7 2020-01-17 14:02:57 +01:00
Jun Aruga
228f0ad343 New upstream release 0.5.3 2019-12-04 16:31:46 +01:00
Fedora Release Engineering
b6d2a54364 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-26 19:43:35 +00:00
Jun Aruga
cc15309b2a Assign a random testing port
That fixes below error as much as possible. (The example is for rubygem-pg)
https://src.fedoraproject.org/rpms/rubygem-pg/pull-request/3
2019-05-23 12:12:35 +02:00
Fedora Release Engineering
e274528d03 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-02 12:37:04 +00:00
Mamoru TASAKA
1068d0366d F-30: rebuild against ruby26 2019-01-21 23:05:22 +09:00
Jun Aruga
38b9b71fae New upstream release 0.5.2 2018-07-19 16:56:28 +02:00
Fedora Release Engineering
1d20ba1b64 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-14 04:28:42 +00:00
Fedora Release Engineering
26cfa81b51 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-09 14:24:29 +00:00
Björn Esser
4b439e9903
Rebuilt for switch to libxcrypt 2018-01-20 23:08:05 +01:00
Mamoru TASAKA
892a21848e F-28: rebuild for ruby25 2018-01-05 00:47:56 +09:00
Jun Aruga
a0c3c0e88b New upstream release 0.4.10
Added unit test environment.
2017-12-18 11:54:24 +01:00
Fedora Release Engineering
e3ca4e6b57 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-03 07:56:54 +00:00
Fedora Release Engineering
e78d9ba8de - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 17:28:13 +00:00
Adam Williamson
c57c46e5af New upstream release 0.4.8 (builds against MariaDB 10.2) 2017-07-13 18:56:47 -07:00
Fedora Release Engineering
a2cff3e4e2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-11 12:31:01 +00:00
Vít Ondruch
3ea7696874 Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.4 2017-01-11 12:08:38 +01:00
Miroslav Suchý
d6feaa2572 rebase to 0.4.4 2016-06-09 10:08:38 +02:00
Fedora Release Engineering
6d7c294947 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-04 23:00:28 +00:00
Vít Ondruch
ba89098f20 Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.3 2016-01-11 15:52:35 +01:00
Miroslav Suchý
90a2da4853 rebase to mysql2-0.4.0 2015-09-08 15:06:06 +02:00
Dennis Gilmore
2b0c6f03bc - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-18 23:29:59 +00:00
Vít Ondruch
1e8e28bb74 Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.2 2015-01-16 13:27:55 +01:00
Peter Robinson
388b6440bf - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild 2014-08-18 00:49:09 +00:00
Dennis Gilmore
1065dfdf9b - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-07 23:44:49 -05:00
Miroslav Suchý
958626ff1c rebase to mysql2-0.3.16 2014-05-26 13:00:45 +02:00
Vít Ondruch
528b514ae1 Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.1 2014-04-15 09:40:22 +02:00
Miroslav Suchý
3761ec59a9 rebase to mysql2-0.3.15 -- second take 2014-02-11 11:10:17 +01:00
Miroslav Suchý
32e89fa998 Revert "Update rubygem-mysql2 to 0.3.15-1"
This reverts commit 5b61ea253e.
2014-02-11 11:06:20 +01:00