64btt cvsup?

John Polstra jdp at polstra.com
Thu Feb 26 12:28:10 PST 2004

On 26-Feb-2004 Garance A Drosihn wrote:
> At 9:10 PM -0800 2/25/04, Kris Kennaway wrote:
>>Ports don't usually apply patches conditionally on the version.
>>Instead, wherever possible the patch itself should contain the
>>conditionals, i.e.
>>#if __FreeBSD_version >= 50210x
> Hmm.  But this is to Modula-3 source, so how do I do that?

You can't, because Modula-3 doesn't have anything resembling #if.
That's why you need some code in the Makefile to apply the patch
conditionally based on the value of ${OSVERSION}.

However, if you are really going to stick to your plan of orphaning
all pre-64-bit-time_t sparc64 then you can just stick something like
this into the ``.elif ${ARCH} == "sparc64"'' section of the

    .if ${OSVERSION} < 50210x
    BROKEN=         Installed FreeBSD version is too old for ezm3

And then you can make the patch unconditional.


More information about the freebsd-sparc64 mailing list