1 |
eva 11/01/30 22:47:22 |
2 |
|
3 |
Added: gnucash-2.4.0-disable-dynload-test.patch |
4 |
gnucash-2.4.0-fix-tests-linking.patch |
5 |
Log: |
6 |
Fix multiple python slots support, fix test failures, disable python module test due to missing files, workaround guile configuration problem, bug #202205. Pin dependencies to appropriate slots. Add missing gnome-keyring dependencies, sort dependencies. Re-enable parallel build since it does not fail for me to get a bit more testing. Closes #346919. |
7 |
|
8 |
(Portage version: 2.2.0_alpha19/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 app-office/gnucash/files/gnucash-2.4.0-disable-dynload-test.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/gnucash/files/gnucash-2.4.0-disable-dynload-test.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/gnucash/files/gnucash-2.4.0-disable-dynload-test.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: gnucash-2.4.0-disable-dynload-test.patch |
17 |
=================================================================== |
18 |
Disable dynload test. It is known to work but some libtool magic stops it from |
19 |
working on a system with an already installed gnucash. |
20 |
|
21 |
--- a/src/gnc-module/test/Makefile.am 2010-12-22 03:01:12.000000000 +0100 |
22 |
+++ b/src/gnc-module/test/Makefile.am 2011-01-25 20:15:21.000000000 +0100 |
23 |
@@ -18,7 +20,6 @@ |
24 |
test-modsysver \ |
25 |
test-incompatdep \ |
26 |
test-agedver \ |
27 |
- test-dynload \ |
28 |
test-scm-dynload \ |
29 |
test-scm-init |
30 |
|
31 |
|
32 |
|
33 |
|
34 |
1.1 app-office/gnucash/files/gnucash-2.4.0-fix-tests-linking.patch |
35 |
|
36 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/gnucash/files/gnucash-2.4.0-fix-tests-linking.patch?rev=1.1&view=markup |
37 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/gnucash/files/gnucash-2.4.0-fix-tests-linking.patch?rev=1.1&content-type=text/plain |
38 |
|
39 |
Index: gnucash-2.4.0-fix-tests-linking.patch |
40 |
=================================================================== |
41 |
From 192b8c0b93e2755518cd04ef1197a774dc8083bd Mon Sep 17 00:00:00 2001 |
42 |
From: Gilles Dartiguelongue <eva@g.o> |
43 |
Date: Wed, 26 Jan 2011 21:40:14 +0100 |
44 |
Subject: [PATCH] Fix tests link failures |
45 |
|
46 |
It looks like internal copy of libqof needs to be explicitely mentionned |
47 |
in a couple of places for tests to find the proper library and not the |
48 |
one already installed on the system which may or may not have the |
49 |
required symbols. |
50 |
--- |
51 |
src/app-utils/test/Makefile.am | 2 +- |
52 |
src/backend/xml/test/Makefile.am | 5 +++-- |
53 |
src/bin/Makefile.am | 10 +++++----- |
54 |
src/business/business-core/test/Makefile.am | 2 +- |
55 |
src/core-utils/test/Makefile.am | 2 +- |
56 |
src/engine/test/Makefile.am | 6 +++--- |
57 |
src/import-export/ofx/test/Makefile.am | 1 + |
58 |
src/import-export/qif-import/test/Makefile.am | 2 +- |
59 |
src/import-export/test/Makefile.am | 3 ++- |
60 |
src/register/ledger-core/test/Makefile.am | 1 + |
61 |
src/register/register-core/test/Makefile.am | 3 ++- |
62 |
src/register/register-gnome/test/Makefile.am | 1 + |
63 |
src/report/report-gnome/test/Makefile.am | 1 + |
64 |
13 files changed, 23 insertions(+), 16 deletions(-) |
65 |
|
66 |
diff --git a/src/app-utils/test/Makefile.am b/src/app-utils/test/Makefile.am |
67 |
index 52baf4a..5c0fd96 100644 |
68 |
--- a/src/app-utils/test/Makefile.am |
69 |
+++ b/src/app-utils/test/Makefile.am |
70 |
@@ -33,13 +33,13 @@ TESTS_ENVIRONMENT = \ |
71 |
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS}) |
72 |
|
73 |
LDADD = \ |
74 |
+ ${top_builddir}/src/libqof/qof/libgnc-qof.la \ |
75 |
+ ${top_builddir}/src/core-utils/libgnc-core-utils.la \ |
76 |
${top_builddir}/src/engine/libgncmod-engine.la \ |
77 |
${top_builddir}/src/gnc-module/libgnc-module.la \ |
78 |
${top_builddir}/src/app-utils/libgncmod-app-utils.la \ |
79 |
${top_builddir}/src/test-core/libtest-core.la \ |
80 |
${top_builddir}/src/engine/test-core/libgncmod-test-engine.la \ |
81 |
- ${top_builddir}/src/core-utils/libgnc-core-utils.la \ |
82 |
- ${top_builddir}/src/libqof/qof/libgnc-qof.la \ |
83 |
${GUILE_LIBS} \ |
84 |
${GCONF_LIBS} |
85 |
|
86 |
diff --git a/src/backend/xml/test/Makefile.am b/src/backend/xml/test/Makefile.am |
87 |
index 85c5f75..8989542 100644 |
88 |
--- a/src/backend/xml/test/Makefile.am |
89 |
+++ b/src/backend/xml/test/Makefile.am |
90 |
@@ -218,14 +218,15 @@ check_PROGRAMS = \ |
91 |
|
92 |
noinst_HEADERS = test-file-stuff.h |
93 |
|
94 |
-LDADD = ${top_builddir}/src/test-core/libtest-core.la \ |
95 |
+LDADD = \ |
96 |
+ ${top_builddir}/src/libqof/qof/libgnc-qof.la \ |
97 |
+ ${top_builddir}/src/test-core/libtest-core.la \ |
98 |
${top_builddir}/src/gnc-module/libgnc-module.la \ |
99 |
${top_builddir}/src/engine/libgncmod-engine.la \ |
100 |
${top_builddir}/src/engine/test-core/libgncmod-test-engine.la \ |
101 |
${top_builddir}/src/core-utils/libgnc-core-utils.la \ |
102 |
./libgnc-test-file-stuff.la \ |
103 |
${LIBXML2_LIBS} \ |
104 |
- ${top_builddir}/src/libqof/qof/libgnc-qof.la \ |
105 |
${top_builddir}/lib/libc/libc-missing.la |
106 |
|
107 |
AM_CPPFLAGS = \ |
108 |
diff --git a/src/bin/Makefile.am b/src/bin/Makefile.am |
109 |
index f740b39..1e70d98 100644 |
110 |
--- a/src/bin/Makefile.am |
111 |
+++ b/src/bin/Makefile.am |
112 |
@@ -61,16 +61,16 @@ bin_PROGRAMS = ${BIN_NAME} |
113 |
gnucash_SOURCES = gnucash-bin.c ${GNUCASH_RESOURCE_FILE} |
114 |
gnucash_LDADD = \ |
115 |
${top_builddir}/src/libqof/qof/libgnc-qof.la \ |
116 |
+ ${top_builddir}/src/core-utils/libgnc-core-utils.la \ |
117 |
- ${GUILE_LIBS} \ |
118 |
- ${GLIB_LIBS} \ |
119 |
- ${GNOME_LIBS} \ |
120 |
- ${GTK_LIBS} \ |
121 |
${top_builddir}/src/engine/libgncmod-engine.la \ |
122 |
${top_builddir}/src/gnome/libgnc-gnome.la \ |
123 |
${top_builddir}/src/gnome-utils/libgncmod-gnome-utils.la \ |
124 |
${top_builddir}/src/app-utils/libgncmod-app-utils.la \ |
125 |
- ${top_builddir}/src/core-utils/libgnc-core-utils.la \ |
126 |
- ${top_builddir}/src/gnc-module/libgnc-module.la |
127 |
+ ${top_builddir}/src/gnc-module/libgnc-module.la \ |
128 |
+ ${GUILE_LIBS} \ |
129 |
+ ${GLIB_LIBS} \ |
130 |
+ ${GNOME_LIBS} \ |
131 |
+ ${GTK_LIBS} |
132 |
|
133 |
GNUCASH_BIN_INSTALL_NAME=`echo ${BIN_NAME} | sed -e '$(transform)'` |
134 |
|
135 |
diff --git a/src/business/business-core/test/Makefile.am b/src/business/business-core/test/Makefile.am |
136 |
index 9495d13..d3fec0d 100644 |
137 |
--- a/src/business/business-core/test/Makefile.am |
138 |
+++ b/src/business/business-core/test/Makefile.am |
139 |
@@ -11,11 +11,11 @@ AM_CPPFLAGS = \ |
140 |
${GLIB_CFLAGS} |
141 |
|
142 |
LDADD = \ |
143 |
+ ${top_builddir}/src/libqof/qof/libgnc-qof.la \ |
144 |
${top_builddir}/src/gnc-module/libgnc-module.la \ |
145 |
${top_builddir}/src/test-core/libtest-core.la \ |
146 |
${top_builddir}/src/engine/libgncmod-engine.la \ |
147 |
../libgncmod-business-core.la \ |
148 |
- ${top_builddir}/src/libqof/qof/libgnc-qof.la \ |
149 |
${GLIB_LIBS} |
150 |
|
151 |
TESTS = \ |
152 |
diff --git a/src/core-utils/test/Makefile.am b/src/core-utils/test/Makefile.am |
153 |
index 7b3c131..4bd2759 100644 |
154 |
--- a/src/core-utils/test/Makefile.am |
155 |
+++ b/src/core-utils/test/Makefile.am |
156 |
@@ -9,9 +9,9 @@ AM_CPPFLAGS = \ |
157 |
${GLIB_CFLAGS} |
158 |
|
159 |
LDADD = \ |
160 |
+ ${top_builddir}/src/libqof/qof/libgnc-qof.la \ |
161 |
../libgnc-core-utils.la \ |
162 |
${top_builddir}/src/test-core/libtest-core.la \ |
163 |
- ${top_builddir}/src/libqof/qof/libgnc-qof.la \ |
164 |
${GLIB_LIBS} |
165 |
|
166 |
# these tests are ordered kind more or less in the order |
167 |
diff --git a/src/engine/test/Makefile.am b/src/engine/test/Makefile.am |
168 |
index 0682759..0c9ab68 100644 |
169 |
--- a/src/engine/test/Makefile.am |
170 |
+++ b/src/engine/test/Makefile.am |
171 |
@@ -12,12 +12,12 @@ AM_CPPFLAGS = \ |
172 |
${GLIB_CFLAGS} |
173 |
|
174 |
LDADD = \ |
175 |
+ ${top_builddir}/src/libqof/qof/libgnc-qof.la \ |
176 |
${top_builddir}/src/gnc-module/libgnc-module.la \ |
177 |
${top_builddir}/src/test-core/libtest-core.la \ |
178 |
../libgncmod-engine.la \ |
179 |
../test-core/libgncmod-test-engine.la \ |
180 |
${top_builddir}/src/core-utils/libgnc-core-utils.la \ |
181 |
- ${top_builddir}/src/libqof/qof/libgnc-qof.la \ |
182 |
${GLIB_LIBS} |
183 |
|
184 |
# these tests are ordered kind more or less in the order |
185 |
@@ -84,8 +84,8 @@ check_PROGRAMS = \ |
186 |
|
187 |
test_link_SOURCES = test-link.c |
188 |
test_link_LDADD = ../libgncmod-engine.la \ |
189 |
- ${top_builddir}/src/core-utils/libgnc-core-utils.la \ |
190 |
- ${top_builddir}/src/libqof/qof/libgnc-qof.la |
191 |
+ ${top_builddir}/src/libqof/qof/libgnc-qof.la \ |
192 |
+ ${top_builddir}/src/core-utils/libgnc-core-utils.la |
193 |
|
194 |
EXTRA_DIST = \ |
195 |
test-create-account \ |
196 |
diff --git a/src/import-export/ofx/test/Makefile.am b/src/import-export/ofx/test/Makefile.am |
197 |
index 0283ed7..81d7f4b 100644 |
198 |
--- a/src/import-export/ofx/test/Makefile.am |
199 |
+++ b/src/import-export/ofx/test/Makefile.am |
200 |
@@ -5,5 +5,6 @@ check_PROGRAMS=test-link |
201 |
|
202 |
test_link_SOURCES=test-link.c |
203 |
test_link_LDADD=\ |
204 |
+ $(top_builddir)/src/libqof/qof/libgnc-qof.la \ |
205 |
${top_builddir}/src/gnome-utils/libgncmod-gnome-utils.la \ |
206 |
../libgncmod-ofx.la |
207 |
diff --git a/src/import-export/qif-import/test/Makefile.am b/src/import-export/qif-import/test/Makefile.am |
208 |
index 118354c..eabcc86 100644 |
209 |
--- a/src/import-export/qif-import/test/Makefile.am |
210 |
+++ b/src/import-export/qif-import/test/Makefile.am |
211 |
@@ -6,11 +6,11 @@ test_link_SOURCES = \ |
212 |
test-link.c |
213 |
|
214 |
test_link_LDADD=../libgncmod-qif-import.la \ |
215 |
+ ${top_builddir}/src/libqof/qof/libgnc-qof.la \ |
216 |
${top_builddir}/src/core-utils/libgnc-core-utils.la \ |
217 |
${top_builddir}/src/gnome/libgnc-gnome.la \ |
218 |
${top_builddir}/src/engine/libgncmod-engine.la \ |
219 |
${top_builddir}/src/gnome-utils/libgncmod-gnome-utils.la \ |
220 |
${top_builddir}/src/app-utils/libgncmod-app-utils.la \ |
221 |
- ${top_builddir}/src/libqof/qof/libgnc-qof.la \ |
222 |
${LIBXML2_LIBS} |
223 |
|
224 |
diff --git a/src/import-export/test/Makefile.am b/src/import-export/test/Makefile.am |
225 |
index f9be395..9ae60ff 100644 |
226 |
--- a/src/import-export/test/Makefile.am |
227 |
+++ b/src/import-export/test/Makefile.am |
228 |
@@ -10,12 +10,13 @@ AM_CPPFLAGS = \ |
229 |
${GLIB_CFLAGS} |
230 |
|
231 |
LDADD = \ |
232 |
+ ${top_builddir}/src/libqof/qof/libgnc-qof.la \ |
233 |
+ ${top_builddir}/src/core-utils/libgnc-core-utils.la \ |
234 |
${top_builddir}/src/gnc-module/libgnc-module.la \ |
235 |
${top_builddir}/src/test-core/libtest-core.la \ |
236 |
../libgncmod-generic-import.la \ |
237 |
${top_builddir}/src/gnome-utils/libgncmod-gnome-utils.la \ |
238 |
${top_builddir}/src/engine/libgncmod-engine.la \ |
239 |
- ${top_builddir}/src/libqof/qof/libgnc-qof.la \ |
240 |
${GLIB_LIBS} |
241 |
|
242 |
TESTS = \ |
243 |
diff --git a/src/register/ledger-core/test/Makefile.am b/src/register/ledger-core/test/Makefile.am |
244 |
index f6461cf..ca78cf5 100644 |
245 |
--- a/src/register/ledger-core/test/Makefile.am |
246 |
+++ b/src/register/ledger-core/test/Makefile.am |
247 |
@@ -4,6 +4,7 @@ check_PROGRAMS = test-link-module |
248 |
|
249 |
test_link_module_SOURCES=test-link-module.c |
250 |
test_link_module_LDADD=\ |
251 |
+ $(top_builddir)/src/libqof/qof/libgnc-qof.la \ |
252 |
${top_builddir}/src/gnome-utils/libgncmod-gnome-utils.la \ |
253 |
../libgncmod-ledger-core.la |
254 |
|
255 |
diff --git a/src/register/register-core/test/Makefile.am b/src/register/register-core/test/Makefile.am |
256 |
index 20a240d..e4c1126 100644 |
257 |
--- a/src/register/register-core/test/Makefile.am |
258 |
+++ b/src/register/register-core/test/Makefile.am |
259 |
@@ -12,7 +12,8 @@ check_PROGRAMS = \ |
260 |
test-link-module |
261 |
|
262 |
test_link_module_SOURCES=test-link-module.c |
263 |
-test_link_module_LDADD= \ |
264 |
+test_link_module_LDADD=\ |
265 |
+ $(top_builddir)/src/libqof/qof/libgnc-qof.la \ |
266 |
${top_builddir}/src/engine/libgncmod-engine.la \ |
267 |
${top_builddir}/src/app-utils/libgncmod-app-utils.la \ |
268 |
${top_builddir}/src/gnome-utils/libgncmod-gnome-utils.la \ |
269 |
diff --git a/src/register/register-gnome/test/Makefile.am b/src/register/register-gnome/test/Makefile.am |
270 |
index 83409d6..ddf3347 100644 |
271 |
--- a/src/register/register-gnome/test/Makefile.am |
272 |
+++ b/src/register/register-gnome/test/Makefile.am |
273 |
@@ -13,6 +13,7 @@ check_PROGRAMS = \ |
274 |
|
275 |
test_link_module_SOURCES = test-link-module.c |
276 |
test_link_module_LDADD = \ |
277 |
+ $(top_builddir)/src/libqof/qof/libgnc-qof.la \ |
278 |
${top_builddir}/src/engine/libgncmod-engine.la \ |
279 |
${top_builddir}/src/app-utils/libgncmod-app-utils.la \ |
280 |
${top_builddir}/src/gnome-utils/libgncmod-gnome-utils.la \ |
281 |
diff --git a/src/report/report-gnome/test/Makefile.am b/src/report/report-gnome/test/Makefile.am |
282 |
index 5884ccd..f31c4cf 100644 |
283 |
--- a/src/report/report-gnome/test/Makefile.am |
284 |
+++ b/src/report/report-gnome/test/Makefile.am |
285 |
@@ -20,6 +20,7 @@ TESTS_ENVIRONMENT = \ |
286 |
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS}) |
287 |
|
288 |
LDADD = \ |
289 |
+ $(top_builddir)/src/libqof/qof/libgnc-qof.la \ |
290 |
${top_builddir}/src/report/report-gnome/libgncmod-report-gnome.la \ |
291 |
${top_builddir}/src/gnome-utils/libgncmod-gnome-utils.la |
292 |
|
293 |
-- |
294 |
1.7.4.rc2 |