Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Aug 2016 23:36:08 +0100
From:      Bob Eager <rde@tavi.co.uk>
To:        freebsd-ports@freebsd.org
Subject:   Re: requesting help with Variable OSREL in port Makefile
Message-ID:  <20160813233608.0b6b6df6@raksha.tavi.co.uk>
In-Reply-To: <57AF9F07.9020208@a1poweruser.com>
References:  <57AF9F07.9020208@a1poweruser.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 13 Aug 2016 18:28:23 -0400
qjail1 <qjail1@a1poweruser.com> wrote:

>  >> .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000000
>  >> IGNORE= builds only on 10 or greater than 10
>  >> .endif
>  >
>  > That's OSVERSION. The OP asked about OSREL.
>  >
>  > (however, OSVERSION is more useful as one can test it numerically;
>  > it is documented in Chapter 16 of the Porter's Handbook, if the OP
>  > wants to know more)
> 
> I read Chapter 16 of the Porter's Handbook before posting. It doesn't 
> say how you got to a "1000000" value for OSVERSION. Why so many zeros?

Because it gets incremented often. And I guess gaps are left for new
releases or whatever.

> A 10.0 value is what I interpret to be the value for OSREL. Is that 
> correct?

Well, yes. But you might want to check for 'greater than' rather than
'equal to', and OSRELEASE is much better for that.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160813233608.0b6b6df6>