Commit Graph

660 Commits

Author SHA1 Message Date
Michal Schorm
b74fea14e5 [bugfix] Fix the 'Conflicts:' with MariaDB packages
The package conflicts between MariaDB and MySQL packages are only set against the un-versioned names.
(the un-versioned names are only provided by the distribution default version)

The conflicts has to be extended to cover the '-any' virtually provided names,
which are provided by all versions of the versioned packages.

Related: RHEL-104250
2025-09-02 14:27:13 +02:00
Pavol Sloboda
221864b470 Rebase to 8.4.6
Upstream release notes:
https://dev.mysql.com/doc/relnotes/mysql/8.4/en/news-8-4-6.html

Related: RHEL-104250
2025-09-02 14:27:10 +02:00
Michal Schorm
5501d7be55 [Fix for Fedora Change] Fix versioned layout macros
- cover both arch and noarch sub-packages
- add obsoletes against the older versions to the distribution default version

Related: RHEL-104250
2025-09-02 14:27:06 +02:00
Pavol Sloboda
509086ab6f Stopped removing the my_print_defaults when client is not built
as it is required by the server subpackage thus removing it when the
client subpackage is not being built will result in a build failure.

Related: RHEL-104250
2025-09-02 14:27:03 +02:00
Pavol Sloboda
70be037a81 Removed the mysql_plugin from the rm command when building without
-client subpackage as mysql_plugin is deprecated from version 5.7.11
and has been removed in version 8.0 therefore it is no longer provided
by upstream and it caused build failures when rm could not find it.

Related: RHEL-104250
2025-09-02 14:26:50 +02:00
Pavol Sloboda
1c7250b943 Rebase to 8.4.5
Upstream release notes:
https://dev.mysql.com/doc/relnotes/mysql/8.4/en/news-8-4-5.html

I have ran the extended testsuite during builds on f40-f43 on all
architectures in 2 runs (that is 32 individual build logs parsed for the
upcoming statistics)

These are the statistics of the test results containing the number of
times a test has failed and its name, the tests that fail because of a
timeout are marked with `-- timed out`. Tests not marked with timeout
failed on asserts.

These tests are not added to the rh-skipped-test-lists-*.list.

The results are split into all architectures together:
     12 rpl.rpl_eventlog_psi_memory
     12 rpl.rpl_channel_creation_under_replica_load
     12 innodb_fts.optimize_big
     11 innodb_fts.bug_34846823 -- timed out
     10 perfschema.system_events_plugin
      8 rpl_gtid.mysqldump_bug33630199 -- timed out
      8 perfschema.system_events_component
      7 sys_vars.myisam_data_pointer_size_func -- timed out
      7 rpl.rpl_parallel_ddl_myisam
      7 rpl.rpl_parallel_ddl_innodb
      7 parts.partition_reverse_scan_icp -- timed out
      7 innodb.multi_value_basic -- timed out
      7 innodb.lob_recovery -- timed out
      7 federated.federated_server -- timed out
      5 rpl_gtid.rpl_perfschema_applier_status_by_worker_gtid_skipped_transaction_mts
      3 perfschema.transaction_nested_events
      3 innodb_undo.undo_settings
      2 x.connection_not_alive
      2 perfschema.relaylog

The ppc64le architecture (since it had the most amount of failing tests
by far and the same tests were failing there almost every time):
      8 rpl.rpl_eventlog_psi_memory
      8 rpl_gtid.mysqldump_bug33630199 -- timed out
      7 sys_vars.myisam_data_pointer_size_func -- timed out
      7 rpl.rpl_parallel_ddl_myisam
      7 rpl.rpl_parallel_ddl_innodb
      7 rpl.rpl_channel_creation_under_replica_load
      7 perfschema.system_events_plugin
      7 parts.partition_reverse_scan_icp -- timed out
      7 innodb.multi_value_basic -- timed out
      7 innodb.lob_recovery -- timed out
      7 innodb_fts.optimize_big
      7 innodb_fts.bug_34846823 -- timed out
      7 federated.federated_server -- timed out
      6 perfschema.system_events_component
      4 rpl_gtid.rpl_perfschema_applier_status_by_worker_gtid_skipped_transaction_mts
      2 innodb_undo.undo_settings

And other architectures excluding ppc64le:
      5 rpl.rpl_channel_creation_under_replica_load
      5 innodb_fts.optimize_big
      4 rpl.rpl_eventlog_psi_memory
      4 innodb_fts.bug_34846823 -- timed out
      3 perfschema.transaction_nested_events
      3 perfschema.system_events_plugin
      2 x.connection_not_alive
      2 perfschema.system_events_component
      2 perfschema.relaylog
      1 rpl_gtid.rpl_perfschema_applier_status_by_worker_gtid_skipped_transaction_mts
      1 innodb_undo.undo_settings

Related: RHEL-87738
2025-09-02 13:50:41 +02:00
Michal Schorm
ce7a3be1da Remove dependnecy on OpenSSL engines, which are deprecated in Fedora
Related: RHEL-87738
2025-09-02 13:50:37 +02:00
Michal Schorm
111a259568 [enhancement] Use %global instead of %define
The other occurences are functions that are called with various arguments through the SPECfile.
I tried to replace them too, but the resulting logic did not expanded correcly and resulted in
various FTI issues.

Related: RHEL-87738
2025-09-02 13:50:30 +02:00
Michal Schorm
92973eb3c4 Update the license clarification text to reflect the current state
Related: RHEL-87738
2025-09-02 13:49:22 +02:00
Michal Schorm
c1038b588b Bump release and rebuilt for previous commit
Resolves: RHEL-79549
2025-02-14 14:35:58 +01:00
Michal Schorm
de2e5f3752 Fix patching of logrotate
Apply the patch to the correct file, because we use a different one:
  https://src.fedoraproject.org/rpms/mysql8.0/blob/84d52c8/f/mysql8.0.spec#_663

--

cherry-picked Fedora commit:
  https://src.fedoraproject.org/rpms/mysql8.0/c/f4c4f1?branch=rawhide

--

Resolves: RHEL-79549
2025-02-14 13:41:17 +01:00
Michal Schorm
083e265abb Testsuite verification for release 8.4.4
Related: RHEL-75839 RHEL-75836 RHEL-75835 RHEL-75833 RHEL-75814
2025-01-23 03:13:19 +01:00
Michal Schorm
9c36e06946 Rebase to MySQL 8.4.4
Resolves: RHEL-75839 RHEL-75836 RHEL-75835 RHEL-75833 RHEL-75814
2025-01-23 03:12:33 +01:00
Michal Schorm
b8c5c60961 Enable the base test suite ('main')
Add "--mysqld=--skip-innodb-use-native-aio" option for running the testsuite in CentOS Stream / RHEL build system.

Remove the skipped auth_sec tests from the skipped tests list, they no longer exist.

Dependency 'perl(File::Compare)' added in order for the 'binlog.binlog_mysqlbinlog_linux' test to run.

Update the skipped tests lists regarding the 'main' suite.

Related: RHEL-63025
2025-01-09 17:57:46 +01:00
Michal Schorm
4e702e2ca3 Disable building of the unversioned meta-packages
Resolves: RHEL-68750
2025-01-09 17:57:44 +01:00
Michal Schorm
7765a3bfe0 Fixes for issues found by linters
mysql8.4-test.x86_64: E: file-parent-ownership-mismatch Path "/usr/share/mysql-test/platform-specific-tests.list" owned by "root" is stored in directory owned by "mysql"

mysql8.4-server.x86_64: E: missing-dependency-to-logrotate for logrotate script /etc/logrotate.d/mysqld

"macro-in-comment"

Related: RHEL-63025
2025-01-09 17:57:32 +01:00
Michal Schorm
f19cf00ec8 Rebase to 8.4.3
Resolves: RHEL-63025
2025-01-09 17:57:28 +01:00
Troy Dawson
b6e435b204 Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
2024-10-29 08:51:01 -07:00
Michal Schorm
d01ab2fb1f [8.4.2-4] Bump release for rebuild 2024-08-16 14:38:49 +02:00
Michal Schorm
04e4e506db Fixup for commit: "Split the testsuite into two sub-packages"
When
  %attr(-,mysql,mysql) %{_datadir}/mysql-test
is used,the path, *and everything on it* is added

Only when prepended with '%dir', it won't added anything else than the directory itself

The mistake resulted in all files under
  %attr(-,mysql,mysql) %{_datadir}/mysql-test
to be present in both subpackages 'mysql-test' and 'mysql-test-data'.
2024-08-16 14:34:18 +02:00
Michal Schorm
5b29119758 [8.4.2-3] Bump release for rebuild 2024-08-15 22:44:43 +02:00
Michal Schorm
6d074cbcfe Fixup for commit: "Split the testsuite into two sub-packages"
The 'mysql-test' and 'mysql-test-data' RPMs conflicts because of a '/usr/share/mysql-test' file
2024-08-15 22:44:43 +02:00
Michal Schorm
385ed0623f [8.4.2-2] Bump release for rebuild 2024-08-15 16:51:02 +02:00
Michal Schorm
1825a0420b Use macro %{skiplist} on all possible places 2024-08-15 13:03:33 +02:00
Michal Schorm
7da2842733 Mark additional files correctly as licenses 2024-08-15 13:03:33 +02:00
Michal Schorm
604d16f394 [MTR] Remove the MTR patch regarding the server socket path length
It is not needed (anymore?). The MTR will automatically create a shorter one
if the existing one is too long:
  https://github.com/mysql/mysql-server/blob/trunk/mysql-test/mysql-test-run.pl#L2137
2024-08-15 13:03:33 +02:00
Michal Schorm
148a01af34 [MTR] Limit the number of testsuite execution workers
Explanation of the options per:
https://dev.mysql.com/doc/dev/mysql-server/latest/PAGE_MYSQL_TEST_RUN_PL.html

The MTR_MAX_PARALLEL environment variable, if set, specifies the maximum number
of parallel workers that can be spawned when the --parallel=auto option is specified.
If --parallel=auto is not specified, MTR_MAX_PARALLEL variable has no effect.
2024-08-15 13:03:33 +02:00
Michal Schorm
badd81d2d5 [MTR] Start using '--port-base' option instead of MTR_BUILD_THREAD
Explanation of the options per:
https://dev.mysql.com/doc/dev/mysql-server/latest/PAGE_MYSQL_TEST_RUN_PL.html

--port-base=P
  The value may also be given with the environment variable MTR_PORT_BASE.

  The variable MTR_PORT_BASE is a more logical replacement for the original variable MTR_BUILD_THREAD.
  It gives the actual port number directly (will be rounded down to a multiple of 10).
  If you use MTR_BUILD_THREAD, the port number is found by multiplying this by 10 and adding 10000.

  Specify base of port numbers to be used; a block of 10 will be allocated. P should be divisible by 10;
  if it is not, it will be rounded down. If running with more than one parallel test thread, thread 2
  will use the next block of 10 and so on.

  If the port number is given as auto, which is also the default,
  mysql-test-run.pl will allocate a number unique to this host.

  --port-base was added as a more logical alternative to --build-thread.
  If both are used, --port-base takes precedence.
2024-08-15 13:03:33 +02:00
Michal Schorm
9a8f94a4f3 [MTR] Update the values of the MTR up to the current and long-term observed needs
Explanation of the options per:
https://dev.mysql.com/doc/dev/mysql-server/latest/PAGE_MYSQL_TEST_RUN_PL.html

--max-test-fail=N
  Stop execution after the specified number of tests have failed, to avoid
  using up resources (and time) in case of massive failures. retries are not
  counted. Defaults to 10, set to 0 for no limit.

--retry=N
  If a test fails, it is retried up to a maximum of N runs, but will terminate
  after 2 failures. Default is 3, set to 1 or 0 for no retries. This option has
  no effect unless --force is also used; without it, test execution will terminate
  after the first failure.
2024-08-15 13:03:33 +02:00
Michal Schorm
ff887ad643 [MTR] Split line into several for better readability 2024-08-15 13:03:33 +02:00
Michal Schorm
5bed6db7b4 Sort file listing of various sub-packages 2024-08-15 13:03:33 +02:00
Michal Schorm
21e3eb9a35 Sort file listing of the '*-test' sub-package 2024-08-15 13:03:33 +02:00
Michal Schorm
0422db7c11 Split the testsuite into two sub-packages
Small sub-package 'mysql-test' will remain architecture dependent
and will continue to carry all architecture dependent parts of the testsuite.

New huge sub-package 'mysql-test-data' will hold all of the
achitecture independent data and will be built as 'noarch'.

This will save over 1GB of redundant data per each package build.
2024-08-15 13:03:33 +02:00
Michal Schorm
121323a08d Rebase to 8.4.2 2024-08-07 23:48:31 +02:00
Jakub Heger
5e7083129e Setup gating for c10s 2024-07-31 13:23:59 +02:00
Michal Schorm
d8f302a634 Bump version for rebuild 2024-07-24 10:25:59 +02:00
Michal Schorm
b41c2f81e8 Make 'mysql8.4' the distribution default 2024-07-24 08:06:35 +02:00
Michal Schorm
77ed2ab2e2 Remove the un-approved license 'Artistic-1.0-Perl' from the license field
Two reasons:

1) This license is included due to the Perl module 'Expect'. However I wasn't able to actually
   locate it's sources in the MySQL source tarball. I believe it's a remnant of a code that was
   removed in the past.
   I've asked the MySQL upstream to verify my claim and either disprove it or fix the LICENSE
   file in wihch they mention it.

   For this reason I believe the 'GPL-1.0-or-later' also does not apply, so I'm removing it too.
   I'll put the 'GPL-1.0-or-later' should upstream disprove my findings.

2) As per clarification on the Fedora License mailing list:
   https://lists.fedoraproject.org/archives/list/legal@lists.fedoraproject.org/message/LBAZXYBAA4YHJ2GEWEP5S7QXVOB76MUR/
  "
  If your package is licensed under a known choice of two licenses and
  one is a "good" license and one is a "bad" license, then the License:
  field must reflect the "good" license only. This is highly uncommon in
  Fedora packages apart from the case of Perl modules dual licensed
  under the GPL and the Artistic License 1.0. In that case you must pick
  the appropriate identifier for the GPL side (which in Perl modules
  will typically map to SPDX "GPL-1.0-or-later"). You are encouraged to
  include a comment memorializing this, for example:
  \# Upstream project is dual licensed GPL | Artistic 1.0
  "
2024-07-22 13:34:45 +02:00
Michal Schorm
6f668c197a Remove usage of OpenSSL Engine
After discussion with change owner, I've prepared the correct solution.

There is a difference between Fedora and CentOS Stream 10 / RHEL 10:
- in CentOS Stream 10 / RHEL 10, the change is self-contained by the
  'openssl-devel' package itself, which now defines OPENSSL_NO_ENGINE
  in the headers so new application builds don't use engine at all
- in Fedora, the headers containing the OPENSSL_NO_ENGINE definition
  are put into a separate sub-package 'openssl-devel-engine', instead
  of being put into the 'openssl-devel'
2024-07-22 13:34:39 +02:00
Michal Schorm
1e143dc511 Rename the SPECfile to match the version of the package 2024-07-19 14:04:58 +02:00
Michal Schorm
a8fe19a4b8 [Fix for Fedora Change] - remove usage of OpenSSL Engine
https://fedoraproject.org/wiki/Changes/OpensslDeprecateEngine
https://fedoraproject.org/wiki/Changes/OpensslNoEngine
2024-07-18 18:34:18 +02:00
Michal Schorm
6f1be6b0e2 Rebase to 8.4.0
mysql-c99.patch
- directory "plugin/innodb_memcached" no longer exists

boost-1.76.0-fix_multiprecision_issue_419-ppc64le.patch
- upstreamed

ExcludeArch: %{ix86}
- MySQL 8.4 is not supported on 32-bit architectures

%ifnarch aarch64 s390x
  BuildRequires:    libquadmath-devel
%endif
- sub-package of gcc
- Only available on some architectures

%{_bindir}/mysql_upgrade
- was deprecated in 8.0
- now no longer available

%global runselftest 0
- disable testsuite during development time,
  takes ages to complete on s390x and produces random failures on ppc64le
- I've checked that the result is sane
2024-07-16 10:09:52 +02:00
Michal Schorm
2652580919 Merge remote-tracking branch 'fedora/rawhide' into c10s 2024-07-16 09:26:01 +02:00
Release Configuration Management
1e7a147491 New branch setup 2024-07-08 04:30:27 -04:00
Michal Schorm
e8a0d90f0d Update skipped tests list for ppc64le 2024-06-13 16:48:34 +02:00
Michal Schorm
a292636c7c Update skipped tests list for ppc64le 2024-06-13 10:07:03 +02:00
Michal Schorm
adc4c185e1 Update skipped tests list for ppc64le 2024-06-12 12:40:37 +02:00
Michal Schorm
4f655987d2 Bump release for package rebuild 2024-06-12 07:52:36 +02:00
Michal Schorm
8cec706852 Testsuite verified for 8.0.37
- testsuite enabled

- testcase checking disabled, as it produces huge amount of errors before each test even begin
  these errors seems to be fully non-deterministic (random)
2024-06-12 07:48:21 +02:00
Michal Schorm
86b98a4de5 Enable LTO 2024-06-11 01:55:39 +02:00