<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Martin, I'm trying to understand how this is happening to you.</div><div><br></div><div>you should not need to be doing that in your Portfile, and users should never need to make that symlink.</div><div><br></div><div>The linuxdoc-tools port has this:</div><div><br></div><div><div>depends_build   bin:latex:texlive \</div><div>                path:bin/perl:perl5</div></div><div><br></div><div><br></div><div>But it seems that you're saying that perl5 is not just a build dep, but also a runtime dep?</div><div><br></div><div>If so, if we change that part to:</div><div><br></div><div><div>depends_lib     path:bin/perl:perl5</div></div><div><br></div><div>Then that will force perl5 to be available at runtime as well.</div><div><br></div><div>Is that the proper fix?</div><div><br></div><div>Ken</div><div><br></div><br><blockquote type="cite"><pre>That's. That worked. Preparing a pull request.

Eric F schrieb:
><i> Try using “return -code error”, something like:
</i>><i> 
</i>><i> ```tlc
</i>><i>     if {![file exists ${prefix}/bin/perl]} {
</i>><i>         ui_error "
</i>><i> «${prefix}/bin/perl» is missing but the linuxdoc-tools depends on it.
</i>><i> 
</i>><i> Please create an appropriate symbolic link for linuxdoc-tools to work.
</i>><i> "
</i>><i>         return -code error "missing dependency"
</i>><i>     }
</i>><i> ```
</i>><i> 
</i>><i> · Eric
</i>><i> 
</i>><i> On 10/3/20 11:15 , Martin Krischik wrote:
</i>>><i> Hello,
</i>>><i>
</i>>><i> I working on a version bump on the **cc65** and encountered a problem
</i>>><i> with the **linuxdoc-tools**. Since I can't fix the **linuxdoc-tools**
</i>>><i> and there is a simple workaround possible I decided to add an if
</i>>><i> statement to inform the user together with the workaround:
</i>>><i>
</i>>><i> ```tlc
</i>>><i>     if {! [file exists ${prefix}/bin/perl] } {
</i>>><i>             ui_error "
</i>>><i> «${prefix}/bin/perl» is missing but the linuxdoc-tools depends on it.
</i>>><i>
</i>>><i> Please create an appropriate symbolic link for linuxdoc-tools to work.
</i>>><i> "
</i>>><i>     exit 1
</i>>><i>     }
</i>>><i> ```
</i>>><i>
</i>>><i> Crude but the best I can do since I'm neither the **perl5** nor the
</i>>><i> **linuxdoc-tools** maintainer and I don't want to spend to much time on
</i>>><i> a otherwise simple version bump.
</i>>><i>
</i>>><i> However, the MacPorts doesn't understand `exit 1` and `ui_error` won't
</i>>><i> stop execution on its own.
</i>>><i>
</i>>><i> How do I stop the execution so not to waste the users time on a build
</i>>><i> which will otherwise fail right at the end.
</i>>><i>
</i>>><i> Regards
</i>>><i>
</i>>><i> Martin
</i>><i> </i></pre></blockquote><div><br></div></body></html>