[MacPorts] #52233: libemos @4.4.3: Parse error. Expected "(", got identifier with text "sys".

MacPorts noreply at macports.org
Tue Sep 27 12:34:19 CEST 2016


#52233: libemos @4.4.3: Parse error.  Expected "(", got identifier with text "sys".
-----------------------------------+-----------------------
  Reporter:  piergiuseppe.fogli@…  |      Owner:  takeshi@…
      Type:  defect                |     Status:  new
  Priority:  Normal                |  Milestone:
 Component:  ports                 |    Version:  2.3.4
Resolution:                        |   Keywords:
      Port:  libemos               |
-----------------------------------+-----------------------

Comment (by piergiuseppe.fogli@…):

 An update and a fix for this issue.[[BR]]
 Running `cmake` in trace mode I was able to trace back the error to the
 `grib_api` package:
 {{{
 /opt/local/share/grib_api/cmake/grib_api-config.cmake.tpls(1):  if(NOT
 PYTHON_CONFIG )
 /opt/local/share/grib_api/cmake/grib_api-config.cmake.tpls(2):
 include(/opt/local/bin/python2.7-config OPTIONAL )
 CMake Error: Error in cmake code at
 /opt/local/bin/python2.7-config:3:
 Parse error.  Expected "(", got identifier with text "sys".
 /opt/local/share/grib_api/cmake/grib_api-config.cmake.tpls(3):
 set(PYTHON_CONFIG /opt/local/bin/python2.7-config )
 }}}
 I don't understand why `cmake` it's trying to source
 `/opt/local/bin/python2.7-config`, which is python code. Anyway, I solved
 the problem commenting the include line in the
 `/opt/local/share/grib_api/cmake/grib_api-config.cmake.tpls` file.

-- 
Ticket URL: <https://trac.macports.org/ticket/52233#comment:4>
MacPorts <https://www.macports.org/>
Ports system for the Mac operating system


More information about the macports-tickets mailing list