[18.9] Fix AmazonLinux 2023 not working with epoll_pwait2 glibc call

What does this MR do and why?

This backports !9214 (merged) to 18-9-stable.

The io-event gem needs the epoll_pwait2 patch not just for EL 9, but for any distribution with glibc 2.34 that has backported epoll_pwait2 support. For example, AmazonLinux 2023.10.20260202 appears to have pulled in the RHEL changes (RHEL-101986) for this.

Replace the el_9? check with a new glibc_2_34? method that covers both EL 9 and AmazonLinux 2023, making the code more maintainable and accurate.

Relates to #9684

Describe in detail what merge request is being backported and why

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

  • This MR is backporting a bug fix, documentation update, or spec fix, previously merged in the default branch.
  • The original MR has been deployed to GitLab.com (not applicable for documentation or spec changes).
  • This MR has a severity label assigned (if applicable).

Note to the merge request author and maintainer

If you have questions about the patch release process, please:

Edited by Stan Hu

Merge request reports

Loading