Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/tevent/
Date: Fri, 30 Sep 2022 04:19:01
Message-Id: 1664511522.50e00f1d1a63bac35074f077e07639c704bbc955.sam@gentoo
1 commit: 50e00f1d1a63bac35074f077e07639c704bbc955
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 30 04:18:01 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 30 04:18:42 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50e00f1d
7
8 sys-libs/tevent: add talloc version checker
9
10 Nabbed Ionen's sed from wine-proton etc.
11
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 sys-libs/tevent/tevent-0.13.0.ebuild | 18 ++++++++++++++++--
15 1 file changed, 16 insertions(+), 2 deletions(-)
16
17 diff --git a/sys-libs/tevent/tevent-0.13.0.ebuild b/sys-libs/tevent/tevent-0.13.0.ebuild
18 index 8c811eb21fd2..e3914a179a2f 100644
19 --- a/sys-libs/tevent/tevent-0.13.0.ebuild
20 +++ b/sys-libs/tevent/tevent-0.13.0.ebuild
21 @@ -19,12 +19,14 @@ IUSE="python test"
22 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
23 RESTRICT="test !test? ( test )"
24
25 +TALLOC_VERSION="2.3.4"
26 +
27 RDEPEND="
28 dev-libs/libbsd[${MULTILIB_USEDEP}]
29 - >=sys-libs/talloc-2.3.4[${MULTILIB_USEDEP}]
30 + >=sys-libs/talloc-${TALLOC_VERSION}[${MULTILIB_USEDEP}]
31 python? (
32 ${PYTHON_DEPS}
33 - sys-libs/talloc[python,${PYTHON_SINGLE_USEDEP}]
34 + >=sys-libs/talloc-${TALLOC_VERSION}[python,${PYTHON_SINGLE_USEDEP}]
35 )
36 "
37 DEPEND="
38 @@ -47,8 +49,20 @@ pkg_setup() {
39 export PYTHONHASHSEED=1
40 }
41
42 +check_samba_dep_versions() {
43 + actual_talloc_version=$(sed -En '/^VERSION =/{s/[^0-9.]//gp}' lib/talloc/wscript || die)
44 + if [[ ${actual_talloc_version} != ${TALLOC_VERSION} ]] ; then
45 + eerror "Source talloc version: ${TALLOC_VERSION}"
46 + eerror "Ebuild talloc version: ${actual_talloc_version}"
47 + die "Ebuild needs to fix TALLOC_VERSION!"
48 + fi
49 +}
50 +
51 src_prepare() {
52 default
53 +
54 + check_samba_dep_versions
55 +
56 multilib_copy_sources
57 }