Date: Fri, 13 Feb 2015 15:11:51 +0000 (UTC) From: Jimmy Olgeni <olgeni@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r378934 - in head/lang: erlang-runtime15 erlang-runtime16 erlang-runtime17 Message-ID: <201502131511.t1DFBpQD023591@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502131511.t1DFBpQD023591>