1 |
grknight 14/06/25 23:08:37 |
2 |
|
3 |
Added: mysql-super-smack-1.3-automake-1.13.patch |
4 |
Log: |
5 |
Revision bump to fix autotools and use EAPI5. |
6 |
Cleanup old |
7 |
|
8 |
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 67C78E1D) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 dev-db/mysql-super-smack/files/mysql-super-smack-1.3-automake-1.13.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql-super-smack/files/mysql-super-smack-1.3-automake-1.13.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql-super-smack/files/mysql-super-smack-1.3-automake-1.13.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: mysql-super-smack-1.3-automake-1.13.patch |
17 |
=================================================================== |
18 |
diff -aurwN a/configure.ac b/configure.ac |
19 |
--- a/configure.ac 2014-06-20 14:43:52.744753334 -0400 |
20 |
+++ b/configure.ac 2014-06-20 14:59:51.263609319 -0400 |
21 |
@@ -16,9 +16,9 @@ |
22 |
|
23 |
# Process this file with autoconf to produce a configure script. |
24 |
|
25 |
-AC_INIT() |
26 |
+AC_INIT([super-smack], [1.1]) |
27 |
AM_CONFIG_HEADER(config.h) |
28 |
-AM_INIT_AUTOMAKE(super-smack, 1.1) |
29 |
+AM_INIT_AUTOMAKE |
30 |
AC_DEFINE_UNQUOTED(VERSION, "$VERSION") |
31 |
|
32 |
# Checks for programs. |
33 |
@@ -31,6 +31,14 @@ |
34 |
AM_PROG_LEX |
35 |
AC_PROG_YACC |
36 |
|
37 |
+AH_TEMPLATE([HAVE_CRYPT], [Define if we have a crypt()]) |
38 |
+AH_TEMPLATE([HAVE_MYSQL], [MySQL Support]) |
39 |
+AH_TEMPLATE([HAVE_ORACLE], [PostgreSQL Support]) |
40 |
+AH_TEMPLATE([HAVE_PGSQL], [Oracle Support]) |
41 |
+AH_TEMPLATE([SMACK_DATADIR], [Sample .smack data files]) |
42 |
+ |
43 |
+AC_CONFIG_MACRO_DIRS([m4]) |
44 |
+ |
45 |
# get super-smack datadir |
46 |
AC_ARG_WITH(datadir, |
47 |
[ --with-datadir=DIR Specify default smack datadir], |
48 |
diff -aurwN a/m4/crypt.m4 b/m4/crypt.m4 |
49 |
--- a/m4/crypt.m4 1969-12-31 19:00:00.000000000 -0500 |
50 |
+++ b/m4/crypt.m4 2014-06-20 15:06:42.289976907 -0400 |
51 |
@@ -0,0 +1,5 @@ |
52 |
+AC_DEFUN([AC_FUNC_CRYPT], [ |
53 |
+ AC_CHECK_LIB(crypt, crypt) |
54 |
+ AC_CHECK_FUNC(crypt, AC_DEFINE(HAVE_CRYPT)) |
55 |
+]) |
56 |
+ |
57 |
diff -aruwN a/m4/lex.m4 b/m4/lex.m4 |
58 |
--- a/m4/lex.m4 1969-12-31 19:00:00.000000000 -0500 |
59 |
+++ b/m4/lex.m4 2014-06-20 16:51:23.548854098 -0400 |
60 |
@@ -0,0 +1,6 @@ |
61 |
+AC_DEFUN([AM_PROG_LEX], |
62 |
+[missing_dir=ifelse([$1],,`cd $ac_aux_dir && pwd`,$1) |
63 |
+AC_CHECK_PROGS(LEX, flex lex, "$missing_dir/missing flex") |
64 |
+AC_PROG_LEX |
65 |
+AC_DECL_YYTEXT]) |
66 |
+ |
67 |
diff -aurwN a/m4/libz.m4 b/m4/libz.m4 |
68 |
--- a/m4/libz.m4 1969-12-31 19:00:00.000000000 -0500 |
69 |
+++ b/m4/libz.m4 2014-06-20 15:06:24.260569878 -0400 |
70 |
@@ -0,0 +1,4 @@ |
71 |
+AC_DEFUN([AC_LIB_Z], [ |
72 |
+ AC_CHECK_LIB(z, compress) |
73 |
+]) |
74 |
+ |
75 |
diff -aurwN a/m4/mysql.m4 b/m4/mysql.m4 |
76 |
--- a/m4/mysql.m4 1969-12-31 19:00:00.000000000 -0500 |
77 |
+++ b/m4/mysql.m4 2014-06-20 15:10:48.291892456 -0400 |
78 |
@@ -0,0 +1,76 @@ |
79 |
+#serial 1 |
80 |
+AC_DEFUN([AC_LIB_MYSQL], [ |
81 |
+ AC_ARG_WITH(mysql-lib, |
82 |
+ [ --with-mysql-lib=DIR Look for MySQL client library in DIR], |
83 |
+ mysql_lib=$withval, mysql_lib="") |
84 |
+ |
85 |
+ if test "x$want_mysql" = "xyes" |
86 |
+ then |
87 |
+ AC_MSG_CHECKING([for libmysqlclient]) |
88 |
+ AC_MSG_RESULT() |
89 |
+ |
90 |
+ mysql_ok=no |
91 |
+ |
92 |
+ SAVE_LIBS=$LIBS |
93 |
+ |
94 |
+ mysql_lib="$mysql_lib /usr/lib /usr/lib/mysql \ |
95 |
+ /usr/local/lib /usr/local/lib/mysql \ |
96 |
+ /usr/local/mysql/lib" |
97 |
+ |
98 |
+ for dir in $mysql_lib; do |
99 |
+ if test "x$mysql_found" != "xyes" |
100 |
+ then |
101 |
+ if test -f "$dir/libmysqlclient.so" ; |
102 |
+ then |
103 |
+ LIBS="-L$dir $SAVE_LIBS $LIBZ_LIB" |
104 |
+ MYSQL_LIB="-L$dir -lmysqlclient $LIBZ_LIB" |
105 |
+ AC_SUBST(MYSQL_LIB) |
106 |
+ AC_CHECK_LIB(mysqlclient, mysql_real_connect, |
107 |
+ mysql_ok=yes, mysql_ok=no) |
108 |
+ fi |
109 |
+ fi |
110 |
+ done |
111 |
+ |
112 |
+ if test "x$mysql_ok" != "xyes" |
113 |
+ then |
114 |
+ AC_MSG_ERROR([Could not find libmysqlclient in '$mysql_lib']) |
115 |
+ fi |
116 |
+ fi |
117 |
+]) |
118 |
+ |
119 |
+AC_DEFUN([AC_HEADER_MYSQL], [ |
120 |
+ AC_ARG_WITH(mysql-include, |
121 |
+ [ --with-mysql-include=DIR |
122 |
+ Look for MySQL include files in DIR], |
123 |
+ mysql_include=$withval, mysql_include="") |
124 |
+ |
125 |
+ if test "x$want_mysql" = "xyes" |
126 |
+ then |
127 |
+ AC_MSG_CHECKING([for mysql.h]) |
128 |
+ AC_MSG_RESULT() |
129 |
+ |
130 |
+ mysql_found=no |
131 |
+ |
132 |
+ mysql_include="$mysql_include /usr/include /usr/include/mysql \ |
133 |
+ /usr/local/include /usr/local/include/mysql \ |
134 |
+ /usr/local/mysql/include" |
135 |
+ |
136 |
+ for dir in $mysql_include; do |
137 |
+ if test "x$mysql_found" != "xyes" |
138 |
+ then |
139 |
+ if test -f "$dir/mysql.h" |
140 |
+ then |
141 |
+ MYSQL_INCLUDE="-I$dir" |
142 |
+ AC_SUBST(MYSQL_INCLUDE) |
143 |
+ mysql_found=yes |
144 |
+ fi |
145 |
+ fi |
146 |
+ done |
147 |
+ |
148 |
+ if test "x$mysql_found" != "xyes" |
149 |
+ then |
150 |
+ AC_MSG_ERROR([Could not find mysql.h in '$mysql_include']) |
151 |
+ fi |
152 |
+ fi |
153 |
+]) |
154 |
+ |
155 |
diff -aurwN a/m4/oracle.m4 b/m4/oracle.m4 |
156 |
--- a/m4/oracle.m4 1969-12-31 19:00:00.000000000 -0500 |
157 |
+++ b/m4/oracle.m4 2014-06-20 15:05:05.543169365 -0400 |
158 |
@@ -0,0 +1,10 @@ |
159 |
+AC_DEFUN([AC_LIB_ORACLE], [ |
160 |
+ ORACLE_LIB="" |
161 |
+ AC_SUBST(ORACLE_LIB) |
162 |
+]) |
163 |
+ |
164 |
+AC_DEFUN([AC_HEADER_ORACLE], [ |
165 |
+ ORACLE_INCLUDE="" |
166 |
+ AC_SUBST(ORACLE_INCLUDE) |
167 |
+]) |
168 |
+ |
169 |
diff -aurwN a/m4/postgresql.m4 b/m4/postgresql.m4 |
170 |
--- a/m4/postgresql.m4 1969-12-31 19:00:00.000000000 -0500 |
171 |
+++ b/m4/postgresql.m4 2014-06-20 15:06:09.311064874 -0400 |
172 |
@@ -0,0 +1,75 @@ |
173 |
+AC_DEFUN([AC_LIB_PGSQL], [ |
174 |
+ AC_ARG_WITH(pgsql-lib, |
175 |
+ [ --with-pgsql-lib=DIR Look for PostgreSQL client library in DIR], |
176 |
+ pgsql_lib=$withval, pgsql_lib="") |
177 |
+ |
178 |
+ if test "x$want_pgsql" = "xyes" |
179 |
+ then |
180 |
+ AC_MSG_CHECKING([for libpq]) |
181 |
+ AC_MSG_RESULT() |
182 |
+ |
183 |
+ pgsql_ok=no |
184 |
+ |
185 |
+ SAVE_LIBS=$LIBS |
186 |
+ |
187 |
+ pgsql_lib="$pgsql_lib /usr/lib /usr/lib/pgsql \ |
188 |
+ /usr/local/lib /usr/local/lib/pgsql \ |
189 |
+ /usr/local/pgsql/lib" |
190 |
+ |
191 |
+ for dir in $pgsql_lib; do |
192 |
+ if test "x$pgsql_found" != "xyes" |
193 |
+ then |
194 |
+ if test -f "$dir/libpq.so" |
195 |
+ then |
196 |
+ LIBS="-L$dir $SAVE_LIBS" |
197 |
+ PGSQL_LIB="-L$dir -lpq" |
198 |
+ AC_SUBST(PGSQL_LIB) |
199 |
+ AC_CHECK_LIB(pq, PQconnectdb, |
200 |
+ pgsql_ok=yes, pgsql_ok=no) |
201 |
+ fi |
202 |
+ fi |
203 |
+ done |
204 |
+ |
205 |
+ if test "x$pgsql_ok" != "xyes" |
206 |
+ then |
207 |
+ AC_MSG_ERROR([Could not find libpq in '$pgsql_lib']) |
208 |
+ fi |
209 |
+ fi |
210 |
+]) |
211 |
+ |
212 |
+AC_DEFUN([AC_HEADER_PGSQL], [ |
213 |
+ AC_ARG_WITH(pgsql-include, |
214 |
+ [ --with-pgsql-include=DIR |
215 |
+ Look for PostgreSQL include files in DIR], |
216 |
+ pgsql_include=$withval, pgsql_include="") |
217 |
+ |
218 |
+ if test "x$want_pgsql" = "xyes" |
219 |
+ then |
220 |
+ AC_MSG_CHECKING([for libpq-fe.h]) |
221 |
+ AC_MSG_RESULT() |
222 |
+ |
223 |
+ pgsql_found=no |
224 |
+ |
225 |
+ pgsql_include="$pgsql_include /usr/include /usr/include/pgsql \ |
226 |
+ /usr/local/include /usr/local/include/pgsql \ |
227 |
+ /usr/local/pgsql/include" |
228 |
+ |
229 |
+ for dir in $pgsql_include; do |
230 |
+ if test "x$pgsql_found" != "xyes" |
231 |
+ then |
232 |
+ if test -f "$dir/libpq-fe.h" |
233 |
+ then |
234 |
+ PGSQL_INCLUDE="-I$dir" |
235 |
+ AC_SUBST(PGSQL_INCLUDE) |
236 |
+ pgsql_found=yes |
237 |
+ fi |
238 |
+ fi |
239 |
+ done |
240 |
+ |
241 |
+ if test "x$pgsql_found" != "xyes" |
242 |
+ then |
243 |
+ AC_MSG_ERROR([Could not find libpq-fe.h in '$pgsql_include']) |
244 |
+ fi |
245 |
+ fi |
246 |
+]) |
247 |
+ |
248 |
diff -aurwN a/src/Makefile.am b/src/Makefile.am |
249 |
--- a/src/Makefile.am 2014-06-20 14:37:35.266956252 -0400 |
250 |
+++ b/src/Makefile.am 2014-06-20 15:12:40.278227315 -0400 |
251 |
@@ -16,7 +16,7 @@ |
252 |
|
253 |
# Process this file with automake to create Makefile.in |
254 |
|
255 |
-INCLUDES = @MYSQL_INCLUDE@ @PGSQL_INCLUDE@ @ORACLE_INCLUDE@ |
256 |
+AM_CPPFLAGS = @MYSQL_INCLUDE@ @PGSQL_INCLUDE@ @ORACLE_INCLUDE@ |
257 |
|
258 |
noinst_PROGRAMS=test-dictionary test-client test_tcp_client |
259 |
bin_PROGRAMS=super-smack super-smack-gen-data |
260 |
diff -aurN a/src/super-smack-lex.ll b/src/super-smack-lex.ll |
261 |
--- a/src/super-smack-lex.ll 2003-05-14 21:08:34.000000000 -0400 |
262 |
+++ b/src/super-smack-lex.ll 2014-06-24 08:56:05.970614176 -0400 |
263 |
@@ -6,7 +6,7 @@ |
264 |
#include <ctype.h> |
265 |
#include "query.h" |
266 |
#include "parse.h" |
267 |
- #include "super-smack-yacc.h" |
268 |
+ #include "super-smack-yacc.hh" |
269 |
|
270 |
static string q_str = ""; |
271 |
%} |