Bug #105520 Problem with sw_vers on Mac OS X 12.0
Submitted: 10 Nov 2021 18:36 Modified: 10 Nov 2021 21:24
Reporter: Mikael Ronström Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:MySQL 8.0.27 OS:MacOS (12.0)
Assigned to: CPU Architecture:Any

[10 Nov 2021 18:36] Mikael Ronström
Description:
I try to compile the latest mysql/mysql-server git tree (MySQL 8.0.27) on a new
Mac Book Pro running Mac OS X Monterey.

The Cmake process fails on line 93 in cmake / package_name.cmake
It tries to do a regex on the output from sw_vers
For some reason it fails, the output from sw_vers on my machine is the following:
x> sw_vers
ProductName:	macOS
ProductVersion:	12.0
BuildVersion:	21A344

How to repeat:
Run cmake in a new directory using the command:
cmake -DWITH_DEBUG=1 -DWITH_SSL=$OPENSSL_ROOT -DWITH_NDBCLUSTER=1 -DWITH_NDB_TEST=1 -DWITH_NDBAPI_EXAMPLES=1 -DWITH_ROUTER=0 -DWITH_UNIT_TESTS=1 -DWITH_ERROR_INSERT=1 _DWITH_BOOST=$BOOST_ROOT -DWITH_NDB_JAVA=1 -DWITH_LIBEVENT=bundled ../

Suggested fix:
Don't know, for now I simply ignore the error and write 12.0 into where it
was supposed to be stored.
[10 Nov 2021 20:24] MySQL Verification Team
Thank you for the bug report. Please check if it's duplicate of bug https://bugs.mysql.com/bug.php?id=105464.
[10 Nov 2021 20:41] Mikael Ronström
It looks like it is a duplicate. I will test the solution and see if it
works. If so I will close the bug.
[10 Nov 2021 21:24] Mikael Ronström
Solution worked. Will close this bug as duplicate of BUG#105464.
[11 Nov 2021 13:15] MySQL Verification Team
Thank you, Mr. Ronstrom ......