Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/ldb/
Date: Mon, 24 Jan 2022 22:35:28
Message-Id: 1643063707.e3f6d9d28396e9c92fff7c6cd8895fd3cb903d55.polynomial-c@gentoo
1 commit: e3f6d9d28396e9c92fff7c6cd8895fd3cb903d55
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 24 22:11:48 2022 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 24 22:35:07 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3f6d9d2
7
8 sys-libs/ldb: Bump to versions 2.4.2 and 2.5.0
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11
12 sys-libs/ldb/Manifest | 2 +
13 sys-libs/ldb/ldb-2.4.2.ebuild | 120 ++++++++++++++++++++++++++++++++++++++++++
14 sys-libs/ldb/ldb-2.5.0.ebuild | 120 ++++++++++++++++++++++++++++++++++++++++++
15 3 files changed, 242 insertions(+)
16
17 diff --git a/sys-libs/ldb/Manifest b/sys-libs/ldb/Manifest
18 index 237908b81793..416da096035b 100644
19 --- a/sys-libs/ldb/Manifest
20 +++ b/sys-libs/ldb/Manifest
21 @@ -2,3 +2,5 @@ DIST ldb-2.3.1.tar.gz 1718379 BLAKE2B e2aa196e6e09846be2a631d81bf0b94c0cd80984ac
22 DIST ldb-2.3.2.tar.gz 1718583 BLAKE2B 48b9fb77e414af0f9fffe0cda9cf49971d79ed8b66213b01b73f53a61969e03f9e6426a04a33ff70da906c814470d8fa356902a68aa1169d969cc597e8c234d7 SHA512 be324e8f20db50529634548451dbc5f95f26a701e124bfb40ae2b0a5069de78b7c5c1a66222097209ea24ef6077373d996e67c00257a5a05198f1b81bf0ed53e
23 DIST ldb-2.4.0.tar.gz 1689484 BLAKE2B 904d74900011ce3f63ad1c24fe88b1a090e835c68829ddfda5e8af2c0ab3674d7a8cd9a62b95c1f38f26578d0704556d3562e46e21a54cbb44a15b9d83676521 SHA512 6c500b723c081488bc0717b6a5b0e8966c5d8a751232f8856281a6fe4d358ae6b5878c8400a82fa666379066105fbb9259b2967313e73efabef0e1386095e2ee
24 DIST ldb-2.4.1.tar.gz 1719769 BLAKE2B 868d3dcc51bd8272d99f2335ed1af2e37506b6a175254f1aca37f758488ba0997e37419a7d8c81def77698128307df97de26d4807ac78c34088f7a623f8d9e68 SHA512 14ab5397d28c369142b2ccf55a2ab4e678a3fe6e018541cfce46241f8226400bc169360bbef254fae4410a6e15024ae986f02298d3d324e3d3a8b88801bf76d7
25 +DIST ldb-2.4.2.tar.gz 1720169 BLAKE2B d144218bf62dde57560df8b8a641e9f58bee001fdfa7b1527d9eb9a1a55e428662db81912173cbcdb9f993c0b316faab7d758a4878beeff1daadd487e9aa44a9 SHA512 77705ad284eed9105c9aba0459d2e48cd66ca19b657a55f7513e10281dd2e96540d24d1c8df53adc84109a918900687dc75b635cda05c4e788424ed71b5ff989
26 +DIST ldb-2.5.0.tar.gz 1722847 BLAKE2B 880a5a516b0b423854f8a3f9c54da89e4640f8462ccc54a7b147c70c3a9eb073dc9e914d1906ab914a9ddd9b9aa0e7d177ef3ecb4c0b506f5417db931b017849 SHA512 f16a235f1409e06266c51735ac645cf2708d31dd731ee7b95d6778498b115f4252b0a528952e620767d1616a4e1e7c5f2cdc69f3fa32d79288cf14da2f52a010
27
28 diff --git a/sys-libs/ldb/ldb-2.4.2.ebuild b/sys-libs/ldb/ldb-2.4.2.ebuild
29 new file mode 100644
30 index 000000000000..cd109691c887
31 --- /dev/null
32 +++ b/sys-libs/ldb/ldb-2.4.2.ebuild
33 @@ -0,0 +1,120 @@
34 +# Copyright 1999-2022 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +PYTHON_COMPAT=( python3_{8..10} )
40 +PYTHON_REQ_USE="threads(+)"
41 +inherit python-single-r1 waf-utils multilib-minimal
42 +
43 +DESCRIPTION="LDAP-like embedded database"
44 +HOMEPAGE="https://ldb.samba.org"
45 +SRC_URI="https://samba.org/ftp/pub/${PN}/${P}.tar.gz"
46 +
47 +LICENSE="LGPL-3"
48 +SLOT="0/${PV}"
49 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
50 +IUSE="doc ldap +lmdb python test"
51 +
52 +REQUIRED_USE="${PYTHON_REQUIRED_USE}
53 + test? ( python )"
54 +
55 +RESTRICT="!test? ( test )"
56 +
57 +RDEPEND="
58 + dev-libs/libbsd[${MULTILIB_USEDEP}]
59 + dev-libs/popt[${MULTILIB_USEDEP}]
60 + >=dev-util/cmocka-1.1.3[${MULTILIB_USEDEP}]
61 + >=sys-libs/talloc-2.3.3[${MULTILIB_USEDEP}]
62 + >=sys-libs/tdb-1.4.4[${MULTILIB_USEDEP}]
63 + >=sys-libs/tevent-0.11.0[${MULTILIB_USEDEP}]
64 + ldap? ( net-nds/openldap )
65 + lmdb? ( >=dev-db/lmdb-0.9.16[${MULTILIB_USEDEP}] )
66 + python? (
67 + ${PYTHON_DEPS}
68 + sys-libs/talloc[python,${PYTHON_SINGLE_USEDEP}]
69 + sys-libs/tdb[python,${PYTHON_SINGLE_USEDEP}]
70 + sys-libs/tevent[python,${PYTHON_SINGLE_USEDEP}]
71 + )
72 +"
73 +DEPEND="${RDEPEND}
74 + virtual/libcrypt
75 +"
76 +BDEPEND="${PYTHON_DEPS}
77 + dev-libs/libxslt
78 + virtual/pkgconfig
79 + doc? ( app-doc/doxygen )
80 +"
81 +
82 +WAF_BINARY="${S}/buildtools/bin/waf"
83 +
84 +MULTILIB_WRAPPED_HEADERS=( /usr/include/pyldb.h )
85 +
86 +PATCHES=(
87 + "${FILESDIR}"/${PN}-1.5.2-optional_packages.patch
88 + "${FILESDIR}"/${PN}-1.1.31-fix_PKGCONFIGDIR-when-python-disabled.patch
89 +)
90 +
91 +pkg_setup() {
92 + # Package fails to build with distcc
93 + export DISTCC_DISABLE=1
94 +
95 + # waf requires a python interpreter
96 + python-single-r1_pkg_setup
97 +}
98 +
99 +src_prepare() {
100 + default
101 + multilib_copy_sources
102 +}
103 +
104 +multilib_src_configure() {
105 + local myconf=(
106 + $(usex ldap '' --disable-ldap)
107 + $(usex lmdb '' --without-ldb-lmdb)
108 + --disable-rpath
109 + --disable-rpath-install --bundled-libraries=NONE
110 + --with-modulesdir="${EPREFIX}"/usr/$(get_libdir)/samba
111 + --builtin-libraries=NONE
112 + )
113 + if ! multilib_is_native_abi; then
114 + myconf+=( --disable-python )
115 + else
116 + use python || myconf+=( --disable-python )
117 + fi
118 + waf-utils_src_configure "${myconf[@]}"
119 +}
120 +
121 +multilib_src_compile() {
122 + waf-utils_src_compile
123 + multilib_is_native_abi && use doc && doxygen Doxyfile
124 +}
125 +
126 +multilib_src_test() {
127 + if multilib_is_native_abi; then
128 + WAF_MAKE=1 \
129 + PATH=buildtools/bin:../../../buildtools/bin:$PATH:"${BUILD_DIR}"/bin/shared/private/ \
130 + LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"${BUILD_DIR}"/bin/shared/private/:"${BUILD_DIR}"/bin/shared \
131 + waf test || die
132 + fi
133 +}
134 +
135 +multilib_src_install() {
136 + waf-utils_src_install
137 +
138 + if multilib_is_native_abi && use doc; then
139 + doman apidocs/man/man3/*.3
140 + docinto html
141 + dodoc -r apidocs/html/.
142 + fi
143 +
144 + use python && python_optimize #726454
145 +}
146 +
147 +pkg_postinst() {
148 + if has_version sys-auth/sssd; then
149 + ewarn "You have sssd installed. It is known to break after ldb upgrades,"
150 + ewarn "so please try to rebuild it before reporting bugs."
151 + ewarn "See https://bugs.gentoo.org/404281"
152 + fi
153 +}
154
155 diff --git a/sys-libs/ldb/ldb-2.5.0.ebuild b/sys-libs/ldb/ldb-2.5.0.ebuild
156 new file mode 100644
157 index 000000000000..c435347c1a38
158 --- /dev/null
159 +++ b/sys-libs/ldb/ldb-2.5.0.ebuild
160 @@ -0,0 +1,120 @@
161 +# Copyright 1999-2022 Gentoo Authors
162 +# Distributed under the terms of the GNU General Public License v2
163 +
164 +EAPI=7
165 +
166 +PYTHON_COMPAT=( python3_{8..10} )
167 +PYTHON_REQ_USE="threads(+)"
168 +inherit python-single-r1 waf-utils multilib-minimal
169 +
170 +DESCRIPTION="LDAP-like embedded database"
171 +HOMEPAGE="https://ldb.samba.org"
172 +SRC_URI="https://samba.org/ftp/pub/${PN}/${P}.tar.gz"
173 +
174 +LICENSE="LGPL-3"
175 +SLOT="0/${PV}"
176 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
177 +IUSE="doc ldap +lmdb python test"
178 +
179 +REQUIRED_USE="${PYTHON_REQUIRED_USE}
180 + test? ( python )"
181 +
182 +RESTRICT="!test? ( test )"
183 +
184 +RDEPEND="
185 + dev-libs/libbsd[${MULTILIB_USEDEP}]
186 + dev-libs/popt[${MULTILIB_USEDEP}]
187 + >=dev-util/cmocka-1.1.3[${MULTILIB_USEDEP}]
188 + >=sys-libs/talloc-2.3.3[${MULTILIB_USEDEP}]
189 + >=sys-libs/tdb-1.4.5[${MULTILIB_USEDEP}]
190 + >=sys-libs/tevent-0.11.0[${MULTILIB_USEDEP}]
191 + ldap? ( net-nds/openldap )
192 + lmdb? ( >=dev-db/lmdb-0.9.16[${MULTILIB_USEDEP}] )
193 + python? (
194 + ${PYTHON_DEPS}
195 + sys-libs/talloc[python,${PYTHON_SINGLE_USEDEP}]
196 + sys-libs/tdb[python,${PYTHON_SINGLE_USEDEP}]
197 + sys-libs/tevent[python,${PYTHON_SINGLE_USEDEP}]
198 + )
199 +"
200 +DEPEND="${RDEPEND}
201 + virtual/libcrypt
202 +"
203 +BDEPEND="${PYTHON_DEPS}
204 + dev-libs/libxslt
205 + virtual/pkgconfig
206 + doc? ( app-doc/doxygen )
207 +"
208 +
209 +WAF_BINARY="${S}/buildtools/bin/waf"
210 +
211 +MULTILIB_WRAPPED_HEADERS=( /usr/include/pyldb.h )
212 +
213 +PATCHES=(
214 + "${FILESDIR}"/${PN}-1.5.2-optional_packages.patch
215 + "${FILESDIR}"/${PN}-1.1.31-fix_PKGCONFIGDIR-when-python-disabled.patch
216 +)
217 +
218 +pkg_setup() {
219 + # Package fails to build with distcc
220 + export DISTCC_DISABLE=1
221 +
222 + # waf requires a python interpreter
223 + python-single-r1_pkg_setup
224 +}
225 +
226 +src_prepare() {
227 + default
228 + multilib_copy_sources
229 +}
230 +
231 +multilib_src_configure() {
232 + local myconf=(
233 + $(usex ldap '' --disable-ldap)
234 + $(usex lmdb '' --without-ldb-lmdb)
235 + --disable-rpath
236 + --disable-rpath-install --bundled-libraries=NONE
237 + --with-modulesdir="${EPREFIX}"/usr/$(get_libdir)/samba
238 + --builtin-libraries=NONE
239 + )
240 + if ! multilib_is_native_abi; then
241 + myconf+=( --disable-python )
242 + else
243 + use python || myconf+=( --disable-python )
244 + fi
245 + waf-utils_src_configure "${myconf[@]}"
246 +}
247 +
248 +multilib_src_compile() {
249 + waf-utils_src_compile
250 + multilib_is_native_abi && use doc && doxygen Doxyfile
251 +}
252 +
253 +multilib_src_test() {
254 + if multilib_is_native_abi; then
255 + WAF_MAKE=1 \
256 + PATH=buildtools/bin:../../../buildtools/bin:$PATH:"${BUILD_DIR}"/bin/shared/private/ \
257 + LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"${BUILD_DIR}"/bin/shared/private/:"${BUILD_DIR}"/bin/shared \
258 + waf test || die
259 + fi
260 +}
261 +
262 +multilib_src_install() {
263 + waf-utils_src_install
264 +
265 + if multilib_is_native_abi && use doc; then
266 + doman apidocs/man/man3/*.3
267 + docinto html
268 + dodoc -r apidocs/html/.
269 + fi
270 +
271 + use python && python_optimize #726454
272 +}
273 +
274 +pkg_postinst() {
275 + if has_version sys-auth/sssd; then
276 + ewarn "You have sssd installed. It is known to break after ldb upgrades,"
277 + ewarn "so please try to rebuild it before reporting bugs."
278 + ewarn "See https://bugs.gentoo.org/404281"
279 + fi
280 +}