[MacPorts] #52233: libemos @4.4.3: configure error - upgrade failure
#52233: libemos @4.4.3: configure error - upgrade failure ----------------------------------+-------------------------------- Reporter: piergiuseppe.fogli@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: | Port: libemos ----------------------------------+-------------------------------- `port upgrade outdated` gives a configure error during libemos upgrade from `libemos @4.3.9_0+gcc5` to `libemos @4.4.3`. Log file attached. -- Ticket URL: <https://trac.macports.org/ticket/52233> MacPorts <https://www.macports.org/> Ports system for macOS
#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 | -----------------------------------+----------------------- Changes (by ryandesign@…): * cc: takeshi@…, piergiuseppe.fogli@… (removed) * owner: macports-tickets@… => takeshi@… Comment: Looks like the error in the log is: {{{ CMake Error: Error in cmake code at /opt/local/bin/python2.7-config:3: Parse error. Expected "(", got identifier with text "sys". }}} It might help if you also attached the log files mentioned later in the log: {{{ -- Configuring incomplete, errors occurred! See also "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_libemos/libemos/work/build/CMakeFiles/CMakeOutput.log". See also "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_libemos/libemos/work/build/CMakeFiles/CMakeError.log". }}} -- Ticket URL: <https://trac.macports.org/ticket/52233#comment:2> MacPorts <https://www.macports.org/> Ports system for macOS
#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@…): It seems it's trying to source `/opt/local/bin/python2.7-config` instead of executing it. Replying to [comment:2 ryandesign@…]:
Looks like the error in the log is:
{{{ CMake Error: Error in cmake code at /opt/local/bin/python2.7-config:3: Parse error. Expected "(", got identifier with text "sys". }}}
It might help if you also attached the log files mentioned later in the log:
{{{ -- Configuring incomplete, errors occurred! See also "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_libemos/libemos/work/build/CMakeFiles/CMakeOutput.log". See also "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_libemos/libemos/work/build/CMakeFiles/CMakeError.log". }}}
-- Ticket URL: <https://trac.macports.org/ticket/52233#comment:3> MacPorts <https://www.macports.org/> Ports system for macOS
#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
participants (1)
-
MacPorts