Skip to content

Conversation

keeper
Copy link

@keeper keeper commented May 23, 2023

1f2b9d6 replaces macros with functions, but in CMake functions have different scope and the variables set in the functions are not visible to the caller. The change breaks MySQL building with WITH_ZLIB="system" for the reason above (ZLIB_FOUND is not visible when returning from FIND_SYSTEM_ZLIB()).

Setting the necessary variables to PARENT_SCOPE (equal to returning variables) solves this issue.

1f2b9d6 replaces macros with functions, but in CMake functions have
different scope and the variables set in the functions are not visible
to the caller. The change breaks MySQL building with
`WITH_ZLIB="system"` for the reason above (ZLIB_FOUND is not visible
when returning from `FIND_SYSTEM_ZLIB()`).

Setting the necessary variables to PARENT_SCOPE (equal to returning
variables) solves this issue.

All new code of the whole pull request, including one or several files
that are either new files or modified ones, are contributed under the
BSD-new license. I am contributing on behalf of my employer Amazon Web
Services, Inc.
@mysql-oca-bot
Copy link

Hi, thank you for submitting this pull request. In order to consider your code we need you to sign the Oracle Contribution Agreement (OCA). Please review the details and follow the instructions at https://oca.opensource.oracle.com/
Please make sure to include your MySQL bug system user (email) in the returned form.
Thanks

@mysql-oca-bot
Copy link

Hi, thank you for your contribution. Please confirm this code is submitted under the terms of the OCA (Oracle's Contribution Agreement) you have previously signed by cutting and pasting the following text as a comment:
"I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it."
Thanks

@keeper
Copy link
Author

keeper commented Jun 16, 2023

This contribution is under the OCA signed by Amazon and covering submissions to the MySQL project.

@mysql-oca-bot
Copy link

Hi, thank you for your contribution. Your code has been assigned to an internal queue. Please follow
bug http://bugs.mysql.com/bug.php?id=111467 for updates.
Thanks

@dlenski
Copy link

dlenski commented Dec 6, 2023

After going through the Magical Internal Oracle/MySQL Blender™, this was eventually merged in MySQL 8.0.35 as 486fb15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants