Opened 3 years ago
Last modified 3 years ago
#63726 closed defect
mysql8: Could not run sw_vers — at Version 7
Reported by: | josephsacco | Owned by: | herbygillot (Herby Gillot) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.1 |
Keywords: | monterey | Cc: | arietis (Sergei Guselnikov), chrstphrchvz (Christopher Chavez) |
Port: | mysql8 |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
mysql8 does not build under MacOS 12.0.01:
databases_mysql8/mysql8/work/build :info:configure -- CMAKE_GENERATOR: Unix Makefiles :info:configure -- Looking for sys/types.h :info:configure -- Looking for sys/types.h - found :info:configure -- Looking for stdint.h :info:configure -- Looking for stdint.h - found :info:configure -- Looking for stddef.h :info:configure -- Looking for stddef.h - found :info:configure -- Check size of void * :info:configure -- Check size of void * - done :info:configure -- SIZEOF_VOIDP 8 :info:configure CMake Error at cmake/package_name.cmake:92 (MESSAGE): :info:configure Could not run sw_vers :info:configure Call Stack (most recent call first): :info:configure cmake/package_name.cmake:150 (GET_PACKAGE_FILE_NAME) :info:configure CMakeLists.txt:754 (INCLUDE) :info:configure -- Configuring incomplete, errors occurred! :info:configure See also "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mysql8/mysql8/work/build/CMakeFiles/CMakeOutput.log".
Log file attached.
-Joseph
Change History (9)
Changed 3 years ago by josephsacco
comment:1 Changed 3 years ago by arietis (Sergei Guselnikov)
Cc: | arietis added |
---|
comment:2 Changed 3 years ago by chrstphrchvz (Christopher Chavez)
Cc: | chrstphrchvz added |
---|
comment:3 Changed 3 years ago by chrstphrchvz (Christopher Chavez)
:info:configure CMake Error at cmake/package_name.cmake:92 (MESSAGE): :info:configure Could not run sw_vers :info:configure Call Stack (most recent call first): :info:configure cmake/package_name.cmake:150 (GET_PACKAGE_FILE_NAME) :info:configure CMakeLists.txt:754 (INCLUDE) :info:configure -- Configuring incomplete, errors occurred!
I’m curious—what does the sw_vers
command output on macOS Monterey, and is it somehow formatted differently from previous macOS such that it would break the relevant CMake code?
comment:4 Changed 3 years ago by josephsacco
cavandish:~ jsacco$ sw_vers ProductName: macOS ProductVersion: 12.0.1 BuildVersion: 21A559
-Joseph
Changed 3 years ago by chrstphrchvz (Christopher Chavez)
Attachment: | sw_vers_debug.diff added |
---|
Patch to debug output from sw_vers command
comment:5 Changed 3 years ago by chrstphrchvz (Christopher Chavez)
I attached a patch sw_vers_debug.diff. Joseph, could you please give it a try and report what is output?
comment:6 Changed 3 years ago by chrstphrchvz (Christopher Chavez)
Can someone please assign this ticket to the maintainer (@herbygillot)?
comment:7 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Keywords: | monterey added; mysql8 make removed |
Owner: | set to herbygillot |
Status: | new → assigned |
Summary: | mysql8 does not build under MacOS 12.0.01 → mysql8: Could not run sw_vers |
Their code is certainly very stupid. Why do they run sw_vers
and then parse its output with regular expressions when they could just run sw_vers -productVersion
and use its output directly? Even so, I don't see why their code does not work.
main.log