Re: How to abort a macports portfile on an error condition?

2020-10-04 Thread Ken Cunningham
hey, thanks Ryan for taking care of this little detail. K On 2020-10-03, at 11:48 AM, Ken Cunningham wrote: > Martin, I'm trying to understand how this is happening to you. > > you should not need to be doing that in your Portfile, and users should never > need to make that symlink. >

Re: How to abort a macports portfile on an error condition?

2020-10-04 Thread Ryan Schmidt
On Oct 3, 2020, at 05:42, Nils Breunese wrote: > There is also ‘known_fail yes’, which I see getting combined with ‘return > -code error’: https://trac.macports.org/ticket/60566 > > I’m not familiar with the precise differences between known_fail, ui_error > and return -code error. ui_error

Re: How to abort a macports portfile on an error condition?

2020-10-03 Thread Ken Cunningham
Martin, I'm trying to understand how this is happening to you. you should not need to be doing that in your Portfile, and users should never need to make that symlink. The linuxdoc-tools port has this: depends_build bin:latex:texlive \ path:bin/perl:perl5 But it seems that y

Re: How to abort a macports portfile on an error condition?

2020-10-03 Thread Martin Krischik
That's. That worked. Preparing a pull request. Eric F schrieb: > Try using “return -code error”, something like: > > ```tlc > if {![file exists ${prefix}/bin/perl]} { > ui_error " > «${prefix}/bin/perl» is missing but the linuxdoc-tools depends on it. > > Please create an appropriate

Re: How to abort a macports portfile on an error condition?

2020-10-03 Thread Nils Breunese
There is also ‘known_fail yes’, which I see getting combined with ‘return -code error’: https://trac.macports.org/ticket/60566 I’m not familiar with the precise differences between known_fail, ui_error and return -code error. Nils. > Op 3 okt. 2020, om 12:30 heeft Eric F het volgende > gesch

Re: How to abort a macports portfile on an error condition?

2020-10-03 Thread Eric F
Try using “return -code error”, something like: ```tlc if {![file exists ${prefix}/bin/perl]} { ui_error " «${prefix}/bin/perl» is missing but the linuxdoc-tools depends on it. Please create an appropriate symbolic link for linuxdoc-tools to work. " return -code error "missing

How to abort a macports portfile on an error condition?

2020-10-03 Thread Martin Krischik
Hello, I working on a version bump on the **cc65** and encountered a problem with the **linuxdoc-tools**. Since I can't fix the **linuxdoc-tools** and there is a simple workaround possible I decided to add an if statement to inform the user together with the workaround: ```tlc if {! [file