Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

percona-xtrabackup 8.0.32-26 #132034

Merged

Conversation

jkrauska
Copy link
Contributor

@jkrauska jkrauska commented May 25, 2023

Created with brew bump-formula-pr.

Attempt at redoing #131036

Two main issues:

  • boost check patch needed updating
  • use mysql [1] instead of mysql-client due to bad linker settings remain in mysql-client (full mysql makes more sense anyway as you need a server to use xtrabackup anyway)
  1. mysql PR from a week back
    mysql: fix bad linker flags in mysql_config #131207
  • resource blocks have been checked for updates.

license ref:

https://github.com/percona/percona-xtrabackup/#licensing
https://github.com/search?q=repo%3Apercona%2Fpercona-xtrabackup%20General%20Public%20License&type=code

@github-actions github-actions bot added perl Perl use is a significant feature of the PR or issue missing license Formula has a missing license which should be added bump-formula-pr PR was created using `brew bump-formula-pr` icu4c ICU use is a significant feature of the PR or issue autosquash Automatically squash pull request commits according to Homebrew style. and removed missing license Formula has a missing license which should be added labels May 25, 2023
@chenrui333
Copy link
Member

thanks for taking on this :)

@jkrauska
Copy link
Contributor Author

thanks for taking on this :)

I'm new so this is tricky, but I'm interested in figuring it out.

@jkrauska
Copy link
Contributor Author

arm builds all worked. x86s were taking longer. let's see tomorrow! 🤞

@carlocab carlocab added CI-no-fail-fast Continue CI tests despite failing GitHub Actions matrix builds. linux Linux is specifically affected labels May 26, 2023
@carlocab
Copy link
Member

Linux is failing with

  /tmp/percona-xtrabackup-20230526-28878-iem1vs/percona-xtrabackup-8.0.32-26/storage/innobase/xtrabackup/src/utils.cc:26:10: fatal error: proc/sysinfo.h: No such file or directory
     26 | #include <proc/sysinfo.h>
        |          ^~~~~~~~~~~~~~~~

@Homebrew/linux?

@jkrauska
Copy link
Contributor Author

All complete except for Linux.
Adding procps to linux requires wasn't helpful.

Percona currently provides MANY Linux binary packages on their download pages.
(Debian, RHEL, Centos, Ubuntu and "Generic")

Screenshot 2023-05-26 at 12 38 58 PM Screenshot 2023-05-26 at 12 39 06 PM

It's MacOS builds which are completely missing and the major value I find with having this HomeBrew Formula.

Is it reasonable to disable Linux builds for this version?

@jkrauska
Copy link
Contributor Author

Thread on percona forum suggesting procps-ng-devel is required.

https://forums.percona.com/t/arm-compile-error-percona-xtrabackup-80-8-0-32-26-1-generic-src-rpm/21534

@jkrauska
Copy link
Contributor Author

Current procps package in homebrew in version 4.

This ticket on Percona's JIRA highlights the issue of compatibility with version 4 and lack of cmake check.

https://jira.percona.com/browse/PXB-2993?jql=text%20~%20%22sysinfo.h%22

will try patching.

@jkrauska
Copy link
Contributor Author

@chenrui333 Do you have a position on the need for the Linux builds?

I think it might be possible to down-rev the procps formula and/or make an intentional procps-devel formula, but I don't know enough about the Linux use cases for Homebrew.

My struggle is that I don't have easy access to a Linux test platform so the test loop takes nearly an hour to run through GH CI, and that's wasteful.

@carlocab
Copy link
Member

carlocab commented May 28, 2023

Which version of procps is needed? We can add a versioned formula for it if we need an older one.

@jkrauska
Copy link
Contributor Author

Which version of procps is needed? We can add a versioned formula for it if we need an older one.

The notes here: https://jira.percona.com/browse/PXB-2993?jql=text%20~%20%22sysinfo.h%22
Suggest that procps 3 is required.

But note that it's the development headers (which I'm not sure are even installed in the normal package) that are needed here. Not the lib itself. (typically they would reside in a -devel package in rpm/deb speak). I'm not sure what the equivalent is in brew and wasn't able to find any packages labeled '-devel'.

@jkrauska
Copy link
Contributor Author

The equivalent debian package is:
https://packages.debian.org/bullseye/libprocps-dev

I can attempt to create a corresponding brew formulae, and then link it to this work.

@jkrauska
Copy link
Contributor Author

Update: put together a Debian VM, so I could install HomeBrew and the procps formula.

It includes
./Cellar/procps/4.0.3/include/libproc2/misc.h
Which looks like a promising include.

@jkrauska
Copy link
Contributor Author

New error:

  /tmp/percona-xtrabackup-20230529-29318-6ls2d2/percona-xtrabackup-8.0.32-26/storage/innobase/xtrabackup/src/utils.cc: In function ‘long unsigned int xtrabackup::utils::host_total_memory()’:
  /tmp/percona-xtrabackup-20230529-29318-6ls2d2/percona-xtrabackup-8.0.32-26/storage/innobase/xtrabackup/src/utils.cc:144:3: error: ‘meminfo’ was not declared in this scope
    144 |   meminfo();
        |   ^~~~~~~
  /tmp/percona-xtrabackup-20230529-29318-6ls2d2/percona-xtrabackup-8.0.32-26/storage/innobase/xtrabackup/src/utils.cc:145:10: error: ‘kb_main_total’ was not declared in this scope
    145 |   return kb_main_total * 1024;
        |          ^~~~~~~~~~~~~
  /tmp/percona-xtrabackup-20230529-29318-6ls2d2/percona-xtrabackup-8.0.32-26/storage/innobase/xtrabackup/src/utils.cc: In function ‘long unsigned int xtrabackup::utils::host_free_memory()’:
  /tmp/percona-xtrabackup-20230529-29318-6ls2d2/percona-xtrabackup-8.0.32-26/storage/innobase/xtrabackup/src/utils.cc:149:3: error: ‘meminfo’ was not declared in this scope
    149 |   meminfo();
        |   ^~~~~~~
  /tmp/percona-xtrabackup-20230529-29318-6ls2d2/percona-xtrabackup-8.0.32-26/storage/innobase/xtrabackup/src/utils.cc:150:10: error: ‘kb_main_available’ was not declared in this scope
    150 |   return kb_main_available * 1024;
        |          ^~~~~~~~~~~~~~~~~
  make[2]: *** [storage/innobase/xtrabackup/src/CMakeFiles/xtrabackup.dir/build.make:443: storage/innobase/xtrabackup/src/CMakeFiles/xtrabackup.dir/utils.cc.o] Error 1

There's also a meminfo.h.

Check it vs misc.h for comparisons.

@jkrauska
Copy link
Contributor Author

kb_main_total is only defined in procps version 3. (not 4)

@jkrauska
Copy link
Contributor Author

It looks like I'd need a /new/ Formula procps@3.rb
If this completes, I'll use that approach (instead of overriding the current procps at 4)

@github-actions github-actions bot added the automerge-skip `brew pr-automerge` will skip this pull request label May 29, 2023
@jkrauska jkrauska force-pushed the bump-percona-xtrabackup-8.0.32-26 branch from 47364d3 to d8beaca Compare May 29, 2023 05:48
@github-actions github-actions bot removed the automerge-skip `brew pr-automerge` will skip this pull request label May 29, 2023
Formula/procps@3.rb Outdated Show resolved Hide resolved
@carlocab carlocab force-pushed the bump-percona-xtrabackup-8.0.32-26 branch from 7fc1f02 to 1253142 Compare May 29, 2023 06:01
@github-actions github-actions bot added the automerge-skip `brew pr-automerge` will skip this pull request label May 29, 2023
@carlocab
Copy link
Member

Looks like it wants an @4 alias.

cd Aliases
ln -s ../Formula/procps.rb procps@4

Yep, done.

@carlocab carlocab added ready to merge PR can be merged once CI is green and removed automerge-skip `brew pr-automerge` will skip this pull request labels May 29, 2023
@carlocab carlocab requested a review from chenrui333 May 29, 2023 06:13
@carlocab
Copy link
Member

My approval here won't unlock the merge since I pushed to this PR, but another maintainer should approve this soon.

Thanks for your work here, @jkrauska! This was very nice work.

SMillerDev
SMillerDev previously approved these changes May 29, 2023
@github-actions
Copy link
Contributor

🤖 An automated task has requested bottles to be published to this PR.

@github-actions
Copy link
Contributor

⚠️ Bottle publish failed. CC @carlocab

@github-actions github-actions bot dismissed SMillerDev’s stale review May 29, 2023 11:15

bottle publish failed

chenrui333
chenrui333 previously approved these changes May 29, 2023
@github-actions
Copy link
Contributor

🤖 An automated task has requested bottles to be published to this PR.

@github-actions
Copy link
Contributor

⚠️ Bottle publish failed. CC @carlocab

@github-actions github-actions bot dismissed chenrui333’s stale review May 29, 2023 12:49

bottle publish failed

carlocab
carlocab previously approved these changes May 29, 2023
@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

⚠️ @carlocab bottle publish failed. CC @carlocab

@github-actions github-actions bot dismissed carlocab’s stale review May 29, 2023 13:17

bottle publish failed

@github-actions
Copy link
Contributor

@github-actions github-actions bot added the CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. label May 29, 2023
@BrewTestBot BrewTestBot added this pull request to the merge queue May 29, 2023
Merged via the queue into Homebrew:master with commit f06884e May 29, 2023
@github-actions github-actions bot added the outdated PR was locked due to age label Jun 29, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bump-formula-pr PR was created using `brew bump-formula-pr` CI-no-fail-fast Continue CI tests despite failing GitHub Actions matrix builds. CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. icu4c ICU use is a significant feature of the PR or issue linux Linux is specifically affected outdated PR was locked due to age perl Perl use is a significant feature of the PR or issue ready to merge PR can be merged once CI is green
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants