svn commit: r386393 - head/sysutils/rdate
John Marino
marino at FreeBSD.org
Fri May 15 09:40:38 UTC 2015
Author: marino
Date: Fri May 15 09:40:37 2015
New Revision: 386393
URL: https://svnweb.freebsd.org/changeset/ports/386393
Log:
sysutils/rdate: Unbreak DragonFly after previous commit
OSVERSION was used without OPSYS. This fix really should be
"if dragonfly or (freebsd osversion < X)" but currently OSVERSION
is valid as long as OPSYS <> DragonFly so this change will work and
is simpler than the "real" fix. Ideally all of this should be replaced
with a feature detection mechanism.
Modified:
head/sysutils/rdate/Makefile
Modified: head/sysutils/rdate/Makefile
==============================================================================
--- head/sysutils/rdate/Makefile Fri May 15 08:25:42 2015 (r386392)
+++ head/sysutils/rdate/Makefile Fri May 15 09:40:37 2015 (r386393)
@@ -18,7 +18,7 @@ PLIST_FILES= sbin/rdate man/man8/${PORTN
post-patch:
${REINPLACE_CMD} -e 's,/right,,' ${WRKSRC}/rdate.8
-.if ${OSVERSION} < 1100072
+.if ${OPSYS} == DragonFly || ${OSVERSION} < 1100072
${REINPLACE_CMD} -e '/^SRCS/s/$$/ reallocarray.c/' ${WRKSRC}/Makefile
${ECHO} 'void *reallocarray(void *optr, size_t nmemb, size_t size);' \
>> ${WRKSRC}/ntpleaps.h
More information about the svn-ports-all
mailing list