Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-dev:musl commit in: sys-libs/tevent/, sys-libs/tevent/files/
Date: Sun, 23 Feb 2014 12:06:59
Message-Id: 1393157269.c16a87081d2a1ac6aeec7ea074f3ac515881cd74.blueness@gentoo
1 commit: c16a87081d2a1ac6aeec7ea074f3ac515881cd74
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 23 12:07:49 2014 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 23 12:07:49 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=c16a8708
7
8 sys-libs/tevent: remove BSD strtoll check
9
10 Package-Manager: portage-2.2.7
11 RepoMan-Options: --force
12 Manifest-Sign-Key: 0xF52D4BBA
13
14 ---
15 sys-libs/tevent/files/add-py-file-0.9.14.patch | 32 ++++++++++++++++
16 sys-libs/tevent/files/add-py-file.patch | 32 ++++++++++++++++
17 .../files/tevent-remove-check-bsd-strtoll.patch | 24 ++++++++++++
18 sys-libs/tevent/files/tevent-version.patch | 27 +++++++++++++
19 sys-libs/tevent/metadata.xml | 9 +++++
20 sys-libs/tevent/tevent-0.9.19-r99.ebuild | 44 ++++++++++++++++++++++
21 sys-libs/tevent/tevent-0.9.20-r99.ebuild | 44 ++++++++++++++++++++++
22 sys-libs/tevent/tevent-0.9.21-r99.ebuild | 44 ++++++++++++++++++++++
23 8 files changed, 256 insertions(+)
24
25 diff --git a/sys-libs/tevent/files/add-py-file-0.9.14.patch b/sys-libs/tevent/files/add-py-file-0.9.14.patch
26 new file mode 100644
27 index 0000000..3270816
28 --- /dev/null
29 +++ b/sys-libs/tevent/files/add-py-file-0.9.14.patch
30 @@ -0,0 +1,32 @@
31 +--- /dev/null
32 ++++ /tevent.py
33 +@@ -0,0 +1,29 @@
34 ++#!/usr/bin/python
35 ++#
36 ++# Python integration for tevent
37 ++#
38 ++# Copyright (C) Jelmer Vernooij 2011
39 ++#
40 ++# ** NOTE! The following LGPL license applies to the tevent
41 ++# ** library. This does NOT imply that all of Samba is released
42 ++# ** under the LGPL
43 ++#
44 ++# This library is free software; you can redistribute it and/or
45 ++# modify it under the terms of the GNU Lesser General Public
46 ++# License as published by the Free Software Foundation; either
47 ++# version 3 of the License, or (at your option) any later version.
48 ++#
49 ++# This library is distributed in the hope that it will be useful,
50 ++# but WITHOUT ANY WARRANTY; without even the implied warranty of
51 ++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
52 ++# Lesser General Public License for more details.
53 ++#
54 ++# You should have received a copy of the GNU Lesser General Public
55 ++# License along with this library; if not, see <http://www.gnu.org/licenses/>.
56 ++
57 ++from _tevent import (
58 ++ __version__,
59 ++ backend_list,
60 ++ Context,
61 ++ Signal,
62 ++ )
63
64 diff --git a/sys-libs/tevent/files/add-py-file.patch b/sys-libs/tevent/files/add-py-file.patch
65 new file mode 100644
66 index 0000000..cd91983
67 --- /dev/null
68 +++ b/sys-libs/tevent/files/add-py-file.patch
69 @@ -0,0 +1,32 @@
70 +--- /dev/null
71 ++++ b/tevent.py
72 +@@ -0,0 +1,29 @@
73 ++#!/usr/bin/python
74 ++#
75 ++# Python integration for tevent
76 ++#
77 ++# Copyright (C) Jelmer Vernooij 2011
78 ++#
79 ++# ** NOTE! The following LGPL license applies to the tevent
80 ++# ** library. This does NOT imply that all of Samba is released
81 ++# ** under the LGPL
82 ++#
83 ++# This library is free software; you can redistribute it and/or
84 ++# modify it under the terms of the GNU Lesser General Public
85 ++# License as published by the Free Software Foundation; either
86 ++# version 3 of the License, or (at your option) any later version.
87 ++#
88 ++# This library is distributed in the hope that it will be useful,
89 ++# but WITHOUT ANY WARRANTY; without even the implied warranty of
90 ++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
91 ++# Lesser General Public License for more details.
92 ++#
93 ++# You should have received a copy of the GNU Lesser General Public
94 ++# License along with this library; if not, see <http://www.gnu.org/licenses/>.
95 ++
96 ++from _tevent import (
97 ++ __version__,
98 ++ backend_list,
99 ++ Context,
100 ++ Signal,
101 ++ )
102
103 diff --git a/sys-libs/tevent/files/tevent-remove-check-bsd-strtoll.patch b/sys-libs/tevent/files/tevent-remove-check-bsd-strtoll.patch
104 new file mode 100644
105 index 0000000..481f0d4
106 --- /dev/null
107 +++ b/sys-libs/tevent/files/tevent-remove-check-bsd-strtoll.patch
108 @@ -0,0 +1,24 @@
109 +diff -Naur tevent-0.9.19.orig/lib/replace/wscript tevent-0.9.19/lib/replace/wscript
110 +--- tevent-0.9.19.orig/lib/replace/wscript 2013-06-04 14:21:30.000000000 +0000
111 ++++ tevent-0.9.19/lib/replace/wscript 2014-02-23 12:01:19.733793736 +0000
112 +@@ -272,20 +272,6 @@
113 +
114 + #Some OS (ie. freebsd) return EINVAL if the convertion could not be done, it's not what we expect
115 + #Let's detect those cases
116 +- if conf.CONFIG_SET('HAVE_STRTOLL'):
117 +- conf.CHECK_CODE('''
118 +- long long nb = strtoll("Text", NULL, 0);
119 +- if (errno == EINVAL) {
120 +- return 0;
121 +- } else {
122 +- return 1;
123 +- }
124 +- ''',
125 +- msg="Checking correct behavior of strtoll",
126 +- headers = 'errno.h',
127 +- execute = True,
128 +- define = 'HAVE_BSD_STRTOLL',
129 +- )
130 + conf.CHECK_FUNCS('if_nametoindex strerror_r')
131 + conf.CHECK_FUNCS('getdirentries getdents syslog')
132 + conf.CHECK_FUNCS('gai_strerror get_current_dir_name')
133
134 diff --git a/sys-libs/tevent/files/tevent-version.patch b/sys-libs/tevent/files/tevent-version.patch
135 new file mode 100644
136 index 0000000..2042ec5
137 --- /dev/null
138 +++ b/sys-libs/tevent/files/tevent-version.patch
139 @@ -0,0 +1,27 @@
140 +--- a/pytevent.c
141 ++++ b/pytevent.c
142 +@@ -761,4 +761,6 @@ void init_tevent(void)
143 +
144 + Py_INCREF(&TeventFd_Type);
145 + PyModule_AddObject(m, "Fd", (PyObject *)&TeventFd_Type);
146 ++
147 ++ PyModule_AddObject(m, "__version__", PyString_FromString(PACKAGE_VERSION));
148 + }
149 +--- a/wscript
150 ++++ b/wscript
151 +@@ -92,7 +92,14 @@
152 + 'pytevent.c',
153 + deps='tevent',
154 + enabled=True,
155 +- realname='_tevent.so')
156 ++ realname='_tevent.so',
157 ++ cflags='-DPACKAGE_VERSION=\"%s\"' % VERSION)
158 ++ # install out various python scripts for use by make test
159 ++ bld.SAMBA_SCRIPT('tevent_python',
160 ++ pattern='tevent.py',
161 ++ installdir='python')
162 ++
163 ++ bld.INSTALL_WILDCARD('${PYTHONDIR}', 'tevent.py', flat=False)
164 +
165 +
166 + def test(ctx):
167
168 diff --git a/sys-libs/tevent/metadata.xml b/sys-libs/tevent/metadata.xml
169 new file mode 100644
170 index 0000000..e06ba37
171 --- /dev/null
172 +++ b/sys-libs/tevent/metadata.xml
173 @@ -0,0 +1,9 @@
174 +<?xml version="1.0" encoding="UTF-8"?>
175 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
176 +<pkgmetadata>
177 + <herd>samba</herd>
178 + <maintainer>
179 + <email>patrick@g.o</email>
180 + <name>Patrick Lauer</name>
181 + </maintainer>
182 +</pkgmetadata>
183
184 diff --git a/sys-libs/tevent/tevent-0.9.19-r99.ebuild b/sys-libs/tevent/tevent-0.9.19-r99.ebuild
185 new file mode 100644
186 index 0000000..259a50b
187 --- /dev/null
188 +++ b/sys-libs/tevent/tevent-0.9.19-r99.ebuild
189 @@ -0,0 +1,44 @@
190 +# Copyright 1999-2013 Gentoo Foundation
191 +# Distributed under the terms of the GNU General Public License v2
192 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/tevent/tevent-0.9.19.ebuild,v 1.15 2013/09/06 20:08:35 maekke Exp $
193 +
194 +EAPI=5
195 +PYTHON_COMPAT=( python2_{6,7} )
196 +
197 +inherit waf-utils python-single-r1
198 +
199 +DESCRIPTION="Samba tevent library"
200 +HOMEPAGE="http://tevent.samba.org/"
201 +SRC_URI="http://samba.org/ftp/tevent/${P}.tar.gz"
202 +
203 +LICENSE="GPL-3"
204 +SLOT="0"
205 +KEYWORDS="amd64 arm x86"
206 +IUSE=""
207 +
208 +RDEPEND=">=sys-libs/talloc-2.0.8[python]
209 + ${PYTHON_DEPS}"
210 +
211 +DEPEND="${RDEPEND}
212 + virtual/pkgconfig
213 +"
214 +
215 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
216 +
217 +WAF_BINARY="${S}/buildtools/bin/waf"
218 +
219 +pkg_setup() {
220 + python-single-r1_pkg_setup
221 +}
222 +
223 +src_prepare() {
224 + epatch "${FILESDIR}"/${PN}-remove-check-bsd-strtoll.patch
225 +}
226 +
227 +src_install() {
228 + waf-utils_src_install
229 + python_export PYTHON_SITEDIR
230 + insinto "${PYTHON_SITEDIR#${EPREFIX}}"
231 + doins tevent.py
232 + python_optimize
233 +}
234
235 diff --git a/sys-libs/tevent/tevent-0.9.20-r99.ebuild b/sys-libs/tevent/tevent-0.9.20-r99.ebuild
236 new file mode 100644
237 index 0000000..8b1a9c5
238 --- /dev/null
239 +++ b/sys-libs/tevent/tevent-0.9.20-r99.ebuild
240 @@ -0,0 +1,44 @@
241 +# Copyright 1999-2013 Gentoo Foundation
242 +# Distributed under the terms of the GNU General Public License v2
243 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/tevent/tevent-0.9.20.ebuild,v 1.2 2013/12/16 08:53:50 polynomial-c Exp $
244 +
245 +EAPI=5
246 +PYTHON_COMPAT=( python2_{6,7} )
247 +
248 +inherit waf-utils python-single-r1
249 +
250 +DESCRIPTION="Samba tevent library"
251 +HOMEPAGE="http://tevent.samba.org/"
252 +SRC_URI="http://samba.org/ftp/tevent/${P}.tar.gz"
253 +
254 +LICENSE="GPL-3"
255 +SLOT="0"
256 +KEYWORDS="~amd64 ~arm ~x86"
257 +IUSE=""
258 +
259 +RDEPEND=">=sys-libs/talloc-2.1.0[python]
260 + ${PYTHON_DEPS}"
261 +
262 +DEPEND="${RDEPEND}
263 + virtual/pkgconfig
264 +"
265 +
266 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
267 +
268 +WAF_BINARY="${S}/buildtools/bin/waf"
269 +
270 +pkg_setup() {
271 + python-single-r1_pkg_setup
272 +}
273 +
274 +src_prepare() {
275 + epatch "${FILESDIR}"/${PN}-remove-check-bsd-strtoll.patch
276 +}
277 +
278 +src_install() {
279 + waf-utils_src_install
280 + python_export PYTHON_SITEDIR
281 + insinto "${PYTHON_SITEDIR#${EPREFIX}}"
282 + doins tevent.py
283 + python_optimize
284 +}
285
286 diff --git a/sys-libs/tevent/tevent-0.9.21-r99.ebuild b/sys-libs/tevent/tevent-0.9.21-r99.ebuild
287 new file mode 100644
288 index 0000000..89f9e79
289 --- /dev/null
290 +++ b/sys-libs/tevent/tevent-0.9.21-r99.ebuild
291 @@ -0,0 +1,44 @@
292 +# Copyright 1999-2014 Gentoo Foundation
293 +# Distributed under the terms of the GNU General Public License v2
294 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/tevent/tevent-0.9.21.ebuild,v 1.1 2014/01/18 23:19:27 polynomial-c Exp $
295 +
296 +EAPI=5
297 +PYTHON_COMPAT=( python2_{6,7} )
298 +
299 +inherit waf-utils python-single-r1
300 +
301 +DESCRIPTION="Samba tevent library"
302 +HOMEPAGE="http://tevent.samba.org/"
303 +SRC_URI="http://samba.org/ftp/tevent/${P}.tar.gz"
304 +
305 +LICENSE="GPL-3"
306 +SLOT="0"
307 +KEYWORDS="~amd64 ~arm ~x86"
308 +IUSE=""
309 +
310 +RDEPEND=">=sys-libs/talloc-2.1.0[python]
311 + ${PYTHON_DEPS}"
312 +
313 +DEPEND="${RDEPEND}
314 + virtual/pkgconfig
315 +"
316 +
317 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
318 +
319 +WAF_BINARY="${S}/buildtools/bin/waf"
320 +
321 +pkg_setup() {
322 + python-single-r1_pkg_setup
323 +}
324 +
325 +src_prepare() {
326 + epatch "${FILESDIR}"/${PN}-remove-check-bsd-strtoll.patch
327 +}
328 +
329 +src_install() {
330 + waf-utils_src_install
331 + python_export PYTHON_SITEDIR
332 + insinto "${PYTHON_SITEDIR#${EPREFIX}}"
333 + doins tevent.py
334 + python_optimize
335 +}