mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-20 22:27:17 -08:00
net-dns/bind: fix automagic dtrace/systemtap use
Noticed because it automagically tries to use DTrace and with LTO, that goes wrong (for now, but that's being worked on right now). Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -16,7 +16,7 @@ S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
LICENSE="MPL-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="dnstap doc doh fixed-rrset idn jemalloc geoip gssapi lmdb selinux static-libs test xml"
|
||||
IUSE="dnstap doc doh fixed-rrset idn jemalloc geoip gssapi lmdb selinux static-libs systemtap test xml"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="
|
||||
@@ -54,6 +54,9 @@ BDEPEND="
|
||||
test? (
|
||||
dev-util/cmocka
|
||||
)
|
||||
systemtap? (
|
||||
dev-debug/systemtap
|
||||
)
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
@@ -68,6 +71,11 @@ src_configure() {
|
||||
# are available. Force fallback to prebuilt ones.
|
||||
use doc || export ac_cv_path_SPHINX_BUILD= SPHINX_BUILD=
|
||||
|
||||
# Workaround for bug #938302
|
||||
if use systemtap && has_version "dev-debug/systemtap[-dtrace-symlink(+)]" ; then
|
||||
export DTRACE="${BROOT}"/usr/bin/stap-dtrace
|
||||
fi
|
||||
|
||||
local myeconfargs=(
|
||||
--prefix="${EPREFIX}"/usr
|
||||
--sysconfdir="${EPREFIX}"/etc/bind
|
||||
@@ -83,6 +91,7 @@ src_configure() {
|
||||
$(use_with doh libnghttp2)
|
||||
$(use_enable static-libs static)
|
||||
$(use_enable geoip)
|
||||
$(use_enable systemtap tracing)
|
||||
$(use_with test cmocka)
|
||||
$(use_with geoip maxminddb)
|
||||
$(use_with gssapi)
|
||||
|
||||
@@ -12,5 +12,6 @@
|
||||
<flag name="fixed-rrset">Enables fixed rrset-order option</flag>
|
||||
<flag name="gssapi">Enable gssapi support</flag>
|
||||
<flag name="lmdb">Enable LMDB support to store configuration for 'addzone' zones</flag>
|
||||
<flag name="systemtap">Build support for profiling and tracing using <pkg>dev-debug/systemtap</pkg></flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
|
||||
Reference in New Issue
Block a user