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