1 |
commit: 5f568f2293c42f0a021508fa8b2bfc67392d63cd |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 23 12:46:49 2014 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 23 12:46:49 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=5f568f22 |
7 |
|
8 |
sys-libs/tdb: remove BSD strtoll check |
9 |
|
10 |
Package-Manager: portage-2.2.7 |
11 |
RepoMan-Options: --force |
12 |
Manifest-Sign-Key: 0xF52D4BBA |
13 |
|
14 |
--- |
15 |
.../tdb/files/tdb-remove-check-bsd-strtoll.patch | 25 ++++++++++++ |
16 |
sys-libs/tdb/metadata.xml | 13 ++++++ |
17 |
sys-libs/tdb/tdb-1.2.11-r99.ebuild | 46 ++++++++++++++++++++++ |
18 |
sys-libs/tdb/tdb-1.2.12-r99.ebuild | 44 +++++++++++++++++++++ |
19 |
4 files changed, 128 insertions(+) |
20 |
|
21 |
diff --git a/sys-libs/tdb/files/tdb-remove-check-bsd-strtoll.patch b/sys-libs/tdb/files/tdb-remove-check-bsd-strtoll.patch |
22 |
new file mode 100644 |
23 |
index 0000000..8108209 |
24 |
--- /dev/null |
25 |
+++ b/sys-libs/tdb/files/tdb-remove-check-bsd-strtoll.patch |
26 |
@@ -0,0 +1,25 @@ |
27 |
+diff -Naur tdb-1.2.11.orig/lib/replace/wscript tdb-1.2.11/lib/replace/wscript |
28 |
+--- tdb-1.2.11.orig/lib/replace/wscript 2012-11-30 08:51:31.000000000 +0000 |
29 |
++++ tdb-1.2.11/lib/replace/wscript 2014-02-23 12:37:58.921617847 +0000 |
30 |
+@@ -215,21 +215,6 @@ |
31 |
+ |
32 |
+ #Some OS (ie. freebsd) return EINVAL if the convertion could not be done, it's not what we expect |
33 |
+ #Let's detect those cases |
34 |
+- if conf.CONFIG_SET('HAVE_STRTOLL'): |
35 |
+- conf.CHECK_CODE(''' |
36 |
+- long long nb = strtoll("Text", NULL, 0); |
37 |
+- if (errno == EINVAL) { |
38 |
+- return 0; |
39 |
+- } else { |
40 |
+- return 1; |
41 |
+- } |
42 |
+- ''', |
43 |
+- msg="Checking correct behavior of strtoll", |
44 |
+- headers = 'errno.h', |
45 |
+- execute = True, |
46 |
+- define_ret = True, |
47 |
+- define = 'HAVE_BSD_STRTOLL', |
48 |
+- ) |
49 |
+ conf.CHECK_FUNCS('if_nametoindex strerror_r') |
50 |
+ conf.CHECK_FUNCS('getdirentries getdents syslog') |
51 |
+ conf.CHECK_FUNCS('gai_strerror get_current_dir_name') |
52 |
|
53 |
diff --git a/sys-libs/tdb/metadata.xml b/sys-libs/tdb/metadata.xml |
54 |
new file mode 100644 |
55 |
index 0000000..742098c |
56 |
--- /dev/null |
57 |
+++ b/sys-libs/tdb/metadata.xml |
58 |
@@ -0,0 +1,13 @@ |
59 |
+<?xml version="1.0" encoding="UTF-8"?> |
60 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
61 |
+<pkgmetadata> |
62 |
+ <herd>samba</herd> |
63 |
+ <maintainer> |
64 |
+ <email>patrick@g.o</email> |
65 |
+ <name>Patrick Lauer</name> |
66 |
+ </maintainer> |
67 |
+ <use> |
68 |
+ <flag name="tools">Install extra tools</flag> |
69 |
+ <flag name="tdbtest">Install tdbtest app</flag> |
70 |
+ </use> |
71 |
+</pkgmetadata> |
72 |
|
73 |
diff --git a/sys-libs/tdb/tdb-1.2.11-r99.ebuild b/sys-libs/tdb/tdb-1.2.11-r99.ebuild |
74 |
new file mode 100644 |
75 |
index 0000000..d8b5af9 |
76 |
--- /dev/null |
77 |
+++ b/sys-libs/tdb/tdb-1.2.11-r99.ebuild |
78 |
@@ -0,0 +1,46 @@ |
79 |
+# Copyright 1999-2013 Gentoo Foundation |
80 |
+# Distributed under the terms of the GNU General Public License v2 |
81 |
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/tdb/tdb-1.2.11.ebuild,v 1.8 2013/09/06 16:04:59 ago Exp $ |
82 |
+ |
83 |
+EAPI=3 |
84 |
+PYTHON_DEPEND="python? 2" |
85 |
+RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*" |
86 |
+ |
87 |
+inherit waf-utils python |
88 |
+ |
89 |
+DESCRIPTION="A simple database API" |
90 |
+HOMEPAGE="http://tdb.samba.org/" |
91 |
+SRC_URI="http://samba.org/ftp/tdb/${P}.tar.gz" |
92 |
+ |
93 |
+LICENSE="GPL-3" |
94 |
+SLOT="0" |
95 |
+KEYWORDS="amd64 arm x86" |
96 |
+IUSE="python" |
97 |
+ |
98 |
+RDEPEND="" |
99 |
+DEPEND="|| ( dev-lang/python:2.7 dev-lang/python:2.6 ) |
100 |
+ app-text/docbook-xml-dtd:4.2" |
101 |
+ |
102 |
+WAF_BINARY="${S}/buildtools/bin/waf" |
103 |
+ |
104 |
+pkg_setup() { |
105 |
+ python_set_active_version 2 |
106 |
+ python_pkg_setup |
107 |
+} |
108 |
+ |
109 |
+src_prepare() { |
110 |
+ epatch "${FILESDIR}"/${PN}-remove-check-bsd-strtoll.patch |
111 |
+} |
112 |
+ |
113 |
+src_configure() { |
114 |
+ local extra_opts="" |
115 |
+ use python || extra_opts+=" --disable-python" |
116 |
+ waf-utils_src_configure \ |
117 |
+ ${extra_opts} |
118 |
+} |
119 |
+ |
120 |
+src_test() { |
121 |
+ # the default src_test runs 'make test' and 'make check', letting |
122 |
+ # the tests fail occasionally (reason: unknown) |
123 |
+ emake check || die "emake check failed" |
124 |
+} |
125 |
|
126 |
diff --git a/sys-libs/tdb/tdb-1.2.12-r99.ebuild b/sys-libs/tdb/tdb-1.2.12-r99.ebuild |
127 |
new file mode 100644 |
128 |
index 0000000..450fde3 |
129 |
--- /dev/null |
130 |
+++ b/sys-libs/tdb/tdb-1.2.12-r99.ebuild |
131 |
@@ -0,0 +1,44 @@ |
132 |
+# Copyright 1999-2013 Gentoo Foundation |
133 |
+# Distributed under the terms of the GNU General Public License v2 |
134 |
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/tdb/tdb-1.2.12-r1.ebuild,v 1.1 2013/06/30 16:33:13 jlec Exp $ |
135 |
+ |
136 |
+EAPI=5 |
137 |
+ |
138 |
+PYTHON_COMPAT=( python{2_6,2_7} ) |
139 |
+ |
140 |
+inherit waf-utils python-single-r1 |
141 |
+ |
142 |
+DESCRIPTION="A simple database API" |
143 |
+HOMEPAGE="http://tdb.samba.org/" |
144 |
+SRC_URI="http://samba.org/ftp/tdb/${P}.tar.gz" |
145 |
+ |
146 |
+LICENSE="GPL-3" |
147 |
+SLOT="0" |
148 |
+KEYWORDS="~amd64 ~arm ~x86" |
149 |
+IUSE="python" |
150 |
+ |
151 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
152 |
+ |
153 |
+RDEPEND="python? ( ${PYTHON_DEPS} )" |
154 |
+DEPEND=" |
155 |
+ ${RDEPEND} |
156 |
+ app-text/docbook-xml-dtd:4.2" |
157 |
+ |
158 |
+WAF_BINARY="${S}/buildtools/bin/waf" |
159 |
+ |
160 |
+src_prepare() { |
161 |
+ epatch "${FILESDIR}"/${PN}-remove-check-bsd-strtoll.patch |
162 |
+} |
163 |
+ |
164 |
+src_configure() { |
165 |
+ local extra_opts="" |
166 |
+ use python || extra_opts+=" --disable-python" |
167 |
+ waf-utils_src_configure \ |
168 |
+ ${extra_opts} |
169 |
+} |
170 |
+ |
171 |
+src_test() { |
172 |
+ # the default src_test runs 'make test' and 'make check', letting |
173 |
+ # the tests fail occasionally (reason: unknown) |
174 |
+ emake check |
175 |
+} |