Disable tests for 32bit arch.

mariadb-server needed for majority of the tests is not built for ix86:
e7c7129940/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
This commit is contained in:
Jarek Prokop 2025-07-14 15:53:46 +02:00
parent d3e8edc889
commit 273796f7cc

View File

@ -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 %bcond_without tests
%endif
# Generated from mysql2-0.3.11.gem by gem2rpm -*- rpm-spec -*- # Generated from mysql2-0.3.11.gem by gem2rpm -*- rpm-spec -*-
%global gem_name mysql2 %global gem_name mysql2