Commit Graph

15 Commits

Author SHA1 Message Date
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
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