Patch for ports on 10-current

Nali Toja nalitoja at gmail.com
Mon Oct 10 22:27:11 UTC 2011


Doug Barton <dougb at FreeBSD.org> writes:

> Until the pointy-haireds come up with a better solution, here is a patch
> that incorporates work that others have done into a manageable form so
> that those interested in working with ports on 10-current have some
> tools to work with:
>
> http://dougbarton.us/bam.patch
[...]
> +.if ${OSVERSION} >= 1000000 && !defined(NO_LIBTOOL_FIXED)

The issue does not lie in OSVERSION but in OSREL. So, why not be smarter
and detect if a user has UNAME_r workaround in environment by

  .if ${OSREL:R} >= 10 && !defined(NO_FOO_FIX)


More information about the freebsd-ports mailing list