rubygem-mysql2/rubygem-mysql2.spec

355 lines
12 KiB
RPMSpec
Raw Normal View History

# build with tests?
2021-02-09 17:28:38 +00:00
%bcond_without tests
# Generated from mysql2-0.3.11.gem by gem2rpm -*- rpm-spec -*-
2013-09-12 00:34:39 +00:00
%global gem_name mysql2
Name: rubygem-%{gem_name}
Version: 0.5.5
Release: 4%{?dist}
2013-09-12 00:34:39 +00:00
Summary: A simple, fast Mysql library for Ruby, binding to libmysql
License: MIT
2018-04-23 16:07:04 +00:00
URL: https://github.com/brianmario/mysql2
2013-09-12 00:34:39 +00:00
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
2019-12-02 15:04:38 +00:00
# git clone --no-checkout https://github.com/brianmario/mysql2.git
# cd mysql2 && git archive -v -o mysql2-0.5.5-tests.txz 0.5.5 spec/
2019-12-02 15:04:38 +00:00
Source1: %{gem_name}-%{version}-tests.txz
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-16 20:00:37 +00:00
# Use the SSL pem files in the upstream repositry for the SSL tests.
# https://github.com/brianmario/mysql2/pull/1293
Patch0: rubygem-mysql2-0.5.4-use-ssl-pem-files-in-repo.patch
# openssl 3.2 requires CA:TRUE
# https://github.com/brianmario/mysql2/pull/1357
Patch1: rubygem-mysql2-0.5.5-openssl-CA-TRUE.patch
# Required in lib/mysql2.rb
Requires: rubygem(bigdecimal)
2013-09-12 00:34:39 +00:00
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: ruby-devel
2018-04-23 16:07:04 +00:00
BuildRequires: gcc
BuildRequires: mariadb-connector-c-devel
%if %{with tests}
BuildRequires: mariadb-server
BuildRequires: rubygem(rspec)
# Used in mysql_install_db
BuildRequires: %{_bindir}/hostname
BuildRequires: rubygem(bigdecimal)
%if !0%{?rhel}
# Used in spec/em/em_spec.rb as optional dependency.
# If rubygem-eventmachine is not present, the tests in the file are skipped.
BuildRequires: rubygem(eventmachine)
%endif
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-16 20:00:37 +00:00
# Used in spec/ssl/gen_certs.sh
BuildRequires: %{_bindir}/openssl
%endif
2013-09-12 00:34:39 +00:00
%description
The Mysql2 gem is meant to serve the extremely common use-case of
connecting, querying and iterating on results. Some database libraries
out there serve as direct 1:1 mappings of the already complex C API\'s
available. This one is not.
2013-09-12 00:34:39 +00:00
%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{name}
2013-09-12 00:34:39 +00:00
%prep
2019-12-02 15:04:38 +00:00
%setup -q -n %{gem_name}-%{version} -b 1
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-16 20:00:37 +00:00
pushd %{_builddir}/spec
%patch0 -p2
%patch1 -p2
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-16 20:00:37 +00:00
popd
2013-09-12 00:34:39 +00:00
%build
2019-12-02 15:04:38 +00:00
gem build ../%{gem_name}-%{version}.gemspec
2013-09-12 00:34:39 +00:00
%gem_install
2013-09-12 00:34:39 +00:00
%install
mkdir -p %{buildroot}%{gem_dir}
cp -pa .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
mkdir -p %{buildroot}%{gem_extdir_mri}/%{gem_name}
cp -a .%{gem_extdir_mri}/gem.build_complete %{buildroot}%{gem_extdir_mri}/
cp -a .%{gem_extdir_mri}/%{gem_name}/*.so %{buildroot}%{gem_extdir_mri}/%{gem_name}
# Prevent dangling symlink in -debuginfo.
rm -rf %{buildroot}%{gem_instdir}/ext
%if %{with tests}
%check
pushd .%{gem_instdir}
2019-12-02 15:04:38 +00:00
# Move the tests into place
ln -s %{_builddir}/spec spec
TOP_DIR=$(pwd)
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-16 20:00:37 +00:00
# Regenerate the SSL certification files from the localhost, as we cannot set
# the host mysql2gem.example.com required for the SSL tests.
# https://github.com/brianmario/mysql2/pull/1296
sed -i '/host/ s/mysql2gem\.example\.com/localhost/' spec/mysql2/client_spec.rb
sed -i '/commonName_default/ s/mysql2gem\.example\.com/localhost/' spec/ssl/gen_certs.sh
pushd spec/ssl
bash gen_certs.sh
popd
# See https://github.com/brianmario/mysql2/blob/master/ci/ssl.sh
echo "
[mysqld]
ssl-ca=${TOP_DIR}/spec/ssl/ca-cert.pem
ssl-cert=${TOP_DIR}/spec/ssl/server-cert.pem
ssl-key=${TOP_DIR}/spec/ssl/server-key.pem
" > ~/.my.cnf
# Use testing port because the standard mysqld port 3306 is occupied.
# Assign a random port to consider a case of multi builds in parallel in a host.
# https://src.fedoraproject.org/rpms/rubygem-pg/pull-request/3
MYSQL_TEST_PORT="$((13306 + ${RANDOM} % 1000))"
MYSQL_TEST_USER=$(id -un)
MYSQL_TEST_DATA_DIR="${TOP_DIR}/data"
MYSQL_TEST_SOCKET="${TOP_DIR}/mysql.sock"
MYSQL_TEST_LOG="${TOP_DIR}/mysql.log"
MYSQL_TEST_PID_FILE="${TOP_DIR}/mysql.pid"
mkdir "${MYSQL_TEST_DATA_DIR}"
# See https://mariadb.com/kb/en/authentication-from-mariadb-10-4/#configuring-mariadb-install-db-to-revert-to-the-previous-authentication-method
mysql_install_db \
--auth-root-authentication-method=normal \
--datadir="${MYSQL_TEST_DATA_DIR}" \
--log-error="${MYSQL_TEST_LOG}"
%{_libexecdir}/mysqld \
--datadir="${MYSQL_TEST_DATA_DIR}" \
--log-error="${MYSQL_TEST_LOG}" \
--socket="${MYSQL_TEST_SOCKET}" \
--pid-file="${MYSQL_TEST_PID_FILE}" \
--port="${MYSQL_TEST_PORT}" \
--ssl &
conn_found=false
for i in $(seq 10); do
echo "Waiting for the DB server to accept connections... ${i}"
sleep 1
if grep -q 'ready for connections' "${MYSQL_TEST_LOG}"; then
conn_found=true
break
fi
done
if ! "${conn_found}"; then
echo "ERROR: Failed to connect the DB server."
cat "${MYSQL_TEST_LOG}"
exit 1
fi
2022-04-29 15:48:13 +00:00
# See https://github.com/brianmario/mysql2/blob/master/ci/setup.sh
mysql -u root \
-e 'CREATE DATABASE /*M!50701 IF NOT EXISTS */ test' \
-S "${MYSQL_TEST_SOCKET}" \
-P "${MYSQL_TEST_PORT}"
# See https://github.com/brianmario/mysql2/blob/master/tasks/rspec.rake
cat <<EOF > spec/configuration.yml
root:
host: localhost
username: root
password:
database: test
port: ${MYSQL_TEST_PORT}
socket: ${MYSQL_TEST_SOCKET}
user:
host: localhost
username: ${MYSQL_TEST_USER}
password:
database: mysql2_test
port: ${MYSQL_TEST_PORT}
socket: ${MYSQL_TEST_SOCKET}
EOF
rspec -Ilib:%{buildroot}%{gem_extdir_mri} -f d spec
popd
# Clean up
kill "$(cat "${MYSQL_TEST_PID_FILE}")"
%endif
2013-09-12 00:34:39 +00:00
%files
%dir %{gem_instdir}
%{gem_libdir}
%{gem_extdir_mri}
%exclude %{gem_cache}
%{gem_spec}
%exclude %{gem_instdir}/support
2015-09-08 13:06:06 +00:00
%license %{gem_instdir}/LICENSE
2013-09-12 00:34:39 +00:00
%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/README.md
2015-09-08 13:06:06 +00:00
%doc %{gem_instdir}/CHANGELOG.md
2014-02-11 08:02:42 +00:00
%changelog
* Fri Feb 09 2024 Yaakov Selkowitz <yselkowi@redhat.com> - 0.5.5-4
- Adapt tests to mariadb 10.11
- Avoid rubygem-eventmachine build dependency in RHEL
- Adapt tests to openssl 3.2
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Wed Jan 03 2024 Vít Ondruch <vondruch@redhat.com> - 0.5.5-2
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_3.3
* 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
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Tue Jan 03 2023 Vít Ondruch <vondruch@redhat.com> - 0.5.4-4
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_3.2
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-16 20:00:37 +00:00
* Fri Dec 16 2022 Jun Aruga <jaruga@redhat.com> - 0.5.4-3
- Fix the broken SSL tests with MariaDB 10.5.18.
Resolves: rhbz#2144488
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Wed May 04 2022 Jarek Prokop <jprokop@redhat.com> - 0.5.4-1
- Upgrade to rubygem-mysql2 0.5.4.
Resolves: rhbz#2081426
* Wed Apr 06 2022 Jun Aruga <jaruga@redhat.com> - 0.5.3-12
- Remove gem_make.out and mkmf.log files from the binary RPM package.
* Thu Feb 17 2022 Pavel Valena <pvalena@redhat.com> - 0.5.3-11
- Fix test assertion for mariadb-connector-c
2022-01-26 23:57:13 +00:00
* Wed Jan 26 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.5.3-10
- F-36: rebuild against ruby31
- Apply upstream patch : Update Mysql2::Result spec for Ruby 3.1
2022-01-26 23:57:13 +00:00
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Thu Feb 11 2021 Vít Ondruch <vondruch@redhat.com> - 0.5.3-7
- Fix FTBFS due to MariaDB 10.5+ incompatibilies.
Resolves: rhbz#1914515
Resolves: rhbz#1923277
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Thu Jan 7 03:21:32 CET 2021 Pavel Valena <pvalena@redhat.com> - 0.5.3-6
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_3.0
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2020-07-02 20:52:04 +00:00
* Thu Jul 2 2020 Alex Chernyakhovsky <achernya@mit.edu> - 0.5.3-4
- Update tests to build and run on F32
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Jan 17 2020 Vít Ondruch <vondruch@redhat.com> - 0.5.3-2
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.7
2019-12-02 15:04:38 +00:00
* Mon Dec 02 2019 Jun Aruga <jaruga@redhat.com> - 0.5.3-1
- New upstream release 0.5.3
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2019-01-21 14:05:22 +00:00
* Mon Jan 21 2019 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.5.2-2
- F-30: rebuild against ruby26
2018-04-23 16:07:04 +00:00
* Thu Jul 19 2018 Jun Aruga <jaruga@redhat.com> - 0.5.2-1
- New upstream release 0.5.2
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.10-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.10-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2018-01-20 22:08:05 +00:00
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 0.4.10-3
- Rebuilt for switch to libxcrypt
2018-01-04 15:47:56 +00:00
* Thu Jan 04 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.4.10-2
- F-28: rebuild for ruby25
* Thu Nov 23 2017 Jun Aruga <jaruga@redhat.com> - 0.4.10-1
- New upstream release 0.4.10
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Thu Jul 13 2017 Adam Williamson <awilliam@redhat.com> - 0.4.8-1
- New upstream release 0.4.8 (builds against MariaDB 10.2)
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Wed Jan 11 2017 Vít Ondruch <vondruch@redhat.com> - 0.4.4-2
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.4
2016-06-09 08:08:38 +00:00
* Thu Jun 09 2016 Miroslav Suchý <msuchy@redhat.com> - 0.4.4-1
- New upstream release 0.4.4
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Mon Jan 11 2016 Vít Ondruch <vondruch@redhat.com> - 0.4.0-2
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.3
2015-09-08 13:06:06 +00:00
* Tue Sep 8 2015 Miroslav Suchý <msuchy@redhat.com> 0.4.0-1
- rebase to mysql2-0.4.0
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.16-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Fri Jan 16 2015 Vít Ondruch <vondruch@redhat.com> - 0.3.16-4
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.2
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.16-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.16-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2014-05-26 11:00:45 +00:00
* Mon May 26 2014 Miroslav Suchý <msuchy@redhat.com> 0.3.16-1
- rebase to mysql2-0.3.16
* Tue Apr 15 2014 Vít Ondruch <vondruch@redhat.com> - 0.3.15-3
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.1
2014-02-11 10:10:17 +00:00
* Tue Feb 11 2014 Miroslav Suchý <msuchy@redhat.com> 0.3.15-2
- rebase to mysql2-0.3.15
* Wed Sep 11 2013 Alexander Chernyakhovsky <achernya@mit.edu> - 0.3.13-1
- Initial package