From 273796f7cca707a39318657c805c1dac31e7756a Mon Sep 17 00:00:00 2001 From: Jarek Prokop Date: Mon, 14 Jul 2025 15:53:46 +0200 Subject: [PATCH] Disable tests for 32bit arch. mariadb-server needed for majority of the tests is not built for ix86: https://gitlab.com/redhat/centos-stream/rpms/mariadb/-/blob/e7c71299403146a661255e2d50a74d789d083429/mariadb.spec#L2 mariadb-connector-c is still available, so let's keep shipping the rubygem-mysql2 since we can still compile it OK on that architecture. Since mariadb-server is not present in repos, dnf will fail with similar message to: ~~~ Last metadata expiration check: 0:00:46 ago on Fri Jul 18 12:56:21 2025. Package openssl-1:3.5.1-2.el9.i686 is already installed. No matching package to install: 'mariadb-server' Not all dependencies satisfied Error: Some packages could not be found. ~~~ `No matching package to install: 'mariadb-server'` is the relevant line. Related: RHEL-80220 --- rubygem-mysql2.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rubygem-mysql2.spec b/rubygem-mysql2.spec index 900c0c6..50d4d9d 100644 --- a/rubygem-mysql2.spec +++ b/rubygem-mysql2.spec @@ -1,5 +1,11 @@ -# build with tests? +# Disable tests for 32bit arch, mariadb-server +# needed for majority of the tests is not built for ix86 +# https://gitlab.com/redhat/centos-stream/rpms/mariadb/-/blob/e7c71299403146a661255e2d50a74d789d083429/mariadb.spec#L2 +%ifarch %{ix86} +%bcond_with tests +%else %bcond_without tests +%endif # Generated from mysql2-0.3.11.gem by gem2rpm -*- rpm-spec -*- %global gem_name mysql2