svn commit: r378934 - in head/lang: erlang-runtime15 erlang-runtime16 erlang-runtime17
Jimmy Olgeni
olgeni at FreeBSD.org
Fri Feb 13 15:11:52 UTC 2015
Author: olgeni
Date: Fri Feb 13 15:11:50 2015
New Revision: 378934
URL: https://svnweb.freebsd.org/changeset/ports/378934
QAT: https://qat.redports.org/buildarchive/r378934/
Log:
Check if dtraceall is actually loaded when DTRACE is enabled.
Modified:
head/lang/erlang-runtime15/Makefile
head/lang/erlang-runtime16/Makefile
head/lang/erlang-runtime17/Makefile
Modified: head/lang/erlang-runtime15/Makefile
==============================================================================
--- head/lang/erlang-runtime15/Makefile Fri Feb 13 14:54:46 2015 (r378933)
+++ head/lang/erlang-runtime15/Makefile Fri Feb 13 15:11:50 2015 (r378934)
@@ -164,6 +164,14 @@ MAKE_ARGS+= ARCH=x86
# links in the documentation.
pre-configure:
+.if ${PORT_OPTIONS:MDTRACE}
+ @if ! /sbin/kldstat | ${GREP} dtraceall >/dev/null 2>&1; then \
+ ${ECHO_CMD}; \
+ ${ECHO_CMD} "DTRACE option requires kernel module \"dtraceall\" to be loaded."; \
+ ${ECHO_CMD}; \
+ exit 1; \
+ fi
+.endif
.if ! ${PORT_OPTIONS:MWX}
echo "disabled by port options" > ${WRKSRC}/lib/wx/SKIP
.endif
Modified: head/lang/erlang-runtime16/Makefile
==============================================================================
--- head/lang/erlang-runtime16/Makefile Fri Feb 13 14:54:46 2015 (r378933)
+++ head/lang/erlang-runtime16/Makefile Fri Feb 13 15:11:50 2015 (r378934)
@@ -164,6 +164,14 @@ MAKE_ARGS+= ARCH=x86
# links in the documentation.
pre-configure:
+.if ${PORT_OPTIONS:MDTRACE}
+ @if ! /sbin/kldstat | ${GREP} dtraceall >/dev/null 2>&1; then \
+ ${ECHO_CMD}; \
+ ${ECHO_CMD} "DTRACE option requires kernel module \"dtraceall\" to be loaded."; \
+ ${ECHO_CMD}; \
+ exit 1; \
+ fi
+.endif
.if ! ${PORT_OPTIONS:MWX}
echo "disabled by port options" > ${WRKSRC}/lib/wx/SKIP
.endif
Modified: head/lang/erlang-runtime17/Makefile
==============================================================================
--- head/lang/erlang-runtime17/Makefile Fri Feb 13 14:54:46 2015 (r378933)
+++ head/lang/erlang-runtime17/Makefile Fri Feb 13 15:11:50 2015 (r378934)
@@ -164,6 +164,14 @@ MAKE_ARGS+= ARCH=x86
# links in the documentation.
pre-configure:
+.if ${PORT_OPTIONS:MDTRACE}
+ @if ! /sbin/kldstat | ${GREP} dtraceall >/dev/null 2>&1; then \
+ ${ECHO_CMD}; \
+ ${ECHO_CMD} "DTRACE option requires kernel module \"dtraceall\" to be loaded."; \
+ ${ECHO_CMD}; \
+ exit 1; \
+ fi
+.endif
.if ! ${PORT_OPTIONS:MWX}
echo "disabled by port options" > ${WRKSRC}/lib/wx/SKIP
.endif
More information about the svn-ports-all
mailing list