Skip to content

cmake: fix MARIADB_MYSQL_INSTALL_DB_SCRIPT usage#2040

Merged
BareosBot merged 4 commits intobareos:masterfrom
bruno-at-bareos:dev/bruno/fix-obsolete-mysql_install_db_script-internal_issue#94
Dec 18, 2024
Merged

cmake: fix MARIADB_MYSQL_INSTALL_DB_SCRIPT usage#2040
BareosBot merged 4 commits intobareos:masterfrom
bruno-at-bareos:dev/bruno/fix-obsolete-mysql_install_db_script-internal_issue#94

Conversation

@bruno-at-bareos
Copy link
Contributor

@bruno-at-bareos bruno-at-bareos commented Nov 27, 2024

Starting with MariaDB 11x version more and more binary call with the old
mysql name start to be deprecated. As those warnings might interfere with
our systemtests results, we change the call to use native MariaDB binaries.

  • split the variable to be db specific we now have
    MYSQL_INSTALL_DB_SCRIPT for mysql installation and use
    MARIADB_INSTALL_DB_SCRIPT pointing to mariadb-install-db binary.
  • replace harcoded binary in mysql.sh script.
  • adjust mariabackup systemtest to override correctly MYSQL_
    variables.

This fix internal issue#94

We also forward port 5558563ef but without disabling systemtest on SUSE.

Thank you for contributing to the Bareos Project!

Please check

  • Short description and the purpose of this PR is present above this paragraph
  • Your name is present in the AUTHORS file (optional)

If you have any questions or problems, please give a comment in the PR.

Helpful documentation and best practices

Checklist for the reviewer of the PR (will be processed by the Bareos team)

Make sure you check/merge the PR using devtools/pr-tool to have some simple automated checks run and a proper changelog record added.

General
  • Is the PR title usable as CHANGELOG entry?
  • Purpose of the PR is understood
  • Commit descriptions are understandable and well formatted
  • Required backport PRs have been created
  • Correct milestone is set
Source code quality
  • Source code changes are understandable
  • Variable and function names are meaningful
  • Code comments are correct (logically and spelling)
  • Required documentation changes are present and part of the PR

@bruno-at-bareos bruno-at-bareos self-assigned this Nov 27, 2024
@bruno-at-bareos bruno-at-bareos added bugfix bug This addresses a bug labels Nov 27, 2024
@bruno-at-bareos bruno-at-bareos added this to the 25.0.0 milestone Nov 27, 2024
@bruno-at-bareos bruno-at-bareos force-pushed the dev/bruno/fix-obsolete-mysql_install_db_script-internal_issue#94 branch from fff6aa7 to 722c2e2 Compare November 28, 2024 13:57
Copy link
Contributor

@sebsura sebsura left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@sebsura
Copy link
Contributor

sebsura commented Dec 16, 2024

Should we backport this ?

@bruno-at-bareos
Copy link
Contributor Author

I think we certainly want it fixed for 24 (and certainly for 23), I will rebase to fix the conflicts.

- split the variable to be db specific we now have
  MYSQL_INSTALL_DB_SCRIPT for mysql installation and use
  MARIADB_INSTALL_DB_SCRIPT pointing to `mariadb-install-db` binary.
- replace harcoded binary in mysql.sh script.
- adjust mariabackup systemtest to override correctly `MYSQL_`
  variables.

This fix internal issue#94

Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
- in the foward port we renable mariabackup test on SUSE.

Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
(cherry picked from commit 5558563)
@bruno-at-bareos bruno-at-bareos force-pushed the dev/bruno/fix-obsolete-mysql_install_db_script-internal_issue#94 branch from 722c2e2 to e155b22 Compare December 17, 2024 09:11
@BareosBot BareosBot merged commit 917ae42 into bareos:master Dec 18, 2024
@bruno-at-bareos bruno-at-bareos deleted the dev/bruno/fix-obsolete-mysql_install_db_script-internal_issue#94 branch January 27, 2025 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug This addresses a bug requires backport to 24

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants