[MacPorts] #63726: mysql8: Could not run sw_vers (was: mysql8 does not build under MacOS 12.0.01)

MacPorts noreply at macports.org
Thu Nov 4 12:22:35 UTC 2021


#63726: mysql8: Could not run sw_vers
--------------------------+-------------------------
  Reporter:  josephsacco  |      Owner:  herbygillot
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.7.1
Resolution:               |   Keywords:  monterey
      Port:  mysql8       |
--------------------------+-------------------------
Changes (by ryandesign):

 * keywords:  mysql8, make => monterey
 * owner:  (none) => herbygillot
 * status:  new => assigned


Old description:

> 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

New description:

 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

--

Comment:

 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.

-- 
Ticket URL: <https://trac.macports.org/ticket/63726#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list