dev-java/openjdk: fix automagic dep on systemtap
authorGeorgy Yakovlev <gyakovlev@gentoo.org>
Fri, 11 Jan 2019 21:28:11 +0000 (13:28 -0800)
committerGeorgy Yakovlev <gyakovlev@gentoo.org>
Fri, 11 Jan 2019 21:34:14 +0000 (13:34 -0800)
Bug: https://bugs.gentoo.org/675174
Package-Manager: Portage-2.3.54, Repoman-2.3.12
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
dev-java/openjdk/metadata.xml
dev-java/openjdk/openjdk-11.0.1_p13.ebuild

index c76b9ca5d45ec1ec5740c78361802ac5a23dace1..efa076c6f48e7a09895eea5feb5211b287b5598d 100644 (file)
@@ -11,6 +11,7 @@
     <flag name="gentoo-vm">Allow this JDK to be recognised by Gentoo (package manager, eselect, java-config, EXPERIMENTAL!)</flag>
     <flag name="jbootstrap">Build OpenJDK twice, the second time using the result of the first</flag>
     <flag name="source">Install JVM sources</flag>
+    <flag name="systemtap">Enable SystemTAP/DTrace tracing</flag>
     <flag name="webstart">Provide javaws command through symlink to icedtea-web</flag>
   </use>
 </pkgmetadata>
index 5b9ce2a9bd0e3e2223c35dd97fc764adbc6fd321..d606429ebcf01b4a4cbff16894c1c6749f5611a6 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -33,12 +33,13 @@ REQUIRED_USE="
        jvm_variant_zero? ( !jvm_variant_server !jvm_variant_client !jvm_variant_minimal )
 "
 
-IUSE="+${IUSE} alsa debug doc examples gentoo-vm headless-awt +jbootstrap nsplugin +pch selinux source +webstart"
+IUSE="+${IUSE} alsa debug doc examples gentoo-vm headless-awt +jbootstrap nsplugin +pch selinux source systemtap +webstart"
 
 CDEPEND="
        media-libs/freetype:2=
        net-print/cups
        sys-libs/zlib
+       systemtap? ( dev-util/systemtap )
        !headless-awt? (
                x11-libs/libX11
                x11-libs/libXext
@@ -170,6 +171,7 @@ src_configure() {
                        --with-version-pre=gentoo \
                        --with-version-string=${MY_PV%+*} \
                        --with-version-build=${MY_PV#*+} \
+                       --enable-dtrace=$(usex systemtap yes no) \
                        --enable-headless-only=$(usex headless-awt yes no) \
                        --enable-full-docs=no \
                        --disable-ccache \