Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/tox/
Date: Fri, 04 Sep 2020 20:53:59
Message-Id: 1599252831.f75bd8c80827864d0b5420b52b740317d7b846a8.sam@gentoo
1 commit: f75bd8c80827864d0b5420b52b740317d7b846a8
2 Author: Josiah Mullins <JoMull01 <AT> protonmail <DOT> com>
3 AuthorDate: Sat Jul 25 02:23:15 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 4 20:53:51 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f75bd8c8
7
8 net-libs/tox: update to tox-9999
9
10 This commit includes a rewritten dependencies section,
11 updated Cmake flags, updates to the blacklisted tests,
12 restrictions on parallel tests, and updates to the
13 post install messages.
14
15 Signed-off-by: Josiah Mullins <JoMull01 <AT> protonmail.com>
16 Closes: https://github.com/gentoo/gentoo/pull/16810
17 Signed-off-by: Sam James <sam <AT> gentoo.org>
18
19 net-libs/tox/tox-9999.ebuild | 56 ++++++++++++++++++++------------------------
20 1 file changed, 26 insertions(+), 30 deletions(-)
21
22 diff --git a/net-libs/tox/tox-9999.ebuild b/net-libs/tox/tox-9999.ebuild
23 index 206fb9c4e39..23e322bf207 100644
24 --- a/net-libs/tox/tox-9999.ebuild
25 +++ b/net-libs/tox/tox-9999.ebuild
26 @@ -19,23 +19,25 @@ RESTRICT="!test? ( test )"
27 REQUIRED_USE="^^ ( log-debug log-error log-info log-trace log-warn )
28 daemon? ( dht-node )"
29
30 -COMMON_DEPEND="
31 - av? ( media-libs/libvpx
32 - media-libs/opus )
33 - daemon? ( acct-group/tox
34 - acct-user/tox
35 - dev-libs/libconfig )
36 - >=dev-libs/libsodium-0.6.1:=[asm,urandom,-minimal]"
37 BDEPEND="virtual/pkgconfig"
38 -
39 -DEPEND="${COMMON_DEPEND}"
40 -
41 -RDEPEND="${COMMON_DEPEND}"
42 +DEPEND=">dev-libs/libsodium-0.6.1:=[asm,urandom,-minimal]
43 + av? (
44 + media-libs/libvpx:=
45 + media-libs/opus
46 + )
47 + daemon? ( dev-libs/libconfig )"
48 +RDEPEND="
49 + ${DEPEND}
50 + daemon? (
51 + acct-group/tox
52 + acct-user/tox
53 + )"
54
55 src_prepare() {
56 cmake_src_prepare
57 #remove faulty tests
58 - for testname in bootstrap lan_discovery save_compatibility tcp_relay tox_many_tcp; do
59 + local faultytest=(lan_discovery save_compatibility)
60 + for testname in "${faultytest[@]}"; do
61 sed -i -e "/^auto_test(${testname})$/d" CMakeLists.txt || die
62 done
63 }
64 @@ -44,6 +46,7 @@ src_configure() {
65 local mycmakeargs=(
66 -DAUTOTEST=$(usex test)
67 -DBOOTSTRAP_DAEMON=$(usex daemon)
68 + -DBUILD_MISC_TESTS=$(usex test)
69 -DBUILD_TOXAV=$(usex av)
70 -DDHT_BOOTSTRAP=$(usex dht-node)
71 -DENABLE_SHARED=ON
72 @@ -51,12 +54,10 @@ src_configure() {
73 -DMUST_BUILD_TOXAV=$(usex av))
74 if use test; then
75 mycmakeargs+=(
76 - -DBUILD_AV_TEST=$(usex av)
77 -DTEST_TIMEOUT_SECONDS=120
78 -DUSE_IPV6=$(usex ipv6))
79 else
80 mycmakeargs+=(
81 - -DBUILD_AV_TEST=OFF
82 -DUSE_IPV6=OFF)
83 fi
84
85 @@ -77,6 +78,10 @@ src_configure() {
86 cmake_src_configure
87 }
88
89 +src_test() {
90 + cmake_src_test -j1
91 +}
92 +
93 src_install() {
94 cmake_src_install
95
96 @@ -91,21 +96,12 @@ src_install() {
97
98 pkg_postinst() {
99 if use dht-node; then
100 - ewarn "There is currently an unresolved issue with tox"
101 - ewarn "DHT Bootstrap node that causes the program to be"
102 - ewarn "built with a null library reference. This"
103 - ewarn "causes an infinite loop for certain rev-dep-rebuild"
104 - ewarn "commands. If you aren't running a node, please"
105 - ewarn "consider disabling the dht-node flag"
106 - fi
107 - if use daemon; then
108 - if [[ -f ${EROOT}/var/lib/tox-dht-bootstrap/key ]]; then
109 - ewarn "Backwards compatability with the bootstrap daemon might have been"
110 - ewarn "broken a while ago. To resolve this issue, REMOVE the following files:"
111 - ewarn " ${EROOT}/var/lib/tox-dht-bootstrap/key"
112 - ewarn " ${EROOT}/etc/tox-bootstrapd.conf"
113 - ewarn " ${EROOT}/run/tox-dht-bootstrap/tox-dht-bootstrap.pid"
114 - ewarn "Then just re-emerge net-libs/tox"
115 - fi
116 + ewarn "There is currently an unresolved issuer with tox DHT"
117 + ewarn "Bootstrap node that causes the program to be built"
118 + ewarn "with a null libray reference. This causes an infinite"
119 + ewarn "loop for certain revdep-rebuild commands. If you aren't"
120 + ewarn "running a node, please consider disabling the dht node"
121 + ewarn "use flag. For more information please refer to"
122 + ewarn "https://github.com/toktok/c-toxcore/issues/1144"
123 fi
124 }