Add depends_run and get build failure

Blair Zajac blair at orcaware.com
Thu Feb 10 00:52:12 PST 2011


On 2/9/11 11:40 PM, Ryan Schmidt wrote:
>
> 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.

Thanks!

Fixed in r75832.

Blair


More information about the macports-dev mailing list