Check if dtraceall is actually loaded when DTRACE is enabled.

This commit is contained in:
Jimmy Olgeni 2015-02-13 15:11:50 +00:00
parent f7e2ff1544
commit 01aacc513b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=378934
3 changed files with 24 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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