Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 600850 | Differences between
and this patch

Collapse All | Expand All

(-)a/dev-util/strace/metadata.xml (+3 lines)
Lines 9-14 Link Here
9
    <flag name="aio">
9
    <flag name="aio">
10
      Enable <pkg>dev-libs/libaio</pkg> support for tracing Asynchronous I/O operations
10
      Enable <pkg>dev-libs/libaio</pkg> support for tracing Asynchronous I/O operations
11
    </flag>
11
    </flag>
12
    <flag name="pax_kernel">
13
      Paxmark test-suite executables that require it
14
    </flag>
12
    <flag name="unwind">
15
    <flag name="unwind">
13
      Enable stack backtraces (-k flag) via <pkg>sys-libs/libunwind</pkg>
16
      Enable stack backtraces (-k flag) via <pkg>sys-libs/libunwind</pkg>
14
    </flag>
17
    </flag>
(-)a/dev-util/strace/strace-4.14.ebuild (-2 / +15 lines)
Lines 19-30 HOMEPAGE="https://sourceforge.net/projects/strace/" Link Here
19
19
20
LICENSE="BSD"
20
LICENSE="BSD"
21
SLOT="0"
21
SLOT="0"
22
IUSE="aio perl static unwind"
22
IUSE="aio pax_kernel perl static unwind"
23
23
24
LIB_DEPEND="unwind? ( sys-libs/libunwind[static-libs(+)] )"
24
LIB_DEPEND="unwind? ( sys-libs/libunwind[static-libs(+)] )"
25
# strace only uses the header from libaio to decode structs
25
# strace only uses the header from libaio to decode structs
26
DEPEND="static? ( ${LIB_DEPEND} )
26
DEPEND="static? ( ${LIB_DEPEND} )
27
	aio? ( >=dev-libs/libaio-0.3.106 )
27
	aio? ( >=dev-libs/libaio-0.3.106 )
28
	pax_kernel? ( sys-apps/elfix )
28
	sys-kernel/linux-headers"
29
	sys-kernel/linux-headers"
29
RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )
30
RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )
30
	perl? ( dev-lang/perl )"
31
	perl? ( dev-lang/perl )"
Lines 45-53 src_prepare() { Link Here
45
46
46
	# Stub out the -k test since it's known to be flaky. #545812
47
	# Stub out the -k test since it's known to be flaky. #545812
47
	sed -i '1iexit 77' tests*/strace-k.test || die
48
	sed -i '1iexit 77' tests*/strace-k.test || die
49
50
	# https://bugs.gentoo.org/600850
51
	local d; for d in tests tests-m32 tests-mx32; do
52
		pushd "$d" >/dev/null || die
53
		printf '%s\n' '' \
54
			'.PHONY: pc.paxmark' \
55
			'pc.paxmark:' \
56
			$'\t$(PAXMARK) -pm pc' \
57
			'pc.log: pc.test pc pc.paxmark' \
58
			>> Makefile.in || die
59
		popd >/dev/null || die
60
	done
48
}
61
}
49
62
50
src_configure() {
63
src_configure() {
64
	export PAXMARK="$(usex pax_kernel "${EPREFIX}/usr/sbin/paxmark.sh" "true")"
51
	econf $(use_with unwind libunwind)
65
	econf $(use_with unwind libunwind)
52
}
66
}
53
67
54
- 

Return to bug 600850