Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/distcc/
Date: Sun, 31 May 2020 09:44:23
Message-Id: 1590918247.e03caca6042abe04a3053ba9f5319ccbadfe5365.mgorny@gentoo
1 commit: e03caca6042abe04a3053ba9f5319ccbadfe5365
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 31 09:31:30 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun May 31 09:44:07 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e03caca6
7
8 sys-devel/distcc: Fix tests
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 sys-devel/distcc/distcc-3.3.3-r1.ebuild | 12 ++++++++++--
13 1 file changed, 10 insertions(+), 2 deletions(-)
14
15 diff --git a/sys-devel/distcc/distcc-3.3.3-r1.ebuild b/sys-devel/distcc/distcc-3.3.3-r1.ebuild
16 index fd9f3fafc19..d7992e1b301 100644
17 --- a/sys-devel/distcc/distcc-3.3.3-r1.ebuild
18 +++ b/sys-devel/distcc/distcc-3.3.3-r1.ebuild
19 @@ -17,8 +17,6 @@ SLOT="0"
20 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 s390 sparc x86"
21 IUSE="gnome gssapi gtk hardened ipv6 selinux xinetd zeroconf"
22
23 -RESTRICT="test"
24 -
25 CDEPEND="${PYTHON_DEPS}
26 dev-libs/popt
27 gnome? (
28 @@ -70,6 +68,9 @@ src_prepare() {
29 -e "s:@libdir@:/usr/lib:" \
30 "${FILESDIR}/distcc-config" > "${T}/distcc-config" || die
31
32 + # TODO: gdb tests fail due to gdb failing to find .c file
33 + sed -i -e '/Gdb.*Case,/d' test/testdistcc.py || die
34 +
35 hprefixify update-distcc-symlinks.py src/{serve,daemon}.c
36 python_fix_shebang update-distcc-symlinks.py "${T}/distcc-config"
37 eautoreconf
38 @@ -89,6 +90,13 @@ src_configure() {
39 econf "${myconf[@]}"
40 }
41
42 +src_test() {
43 + # sandbox breaks some tests, and hangs some too
44 + # retest once #590084 is fixed
45 + local -x SANDBOX_ON=0
46 + emake -j1 check
47 +}
48 +
49 src_install() {
50 # override GZIP_BIN to stop it from compressing manpages
51 emake DESTDIR="${D}" GZIP_BIN=false install