Upgrade to rubygem-mysql2 0.5.5.

Remove patching the GC.verify_compaction_references in spec suite,
Appropriate fix is present in Fedora and upstream Ruby 3.2 already.
Fedora Ruby 3.1 fixed the support via the following commits:
b7b5473796
ca94aff023

Resolves: rhbz#2163026
This commit is contained in:
Jarek Prokop 2023-10-25 12:48:03 +02:00
parent 8e596532c3
commit b357d26044
2 changed files with 9 additions and 11 deletions

View File

@ -5,14 +5,14 @@
%global gem_name mysql2 %global gem_name mysql2
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 0.5.4 Version: 0.5.5
Release: 6%{?dist} Release: 1%{?dist}
Summary: A simple, fast Mysql library for Ruby, binding to libmysql Summary: A simple, fast Mysql library for Ruby, binding to libmysql
License: MIT License: MIT
URL: https://github.com/brianmario/mysql2 URL: https://github.com/brianmario/mysql2
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
# git clone --no-checkout https://github.com/brianmario/mysql2.git # git clone --no-checkout https://github.com/brianmario/mysql2.git
# cd mysql2 && git archive -v -o mysql2-0.5.3-tests.txz 0.5.3 spec/ # cd mysql2 && git archive -v -o mysql2-0.5.5-tests.txz 0.5.5 spec/
Source1: %{gem_name}-%{version}-tests.txz Source1: %{gem_name}-%{version}-tests.txz
# Use the SSL pem files in the upstream repositry for the SSL tests. # Use the SSL pem files in the upstream repositry for the SSL tests.
# https://github.com/brianmario/mysql2/pull/1293 # https://github.com/brianmario/mysql2/pull/1293
@ -153,12 +153,6 @@ mysql -u root \
-S "${MYSQL_TEST_SOCKET}" \ -S "${MYSQL_TEST_SOCKET}" \
-P "${MYSQL_TEST_PORT}" -P "${MYSQL_TEST_PORT}"
# This GC method call is problematic on ppc64le builders, stalling the tests execution.
# https://github.com/brianmario/mysql2/issues/1261
%ifarch ppc64le
sed -i -e '/GC.verify_compaction_references/ s/^/#/' spec/spec_helper.rb
%endif
# See https://github.com/brianmario/mysql2/blob/master/tasks/rspec.rake # See https://github.com/brianmario/mysql2/blob/master/tasks/rspec.rake
cat <<EOF > spec/configuration.yml cat <<EOF > spec/configuration.yml
root: root:
@ -202,6 +196,10 @@ kill "$(cat "${MYSQL_TEST_PID_FILE}")"
%changelog %changelog
* Wed Oct 25 2023 Jarek Prokop <jprokop@redhat.com> - 0.5.5-1
- Upgrade to rubygem-mysql2 0.5.5.
Resolves: rhbz#2163026
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-6 * Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild

View File

@ -1,2 +1,2 @@
SHA512 (mysql2-0.5.4.gem) = 7852afe449f6931d0dc6ceba542a49280170af56c9f2f1fa369224e1633b6cbd03c1dfeae9d7b2c2c3e0e63fe6dd386b030e0249c9c9de1863476729490c1c9b SHA512 (mysql2-0.5.5.gem) = a3865bf670c8fbb1942b631ff6eea8c26a9fa8b4d25da0faca84cb9d9c7c44eb98cd29ace83a62596eec0a522899b01044715e900d1389809b65e40fb09b258f
SHA512 (mysql2-0.5.4-tests.txz) = edb50d29b17175ce475975630f01b1771c4bc109bf79f33b4af76f8b5db29d86270023f0991f8cec729479cf5cb7ef1319200d248f57ead0a2991033ad333348 SHA512 (mysql2-0.5.5-tests.txz) = 0d6a81324a6466dafb859bb05e6cfc50e9758ead5cf7b50afea16f61568e0a2b9c17f22820aaa4c36c285abe00f855e87a3c7bd0934602cebbb98f299680a2c5