Date: Fri, 15 May 2015 09:40:38 +0000 (UTC) From: John Marino <marino@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r386393 - head/sysutils/rdate Message-ID: <201505150940.t4F9ecEO029057@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505150940.t4F9ecEO029057>