1 |
commit: 27a614a0ac1376d287e4ff6142f1dad61088ead8 |
2 |
Author: Marco Leogrande <dark.knight.ita <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Nov 11 04:16:00 2016 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 2 19:13:29 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27a614a0 |
7 |
|
8 |
net-libs/nodejs: add optional support for dtrace-based tracing |
9 |
|
10 |
NodeJS supports dtrace-based tracing, that can be used by |
11 |
dev-util/systemtap and, more recently, dev-util/bcc. This support is |
12 |
forcibly disabled in nodejs ebuilds. |
13 |
|
14 |
This commit adds a systemtap USE flag to be able to turn on this |
15 |
support conditionally. The name of this flag matches the choice done |
16 |
for other ebuilds, like dev-db/mysql or app-emulation/qemu. Despite |
17 |
what has been done in those ebuilds, however, a dependency on |
18 |
dev-util/systemtap is not added: this is because, as of late, |
19 |
systemtap is not the only consumer of those traces anymore. |
20 |
|
21 |
Closes: https://github.com/gentoo/gentoo/pull/2803 |
22 |
|
23 |
net-libs/nodejs/metadata.xml | 1 + |
24 |
net-libs/nodejs/nodejs-7.2.0.ebuild | 4 ++-- |
25 |
2 files changed, 3 insertions(+), 2 deletions(-) |
26 |
|
27 |
diff --git a/net-libs/nodejs/metadata.xml b/net-libs/nodejs/metadata.xml |
28 |
index e53bc81..ddbfaa7 100644 |
29 |
--- a/net-libs/nodejs/metadata.xml |
30 |
+++ b/net-libs/nodejs/metadata.xml |
31 |
@@ -16,5 +16,6 @@ |
32 |
<use> |
33 |
<flag name="npm">Enable NPM package manager</flag> |
34 |
<flag name="snapshot">Enable snapshot creation for faster startup</flag> |
35 |
+ <flag name="systemtap">Enable SystemTAP/DTrace tracing</flag> |
36 |
</use> |
37 |
</pkgmetadata> |
38 |
|
39 |
diff --git a/net-libs/nodejs/nodejs-7.2.0.ebuild b/net-libs/nodejs/nodejs-7.2.0.ebuild |
40 |
index 4e76890..739af4d 100644 |
41 |
--- a/net-libs/nodejs/nodejs-7.2.0.ebuild |
42 |
+++ b/net-libs/nodejs/nodejs-7.2.0.ebuild |
43 |
@@ -16,7 +16,7 @@ SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz" |
44 |
LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT" |
45 |
SLOT="0" |
46 |
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x64-macos" |
47 |
-IUSE="cpu_flags_x86_sse2 debug doc icu +npm +snapshot +ssl test" |
48 |
+IUSE="cpu_flags_x86_sse2 debug doc icu +npm +snapshot +ssl systemtap test" |
49 |
|
50 |
RDEPEND="icu? ( >=dev-libs/icu-56:= ) |
51 |
npm? ( ${PYTHON_DEPS} ) |
52 |
@@ -109,7 +109,7 @@ src_configure() { |
53 |
"${PYTHON}" configure \ |
54 |
--prefix="${EPREFIX}"/usr \ |
55 |
--dest-cpu=${myarch} \ |
56 |
- --without-dtrace \ |
57 |
+ $(use_with systemtap dtrace) \ |
58 |
"${myconf[@]}" || die |
59 |
} |