Add depends_run and get build failure

Ryan Schmidt ryandesign at
Wed Feb 9 23:40:38 PST 2011

On Feb 10, 2011, at 01:08, Blair Zajac wrote:

> In the "derby" port, adding a
> depends_run port:rlwrap
> just after the "depends_lib" is causing a build failure:
> Error: Target org.macports.destroot returned: xinstall: Cannot stat: files/dblook, No such file or directory

You should be using ${filespath}, not ${filesdir}. The former is the absolute path, the latter is the path relative to the port directory.

Using ${filesdir} coincidentally worked because I guess the working directory happened to be derby's port directory, and adding the new dependency seems to cause MacPorts internally to change its working directory during the processing of that dependency. Ports shouldn't rely on the current working directory being anything in particular and should use variables representing absolute paths.

More information about the macports-dev mailing list