[MacPorts] #60400: mysql56: error: #error "Unsupported platform"

MacPorts noreply at macports.org
Mon Jun 8 06:30:35 UTC 2020


#60400: mysql56: error: #error "Unsupported platform"
----------------------+-----------------------------
  Reporter:  bryancn  |      Owner:  (none)
      Type:  defect   |     Status:  new
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:  2.6.2
Resolution:           |   Keywords:  leopard powerpc
      Port:  mysql56  |
----------------------+-----------------------------

Comment (by kencu):

 10.6.8 was straightforward:
 {{{
 $ port -v installed mysql56
 The following ports are currently installed:
   mysql56 @5.6.47_0 (active) platform='darwin 10' archs='x86_64'
 date='2020-06-07T23:22:42-0700'
 }}}
 most of the trouble came from clang-9.0 messing with the VERSION file.

 so:
 {{{
 post-patch {
     move ${worksrcpath}/VERSION ${worksrcpath}/VERSION.txt
     move ${worksrcpath}/storage/ndb/VERSION
 ${worksrcpath}/storage/ndb/VERSION.txt

     reinplace "s|/usr/bin/libtool|libtool|g" \
             ${worksrcpath}/cmake/libutils.cmake
 }
 }}}

 and one patchfile to fix up the name change from VERSION to VERSION.txt:
 {{{
 $ git diff --no-prefix cmake/mysql_version.cmake
 diff --git cmake/mysql_version.cmake cmake/mysql_version.cmake
 index 34ed6f4..89e238c 100644
 --- cmake/mysql_version.cmake
 +++ cmake/mysql_version.cmake
 @@ -31,7 +31,7 @@ SET(DOT_FRM_VERSION "6")

  # Generate "something" to trigger cmake rerun when VERSION changes
  CONFIGURE_FILE(
 -  ${CMAKE_SOURCE_DIR}/VERSION
 +  ${CMAKE_SOURCE_DIR}/VERSION.txt
    ${CMAKE_BINARY_DIR}/VERSION.dep
  )

 @@ -39,7 +39,7 @@ CONFIGURE_FILE(

  MACRO(MYSQL_GET_CONFIG_VALUE keyword var)
   IF(NOT ${var})
 -   FILE (STRINGS ${CMAKE_SOURCE_DIR}/VERSION str REGEX "^[
 ]*${keyword}=")
 +   FILE (STRINGS ${CMAKE_SOURCE_DIR}/VERSION.txt str REGEX "^[
 ]*${keyword}=")
     IF(str)
       STRING(REPLACE "${keyword}=" "" str ${str})
       STRING(REGEX REPLACE  "[ ].*" ""  str "${str}")
 }}}


 Looks like mysql56 is a no-maintainer port, so presumably nobody will
 complain if I go ahead and fix this.

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


More information about the macports-tickets mailing list