Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#54345 closed defect (fixed)

gmic does not build - missing cmake dependency

Reported by: sjmudd (Simon J Mudd) Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: gmic

Description

sudo port install gmic gives:

Error: Failed to configure gmic: configure failure: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_gmic/gmic/main.log for details. Error: Follow https://guide.macports.org/#project.tickets to report a bug.

The log file shows:

:info:configure sh: /opt/local/bin/cmake: No such file or directory :info:configure Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_gmic/gmic/work/build" && /opt/local/bin/cmake -DCMAKE_INSTALL_PREFIX='/opt/local' -DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_C_COMPILER="$CC" -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_INSTALL_NAME_DIR=/opt/local/lib -DCMAKE_INSTALL_RPATH=/opt/local/lib -DCMAKE_MODULE_PATH=/opt/local/share/cmake/Modules -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.12" -DCMAKE_OSX_SYSROOT="/" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_gmic/gmic/work/gmic-1.7.9 :info:configure Exit code: 127

So looks like there's an unfulfilled requirement on cmake

MacPorts base version 2.4.1 installed,

trying to build gmic @1.7.9.1 (science)

sudo port install cmake seems to fix this, but it would be good for the build package to require cmake and ensure it's installed so that the build can complete.

Change History (5)

comment:1 Changed 7 years ago by Schamschula (Marius Schamschula)

Port: mic added

comment:2 Changed 7 years ago by Schamschula (Marius Schamschula)

The problem is not a missing cmake dependency:

PortGroup cmake 1.0

handles this. The problem is using depends_build, rather than depends_build-append as it is overwriting port:cmake, which is declared by the PortGroup.

comment:3 Changed 7 years ago by Schamschula (Marius Schamschula)

Port: gmic added; mic removed

I love autocorrect...

comment:4 Changed 7 years ago by Schamschula (Marius Schamschula)

Owner: set to Schamschula
Resolution: fixed
Status: newclosed

In 78b7edcc6fd21ec91ee1079e7269a29fe481995c/macports-ports:

gmic: update to version 2.0.0

fix depends_build issue
Closes: #54345

comment:5 Changed 7 years ago by sjmudd (Simon J Mudd)

Thanks for identifying the correct issue and resolving this.

Note: See TracTickets for help on using tickets.