64btt cvsup?
Garance A Drosihn
drosih at rpi.edu
Thu Feb 26 18:06:32 PST 2004
At 9:10 PM -0800 2/25/04, Kris Kennaway wrote:
>On Thu, Feb 26, 2004, Garance A Drosihn wrote:
>
> > John wrote:
> > > Figure out the ports-Makefile-fu to make the new patches
> > > get applied only if the system has a recent enough
> > > __FreeBSD_version. That ought to do it.
> >
>> I have no idea what ports-makefile-fu would be needed, but we
>> haven't picked the value of __FreeBSD_version for this change yet,
>> so I have the excuse that we couldn't really do this yet anyway.
>
>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
>...
>#endif
Okay, after mulling over various comments, I came with the
patch that's in:
It is at:
http://people.freebsd.org/~gad/time-64/port-ezm3.diff
This is a patch to the port itself. Ie, you can:
cd /usr/ports/lang/ezm3
patch -p0 < /tmp/port-ezm3.diff
and do something like 'make patch'. This does not depend on
__FreeBSD_version, and it should automatically detect whether
ezm3 should be built for 32-bit or 64-bit time_t. This is done
by adding an "extra patch" to the port, so it is determined at
patch time, instead of at the (more desirable) build-time. It
also prints out an informational message (in a pre-patch target)
indicating which time_t ezm3 is being built for.
These changes will only effect builds done on sparc64.
I do not know who the proper person would be to do the actual
commit of this, but I'm pretty sure it is not me! I can say
that I have checked it, and it does work the way I wanted it to.
Due to the way it works, it could be committed right now.
--
Garance Alistair Drosehn = gad at gilead.netel.rpi.edu
Senior Systems Programmer or gad at freebsd.org
Rensselaer Polytechnic Institute or drosih at rpi.edu
More information about the freebsd-sparc64
mailing list