1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

sysutils/DTraceToolkit: remove missing providers in FreeBSD 12.0

dtruss fails as syscall::lstat*:return are no longer present

Reviewed by:	jrm (mentor)
Approved by:	dteske
Differential Revision:	https://reviews.freebsd.org/D15879
This commit is contained in:
Dave Cottlehuber 2019-03-02 22:10:21 +00:00
parent 42e3e73d0d
commit 39e9c6275e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=494460
3 changed files with 23 additions and 2 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= dtrace-toolkit
PORTVERSION= 1.0
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= sysutils
MAINTAINER= dteske@FreeBSD.org
@ -77,16 +77,24 @@ SHEBANG_FILES= Apps/shellsnoop \
NO_BUILD= yes
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} > 1200031
# lstat calls are no longer available on 12.0+
EXTRA_PATCHES= ${PATCHDIR}/extra-patch-dtruss
.endif
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
(cd ${WRKSRC} && ${TAR} --exclude '*.orig' -cf - . ) | \
(cd ${STAGEDIR}${DATADIR}/ && ${TAR} xvf -)
${RLN} ${STAGEDIR}${DATADIR}/dtruss ${STAGEDIR}${PREFIX}/bin/dtruss
${RLN} ${STAGEDIR}${DATADIR}/hotkernel ${STAGEDIR}${PREFIX}/bin/hotkernel
${RLN} ${STAGEDIR}${DATADIR}/procsystime ${STAGEDIR}${PREFIX}/bin/procsystime
${RLN} ${STAGEDIR}${DATADIR}/opensnoop ${STAGEDIR}${PREFIX}/bin/opensnoop
${RLN} ${STAGEDIR}${DATADIR}/Apps/shellsnoop ${STAGEDIR}${PREFIX}/bin/shellsnoop
.for MANPAGE in hotkernel procsystime opensnoop shellsnoop
.for MANPAGE in dtruss hotkernel procsystime opensnoop shellsnoop
${INSTALL_MAN} ${WRKSRC}/Man/man1m/${MANPAGE}.1m \
${STAGEDIR}${MAN1PREFIX}/man/man1/${MANPAGE}.1
.endfor

View File

@ -0,0 +1,11 @@
--- dtruss.orig 2018-06-18 09:22:32 UTC
+++ dtruss
@@ -270,7 +270,7 @@ syscall::sigprocmask:return
/* print 3 args, arg0 as a string */
syscall::access*:return,
syscall::stat*:return,
-syscall::lstat*:return,
+syscall::*lstat*:return,
syscall::readlink*:return,
syscall::open*:return
/self->start/

View File

@ -1,7 +1,9 @@
bin/dtruss
bin/hotkernel
bin/opensnoop
bin/procsystime
bin/shellsnoop
man/man1/dtruss.1.gz
man/man1/hotkernel.1.gz
man/man1/opensnoop.1.gz
man/man1/procsystime.1.gz