1 |
commit: e146ca9efa87d00ce03199a1390af7ecef8aa593 |
2 |
Author: xdch47 <xdch47 <AT> posteo <DOT> de> |
3 |
AuthorDate: Thu Nov 15 19:36:27 2018 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 17 00:26:35 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=e146ca9e |
7 |
|
8 |
sys-libs/ldb: musl compile fixes |
9 |
|
10 |
- add define for __NEED_pid_t |
11 |
|
12 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
13 |
RepoMan-Options: --force |
14 |
Manifest-Sign-Key: 0DEDF1A904568BAD1FC45C283DCC44782ED07E1C |
15 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
16 |
|
17 |
sys-libs/ldb/Manifest | 22 +++++ |
18 |
.../ldb/files/ldb-1.1.24-optional-python.patch | 72 ++++++++++++++ |
19 |
.../ldb/files/ldb-1.1.27-optional_packages.patch | 92 ++++++++++++++++++ |
20 |
sys-libs/ldb/files/ldb-1.1.29-disable-python.patch | 48 ++++++++++ |
21 |
....31-fix_PKGCONFIGDIR-when-python-disabled.patch | 17 ++++ |
22 |
.../ldb/files/ldb-1.1.31-optional_packages.patch | 57 +++++++++++ |
23 |
.../files/ldb-1.1.31-talloc-disable-python.patch | 34 +++++++ |
24 |
sys-libs/ldb/files/ldb-1.2.3-disable_python.patch | 64 +++++++++++++ |
25 |
.../ldb/files/ldb-1.4.0-optional_packages.patch | 45 +++++++++ |
26 |
sys-libs/ldb/ldb-1.1.26.ebuild | 98 +++++++++++++++++++ |
27 |
sys-libs/ldb/ldb-1.1.29-r1.ebuild | 103 ++++++++++++++++++++ |
28 |
sys-libs/ldb/ldb-1.1.31.ebuild | 105 ++++++++++++++++++++ |
29 |
sys-libs/ldb/ldb-1.2.3.ebuild | 104 ++++++++++++++++++++ |
30 |
sys-libs/ldb/ldb-1.3.6.ebuild | 104 ++++++++++++++++++++ |
31 |
sys-libs/ldb/ldb-1.4.2.ebuild | 106 +++++++++++++++++++++ |
32 |
sys-libs/ldb/ldb-1.4.3.ebuild | 106 +++++++++++++++++++++ |
33 |
sys-libs/ldb/ldb-1.5.1.ebuild | 106 +++++++++++++++++++++ |
34 |
sys-libs/ldb/metadata.xml | 14 +++ |
35 |
18 files changed, 1297 insertions(+) |
36 |
|
37 |
diff --git a/sys-libs/ldb/Manifest b/sys-libs/ldb/Manifest |
38 |
new file mode 100644 |
39 |
index 0000000..fb9785b |
40 |
--- /dev/null |
41 |
+++ b/sys-libs/ldb/Manifest |
42 |
@@ -0,0 +1,22 @@ |
43 |
+-----BEGIN PGP SIGNED MESSAGE----- |
44 |
+Hash: SHA256 |
45 |
+ |
46 |
+DIST ldb-1.1.26.tar.gz 1262660 BLAKE2B 66dcc38eb97fe4357d06b301ed1de5cf868adc5f33ea8341a7cbdd5be45c85c31cda58782a66daf9fcada9d873971fc29556f0c331794ede9fc2a7f592480f52 SHA512 484689c5b87f223820e3613c056de5528a87736baef7b884df506fc47a3412b35ba2ef8e85f62e2d3da803fdab6b37bb328d4347a20bfc8fef8ed557646b6bbe |
47 |
+DIST ldb-1.1.29.tar.gz 1277551 BLAKE2B 449333d40073fd63d6d013ba0ae43fc3a0b8201948eabd440d164d182492002c1d92047d652105c2fb6a3e8383d4b75f45e38cc52efc5d9a0e2811113676203a SHA512 d37bbe84358e05d17483e2e963b8477da5ea351b855b454142c94af35f7987bede0f19faeaff17779efe04e3bb37c510437fcc59be99a17c826620fc25fd659c |
48 |
+DIST ldb-1.1.31.tar.gz 1337586 BLAKE2B 9454f91a621368cfc7cfdb709781653e947d63b275bb3b288049acb43ee3c02ae4f0be820ccf9e3bb32938d12598a91b7a6292b08c638ccfd59bd1be182f09c0 SHA512 49ccd57000cbcc6d828160f4457236b28853d766d641841471f61226156b6103fe563c43c950577b038ea3c0a54506bca94c640d3d5f912a3b8af95eb9ef2824 |
49 |
+DIST ldb-1.2.3.tar.gz 1344513 BLAKE2B 941174d6e2c51319c8690a8d8a87bea443d4fa4d738bd13243b502fdc9d590ba075fcf4a9920c38bb6fc15564f0b116089cd62d99e7cfe33649dc751910265ad SHA512 500ab069cf6cec39907300e3905d334163b5094087831708acc22c4199b006ef52af3b66aade7558a48fab7cd69be3af7883bda3816a83c576d01b36ab270247 |
50 |
+DIST ldb-1.3.6.tar.gz 1374574 BLAKE2B 654f35eb25aeb373540ead7cb10da66c92970ea6b100631cb14bacf937fec64e09b19ed3e09a976406e3f8d6347c4e17144c0a0bff8795316559be45353edbf7 SHA512 8fcd72598e948c55adaa832d6ebcbc03b979281032cb900af4304c1c68ce9cc94a1e1d4729d0c2a0b83a618cab716749d851160005a0093cf8a178e6dbea298d |
51 |
+DIST ldb-1.4.2.tar.gz 1427857 BLAKE2B 5a90b31b4760f0504197d3cefdb16f7d4099df660fe75c5d80907e39abde8abc6b87cdb117ee9213abf8287932c18782ab153d87bb609cb1f346231e6e00997c SHA512 f2b44cebd0f8c77926aa364d9ac4ea37da4a780b94e7f9fba7a55fef825e90e469a3230e56cd2b23ce4f6b528dda9041863e4af77bb0826a117e8317a0b79070 |
52 |
+DIST ldb-1.4.3.tar.gz 1428730 BLAKE2B 1e0fec1aeb05ecd34b7dc88d85425b646ab28804245543256c575a44c1a321e873d74f623b1a003aec878a808d6bc967ff57e8115650f6089278d55d586c7e6a SHA512 081dbc23e810213fb60fdb07c7f3bf1ec8849d10483c5cdabb8add2568d4f80d03bd74d7be3fcf9bb853eaf25aa6bbb2d69cda3f55dda0270978b051da315cb2 |
53 |
+DIST ldb-1.5.1.tar.gz 1432221 BLAKE2B 1837a74b33b5f527bdea0925de2908fc58bb6ca713bea89cefec9dc9809bf40d107352926ed34dabb333f37533e599b142a36989ffad862b0a89e786ab54c434 SHA512 b7815da51944d4e61617fafac0417e57baa59c9dd3dfa926d5ef9072a95351562930150c691a23b81526697bfba3ffe10a75ead406bf5ffdbfc511d1861f984b |
54 |
+-----BEGIN PGP SIGNATURE----- |
55 |
+ |
56 |
+iQEzBAEBCAAdFiEEDe3xqQRWi60fxFwoPcxEeC7QfhwFAlvtxYYACgkQPcxEeC7Q |
57 |
+fhyn1AgAhs5ho+axx4zsFTxrF5HCvYrsIsFlQ74LejtTSNVn1Lc/paFlflJDFIUz |
58 |
+kftDkwFbxbXeHBng/t2jFxA9kcoZeQjRmNTXmItnufLFxauLop2qOW9URvlr6sGC |
59 |
+nVYWqB19lyLE2mRpgMwc7L21XYkMBSVq9maij2XhzqlpcxcrZItX1YLhsl/NDsK2 |
60 |
+CKU6KhQurkNKR+d2pYC9DhMmyz/19eiLw9At0uPDYLfJ9G3Ky4lLM8HeOVynHPOq |
61 |
+TFJjIcTP5zBOrHF1m3VqNUnw7Bcjs0WaqPw1l9R83gxt+wCtl2GOtDpu60keKOqh |
62 |
+OAOZ0+FuYR5b413Wo74/tqM0GDxu9Q== |
63 |
+=qi2a |
64 |
+-----END PGP SIGNATURE----- |
65 |
|
66 |
diff --git a/sys-libs/ldb/files/ldb-1.1.24-optional-python.patch b/sys-libs/ldb/files/ldb-1.1.24-optional-python.patch |
67 |
new file mode 100644 |
68 |
index 0000000..d8dda63 |
69 |
--- /dev/null |
70 |
+++ b/sys-libs/ldb/files/ldb-1.1.24-optional-python.patch |
71 |
@@ -0,0 +1,72 @@ |
72 |
+--- a/wscript 2015-12-10 06:01:40.000000000 -0500 |
73 |
++++ b/wscript 2016-01-06 15:05:57.013617848 -0500 |
74 |
+@@ -5,6 +5,7 @@ |
75 |
+ |
76 |
+ blddir = 'bin' |
77 |
+ |
78 |
++import Logs |
79 |
+ import sys, os |
80 |
+ |
81 |
+ # find the buildtools directory |
82 |
+@@ -13,7 +14,7 @@ |
83 |
+ srcdir = srcdir + '/..' |
84 |
+ sys.path.insert(0, srcdir + '/buildtools/wafsamba') |
85 |
+ |
86 |
+-import wafsamba, samba_dist, Utils |
87 |
++import wafsamba, samba_dist, Utils, Options |
88 |
+ |
89 |
+ samba_dist.DIST_DIRS('''lib/ldb:. lib/replace:lib/replace lib/talloc:lib/talloc |
90 |
+ lib/tdb:lib/tdb lib/tdb:lib/tdb lib/tevent:lib/tevent |
91 |
+@@ -28,8 +29,17 @@ |
92 |
+ opt.RECURSE('lib/tevent') |
93 |
+ opt.RECURSE('lib/replace') |
94 |
+ opt.tool_options('python') # options for disabling pyc or pyo compilation |
95 |
++ if opt.IN_LAUNCH_DIR(): |
96 |
++ opt.add_option('--disable-python', |
97 |
++ help=("disable the pyldb modules"), |
98 |
++ action="store_true", dest='disable_python', default=False) |
99 |
++ |
100 |
+ |
101 |
+ def configure(conf): |
102 |
++ conf.env.standalone_ldb = conf.IN_LAUNCH_DIR() |
103 |
++ |
104 |
++ conf.env.disable_python = getattr(Options.options, 'disable_python', False) |
105 |
++ |
106 |
+ conf.RECURSE('lib/tdb') |
107 |
+ conf.RECURSE('lib/tevent') |
108 |
+ |
109 |
+@@ -44,16 +54,18 @@ |
110 |
+ conf.RECURSE('lib/replace') |
111 |
+ conf.find_program('python', var='PYTHON') |
112 |
+ conf.find_program('xsltproc', var='XSLTPROC') |
113 |
+- conf.check_tool('python') |
114 |
+- conf.check_python_version((2,4,2)) |
115 |
+- conf.SAMBA_CHECK_PYTHON_HEADERS(mandatory=True) |
116 |
++ |
117 |
++ if not conf.env.disable_python: |
118 |
++ conf.SAMBA_CHECK_PYTHON(mandatory=False, version=(2,4,2)) |
119 |
++ conf.SAMBA_CHECK_PYTHON_HEADERS(mandatory=False) |
120 |
++ if not conf.env.HAVE_PYTHON_H: |
121 |
++ Logs.warn('Disabling pyldb-util as python devel libs not found') |
122 |
++ conf.env.disable_python = True |
123 |
+ |
124 |
+ # where does the default LIBDIR end up? in conf.env somewhere? |
125 |
+ # |
126 |
+ conf.CONFIG_PATH('LDB_MODULESDIR', conf.SUBST_ENV_VAR('MODULESDIR') + '/ldb') |
127 |
+ |
128 |
+- conf.env.standalone_ldb = conf.IN_LAUNCH_DIR() |
129 |
+- |
130 |
+ if not conf.env.standalone_ldb: |
131 |
+ if conf.CHECK_BUNDLED_SYSTEM_PKG('pyldb-util', minversion=VERSION, |
132 |
+ onlyif='talloc tdb tevent', |
133 |
+--- a/lib/talloc/wscript 2015-11-06 08:28:25.000000000 -0500 |
134 |
++++ b/lib/talloc/wscript 2016-01-06 15:07:43.673478788 -0500 |
135 |
+@@ -48,7 +48,7 @@ |
136 |
+ if conf.CHECK_BUNDLED_SYSTEM_PKG('talloc', minversion=VERSION, |
137 |
+ implied_deps='replace'): |
138 |
+ conf.define('USING_SYSTEM_TALLOC', 1) |
139 |
+- if conf.CHECK_BUNDLED_SYSTEM_PKG('pytalloc-util', minversion=VERSION, |
140 |
++ if not conf.env.disable_python and conf.CHECK_BUNDLED_SYSTEM_PKG('pytalloc-util', minversion=VERSION, |
141 |
+ implied_deps='talloc replace'): |
142 |
+ conf.define('USING_SYSTEM_PYTALLOC_UTIL', 1) |
143 |
+ |
144 |
|
145 |
diff --git a/sys-libs/ldb/files/ldb-1.1.27-optional_packages.patch b/sys-libs/ldb/files/ldb-1.1.27-optional_packages.patch |
146 |
new file mode 100644 |
147 |
index 0000000..92e14c6 |
148 |
--- /dev/null |
149 |
+++ b/sys-libs/ldb/files/ldb-1.1.27-optional_packages.patch |
150 |
@@ -0,0 +1,92 @@ |
151 |
+--- ldb-1.1.27/lib/talloc/wscript |
152 |
++++ ldb-1.1.27/lib/talloc/wscript |
153 |
+@@ -48,7 +48,7 @@ |
154 |
+ if conf.CHECK_BUNDLED_SYSTEM_PKG('talloc', minversion=VERSION, |
155 |
+ implied_deps='replace'): |
156 |
+ conf.define('USING_SYSTEM_TALLOC', 1) |
157 |
+- if conf.CHECK_BUNDLED_SYSTEM_PKG('pytalloc-util', minversion=VERSION, |
158 |
++ if not conf.env.disable_python and conf.CHECK_BUNDLED_SYSTEM_PKG('pytalloc-util', minversion=VERSION, |
159 |
+ implied_deps='talloc replace'): |
160 |
+ conf.define('USING_SYSTEM_PYTALLOC_UTIL', 1) |
161 |
+ |
162 |
+--- ldb-1.1.27/wscript |
163 |
++++ ldb-1.1.27/wscript |
164 |
+@@ -5,6 +5,7 @@ |
165 |
+ |
166 |
+ blddir = 'bin' |
167 |
+ |
168 |
++import Logs |
169 |
+ import sys, os |
170 |
+ |
171 |
+ # find the buildtools directory |
172 |
+@@ -13,7 +14,7 @@ |
173 |
+ srcdir = srcdir + '/..' |
174 |
+ sys.path.insert(0, srcdir + '/buildtools/wafsamba') |
175 |
+ |
176 |
+-import wafsamba, samba_dist, Utils |
177 |
++import wafsamba, samba_dist, Utils, Options |
178 |
+ |
179 |
+ samba_dist.DIST_DIRS('''lib/ldb:. lib/replace:lib/replace lib/talloc:lib/talloc |
180 |
+ lib/tdb:lib/tdb lib/tdb:lib/tdb lib/tevent:lib/tevent |
181 |
+@@ -28,8 +29,21 @@ |
182 |
+ opt.RECURSE('lib/tevent') |
183 |
+ opt.RECURSE('lib/replace') |
184 |
+ opt.tool_options('python') # options for disabling pyc or pyo compilation |
185 |
++ if opt.IN_LAUNCH_DIR(): |
186 |
++ opt.add_option('--disable-python', |
187 |
++ help=("disable the pyldb modules"), |
188 |
++ action="store_true", dest='disable_python', default=False) |
189 |
++ if opt.IN_LAUNCH_DIR(): |
190 |
++ opt.add_option('--disable-ldap', |
191 |
++ help=("disable ldap support"), |
192 |
++ action="store_true", dest='disable_ldap', default=False) |
193 |
+ |
194 |
+ def configure(conf): |
195 |
++ conf.env.standalone_ldb = conf.IN_LAUNCH_DIR() |
196 |
++ |
197 |
++ conf.env.disable_python = getattr(Options.options, 'disable_python', False) |
198 |
++ conf.env.disable_ldap = getattr(Options.options, 'disable_ldap', False) |
199 |
++ |
200 |
+ conf.RECURSE('lib/tdb') |
201 |
+ conf.RECURSE('lib/tevent') |
202 |
+ |
203 |
+@@ -44,16 +58,18 @@ |
204 |
+ conf.RECURSE('lib/replace') |
205 |
+ conf.find_program('python', var='PYTHON') |
206 |
+ conf.find_program('xsltproc', var='XSLTPROC') |
207 |
+- conf.check_tool('python') |
208 |
+- conf.check_python_version((2,4,2)) |
209 |
+- conf.SAMBA_CHECK_PYTHON_HEADERS(mandatory=True) |
210 |
++ |
211 |
++ if not conf.env.disable_python: |
212 |
++ conf.SAMBA_CHECK_PYTHON(mandatory=False, version=(2,4,2)) |
213 |
++ conf.SAMBA_CHECK_PYTHON_HEADERS(mandatory=False) |
214 |
++ if not conf.env.HAVE_PYTHON_H: |
215 |
++ Logs.warn('Disabling pyldb-util as python devel libs not found') |
216 |
++ conf.env.disable_python = True |
217 |
+ |
218 |
+ # where does the default LIBDIR end up? in conf.env somewhere? |
219 |
+ # |
220 |
+ conf.CONFIG_PATH('LDB_MODULESDIR', conf.SUBST_ENV_VAR('MODULESDIR') + '/ldb') |
221 |
+ |
222 |
+- conf.env.standalone_ldb = conf.IN_LAUNCH_DIR() |
223 |
+- |
224 |
+ if not conf.env.standalone_ldb: |
225 |
+ if conf.CHECK_BUNDLED_SYSTEM_PKG('pyldb-util', minversion=VERSION, |
226 |
+ onlyif='talloc tdb tevent', |
227 |
+@@ -67,9 +83,12 @@ |
228 |
+ if conf.env.standalone_ldb: |
229 |
+ conf.CHECK_XSLTPROC_MANPAGES() |
230 |
+ |
231 |
+- # we need this for the ldap backend |
232 |
+- if conf.CHECK_FUNCS_IN('ber_flush ldap_open ldap_initialize', 'lber ldap', headers='lber.h ldap.h'): |
233 |
+- conf.env.ENABLE_LDAP_BACKEND = True |
234 |
++ if not conf.env.disable_ldap: |
235 |
++ # we need this for the ldap backend |
236 |
++ if conf.CHECK_FUNCS_IN('ber_flush ldap_open ldap_initialize', 'lber ldap', headers='lber.h ldap.h'): |
237 |
++ conf.env.ENABLE_LDAP_BACKEND = True |
238 |
++ else: |
239 |
++ conf.env.ENABLE_LDAP_BACKEND = False |
240 |
+ |
241 |
+ # we don't want any libraries or modules to rely on runtime |
242 |
+ # resolution of symbols |
243 |
|
244 |
diff --git a/sys-libs/ldb/files/ldb-1.1.29-disable-python.patch b/sys-libs/ldb/files/ldb-1.1.29-disable-python.patch |
245 |
new file mode 100644 |
246 |
index 0000000..bc4120e |
247 |
--- /dev/null |
248 |
+++ b/sys-libs/ldb/files/ldb-1.1.29-disable-python.patch |
249 |
@@ -0,0 +1,48 @@ |
250 |
+--- a/lib/tdb/wscript 2016-11-30 09:56:00.000000000 -0500 |
251 |
++++ b/lib/tdb/wscript 2017-02-08 16:37:49.160987205 -0500 |
252 |
+@@ -77,16 +77,16 @@ |
253 |
+ conf.env.standalone_tdb = conf.IN_LAUNCH_DIR() |
254 |
+ conf.env.building_tdb = True |
255 |
+ |
256 |
++ conf.env.disable_python = getattr(Options.options, 'disable_python', False) |
257 |
++ |
258 |
+ if not conf.env.standalone_tdb: |
259 |
+ if conf.CHECK_BUNDLED_SYSTEM_PKG('tdb', minversion=VERSION, |
260 |
+ implied_deps='replace'): |
261 |
+ conf.define('USING_SYSTEM_TDB', 1) |
262 |
+ conf.env.building_tdb = False |
263 |
+- if conf.CHECK_BUNDLED_SYSTEM_PYTHON('pytdb', 'tdb', minversion=VERSION): |
264 |
++ if not conf.env.disable_python and conf.CHECK_BUNDLED_SYSTEM_PYTHON('pytdb', 'tdb', minversion=VERSION): |
265 |
+ conf.define('USING_SYSTEM_PYTDB', 1) |
266 |
+ |
267 |
+- conf.env.disable_python = getattr(Options.options, 'disable_python', False) |
268 |
+- |
269 |
+ if (conf.CONFIG_SET('HAVE_ROBUST_MUTEXES') and |
270 |
+ conf.env.building_tdb and |
271 |
+ not conf.env.disable_tdb_mutex_locking): |
272 |
+--- a/lib/tevent/wscript 2016-10-07 00:45:35.000000000 -0400 |
273 |
++++ b/lib/tevent/wscript 2017-02-08 16:39:22.478733175 -0500 |
274 |
+@@ -34,11 +34,13 @@ |
275 |
+ |
276 |
+ conf.env.standalone_tevent = conf.IN_LAUNCH_DIR() |
277 |
+ |
278 |
++ conf.env.disable_python = getattr(Options.options, 'disable_python', False) |
279 |
++ |
280 |
+ if not conf.env.standalone_tevent: |
281 |
+ if conf.CHECK_BUNDLED_SYSTEM_PKG('tevent', minversion=VERSION, |
282 |
+ onlyif='talloc', implied_deps='replace talloc'): |
283 |
+ conf.define('USING_SYSTEM_TEVENT', 1) |
284 |
+- if conf.CHECK_BUNDLED_SYSTEM_PYTHON('pytevent', 'tevent', minversion=VERSION): |
285 |
++ if not conf.env.disable_python and conf.CHECK_BUNDLED_SYSTEM_PYTHON('pytevent', 'tevent', minversion=VERSION): |
286 |
+ conf.define('USING_SYSTEM_PYTEVENT', 1) |
287 |
+ |
288 |
+ if conf.CHECK_FUNCS('epoll_create', headers='sys/epoll.h'): |
289 |
+@@ -61,8 +63,6 @@ |
290 |
+ if not conf.CONFIG_SET('USING_SYSTEM_TEVENT'): |
291 |
+ conf.DEFINE('TEVENT_NUM_SIGNALS', tevent_num_signals) |
292 |
+ |
293 |
+- conf.env.disable_python = getattr(Options.options, 'disable_python', False) |
294 |
+- |
295 |
+ if not conf.env.disable_python: |
296 |
+ # also disable if we don't have the python libs installed |
297 |
+ conf.find_program('python', var='PYTHON') |
298 |
|
299 |
diff --git a/sys-libs/ldb/files/ldb-1.1.31-fix_PKGCONFIGDIR-when-python-disabled.patch b/sys-libs/ldb/files/ldb-1.1.31-fix_PKGCONFIGDIR-when-python-disabled.patch |
300 |
new file mode 100644 |
301 |
index 0000000..c45b13f |
302 |
--- /dev/null |
303 |
+++ b/sys-libs/ldb/files/ldb-1.1.31-fix_PKGCONFIGDIR-when-python-disabled.patch |
304 |
@@ -0,0 +1,17 @@ |
305 |
+--- a/wscript 2017-07-05 15:35:52.178964698 -0400 |
306 |
++++ b/wscript 2017-07-05 15:49:20.137977649 -0400 |
307 |
+@@ -208,6 +208,14 @@ |
308 |
+ ldb_headers = ('include/ldb.h include/ldb_errors.h ' |
309 |
+ 'include/ldb_module.h include/ldb_handlers.h') |
310 |
+ |
311 |
++ # we're not currently linking against the ldap libs, but ldb.pc.in |
312 |
++ # has @LDAP_LIBS@ |
313 |
++ bld.env.LDAP_LIBS = '' |
314 |
++ |
315 |
++ if not 'PACKAGE_VERSION' in bld.env: |
316 |
++ bld.env.PACKAGE_VERSION = VERSION |
317 |
++ bld.env.PKGCONFIGDIR = '${LIBDIR}/pkgconfig' |
318 |
++ |
319 |
+ bld.SAMBA_LIBRARY('ldb', |
320 |
+ COMMON_SRC + ' ' + LDB_MAP_SRC, |
321 |
+ deps='tevent LIBLDB_MAIN replace', |
322 |
|
323 |
diff --git a/sys-libs/ldb/files/ldb-1.1.31-optional_packages.patch b/sys-libs/ldb/files/ldb-1.1.31-optional_packages.patch |
324 |
new file mode 100644 |
325 |
index 0000000..1e9b517 |
326 |
--- /dev/null |
327 |
+++ b/sys-libs/ldb/files/ldb-1.1.31-optional_packages.patch |
328 |
@@ -0,0 +1,57 @@ |
329 |
+--- ldb-1.1.27/wscript |
330 |
++++ ldb-1.1.27/wscript |
331 |
+@@ -5,6 +5,7 @@ |
332 |
+ |
333 |
+ blddir = 'bin' |
334 |
+ |
335 |
++import Logs |
336 |
+ import sys, os |
337 |
+ |
338 |
+ # find the buildtools directory |
339 |
+@@ -13,7 +14,7 @@ |
340 |
+ srcdir = srcdir + '/..' |
341 |
+ sys.path.insert(0, srcdir + '/buildtools/wafsamba') |
342 |
+ |
343 |
+-import wafsamba, samba_dist, Utils |
344 |
++import wafsamba, samba_dist, Utils, Options |
345 |
+ |
346 |
+ samba_dist.DIST_DIRS('''lib/ldb:. lib/replace:lib/replace lib/talloc:lib/talloc |
347 |
+ lib/tdb:lib/tdb lib/tdb:lib/tdb lib/tevent:lib/tevent |
348 |
+@@ -28,8 +29,21 @@ |
349 |
+ opt.RECURSE('lib/tevent') |
350 |
+ opt.RECURSE('lib/replace') |
351 |
+ opt.tool_options('python') # options for disabling pyc or pyo compilation |
352 |
++ if opt.IN_LAUNCH_DIR(): |
353 |
++ opt.add_option('--disable-python', |
354 |
++ help=("disable the pyldb modules"), |
355 |
++ action="store_true", dest='disable_python', default=False) |
356 |
++ if opt.IN_LAUNCH_DIR(): |
357 |
++ opt.add_option('--disable-ldap', |
358 |
++ help=("disable ldap support"), |
359 |
++ action="store_true", dest='disable_ldap', default=False) |
360 |
+ |
361 |
+ def configure(conf): |
362 |
++ conf.env.standalone_ldb = conf.IN_LAUNCH_DIR() |
363 |
++ |
364 |
++ conf.env.disable_python = getattr(Options.options, 'disable_python', False) |
365 |
++ conf.env.disable_ldap = getattr(Options.options, 'disable_ldap', False) |
366 |
++ |
367 |
+ conf.RECURSE('lib/tdb') |
368 |
+ conf.RECURSE('lib/tevent') |
369 |
+ |
370 |
+@@ -67,9 +81,12 @@ |
371 |
+ if conf.env.standalone_ldb: |
372 |
+ conf.CHECK_XSLTPROC_MANPAGES() |
373 |
+ |
374 |
+- # we need this for the ldap backend |
375 |
+- if conf.CHECK_FUNCS_IN('ber_flush ldap_open ldap_initialize', 'lber ldap', headers='lber.h ldap.h'): |
376 |
+- conf.env.ENABLE_LDAP_BACKEND = True |
377 |
++ if not conf.env.disable_ldap: |
378 |
++ # we need this for the ldap backend |
379 |
++ if conf.CHECK_FUNCS_IN('ber_flush ldap_open ldap_initialize', 'lber ldap', headers='lber.h ldap.h'): |
380 |
++ conf.env.ENABLE_LDAP_BACKEND = True |
381 |
++ else: |
382 |
++ conf.env.ENABLE_LDAP_BACKEND = False |
383 |
+ |
384 |
+ # we don't want any libraries or modules to rely on runtime |
385 |
+ # resolution of symbols |
386 |
|
387 |
diff --git a/sys-libs/ldb/files/ldb-1.1.31-talloc-disable-python.patch b/sys-libs/ldb/files/ldb-1.1.31-talloc-disable-python.patch |
388 |
new file mode 100644 |
389 |
index 0000000..6ef45eb |
390 |
--- /dev/null |
391 |
+++ b/sys-libs/ldb/files/ldb-1.1.31-talloc-disable-python.patch |
392 |
@@ -0,0 +1,34 @@ |
393 |
+--- a/lib/talloc/wscript 2017-04-28 04:57:26.000000000 -0400 |
394 |
++++ b/lib/talloc/wscript 2017-07-05 14:30:42.700580464 -0400 |
395 |
+@@ -74,19 +74,22 @@ |
396 |
+ implied_deps='replace'): |
397 |
+ conf.define('USING_SYSTEM_TALLOC', 1) |
398 |
+ |
399 |
+- using_system_pytalloc_util = True |
400 |
+- if not conf.CHECK_BUNDLED_SYSTEM_PKG('pytalloc-util', minversion=VERSION, |
401 |
+- implied_deps='talloc replace'): |
402 |
++ if conf.env.disable_python: |
403 |
+ using_system_pytalloc_util = False |
404 |
+- |
405 |
+- # We need to get a pytalloc-util for all the python versions |
406 |
+- # we are building for |
407 |
+- if conf.env['EXTRA_PYTHON']: |
408 |
+- name = 'pytalloc-util' + conf.all_envs['extrapython']['PYTHON_SO_ABI_FLAG'] |
409 |
+- if not conf.CHECK_BUNDLED_SYSTEM_PKG(name, minversion=VERSION, |
410 |
++ else: |
411 |
++ using_system_pytalloc_util = True |
412 |
++ if not conf.CHECK_BUNDLED_SYSTEM_PKG('pytalloc-util', minversion=VERSION, |
413 |
+ implied_deps='talloc replace'): |
414 |
+ using_system_pytalloc_util = False |
415 |
+ |
416 |
++ # We need to get a pytalloc-util for all the python versions |
417 |
++ # we are building for |
418 |
++ if conf.env['EXTRA_PYTHON']: |
419 |
++ name = 'pytalloc-util' + conf.all_envs['extrapython']['PYTHON_SO_ABI_FLAG'] |
420 |
++ if not conf.CHECK_BUNDLED_SYSTEM_PKG(name, minversion=VERSION, |
421 |
++ implied_deps='talloc replace'): |
422 |
++ using_system_pytalloc_util = False |
423 |
++ |
424 |
+ if using_system_pytalloc_util: |
425 |
+ conf.define('USING_SYSTEM_PYTALLOC_UTIL', 1) |
426 |
+ |
427 |
|
428 |
diff --git a/sys-libs/ldb/files/ldb-1.2.3-disable_python.patch b/sys-libs/ldb/files/ldb-1.2.3-disable_python.patch |
429 |
new file mode 100644 |
430 |
index 0000000..133e2ac |
431 |
--- /dev/null |
432 |
+++ b/sys-libs/ldb/files/ldb-1.2.3-disable_python.patch |
433 |
@@ -0,0 +1,64 @@ |
434 |
+Revert talloc/wscript to the one from ldb-1.2.2 |
435 |
+ |
436 |
+--- ldb-1.2.3/lib/talloc/wscript |
437 |
++++ ldb-1.2.3/lib/talloc/wscript |
438 |
+@@ -1,7 +1,7 @@ |
439 |
+ #!/usr/bin/env python |
440 |
+ |
441 |
+ APPNAME = 'talloc' |
442 |
+-VERSION = '2.1.9' |
443 |
++VERSION = '2.1.10' |
444 |
+ |
445 |
+ |
446 |
+ blddir = 'bin' |
447 |
+@@ -74,19 +74,22 @@ |
448 |
+ implied_deps='replace'): |
449 |
+ conf.define('USING_SYSTEM_TALLOC', 1) |
450 |
+ |
451 |
+- using_system_pytalloc_util = True |
452 |
+- if not conf.CHECK_BUNDLED_SYSTEM_PKG('pytalloc-util', minversion=VERSION, |
453 |
+- implied_deps='talloc replace'): |
454 |
++ if conf.env.disable_python: |
455 |
+ using_system_pytalloc_util = False |
456 |
+- |
457 |
+- # We need to get a pytalloc-util for all the python versions |
458 |
+- # we are building for |
459 |
+- if conf.env['EXTRA_PYTHON']: |
460 |
+- name = 'pytalloc-util' + conf.all_envs['extrapython']['PYTHON_SO_ABI_FLAG'] |
461 |
+- if not conf.CHECK_BUNDLED_SYSTEM_PKG(name, minversion=VERSION, |
462 |
++ else: |
463 |
++ using_system_pytalloc_util = True |
464 |
++ if not conf.CHECK_BUNDLED_SYSTEM_PKG('pytalloc-util', minversion=VERSION, |
465 |
+ implied_deps='talloc replace'): |
466 |
+ using_system_pytalloc_util = False |
467 |
+ |
468 |
++ # We need to get a pytalloc-util for all the python versions |
469 |
++ # we are building for |
470 |
++ if conf.env['EXTRA_PYTHON']: |
471 |
++ name = 'pytalloc-util' + conf.all_envs['extrapython']['PYTHON_SO_ABI_FLAG'] |
472 |
++ if not conf.CHECK_BUNDLED_SYSTEM_PKG(name, minversion=VERSION, |
473 |
++ implied_deps='talloc replace'): |
474 |
++ using_system_pytalloc_util = False |
475 |
++ |
476 |
+ if using_system_pytalloc_util: |
477 |
+ conf.define('USING_SYSTEM_PYTALLOC_UTIL', 1) |
478 |
+ |
479 |
+@@ -171,12 +174,18 @@ |
480 |
+ def test(ctx): |
481 |
+ '''run talloc testsuite''' |
482 |
+ import Utils, samba_utils |
483 |
++ |
484 |
++ samba_utils.ADD_LD_LIBRARY_PATH('bin/shared') |
485 |
++ samba_utils.ADD_LD_LIBRARY_PATH('bin/shared/private') |
486 |
++ |
487 |
+ cmd = os.path.join(Utils.g_module.blddir, 'talloc_testsuite') |
488 |
+ ret = samba_utils.RUN_COMMAND(cmd) |
489 |
+ print("testsuite returned %d" % ret) |
490 |
+ magic_helper_cmd = os.path.join(Utils.g_module.blddir, 'talloc_test_magic_differs_helper') |
491 |
+ magic_cmd = os.path.join(srcdir, 'lib', 'talloc', |
492 |
+ 'test_magic_differs.sh') |
493 |
++ if not os.path.exists(magic_cmd): |
494 |
++ magic_cmd = os.path.join(srcdir, 'test_magic_differs.sh') |
495 |
+ |
496 |
+ magic_ret = samba_utils.RUN_COMMAND(magic_cmd + " " + magic_helper_cmd) |
497 |
+ print("magic differs test returned %d" % magic_ret) |
498 |
|
499 |
diff --git a/sys-libs/ldb/files/ldb-1.4.0-optional_packages.patch b/sys-libs/ldb/files/ldb-1.4.0-optional_packages.patch |
500 |
new file mode 100644 |
501 |
index 0000000..3781389 |
502 |
--- /dev/null |
503 |
+++ b/sys-libs/ldb/files/ldb-1.4.0-optional_packages.patch |
504 |
@@ -0,0 +1,45 @@ |
505 |
+--- ldb-1.4.0/wscript |
506 |
++++ ldb-1.4.0/wscript |
507 |
+@@ -31,6 +31,14 @@ |
508 |
+ opt.RECURSE('lib/tevent') |
509 |
+ opt.RECURSE('lib/replace') |
510 |
+ opt.tool_options('python') # options for disabling pyc or pyo compilation |
511 |
++ if opt.IN_LAUNCH_DIR(): |
512 |
++ opt.add_option('--disable-python', |
513 |
++ help=("disable the pyldb modules"), |
514 |
++ action="store_true", dest='disable_python', default=False) |
515 |
++ if opt.IN_LAUNCH_DIR(): |
516 |
++ opt.add_option('--disable-ldap', |
517 |
++ help=("disable ldap support"), |
518 |
++ action="store_true", dest='disable_ldap', default=False) |
519 |
+ |
520 |
+ opt.add_option('--without-ldb-lmdb', |
521 |
+ help='disable new LMDB backend for LDB', |
522 |
+@@ -38,6 +46,11 @@ |
523 |
+ |
524 |
+ |
525 |
+ def configure(conf): |
526 |
++ conf.env.standalone_ldb = conf.IN_LAUNCH_DIR() |
527 |
++ |
528 |
++ conf.env.disable_python = getattr(Options.options, 'disable_python', False) |
529 |
++ conf.env.disable_ldap = getattr(Options.options, 'disable_ldap', False) |
530 |
++ |
531 |
+ conf.RECURSE('lib/tdb') |
532 |
+ conf.RECURSE('lib/tevent') |
533 |
+ |
534 |
+@@ -142,9 +155,12 @@ |
535 |
+ if conf.env.standalone_ldb: |
536 |
+ conf.CHECK_XSLTPROC_MANPAGES() |
537 |
+ |
538 |
+- # we need this for the ldap backend |
539 |
+- if conf.CHECK_FUNCS_IN('ber_flush ldap_open ldap_initialize', 'lber ldap', headers='lber.h ldap.h'): |
540 |
+- conf.env.ENABLE_LDAP_BACKEND = True |
541 |
++ if not conf.env.disable_ldap: |
542 |
++ # we need this for the ldap backend |
543 |
++ if conf.CHECK_FUNCS_IN('ber_flush ldap_open ldap_initialize', 'lber ldap', headers='lber.h ldap.h'): |
544 |
++ conf.env.ENABLE_LDAP_BACKEND = True |
545 |
++ else: |
546 |
++ conf.env.ENABLE_LDAP_BACKEND = False |
547 |
+ |
548 |
+ # we don't want any libraries or modules to rely on runtime |
549 |
+ # resolution of symbols |
550 |
|
551 |
diff --git a/sys-libs/ldb/ldb-1.1.26.ebuild b/sys-libs/ldb/ldb-1.1.26.ebuild |
552 |
new file mode 100644 |
553 |
index 0000000..e26f3e2 |
554 |
--- /dev/null |
555 |
+++ b/sys-libs/ldb/ldb-1.1.26.ebuild |
556 |
@@ -0,0 +1,98 @@ |
557 |
+# Copyright 1999-2018 Gentoo Authors |
558 |
+# Distributed under the terms of the GNU General Public License v2 |
559 |
+ |
560 |
+EAPI=6 |
561 |
+PYTHON_COMPAT=( python2_7 ) |
562 |
+PYTHON_REQ_USE="threads" |
563 |
+ |
564 |
+inherit python-single-r1 waf-utils multilib-minimal eutils flag-o-matic |
565 |
+ |
566 |
+DESCRIPTION="An LDAP-like embedded database" |
567 |
+HOMEPAGE="https://ldb.samba.org/" |
568 |
+SRC_URI="https://www.samba.org/ftp/pub/${PN}/${P}.tar.gz" |
569 |
+ |
570 |
+LICENSE="LGPL-3" |
571 |
+SLOT="0/${PV}" |
572 |
+KEYWORDS="~alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd" |
573 |
+IUSE="doc" |
574 |
+ |
575 |
+RDEPEND="!elibc_FreeBSD? ( dev-libs/libbsd[${MULTILIB_USEDEP}] ) |
576 |
+ dev-libs/popt[${MULTILIB_USEDEP}] |
577 |
+ >=sys-libs/talloc-2.1.5[python,${MULTILIB_USEDEP}] |
578 |
+ >=sys-libs/tevent-0.9.27[python(+),${MULTILIB_USEDEP}] |
579 |
+ >=sys-libs/tdb-1.3.8[python,${MULTILIB_USEDEP}] |
580 |
+ net-nds/openldap |
581 |
+ !!<net-fs/samba-3.6.0[ldb] |
582 |
+ !!>=net-fs/samba-4.0.0[ldb] |
583 |
+ ${PYTHON_DEPS} |
584 |
+ " |
585 |
+ |
586 |
+DEPEND="dev-libs/libxslt |
587 |
+ doc? ( app-doc/doxygen ) |
588 |
+ virtual/pkgconfig |
589 |
+ ${RDEPEND}" |
590 |
+ |
591 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
592 |
+ |
593 |
+WAF_BINARY="${S}/buildtools/bin/waf" |
594 |
+ |
595 |
+MULTILIB_WRAPPED_HEADERS=( /usr/include/pyldb.h ) |
596 |
+ |
597 |
+PATCHES=( |
598 |
+ "${FILESDIR}"/${PN}-1.1.24-optional-python.patch |
599 |
+) |
600 |
+ |
601 |
+pkg_setup() { |
602 |
+ python-single-r1_pkg_setup |
603 |
+} |
604 |
+ |
605 |
+src_prepare() { |
606 |
+ default |
607 |
+ multilib_copy_sources |
608 |
+} |
609 |
+ |
610 |
+multilib_src_configure() { |
611 |
+ local myconf=( |
612 |
+ --disable-rpath \ |
613 |
+ --disable-rpath-install --bundled-libraries=NONE \ |
614 |
+ --with-modulesdir="${EPREFIX}"/usr/$(get_libdir)/samba \ |
615 |
+ --builtin-libraries=NONE |
616 |
+ ) |
617 |
+ if ! multilib_is_native_abi; then |
618 |
+ myconf+=( --disable-python ) |
619 |
+ fi |
620 |
+ waf-utils_src_configure "${myconf[@]}" |
621 |
+} |
622 |
+ |
623 |
+multilib_src_compile(){ |
624 |
+ use elibc_musl && append-cflags "-D__NEED_pid_t" |
625 |
+ waf-utils_src_compile |
626 |
+ multilib_is_native_abi && use doc && doxygen Doxyfile |
627 |
+} |
628 |
+ |
629 |
+multilib_src_test() { |
630 |
+ if multilib_is_native_abi; then |
631 |
+ WAF_MAKE=1 \ |
632 |
+ PATH=buildtools/bin:../../../buildtools/bin:$PATH:"${BUILD_DIR}"/bin/shared/private/ \ |
633 |
+ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"${BUILD_DIR}"/bin/shared/private/:"${BUILD_DIR}"/bin/shared \ |
634 |
+ waf test || die |
635 |
+ fi |
636 |
+} |
637 |
+ |
638 |
+multilib_src_install() { |
639 |
+ waf-utils_src_install |
640 |
+ |
641 |
+ if multilib_is_native_abi && use doc; then |
642 |
+ doman apidocs/man/man3/*.3 |
643 |
+ docinto html |
644 |
+ dodoc -r apidocs/html/* |
645 |
+ fi |
646 |
+} |
647 |
+ |
648 |
+pkg_postinst() { |
649 |
+ if has_version sys-auth/sssd; then |
650 |
+ ewarn "You have sssd installed. It is known to break after ldb upgrades," |
651 |
+ ewarn "so please try to rebuild it before reporting bugs." |
652 |
+ ewarn "See https://bugs.gentoo.org/404281" |
653 |
+ fi |
654 |
+} |
655 |
|
656 |
diff --git a/sys-libs/ldb/ldb-1.1.29-r1.ebuild b/sys-libs/ldb/ldb-1.1.29-r1.ebuild |
657 |
new file mode 100644 |
658 |
index 0000000..2657fbb |
659 |
--- /dev/null |
660 |
+++ b/sys-libs/ldb/ldb-1.1.29-r1.ebuild |
661 |
@@ -0,0 +1,103 @@ |
662 |
+# Copyright 1999-2018 Gentoo Authors |
663 |
+# Distributed under the terms of the GNU General Public License v2 |
664 |
+ |
665 |
+EAPI=6 |
666 |
+PYTHON_COMPAT=( python2_7 ) |
667 |
+PYTHON_REQ_USE="threads" |
668 |
+ |
669 |
+inherit python-single-r1 waf-utils multilib-minimal eutils flag-o-matic |
670 |
+ |
671 |
+DESCRIPTION="An LDAP-like embedded database" |
672 |
+HOMEPAGE="https://ldb.samba.org/" |
673 |
+SRC_URI="https://www.samba.org/ftp/pub/${PN}/${P}.tar.gz" |
674 |
+ |
675 |
+LICENSE="LGPL-3" |
676 |
+SLOT="0/${PV}" |
677 |
+KEYWORDS="alpha amd64 arm ~arm64 ~hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd" |
678 |
+IUSE="doc +ldap +python" |
679 |
+ |
680 |
+RDEPEND="!elibc_FreeBSD? ( dev-libs/libbsd[${MULTILIB_USEDEP}] ) |
681 |
+ dev-libs/popt[${MULTILIB_USEDEP}] |
682 |
+ >=sys-libs/talloc-2.1.8[python?,${MULTILIB_USEDEP}] |
683 |
+ >=sys-libs/tevent-0.9.31[python(+)?,${MULTILIB_USEDEP}] |
684 |
+ >=sys-libs/tdb-1.3.12[python?,${MULTILIB_USEDEP}] |
685 |
+ !!<net-fs/samba-3.6.0[ldb] |
686 |
+ !!>=net-fs/samba-4.0.0[ldb] |
687 |
+ python? ( ${PYTHON_DEPS} ) |
688 |
+ ldap? ( net-nds/openldap ) |
689 |
+ " |
690 |
+ |
691 |
+DEPEND="dev-libs/libxslt |
692 |
+ doc? ( app-doc/doxygen ) |
693 |
+ virtual/pkgconfig |
694 |
+ ${PYTHON_DEPS} |
695 |
+ ${RDEPEND}" |
696 |
+ |
697 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
698 |
+ |
699 |
+WAF_BINARY="${S}/buildtools/bin/waf" |
700 |
+ |
701 |
+MULTILIB_WRAPPED_HEADERS=( /usr/include/pyldb.h ) |
702 |
+ |
703 |
+PATCHES=( |
704 |
+ "${FILESDIR}"/${PN}-1.1.27-optional_packages.patch |
705 |
+ "${FILESDIR}"/${P}-disable-python.patch |
706 |
+) |
707 |
+ |
708 |
+pkg_setup() { |
709 |
+ python-single-r1_pkg_setup |
710 |
+} |
711 |
+ |
712 |
+src_prepare() { |
713 |
+ default |
714 |
+ multilib_copy_sources |
715 |
+} |
716 |
+ |
717 |
+multilib_src_configure() { |
718 |
+ local myconf=( |
719 |
+ $(usex ldap '' --disable-ldap) \ |
720 |
+ --disable-rpath \ |
721 |
+ --disable-rpath-install --bundled-libraries=NONE \ |
722 |
+ --with-modulesdir="${EPREFIX}"/usr/$(get_libdir)/samba \ |
723 |
+ --builtin-libraries=NONE |
724 |
+ ) |
725 |
+ if ! multilib_is_native_abi; then |
726 |
+ myconf+=( --disable-python ) |
727 |
+ else |
728 |
+ myconf+=( $(usex python '' '--disable-python') ) |
729 |
+ fi |
730 |
+ waf-utils_src_configure "${myconf[@]}" |
731 |
+} |
732 |
+ |
733 |
+multilib_src_compile(){ |
734 |
+ use elibc_musl && append-cflags "-D__NEED_pid_t" |
735 |
+ waf-utils_src_compile |
736 |
+ multilib_is_native_abi && use doc && doxygen Doxyfile |
737 |
+} |
738 |
+ |
739 |
+multilib_src_test() { |
740 |
+ if multilib_is_native_abi; then |
741 |
+ WAF_MAKE=1 \ |
742 |
+ PATH=buildtools/bin:../../../buildtools/bin:$PATH:"${BUILD_DIR}"/bin/shared/private/ \ |
743 |
+ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"${BUILD_DIR}"/bin/shared/private/:"${BUILD_DIR}"/bin/shared \ |
744 |
+ waf test || die |
745 |
+ fi |
746 |
+} |
747 |
+ |
748 |
+multilib_src_install() { |
749 |
+ waf-utils_src_install |
750 |
+ |
751 |
+ if multilib_is_native_abi && use doc; then |
752 |
+ doman apidocs/man/man3/*.3 |
753 |
+ docinto html |
754 |
+ dodoc -r apidocs/html/* |
755 |
+ fi |
756 |
+} |
757 |
+ |
758 |
+pkg_postinst() { |
759 |
+ if has_version sys-auth/sssd; then |
760 |
+ ewarn "You have sssd installed. It is known to break after ldb upgrades," |
761 |
+ ewarn "so please try to rebuild it before reporting bugs." |
762 |
+ ewarn "See https://bugs.gentoo.org/404281" |
763 |
+ fi |
764 |
+} |
765 |
|
766 |
diff --git a/sys-libs/ldb/ldb-1.1.31.ebuild b/sys-libs/ldb/ldb-1.1.31.ebuild |
767 |
new file mode 100644 |
768 |
index 0000000..a03aeff |
769 |
--- /dev/null |
770 |
+++ b/sys-libs/ldb/ldb-1.1.31.ebuild |
771 |
@@ -0,0 +1,105 @@ |
772 |
+# Copyright 1999-2018 Gentoo Authors |
773 |
+# Distributed under the terms of the GNU General Public License v2 |
774 |
+ |
775 |
+EAPI=6 |
776 |
+PYTHON_COMPAT=( python2_7 ) |
777 |
+PYTHON_REQ_USE="threads" |
778 |
+ |
779 |
+inherit python-single-r1 waf-utils multilib-minimal eutils flag-o-matic |
780 |
+ |
781 |
+DESCRIPTION="An LDAP-like embedded database" |
782 |
+HOMEPAGE="https://ldb.samba.org/" |
783 |
+SRC_URI="https://www.samba.org/ftp/pub/${PN}/${P}.tar.gz" |
784 |
+ |
785 |
+LICENSE="LGPL-3" |
786 |
+SLOT="0/${PV}" |
787 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
788 |
+IUSE="doc +ldap +python" |
789 |
+ |
790 |
+RDEPEND="!elibc_FreeBSD? ( dev-libs/libbsd[${MULTILIB_USEDEP}] ) |
791 |
+ dev-libs/popt[${MULTILIB_USEDEP}] |
792 |
+ >=dev-util/cmocka-1.1.1[${MULTILIB_USEDEP}] |
793 |
+ >=sys-libs/talloc-2.1.9[python?,${MULTILIB_USEDEP}] |
794 |
+ >=sys-libs/tevent-0.9.31[python(+)?,${MULTILIB_USEDEP}] |
795 |
+ >=sys-libs/tdb-1.3.13[python?,${MULTILIB_USEDEP}] |
796 |
+ !!<net-fs/samba-3.6.0[ldb] |
797 |
+ !!>=net-fs/samba-4.0.0[ldb] |
798 |
+ python? ( ${PYTHON_DEPS} ) |
799 |
+ ldap? ( net-nds/openldap ) |
800 |
+ " |
801 |
+ |
802 |
+DEPEND="dev-libs/libxslt |
803 |
+ doc? ( app-doc/doxygen ) |
804 |
+ virtual/pkgconfig |
805 |
+ ${PYTHON_DEPS} |
806 |
+ ${RDEPEND}" |
807 |
+ |
808 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
809 |
+ |
810 |
+WAF_BINARY="${S}/buildtools/bin/waf" |
811 |
+ |
812 |
+MULTILIB_WRAPPED_HEADERS=( /usr/include/pyldb.h ) |
813 |
+ |
814 |
+PATCHES=( |
815 |
+ "${FILESDIR}"/${PN}-1.1.31-optional_packages.patch |
816 |
+ "${FILESDIR}"/${PN}-1.1.31-talloc-disable-python.patch |
817 |
+ "${FILESDIR}"/${PN}-1.1.31-fix_PKGCONFIGDIR-when-python-disabled.patch |
818 |
+) |
819 |
+ |
820 |
+pkg_setup() { |
821 |
+ python-single-r1_pkg_setup |
822 |
+} |
823 |
+ |
824 |
+src_prepare() { |
825 |
+ default |
826 |
+ multilib_copy_sources |
827 |
+} |
828 |
+ |
829 |
+multilib_src_configure() { |
830 |
+ local myconf=( |
831 |
+ $(usex ldap '' --disable-ldap) \ |
832 |
+ --disable-rpath \ |
833 |
+ --disable-rpath-install --bundled-libraries=NONE \ |
834 |
+ --with-modulesdir="${EPREFIX}"/usr/$(get_libdir)/samba \ |
835 |
+ --builtin-libraries=NONE |
836 |
+ ) |
837 |
+ if ! multilib_is_native_abi; then |
838 |
+ myconf+=( --disable-python ) |
839 |
+ else |
840 |
+ use python || myconf+=( --disable-python ) |
841 |
+ fi |
842 |
+ waf-utils_src_configure "${myconf[@]}" |
843 |
+} |
844 |
+ |
845 |
+multilib_src_compile(){ |
846 |
+ use elibc_musl && append-cflags "-D__NEED_pid_t" |
847 |
+ waf-utils_src_compile |
848 |
+ multilib_is_native_abi && use doc && doxygen Doxyfile |
849 |
+} |
850 |
+ |
851 |
+multilib_src_test() { |
852 |
+ if multilib_is_native_abi; then |
853 |
+ WAF_MAKE=1 \ |
854 |
+ PATH=buildtools/bin:../../../buildtools/bin:$PATH:"${BUILD_DIR}"/bin/shared/private/ \ |
855 |
+ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"${BUILD_DIR}"/bin/shared/private/:"${BUILD_DIR}"/bin/shared \ |
856 |
+ waf test || die |
857 |
+ fi |
858 |
+} |
859 |
+ |
860 |
+multilib_src_install() { |
861 |
+ waf-utils_src_install |
862 |
+ |
863 |
+ if multilib_is_native_abi && use doc; then |
864 |
+ doman apidocs/man/man3/*.3 |
865 |
+ docinto html |
866 |
+ dodoc -r apidocs/html/* |
867 |
+ fi |
868 |
+} |
869 |
+ |
870 |
+pkg_postinst() { |
871 |
+ if has_version sys-auth/sssd; then |
872 |
+ ewarn "You have sssd installed. It is known to break after ldb upgrades," |
873 |
+ ewarn "so please try to rebuild it before reporting bugs." |
874 |
+ ewarn "See https://bugs.gentoo.org/404281" |
875 |
+ fi |
876 |
+} |
877 |
|
878 |
diff --git a/sys-libs/ldb/ldb-1.2.3.ebuild b/sys-libs/ldb/ldb-1.2.3.ebuild |
879 |
new file mode 100644 |
880 |
index 0000000..09ac380 |
881 |
--- /dev/null |
882 |
+++ b/sys-libs/ldb/ldb-1.2.3.ebuild |
883 |
@@ -0,0 +1,104 @@ |
884 |
+# Copyright 1999-2018 Gentoo Authors |
885 |
+# Distributed under the terms of the GNU General Public License v2 |
886 |
+ |
887 |
+EAPI=6 |
888 |
+PYTHON_COMPAT=( python2_7 ) |
889 |
+PYTHON_REQ_USE="threads" |
890 |
+ |
891 |
+inherit python-single-r1 waf-utils multilib-minimal eutils flag-o-matic |
892 |
+ |
893 |
+DESCRIPTION="An LDAP-like embedded database" |
894 |
+HOMEPAGE="https://ldb.samba.org/" |
895 |
+SRC_URI="https://www.samba.org/ftp/pub/${PN}/${P}.tar.gz" |
896 |
+ |
897 |
+LICENSE="LGPL-3" |
898 |
+SLOT="0/${PV}" |
899 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
900 |
+IUSE="doc +ldap +python" |
901 |
+ |
902 |
+RDEPEND="!elibc_FreeBSD? ( dev-libs/libbsd[${MULTILIB_USEDEP}] ) |
903 |
+ dev-libs/popt[${MULTILIB_USEDEP}] |
904 |
+ >=dev-util/cmocka-1.1.1[${MULTILIB_USEDEP}] |
905 |
+ >=sys-libs/talloc-2.1.10[python?,${MULTILIB_USEDEP}] |
906 |
+ >=sys-libs/tevent-0.9.33[python(+)?,${MULTILIB_USEDEP}] |
907 |
+ >=sys-libs/tdb-1.3.15[python?,${MULTILIB_USEDEP}] |
908 |
+ python? ( ${PYTHON_DEPS} ) |
909 |
+ ldap? ( net-nds/openldap ) |
910 |
+" |
911 |
+ |
912 |
+DEPEND="dev-libs/libxslt |
913 |
+ doc? ( app-doc/doxygen ) |
914 |
+ virtual/pkgconfig |
915 |
+ ${PYTHON_DEPS} |
916 |
+ ${RDEPEND} |
917 |
+" |
918 |
+ |
919 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
920 |
+ |
921 |
+WAF_BINARY="${S}/buildtools/bin/waf" |
922 |
+ |
923 |
+MULTILIB_WRAPPED_HEADERS=( /usr/include/pyldb.h ) |
924 |
+ |
925 |
+PATCHES=( |
926 |
+ "${FILESDIR}"/${PN}-1.1.31-optional_packages.patch |
927 |
+ "${FILESDIR}"/${PN}-1.1.31-fix_PKGCONFIGDIR-when-python-disabled.patch |
928 |
+ "${FILESDIR}"/${PN}-1.2.3-disable_python.patch |
929 |
+) |
930 |
+ |
931 |
+pkg_setup() { |
932 |
+ python-single-r1_pkg_setup |
933 |
+} |
934 |
+ |
935 |
+src_prepare() { |
936 |
+ default |
937 |
+ multilib_copy_sources |
938 |
+} |
939 |
+ |
940 |
+multilib_src_configure() { |
941 |
+ local myconf=( |
942 |
+ $(usex ldap '' --disable-ldap) |
943 |
+ --disable-rpath |
944 |
+ --disable-rpath-install --bundled-libraries=NONE |
945 |
+ --with-modulesdir="${EPREFIX}"/usr/$(get_libdir)/samba |
946 |
+ --builtin-libraries=NONE |
947 |
+ ) |
948 |
+ if ! multilib_is_native_abi; then |
949 |
+ myconf+=( --disable-python ) |
950 |
+ else |
951 |
+ use python || myconf+=( --disable-python ) |
952 |
+ fi |
953 |
+ waf-utils_src_configure "${myconf[@]}" |
954 |
+} |
955 |
+ |
956 |
+multilib_src_compile(){ |
957 |
+ use elibc_musl && append-cflags "-D__NEED_pid_t" |
958 |
+ waf-utils_src_compile |
959 |
+ multilib_is_native_abi && use doc && doxygen Doxyfile |
960 |
+} |
961 |
+ |
962 |
+multilib_src_test() { |
963 |
+ if multilib_is_native_abi; then |
964 |
+ WAF_MAKE=1 \ |
965 |
+ PATH=buildtools/bin:../../../buildtools/bin:$PATH:"${BUILD_DIR}"/bin/shared/private/ \ |
966 |
+ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"${BUILD_DIR}"/bin/shared/private/:"${BUILD_DIR}"/bin/shared \ |
967 |
+ waf test || die |
968 |
+ fi |
969 |
+} |
970 |
+ |
971 |
+multilib_src_install() { |
972 |
+ waf-utils_src_install |
973 |
+ |
974 |
+ if multilib_is_native_abi && use doc; then |
975 |
+ doman apidocs/man/man3/*.3 |
976 |
+ docinto html |
977 |
+ dodoc -r apidocs/html/* |
978 |
+ fi |
979 |
+} |
980 |
+ |
981 |
+pkg_postinst() { |
982 |
+ if has_version sys-auth/sssd; then |
983 |
+ ewarn "You have sssd installed. It is known to break after ldb upgrades," |
984 |
+ ewarn "so please try to rebuild it before reporting bugs." |
985 |
+ ewarn "See https://bugs.gentoo.org/404281" |
986 |
+ fi |
987 |
+} |
988 |
|
989 |
diff --git a/sys-libs/ldb/ldb-1.3.6.ebuild b/sys-libs/ldb/ldb-1.3.6.ebuild |
990 |
new file mode 100644 |
991 |
index 0000000..1db6e65 |
992 |
--- /dev/null |
993 |
+++ b/sys-libs/ldb/ldb-1.3.6.ebuild |
994 |
@@ -0,0 +1,104 @@ |
995 |
+# Copyright 1999-2018 Gentoo Authors |
996 |
+# Distributed under the terms of the GNU General Public License v2 |
997 |
+ |
998 |
+EAPI=6 |
999 |
+PYTHON_COMPAT=( python2_7 ) |
1000 |
+PYTHON_REQ_USE="threads" |
1001 |
+ |
1002 |
+inherit python-single-r1 waf-utils multilib-minimal eutils flag-o-matic |
1003 |
+ |
1004 |
+DESCRIPTION="An LDAP-like embedded database" |
1005 |
+HOMEPAGE="https://ldb.samba.org" |
1006 |
+SRC_URI="https://www.samba.org/ftp/pub/${PN}/${P}.tar.gz" |
1007 |
+ |
1008 |
+LICENSE="LGPL-3" |
1009 |
+SLOT="0/${PV}" |
1010 |
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~x86-fbsd" |
1011 |
+IUSE="doc +ldap +python" |
1012 |
+ |
1013 |
+RDEPEND=" |
1014 |
+ !elibc_FreeBSD? ( dev-libs/libbsd[${MULTILIB_USEDEP}] ) |
1015 |
+ dev-libs/popt[${MULTILIB_USEDEP}] |
1016 |
+ >=dev-util/cmocka-1.1.1[${MULTILIB_USEDEP}] |
1017 |
+ >=sys-libs/talloc-2.1.11[python?,${MULTILIB_USEDEP}] |
1018 |
+ >=sys-libs/tdb-1.3.15[python?,${MULTILIB_USEDEP}] |
1019 |
+ >=sys-libs/tevent-0.9.36[python(+)?,${MULTILIB_USEDEP}] |
1020 |
+ ldap? ( net-nds/openldap ) |
1021 |
+ python? ( ${PYTHON_DEPS} ) |
1022 |
+" |
1023 |
+ |
1024 |
+DEPEND="dev-libs/libxslt |
1025 |
+ doc? ( app-doc/doxygen ) |
1026 |
+ virtual/pkgconfig |
1027 |
+ ${PYTHON_DEPS} |
1028 |
+ ${RDEPEND} |
1029 |
+" |
1030 |
+ |
1031 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
1032 |
+ |
1033 |
+WAF_BINARY="${S}/buildtools/bin/waf" |
1034 |
+ |
1035 |
+MULTILIB_WRAPPED_HEADERS=( /usr/include/pyldb.h ) |
1036 |
+ |
1037 |
+PATCHES=( |
1038 |
+ "${FILESDIR}"/${PN}-1.1.31-optional_packages.patch |
1039 |
+ "${FILESDIR}"/${PN}-1.1.31-fix_PKGCONFIGDIR-when-python-disabled.patch |
1040 |
+) |
1041 |
+ |
1042 |
+pkg_setup() { |
1043 |
+ python-single-r1_pkg_setup |
1044 |
+} |
1045 |
+ |
1046 |
+src_prepare() { |
1047 |
+ default |
1048 |
+ multilib_copy_sources |
1049 |
+} |
1050 |
+ |
1051 |
+multilib_src_configure() { |
1052 |
+ local myconf=( |
1053 |
+ $(usex ldap '' --disable-ldap) |
1054 |
+ --disable-rpath |
1055 |
+ --disable-rpath-install --bundled-libraries=NONE |
1056 |
+ --with-modulesdir="${EPREFIX}"/usr/$(get_libdir)/samba |
1057 |
+ --builtin-libraries=NONE |
1058 |
+ ) |
1059 |
+ if ! multilib_is_native_abi; then |
1060 |
+ myconf+=( --disable-python ) |
1061 |
+ else |
1062 |
+ use python || myconf+=( --disable-python ) |
1063 |
+ fi |
1064 |
+ waf-utils_src_configure "${myconf[@]}" |
1065 |
+} |
1066 |
+ |
1067 |
+multilib_src_compile(){ |
1068 |
+ use elibc_musl && append-cflags "-D__NEED_pid_t" |
1069 |
+ waf-utils_src_compile |
1070 |
+ multilib_is_native_abi && use doc && doxygen Doxyfile |
1071 |
+} |
1072 |
+ |
1073 |
+multilib_src_test() { |
1074 |
+ if multilib_is_native_abi; then |
1075 |
+ WAF_MAKE=1 \ |
1076 |
+ PATH=buildtools/bin:../../../buildtools/bin:$PATH:"${BUILD_DIR}"/bin/shared/private/ \ |
1077 |
+ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"${BUILD_DIR}"/bin/shared/private/:"${BUILD_DIR}"/bin/shared \ |
1078 |
+ waf test || die |
1079 |
+ fi |
1080 |
+} |
1081 |
+ |
1082 |
+multilib_src_install() { |
1083 |
+ waf-utils_src_install |
1084 |
+ |
1085 |
+ if multilib_is_native_abi && use doc; then |
1086 |
+ doman apidocs/man/man3/*.3 |
1087 |
+ docinto html |
1088 |
+ dodoc -r apidocs/html/* |
1089 |
+ fi |
1090 |
+} |
1091 |
+ |
1092 |
+pkg_postinst() { |
1093 |
+ if has_version sys-auth/sssd; then |
1094 |
+ ewarn "You have sssd installed. It is known to break after ldb upgrades," |
1095 |
+ ewarn "so please try to rebuild it before reporting bugs." |
1096 |
+ ewarn "See https://bugs.gentoo.org/404281" |
1097 |
+ fi |
1098 |
+} |
1099 |
|
1100 |
diff --git a/sys-libs/ldb/ldb-1.4.2.ebuild b/sys-libs/ldb/ldb-1.4.2.ebuild |
1101 |
new file mode 100644 |
1102 |
index 0000000..8983187 |
1103 |
--- /dev/null |
1104 |
+++ b/sys-libs/ldb/ldb-1.4.2.ebuild |
1105 |
@@ -0,0 +1,106 @@ |
1106 |
+# Copyright 1999-2018 Gentoo Authors |
1107 |
+# Distributed under the terms of the GNU General Public License v2 |
1108 |
+ |
1109 |
+EAPI=6 |
1110 |
+PYTHON_COMPAT=( python2_7 ) |
1111 |
+PYTHON_REQ_USE="threads" |
1112 |
+ |
1113 |
+inherit python-single-r1 waf-utils multilib-minimal eutils flag-o-matic |
1114 |
+ |
1115 |
+DESCRIPTION="An LDAP-like embedded database" |
1116 |
+HOMEPAGE="https://ldb.samba.org" |
1117 |
+SRC_URI="https://www.samba.org/ftp/pub/${PN}/${P}.tar.gz" |
1118 |
+ |
1119 |
+LICENSE="LGPL-3" |
1120 |
+SLOT="0/${PV}" |
1121 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
1122 |
+IUSE="doc +ldap +lmdb +python" |
1123 |
+ |
1124 |
+RDEPEND=" |
1125 |
+ !elibc_FreeBSD? ( dev-libs/libbsd[${MULTILIB_USEDEP}] ) |
1126 |
+ dev-libs/popt[${MULTILIB_USEDEP}] |
1127 |
+ >=dev-util/cmocka-1.1.1[${MULTILIB_USEDEP}] |
1128 |
+ >=sys-libs/talloc-2.1.14[python?,${MULTILIB_USEDEP}] |
1129 |
+ >=sys-libs/tdb-1.3.16[python?,${MULTILIB_USEDEP}] |
1130 |
+ >=sys-libs/tevent-0.9.37[python(+)?,${MULTILIB_USEDEP}] |
1131 |
+ ldap? ( net-nds/openldap ) |
1132 |
+ lmdb? ( >=dev-db/lmdb-0.9.16[${MULTILIB_USEDEP}] ) |
1133 |
+ python? ( ${PYTHON_DEPS} ) |
1134 |
+" |
1135 |
+ |
1136 |
+DEPEND="dev-libs/libxslt |
1137 |
+ doc? ( app-doc/doxygen ) |
1138 |
+ virtual/pkgconfig |
1139 |
+ ${PYTHON_DEPS} |
1140 |
+ ${RDEPEND} |
1141 |
+" |
1142 |
+ |
1143 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
1144 |
+ |
1145 |
+WAF_BINARY="${S}/buildtools/bin/waf" |
1146 |
+ |
1147 |
+MULTILIB_WRAPPED_HEADERS=( /usr/include/pyldb.h ) |
1148 |
+ |
1149 |
+PATCHES=( |
1150 |
+ "${FILESDIR}"/${PN}-1.4.0-optional_packages.patch |
1151 |
+ "${FILESDIR}"/${PN}-1.1.31-fix_PKGCONFIGDIR-when-python-disabled.patch |
1152 |
+) |
1153 |
+ |
1154 |
+pkg_setup() { |
1155 |
+ python-single-r1_pkg_setup |
1156 |
+} |
1157 |
+ |
1158 |
+src_prepare() { |
1159 |
+ default |
1160 |
+ multilib_copy_sources |
1161 |
+} |
1162 |
+ |
1163 |
+multilib_src_configure() { |
1164 |
+ local myconf=( |
1165 |
+ $(usex ldap '' --disable-ldap) |
1166 |
+ $(usex lmdb '' --without-ldb-lmdb) |
1167 |
+ --disable-rpath |
1168 |
+ --disable-rpath-install --bundled-libraries=NONE |
1169 |
+ --with-modulesdir="${EPREFIX}"/usr/$(get_libdir)/samba |
1170 |
+ --builtin-libraries=NONE |
1171 |
+ ) |
1172 |
+ if ! multilib_is_native_abi; then |
1173 |
+ myconf+=( --disable-python ) |
1174 |
+ else |
1175 |
+ use python || myconf+=( --disable-python ) |
1176 |
+ fi |
1177 |
+ waf-utils_src_configure "${myconf[@]}" |
1178 |
+} |
1179 |
+ |
1180 |
+multilib_src_compile(){ |
1181 |
+ use elibc_musl && append-cflags "-D__NEED_pid_t" |
1182 |
+ waf-utils_src_compile |
1183 |
+ multilib_is_native_abi && use doc && doxygen Doxyfile |
1184 |
+} |
1185 |
+ |
1186 |
+multilib_src_test() { |
1187 |
+ if multilib_is_native_abi; then |
1188 |
+ WAF_MAKE=1 \ |
1189 |
+ PATH=buildtools/bin:../../../buildtools/bin:$PATH:"${BUILD_DIR}"/bin/shared/private/ \ |
1190 |
+ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"${BUILD_DIR}"/bin/shared/private/:"${BUILD_DIR}"/bin/shared \ |
1191 |
+ waf test || die |
1192 |
+ fi |
1193 |
+} |
1194 |
+ |
1195 |
+multilib_src_install() { |
1196 |
+ waf-utils_src_install |
1197 |
+ |
1198 |
+ if multilib_is_native_abi && use doc; then |
1199 |
+ doman apidocs/man/man3/*.3 |
1200 |
+ docinto html |
1201 |
+ dodoc -r apidocs/html/* |
1202 |
+ fi |
1203 |
+} |
1204 |
+ |
1205 |
+pkg_postinst() { |
1206 |
+ if has_version sys-auth/sssd; then |
1207 |
+ ewarn "You have sssd installed. It is known to break after ldb upgrades," |
1208 |
+ ewarn "so please try to rebuild it before reporting bugs." |
1209 |
+ ewarn "See https://bugs.gentoo.org/404281" |
1210 |
+ fi |
1211 |
+} |
1212 |
|
1213 |
diff --git a/sys-libs/ldb/ldb-1.4.3.ebuild b/sys-libs/ldb/ldb-1.4.3.ebuild |
1214 |
new file mode 100644 |
1215 |
index 0000000..8983187 |
1216 |
--- /dev/null |
1217 |
+++ b/sys-libs/ldb/ldb-1.4.3.ebuild |
1218 |
@@ -0,0 +1,106 @@ |
1219 |
+# Copyright 1999-2018 Gentoo Authors |
1220 |
+# Distributed under the terms of the GNU General Public License v2 |
1221 |
+ |
1222 |
+EAPI=6 |
1223 |
+PYTHON_COMPAT=( python2_7 ) |
1224 |
+PYTHON_REQ_USE="threads" |
1225 |
+ |
1226 |
+inherit python-single-r1 waf-utils multilib-minimal eutils flag-o-matic |
1227 |
+ |
1228 |
+DESCRIPTION="An LDAP-like embedded database" |
1229 |
+HOMEPAGE="https://ldb.samba.org" |
1230 |
+SRC_URI="https://www.samba.org/ftp/pub/${PN}/${P}.tar.gz" |
1231 |
+ |
1232 |
+LICENSE="LGPL-3" |
1233 |
+SLOT="0/${PV}" |
1234 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
1235 |
+IUSE="doc +ldap +lmdb +python" |
1236 |
+ |
1237 |
+RDEPEND=" |
1238 |
+ !elibc_FreeBSD? ( dev-libs/libbsd[${MULTILIB_USEDEP}] ) |
1239 |
+ dev-libs/popt[${MULTILIB_USEDEP}] |
1240 |
+ >=dev-util/cmocka-1.1.1[${MULTILIB_USEDEP}] |
1241 |
+ >=sys-libs/talloc-2.1.14[python?,${MULTILIB_USEDEP}] |
1242 |
+ >=sys-libs/tdb-1.3.16[python?,${MULTILIB_USEDEP}] |
1243 |
+ >=sys-libs/tevent-0.9.37[python(+)?,${MULTILIB_USEDEP}] |
1244 |
+ ldap? ( net-nds/openldap ) |
1245 |
+ lmdb? ( >=dev-db/lmdb-0.9.16[${MULTILIB_USEDEP}] ) |
1246 |
+ python? ( ${PYTHON_DEPS} ) |
1247 |
+" |
1248 |
+ |
1249 |
+DEPEND="dev-libs/libxslt |
1250 |
+ doc? ( app-doc/doxygen ) |
1251 |
+ virtual/pkgconfig |
1252 |
+ ${PYTHON_DEPS} |
1253 |
+ ${RDEPEND} |
1254 |
+" |
1255 |
+ |
1256 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
1257 |
+ |
1258 |
+WAF_BINARY="${S}/buildtools/bin/waf" |
1259 |
+ |
1260 |
+MULTILIB_WRAPPED_HEADERS=( /usr/include/pyldb.h ) |
1261 |
+ |
1262 |
+PATCHES=( |
1263 |
+ "${FILESDIR}"/${PN}-1.4.0-optional_packages.patch |
1264 |
+ "${FILESDIR}"/${PN}-1.1.31-fix_PKGCONFIGDIR-when-python-disabled.patch |
1265 |
+) |
1266 |
+ |
1267 |
+pkg_setup() { |
1268 |
+ python-single-r1_pkg_setup |
1269 |
+} |
1270 |
+ |
1271 |
+src_prepare() { |
1272 |
+ default |
1273 |
+ multilib_copy_sources |
1274 |
+} |
1275 |
+ |
1276 |
+multilib_src_configure() { |
1277 |
+ local myconf=( |
1278 |
+ $(usex ldap '' --disable-ldap) |
1279 |
+ $(usex lmdb '' --without-ldb-lmdb) |
1280 |
+ --disable-rpath |
1281 |
+ --disable-rpath-install --bundled-libraries=NONE |
1282 |
+ --with-modulesdir="${EPREFIX}"/usr/$(get_libdir)/samba |
1283 |
+ --builtin-libraries=NONE |
1284 |
+ ) |
1285 |
+ if ! multilib_is_native_abi; then |
1286 |
+ myconf+=( --disable-python ) |
1287 |
+ else |
1288 |
+ use python || myconf+=( --disable-python ) |
1289 |
+ fi |
1290 |
+ waf-utils_src_configure "${myconf[@]}" |
1291 |
+} |
1292 |
+ |
1293 |
+multilib_src_compile(){ |
1294 |
+ use elibc_musl && append-cflags "-D__NEED_pid_t" |
1295 |
+ waf-utils_src_compile |
1296 |
+ multilib_is_native_abi && use doc && doxygen Doxyfile |
1297 |
+} |
1298 |
+ |
1299 |
+multilib_src_test() { |
1300 |
+ if multilib_is_native_abi; then |
1301 |
+ WAF_MAKE=1 \ |
1302 |
+ PATH=buildtools/bin:../../../buildtools/bin:$PATH:"${BUILD_DIR}"/bin/shared/private/ \ |
1303 |
+ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"${BUILD_DIR}"/bin/shared/private/:"${BUILD_DIR}"/bin/shared \ |
1304 |
+ waf test || die |
1305 |
+ fi |
1306 |
+} |
1307 |
+ |
1308 |
+multilib_src_install() { |
1309 |
+ waf-utils_src_install |
1310 |
+ |
1311 |
+ if multilib_is_native_abi && use doc; then |
1312 |
+ doman apidocs/man/man3/*.3 |
1313 |
+ docinto html |
1314 |
+ dodoc -r apidocs/html/* |
1315 |
+ fi |
1316 |
+} |
1317 |
+ |
1318 |
+pkg_postinst() { |
1319 |
+ if has_version sys-auth/sssd; then |
1320 |
+ ewarn "You have sssd installed. It is known to break after ldb upgrades," |
1321 |
+ ewarn "so please try to rebuild it before reporting bugs." |
1322 |
+ ewarn "See https://bugs.gentoo.org/404281" |
1323 |
+ fi |
1324 |
+} |
1325 |
|
1326 |
diff --git a/sys-libs/ldb/ldb-1.5.1.ebuild b/sys-libs/ldb/ldb-1.5.1.ebuild |
1327 |
new file mode 100644 |
1328 |
index 0000000..8983187 |
1329 |
--- /dev/null |
1330 |
+++ b/sys-libs/ldb/ldb-1.5.1.ebuild |
1331 |
@@ -0,0 +1,106 @@ |
1332 |
+# Copyright 1999-2018 Gentoo Authors |
1333 |
+# Distributed under the terms of the GNU General Public License v2 |
1334 |
+ |
1335 |
+EAPI=6 |
1336 |
+PYTHON_COMPAT=( python2_7 ) |
1337 |
+PYTHON_REQ_USE="threads" |
1338 |
+ |
1339 |
+inherit python-single-r1 waf-utils multilib-minimal eutils flag-o-matic |
1340 |
+ |
1341 |
+DESCRIPTION="An LDAP-like embedded database" |
1342 |
+HOMEPAGE="https://ldb.samba.org" |
1343 |
+SRC_URI="https://www.samba.org/ftp/pub/${PN}/${P}.tar.gz" |
1344 |
+ |
1345 |
+LICENSE="LGPL-3" |
1346 |
+SLOT="0/${PV}" |
1347 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
1348 |
+IUSE="doc +ldap +lmdb +python" |
1349 |
+ |
1350 |
+RDEPEND=" |
1351 |
+ !elibc_FreeBSD? ( dev-libs/libbsd[${MULTILIB_USEDEP}] ) |
1352 |
+ dev-libs/popt[${MULTILIB_USEDEP}] |
1353 |
+ >=dev-util/cmocka-1.1.1[${MULTILIB_USEDEP}] |
1354 |
+ >=sys-libs/talloc-2.1.14[python?,${MULTILIB_USEDEP}] |
1355 |
+ >=sys-libs/tdb-1.3.16[python?,${MULTILIB_USEDEP}] |
1356 |
+ >=sys-libs/tevent-0.9.37[python(+)?,${MULTILIB_USEDEP}] |
1357 |
+ ldap? ( net-nds/openldap ) |
1358 |
+ lmdb? ( >=dev-db/lmdb-0.9.16[${MULTILIB_USEDEP}] ) |
1359 |
+ python? ( ${PYTHON_DEPS} ) |
1360 |
+" |
1361 |
+ |
1362 |
+DEPEND="dev-libs/libxslt |
1363 |
+ doc? ( app-doc/doxygen ) |
1364 |
+ virtual/pkgconfig |
1365 |
+ ${PYTHON_DEPS} |
1366 |
+ ${RDEPEND} |
1367 |
+" |
1368 |
+ |
1369 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
1370 |
+ |
1371 |
+WAF_BINARY="${S}/buildtools/bin/waf" |
1372 |
+ |
1373 |
+MULTILIB_WRAPPED_HEADERS=( /usr/include/pyldb.h ) |
1374 |
+ |
1375 |
+PATCHES=( |
1376 |
+ "${FILESDIR}"/${PN}-1.4.0-optional_packages.patch |
1377 |
+ "${FILESDIR}"/${PN}-1.1.31-fix_PKGCONFIGDIR-when-python-disabled.patch |
1378 |
+) |
1379 |
+ |
1380 |
+pkg_setup() { |
1381 |
+ python-single-r1_pkg_setup |
1382 |
+} |
1383 |
+ |
1384 |
+src_prepare() { |
1385 |
+ default |
1386 |
+ multilib_copy_sources |
1387 |
+} |
1388 |
+ |
1389 |
+multilib_src_configure() { |
1390 |
+ local myconf=( |
1391 |
+ $(usex ldap '' --disable-ldap) |
1392 |
+ $(usex lmdb '' --without-ldb-lmdb) |
1393 |
+ --disable-rpath |
1394 |
+ --disable-rpath-install --bundled-libraries=NONE |
1395 |
+ --with-modulesdir="${EPREFIX}"/usr/$(get_libdir)/samba |
1396 |
+ --builtin-libraries=NONE |
1397 |
+ ) |
1398 |
+ if ! multilib_is_native_abi; then |
1399 |
+ myconf+=( --disable-python ) |
1400 |
+ else |
1401 |
+ use python || myconf+=( --disable-python ) |
1402 |
+ fi |
1403 |
+ waf-utils_src_configure "${myconf[@]}" |
1404 |
+} |
1405 |
+ |
1406 |
+multilib_src_compile(){ |
1407 |
+ use elibc_musl && append-cflags "-D__NEED_pid_t" |
1408 |
+ waf-utils_src_compile |
1409 |
+ multilib_is_native_abi && use doc && doxygen Doxyfile |
1410 |
+} |
1411 |
+ |
1412 |
+multilib_src_test() { |
1413 |
+ if multilib_is_native_abi; then |
1414 |
+ WAF_MAKE=1 \ |
1415 |
+ PATH=buildtools/bin:../../../buildtools/bin:$PATH:"${BUILD_DIR}"/bin/shared/private/ \ |
1416 |
+ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"${BUILD_DIR}"/bin/shared/private/:"${BUILD_DIR}"/bin/shared \ |
1417 |
+ waf test || die |
1418 |
+ fi |
1419 |
+} |
1420 |
+ |
1421 |
+multilib_src_install() { |
1422 |
+ waf-utils_src_install |
1423 |
+ |
1424 |
+ if multilib_is_native_abi && use doc; then |
1425 |
+ doman apidocs/man/man3/*.3 |
1426 |
+ docinto html |
1427 |
+ dodoc -r apidocs/html/* |
1428 |
+ fi |
1429 |
+} |
1430 |
+ |
1431 |
+pkg_postinst() { |
1432 |
+ if has_version sys-auth/sssd; then |
1433 |
+ ewarn "You have sssd installed. It is known to break after ldb upgrades," |
1434 |
+ ewarn "so please try to rebuild it before reporting bugs." |
1435 |
+ ewarn "See https://bugs.gentoo.org/404281" |
1436 |
+ fi |
1437 |
+} |
1438 |
|
1439 |
diff --git a/sys-libs/ldb/metadata.xml b/sys-libs/ldb/metadata.xml |
1440 |
new file mode 100644 |
1441 |
index 0000000..db4a710 |
1442 |
--- /dev/null |
1443 |
+++ b/sys-libs/ldb/metadata.xml |
1444 |
@@ -0,0 +1,14 @@ |
1445 |
+<?xml version="1.0" encoding="UTF-8"?> |
1446 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
1447 |
+<pkgmetadata> |
1448 |
+ <maintainer type="project"> |
1449 |
+ <email>samba@g.o</email> |
1450 |
+ <name>Samba</name> |
1451 |
+ </maintainer> |
1452 |
+ <use> |
1453 |
+ <flag name="doc">Builds documentation</flag> |
1454 |
+ <flag name="ldap">Enable LDAP support</flag> |
1455 |
+ <flag name="lmdb">Enable LMDB backend</flag> |
1456 |
+ <flag name="python">Enable Python support</flag> |
1457 |
+ </use> |
1458 |
+</pkgmetadata> |