Temporarily blacklisting OCaml for 10.6 and before...

Perry E. Metzger perry at piermont.com
Wed Dec 13 14:41:06 UTC 2017


On Wed, 13 Dec 2017 14:34:03 +0000 Zero King <l2dy at macports.org>
wrote:
> On Wed, Dec 13, 2017 at 09:22:14AM -0500, Perry E. Metzger wrote:
> >For the moment, OCaml doesn't work on 10.6 and earlier. There's
> >some work that can fix that, but it isn't done yet.
> >
> >How does one specify that a port is only for more recent operating
> >system versions to prevent it from building on older platforms? (I
> >know how to blacklist ppc for the moment using supported_archs.)  
> 
> Here's a snippet excerpted from port mas:
> 
> pre-fetch {
>     if {${os.major} < 15} {
>         ui_error "${name} @${version} requires OS X 10.11 or later."
>         return -code error "incompatible OS X version"
>     }
> }

Cool. What is os.major for 10.7? (Or how could I answer that on my
own?)

Perry
-- 
Perry E. Metzger		perry at piermont.com


More information about the macports-dev mailing list