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