requesting help with Variable OSREL in port Makefile
Bob Eager
rde at tavi.co.uk
Sat Aug 13 22:36:11 UTC 2016
On Sat, 13 Aug 2016 18:28:23 -0400
qjail1 <qjail1 at 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.
More information about the freebsd-ports
mailing list