Check if dtraceall is actually loaded when DTRACE is enabled.
This commit is contained in:
parent
f7e2ff1544
commit
01aacc513b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=378934
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user