FreeBSD Bugzilla – Attachment 180360 Details for
Bug 217419
New port: level/py-python-dtrace Python bindings for DTrace
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
shar for devel/py-python-dtrace
py-python-dtrace.shar (text/plain), 4.50 KB, created by
Steve Wills
on 2017-02-28 14:56:09 UTC
(
hide
)
Description:
shar for devel/py-python-dtrace
Filename:
MIME Type:
Creator:
Steve Wills
Created:
2017-02-28 14:56:09 UTC
Size:
4.50 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># devel/py-python-dtrace ># devel/py-python-dtrace/Makefile ># devel/py-python-dtrace/distinfo ># devel/py-python-dtrace/files ># devel/py-python-dtrace/files/patch-setup.py ># devel/py-python-dtrace/files/patch-dtrace__cython_consumer.pyx ># devel/py-python-dtrace/pkg-descr ># devel/py-python-dtrace/pkg-comment ># >echo c - devel/py-python-dtrace >mkdir -p devel/py-python-dtrace > /dev/null 2>&1 >echo x - devel/py-python-dtrace/Makefile >sed 's/^X//' >devel/py-python-dtrace/Makefile << '2cd331b50695269f1c7711596c2b123b' >X# $FreeBSD$ >X >XPORTNAME= python-dtrace >XPORTVERSION= 0.0.9 >XCATEGORIES= devel python >XMASTER_SITES= CHEESESHOP >XPKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} >X >XMAINTAINER= gcj21@cl.cam.ac.uk >XCOMMENT= DTrace consumer for Python based on libdtrace >X >XLICENSE= MIT >X >XBUILD_DEPENDS= cython:lang/cython >XRUN_DEPENDS= cython:lang/cython >X >XUSES= python zip >XUSE_PYTHON= autoplist distutils >X >X.include <bsd.port.mk> >2cd331b50695269f1c7711596c2b123b >echo x - devel/py-python-dtrace/distinfo >sed 's/^X//' >devel/py-python-dtrace/distinfo << '6bcb5d8e35102aa2b5fc6a8f26939898' >XTIMESTAMP = 1476182943 >XSHA256 (python-dtrace-0.0.9.zip) = 9daa24fe3b5d16c17c4afed00d3b2b2f869598efc5a8100b8570342713328912 >XSIZE (python-dtrace-0.0.9.zip) = 21764 >6bcb5d8e35102aa2b5fc6a8f26939898 >echo c - devel/py-python-dtrace/files >mkdir -p devel/py-python-dtrace/files > /dev/null 2>&1 >echo x - devel/py-python-dtrace/files/patch-setup.py >sed 's/^X//' >devel/py-python-dtrace/files/patch-setup.py << '45ec06d5d79ca016b8aed92f9acb8914' >X--- setup.py.orig 2015-01-26 14:26:50 UTC >X+++ setup.py >X@@ -14,9 +14,12 @@ try: >X from Cython.Distutils import build_ext >X >X BUILD_EXTENSION = {'build_ext': build_ext} >X- EXT_MODULES = [Extension("dtrace", ["dtrace_cython/dtrace_h.pxd", >X- "dtrace_cython/consumer.pyx"], >X- libraries=["dtrace"])] >X+ EXT_MODULES = [Extension("dtrace", >X+ ["dtrace_cython/dtrace_h.pxd", "dtrace_cython/consumer.pyx"], >X+ libraries=["dtrace","proc","ctf","elf","z","rtld_db","pthread","util"], >X+ include_dirs=['/sys/cddl/compat/opensolaris', >X+ '/sys/cddl/contrib/opensolaris/uts/common', >X+ '/usr/src/cddl/contrib/opensolaris/lib/libdtrace/common'])] >X >X except ImportError: >X BUILD_EXTENSION = {} >45ec06d5d79ca016b8aed92f9acb8914 >echo x - devel/py-python-dtrace/files/patch-dtrace__cython_consumer.pyx >sed 's/^X//' >devel/py-python-dtrace/files/patch-dtrace__cython_consumer.pyx << 'e12631e047a74abc43dd99fe2a5fd3f6' >X--- dtrace_cython/consumer.pyx.orig 2015-01-24 23:40:08 UTC >X+++ dtrace_cython/consumer.pyx >X@@ -2,7 +2,7 @@ >X import time >X import threading >X from threading import Thread >X-from dtrace_consumer.dtrace_h cimport * >X+from dtrace_cython.dtrace_h cimport * >X >X # ---------------------------------------------------------------------------- >X # The DTrace callbacks >X@@ -333,6 +333,11 @@ cdef class DTraceConsumer: >X dtrace_errmsg(self.handle, >X dtrace_errno(self.handle))) >X >X+ def setopt(self, key, value): >X+ if dtrace_setopt(self.handle, key, value) != 0: >X+ raise Exception(dtrace_errmsg(self.handle, >X+ dtrace_errno(self.handle))) >X+ >X >X cdef class DTraceContinuousConsumer: >X """ >X@@ -434,6 +439,11 @@ cdef class DTraceContinuousConsumer: >X >X return status >X >X+ def setopt(self, key, value): >X+ if dtrace_setopt(self.handle, key, value) != 0: >X+ raise Exception(dtrace_errmsg(self.handle, >X+ dtrace_errno(self.handle))) >X+ >X >X class DTraceConsumerThread(Thread): >X """ >e12631e047a74abc43dd99fe2a5fd3f6 >echo x - devel/py-python-dtrace/pkg-descr >sed 's/^X//' >devel/py-python-dtrace/pkg-descr << '7a9f8bb4279d502a954b09114e587bd7' >XDTrace consumer for Python based on libdtrace. >X >XCurrently this package provides two modules: one wraps libdtrace using ctypes. >XThe other one uses cython. >X >XWWW: http:// tmetsch.github.com/python-dtrace/ >7a9f8bb4279d502a954b09114e587bd7 >echo x - devel/py-python-dtrace/pkg-comment >sed 's/^X//' >devel/py-python-dtrace/pkg-comment << 'efe8b043e2b3747774a7d4a05130d61b' >XDTrace consumer for Python based on libdtrace. >efe8b043e2b3747774a7d4a05130d61b >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 217419
:
180359
| 180360 |
180361