Gentoo Archives: gentoo-commits

From: "Gilles Dartiguelongue (eva)" <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in gnome-extra/libgda/files: libgda-4.2.0-missing-include-in-keyword_hash-generator.patch libgda-4.2.0-fix-build-order.patch libgda-4.2.0-fix-undefined-mdb.patch libgda-4.2.0-json-libcrypto-automagic.patch
Date: Wed, 29 Sep 2010 22:13:00
Message-Id: 20100929221254.15CFC20051@flycatcher.gentoo.org
1 eva 10/09/29 22:12:54
2
3 Added:
4 libgda-4.2.0-missing-include-in-keyword_hash-generator.patch
5 libgda-4.2.0-fix-build-order.patch
6 libgda-4.2.0-fix-undefined-mdb.patch
7 libgda-4.2.0-json-libcrypto-automagic.patch
8 Log:
9 Version bump. Translation updates. Cryptographic support.
10
11 (Portage version: 2.2_rc88/cvs/Linux x86_64)
12
13 Revision Changes Path
14 1.1 gnome-extra/libgda/files/libgda-4.2.0-missing-include-in-keyword_hash-generator.patch
15
16 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/libgda/files/libgda-4.2.0-missing-include-in-keyword_hash-generator.patch?rev=1.1&view=markup
17 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/libgda/files/libgda-4.2.0-missing-include-in-keyword_hash-generator.patch?rev=1.1&content-type=text/plain
18
19 Index: libgda-4.2.0-missing-include-in-keyword_hash-generator.patch
20 ===================================================================
21 From 9f219a98731085ef9588622ecdc9d7ba93de92bb Mon Sep 17 00:00:00 2001
22 From: Gilles Dartiguelongue <eva@g.o>
23 Date: Wed, 29 Sep 2010 23:53:54 +0200
24 Subject: [PATCH] Fix missing include in keyword_hash generator
25
26 ---
27 libgda/sqlite/mkkeywordhash.c | 4 ++++
28 1 files changed, 4 insertions(+), 0 deletions(-)
29
30 diff --git a/libgda/sqlite/mkkeywordhash.c b/libgda/sqlite/mkkeywordhash.c
31 index dc6ce89..28f4f83 100644
32 --- a/libgda/sqlite/mkkeywordhash.c
33 +++ b/libgda/sqlite/mkkeywordhash.c
34 @@ -370,6 +370,10 @@ main (int argc, char **argv)
35 }
36
37 /* Begin generating code */
38 + printf("#include <stdio.h>\n");
39 + printf("#include <string.h>\n");
40 + printf("#include <glib.h>\n");
41 +
42 printf("/* Hash score: %d */\n", bestCount);
43 printf("static int %skeywordCode(const char *z, int n){\n", prefix ? prefix : "");
44 printf(" /* zText[] encodes %d bytes of keywords in %d bytes */\n",
45 --
46 1.7.3
47
48
49
50
51 1.1 gnome-extra/libgda/files/libgda-4.2.0-fix-build-order.patch
52
53 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/libgda/files/libgda-4.2.0-fix-build-order.patch?rev=1.1&view=markup
54 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/libgda/files/libgda-4.2.0-fix-build-order.patch?rev=1.1&content-type=text/plain
55
56 Index: libgda-4.2.0-fix-build-order.patch
57 ===================================================================
58 From f39858f84155d0346d31a2607997257a54e246ff Mon Sep 17 00:00:00 2001
59 From: Gilles Dartiguelongue <eva@g.o>
60 Date: Wed, 29 Sep 2010 23:45:46 +0200
61 Subject: [PATCH] fix build order for xml_embedded.h
62
63 ---
64 libgda/sqlite/Makefile.am | 9 +++++----
65 1 files changed, 5 insertions(+), 4 deletions(-)
66
67 diff --git a/libgda/sqlite/Makefile.am b/libgda/sqlite/Makefile.am
68 index 1d2df2c..ecce04b 100644
69 --- a/libgda/sqlite/Makefile.am
70 +++ b/libgda/sqlite/Makefile.am
71 @@ -58,9 +58,9 @@ sqlitesources = \
72 gda-sqlite.h \
73 keywords_hash.h \
74 gda-symbols-util.h \
75 - gda-symbols-util.c
76 -
77 -$(libgda_sqlite_la_OBJECTS): xml_embedded.h keywords_hash.c
78 + gda-symbols-util.c \
79 + xml_embedded.h \
80 + keywords_hash.c
81
82 libgda_sqlite_la_SOURCES = $(sqlitesources)
83 libgda_sqlite_la_CFLAGS = -DPNAME=\""SQLite"\" -DCLASS_PREFIX=\""GdaSqlite"\" -DSEARCH_LIB_PATH=\""$(SQLITE_PATH)"\"
84 @@ -85,4 +85,5 @@ gdainclude_HEADERS=$(sqliteheaders)
85
86 EXTRA_DIST = gen_emb_string.c mkkeywordhash.c keywords.list
87
88 -CLEANFILES = gen_emb_string$(EXEEXT_FOR_BUILD) xml_embedded.h mkkeywordhash$(EXEEXT_FOR_BUILD) keywords_hash.c
89 +CLEANFILES = gen_emb_string$(EXEEXT_FOR_BUILD) mkkeywordhash$(EXEEXT_FOR_BUILD) $(BUILT_SOURCES)
90 +BUILT_SOURCES = xml_embedded.h keywords_hash.c
91 --
92 1.7.3
93
94
95
96
97 1.1 gnome-extra/libgda/files/libgda-4.2.0-fix-undefined-mdb.patch
98
99 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/libgda/files/libgda-4.2.0-fix-undefined-mdb.patch?rev=1.1&view=markup
100 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/libgda/files/libgda-4.2.0-fix-undefined-mdb.patch?rev=1.1&content-type=text/plain
101
102 Index: libgda-4.2.0-fix-undefined-mdb.patch
103 ===================================================================
104 From f52ea81599e21a63b29933f7b7b5cc15754125dd Mon Sep 17 00:00:00 2001
105 From: Gilles Dartiguelongue <eva@g.o>
106 Date: Wed, 29 Sep 2010 23:28:58 +0200
107 Subject: [PATCH] Fix error: conditional "MDB" was never defined
108
109 ---
110 m4/mdbtools.m4 | 4 +---
111 1 files changed, 1 insertions(+), 3 deletions(-)
112
113 diff --git a/m4/mdbtools.m4 b/m4/mdbtools.m4
114 index 2421ef4..544634b 100644
115 --- a/m4/mdbtools.m4
116 +++ b/m4/mdbtools.m4
117 @@ -152,10 +152,7 @@ int main() {
118 if test "x$MDB_LIBS" = x
119 then
120 AC_MSG_NOTICE([MDB backend not used])
121 - AM_CONDITIONAL(MDB,[false])
122 else
123 - AC_DEFINE(HAVE_MDB,[1],[Have MDB])
124 - AM_CONDITIONAL(MDB,[true])
125 mdbtools_found=yes
126
127 save_CFLAGS="$CFLAGS"
128 @@ -199,6 +196,7 @@ int main() {
129 fi
130 fi
131
132 + AM_CONDITIONAL(MDB,[test "$mdbtools_found" = "yes"])
133 AC_SUBST(MDB_LIBS)
134 AC_SUBST(MDB_CFLAGS)
135 ])
136 --
137 1.7.3
138
139
140
141
142 1.1 gnome-extra/libgda/files/libgda-4.2.0-json-libcrypto-automagic.patch
143
144 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/libgda/files/libgda-4.2.0-json-libcrypto-automagic.patch?rev=1.1&view=markup
145 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/libgda/files/libgda-4.2.0-json-libcrypto-automagic.patch?rev=1.1&content-type=text/plain
146
147 Index: libgda-4.2.0-json-libcrypto-automagic.patch
148 ===================================================================
149 From 308a341ae545d991e0ad8f18e08050df393edbfa Mon Sep 17 00:00:00 2001
150 From: Gilles Dartiguelongue <eva@g.o>
151 Date: Wed, 29 Sep 2010 22:39:19 +0200
152 Subject: [PATCH] Fix json/libcrypto automagic
153
154 ---
155 configure.ac | 41 +++++++++++++++++++++++++++++------------
156 1 files changed, 29 insertions(+), 12 deletions(-)
157
158 diff --git a/configure.ac b/configure.ac
159 index df31138..5abaa31 100644
160 --- a/configure.ac
161 +++ b/configure.ac
162 @@ -403,13 +403,21 @@ dnl ******************************
163 dnl Checks for json-glib
164 dnl ******************************
165
166 +AC_ARG_ENABLE([json],
167 + AS_HELP_STRING([--disable-json], [Enable support for JSON]),
168 + ,
169 + [enable_json=yes])
170 +
171 JSON_GLIB_MODULES="json-glib-1.0"
172 -PKG_CHECK_MODULES(JSON_GLIB, $JSON_GLIB_MODULES, have_json=yes, have_json=no)
173 -AM_CONDITIONAL(HAVE_JSON_GLIB, test x"$have_json" = "xyes")
174 -if test x"$have_json" = "xyes"
175 -then
176 - JSON_GLIB_CFLAGS="$JSON_GLIB_CFLAGS -DHAVE_JSON_GLIB"
177 -fi
178 +PKG_CHECK_MODULES(JSON_GLIB, $JSON_GLIB_MODULES,
179 + AC_DEFINE(HAVE_JSON_GLIB, [], [Defined if JSON support is enabled])
180 + have_json=yes,
181 + if test "$enable_json" = "yes"; then
182 + AC_MSG_ERROR([JSON support requested but not found])
183 + fi
184 + have_json=no
185 +)
186 +AM_CONDITIONAL(HAVE_JSON_GLIB, [test "$have_json" = "yes"])
187 AC_SUBST(JSON_GLIB_CFLAGS)
188 AC_SUBST(JSON_GLIB_LIBS)
189
190 @@ -422,13 +430,21 @@ dnl ******************************
191 dnl Checks for libcrypto
192 dnl ******************************
193
194 +AC_ARG_ENABLE([crypto],
195 + AS_HELP_STRING([--disable-crypto], [Enable cryptographic support for SQL]),
196 + ,
197 + [enable_crypto=yes])
198 +
199 LIBCRYPTO_MODULES="libcrypto"
200 -PKG_CHECK_MODULES(LIBCRYPTO, $LIBCRYPTO_MODULES, have_crypto=yes, have_crypto=no)
201 -AM_CONDITIONAL(HAVE_LIBCRYPTO, test x"$have_crypto" = "xyes")
202 -if test x"$have_crypto" = "xyes"
203 -then
204 - LIBCRYPTO_CFLAGS="$LIBCRYPTO_CFLAGS -DHAVE_LIBCRYPTO"
205 -fi
206 +PKG_CHECK_MODULES(LIBCRYPTO, $LIBCRYPTO_MODULES,
207 + AC_DEFINE(HAVE_LIBCRYPTO, [], [Defined if cryptographic support is enabled])
208 + have_crypto=yes,
209 + if test "$enable_crypto" = "yes"; then
210 + AC_MSG_ERROR([libcrypto support requested but not found])
211 + fi
212 + have_crypto=no
213 +)
214 +AM_CONDITIONAL(HAVE_LIBCRYPTO, [test "$have_crypto" = "yes"])
215 AC_SUBST(LIBCRYPTO_CFLAGS)
216 AC_SUBST(LIBCRYPTO_LIBS)
217
218 @@ -1832,6 +1848,7 @@ dnl echo " mSQL = `if test x$msqldir != x; then echo yes; else echo no; fi`
219 dnl echo " ODBC = `if test x$odbcdir != x; then echo yes; else echo no; fi`"
220 echo " Oracle = `if test x$oracledir != x; then echo yes; else echo no; fi`"
221 echo " PostgreSQL = `if test x$postgresdir != x; then echo yes; else echo no; fi`"
222 +echo " JSON = `if test x$have_json != xyes; then echo no; else echo yes; fi`"
223 echo " SQLite = yes `if test x$have_sqlite = xyes; then echo '(from system installation)'; else echo '(embedded)'; fi`"
224 echo " SQLCipher = `if test x$have_crypto != xyes; then echo no; else echo yes; fi`"
225 dnl echo " Sybase = `if test x$sybasedir != x; then echo yes; else echo no; fi`"
226 --
227 1.7.3