Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/libreoffice/, app-office/libreoffice/files/
Date: Sun, 27 May 2018 22:59:38
Message-Id: 1527461905.8c1d5c1246d2cfd5321004c519addda8f819cdee.asturm@gentoo
1 commit: 8c1d5c1246d2cfd5321004c519addda8f819cdee
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 27 22:56:51 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun May 27 22:58:25 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c1d5c12
7
8 app-office/libreoffice: Tests are unfixable
9
10 Bug: https://bugs.gentoo.org/656676
11 Package-Manager: Portage-2.3.40, Repoman-2.3.9
12
13 .../libreoffice-6.0.3.2-disable-flaky-tests.patch | 216 +++++++++++++++++++++
14 .../libreoffice-6.0.3.2-testODFEncryptedGPG.patch | 89 ---------
15 app-office/libreoffice/libreoffice-6.0.3.2.ebuild | 2 +-
16 app-office/libreoffice/libreoffice-6.0.4.2.ebuild | 1 +
17 app-office/libreoffice/libreoffice-6.0.9999.ebuild | 1 +
18 5 files changed, 219 insertions(+), 90 deletions(-)
19
20 diff --git a/app-office/libreoffice/files/libreoffice-6.0.3.2-disable-flaky-tests.patch b/app-office/libreoffice/files/libreoffice-6.0.3.2-disable-flaky-tests.patch
21 new file mode 100644
22 index 00000000000..03421c5e12b
23 --- /dev/null
24 +++ b/app-office/libreoffice/files/libreoffice-6.0.3.2-disable-flaky-tests.patch
25 @@ -0,0 +1,216 @@
26 +Kindly borrowed from Debian.
27 +
28 +14:13 < mst__> _rene_, the toolkit unoapi tests are known to be flaky (in some
29 + system dependent way) e.g. on the Win@6 tinderbox it always
30 + crashes
31 +14:14 < mst__> _rene_, sc.ScAccessible* tests also fail on some systems some of
32 + the time
33 +
34 +diff --git a/toolkit/Module_toolkit.mk b/toolkit/Module_toolkit.mk
35 +index 25db0b6..14e507c 100644
36 +--- a/toolkit/Module_toolkit.mk
37 ++++ b/toolkit/Module_toolkit.mk
38 +@@ -26,11 +26,11 @@ $(eval $(call gb_Module_add_targets,toolkit,\
39 + ifneq ($(OOO_JUNIT_JAR),)
40 + $(eval $(call gb_Module_add_subsequentcheck_targets,toolkit,\
41 + JunitTest_toolkit_complex \
42 +- JunitTest_toolkit_unoapi_1 \
43 +- JunitTest_toolkit_unoapi_2 \
44 +- JunitTest_toolkit_unoapi_3 \
45 +- JunitTest_toolkit_unoapi_4 \
46 + ))
47 + endif
48 ++# JunitTest_toolkit_unoapi_1 \
49 ++# JunitTest_toolkit_unoapi_2 \
50 ++# JunitTest_toolkit_unoapi_3 \
51 ++# JunitTest_toolkit_unoapi_4 \
52 +
53 + # vim: set noet sw=4 ts=4:
54 +diff --git a/sc/qa/unoapi/sc_1.sce b/sc/qa/unoapi/sc_1.sce
55 +index fa1684c..cc8e1a5 100644
56 +--- a/sc/qa/unoapi/sc_1.sce
57 ++++ b/sc/qa/unoapi/sc_1.sce
58 +@@ -24,10 +24,3 @@
59 + # i84554 -o sc.AccessibleEditableTextPara_PreviewNote
60 + # i88241 -o sc.AccessibleEditableTextPara_HeaderFooter
61 + -o sc.AccessibleEditableTextPara_PreviewCell
62 +--o sc.ScAccessibleCell
63 +-# i91044 -o sc.ScAccessibleCsvCell
64 +-# i91044 -o sc.ScAccessibleCsvGrid
65 +-# i84641 -o sc.ScAccessibleCsvRuler
66 +-# i88330 -o sc.ScAccessibleDocument
67 +-# i91045 -o sc.ScAccessibleDocumentPagePreview
68 +--o sc.ScAccessiblePageHeader
69 +diff --git a/sc/qa/unoapi/sc_2.sce b/sc/qa/unoapi/sc_2.sce
70 +index dbfc3e1..d235c5d 100644
71 +--- a/sc/qa/unoapi/sc_2.sce
72 ++++ b/sc/qa/unoapi/sc_2.sce
73 +@@ -15,11 +15,6 @@
74 + # except in compliance with the License. You may obtain a copy of
75 + # the License at http://www.apache.org/licenses/LICENSE-2.0 .
76 + #
77 +-# fdo#FOO -o sc.ScAccessiblePageHeaderArea
78 +--o sc.ScAccessiblePreviewCell
79 +--o sc.ScAccessiblePreviewHeaderCell
80 +--o sc.ScAccessiblePreviewTable
81 +-# fdo#45337 -o sc.ScAccessibleSpreadsheet
82 + # FIXME_REMOVE_WHEN_RE_BASE_COMPLETE
83 + # -o sc.ScAnnotationObj
84 + # -o sc.ScAnnotationShapeObj
85 +
86 +12:18 < _rene_> chris_wot: ping?
87 +12:18 < chris_wot> heya
88 +12:18 < chris_wot> you pinged?
89 +12:19 < _rene_> chris_wot: any news on
90 + https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=815292?
91 +12:20 < _rene_> (of course the this-night-uploaded rc3 also failed)
92 +12:21 < chris_wot> ah, sorry - I've looked at an EMF regression, but I've not
93 + gotten any further on that one
94 +12:22 < chris_wot> I honestly think that for this one just disable the test for
95 + now
96 +12:22 < chris_wot> I'll ping the ML
97 +
98 +This seems fixed when opening the original doc.
99 +
100 +diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport7.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport7.cxx
101 +index 54eed4d..78019bd 100644
102 +--- a/sw/qa/extras/ooxmlexport/ooxmlexport7.cxx
103 ++++ b/sw/qa/extras/ooxmlexport/ooxmlexport7.cxx
104 +@@ -1128,30 +1128,30 @@ DECLARE_OOXMLEXPORT_TEST(testTDF93675, "no-numlevel-but-indented.odt")
105 +
106 +
107 +
108 +-DECLARE_OOXMLEXPORT_TEST(testFlipAndRotateCustomShape, "flip_and_rotate.odt")
109 +-{
110 +- xmlDocPtr pXmlDoc = parseExport("word/document.xml");
111 +- if (!pXmlDoc)
112 +- return;
113 +- // there should be no flipH and flipV attributes in this case
114 +- assertXPathNoAttribute(pXmlDoc, "//a:xfrm", "flipH");
115 +- assertXPathNoAttribute(pXmlDoc, "//a:xfrm", "flipV");
116 +- // check rotation angle
117 +- assertXPath(pXmlDoc, "//a:xfrm", "rot", "13500000");
118 +- // check the first few coordinates of the polygon
119 +-#ifndef MACOSX /* Retina-related rounding roundtrip error
120 +- * hard to smooth out due to the use of string compare
121 +- * instead of number */
122 +-#if !defined(_WIN32)
123 +- assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[1]/a:pt", "x", "2351");
124 +- assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[1]/a:pt", "y", "3171");
125 +- assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[2]/a:pt", "x", "1695");
126 +- assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[2]/a:pt", "y", "3171");
127 +- assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[3]/a:pt", "x", "1695");
128 +- assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[3]/a:pt", "y", "1701");
129 +-#endif
130 +-#endif
131 +-}
132 ++//DECLARE_OOXMLEXPORT_TEST(testFlipAndRotateCustomShape, "flip_and_rotate.odt")
133 ++//{
134 ++// xmlDocPtr pXmlDoc = parseExport("word/document.xml");
135 ++// if (!pXmlDoc)
136 ++// return;
137 ++// // there should be no flipH and flipV attributes in this case
138 ++// assertXPathNoAttribute(pXmlDoc, "//a:xfrm", "flipH");
139 ++// assertXPathNoAttribute(pXmlDoc, "//a:xfrm", "flipV");
140 ++// // check rotation angle
141 ++// assertXPath(pXmlDoc, "//a:xfrm", "rot", "13500000");
142 ++// // check the first few coordinates of the polygon
143 ++//#ifndef MACOSX /* Retina-related rounding roundtrip error
144 ++// * hard to smooth out due to the use of string compare
145 ++// * instead of number */
146 ++//#if !defined(_WIN32)
147 ++// assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[1]/a:pt", "x", "2351");
148 ++// assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[1]/a:pt", "y", "3171");
149 ++// assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[2]/a:pt", "x", "1695");
150 ++// assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[2]/a:pt", "y", "3171");
151 ++// assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[3]/a:pt", "x", "1695");
152 ++// assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[3]/a:pt", "y", "1701");
153 ++//#endif
154 ++//#endif
155 ++//}
156 +
157 +
158 + CPPUNIT_PLUGIN_IMPLEMENT();
159 +diff --git a/svx/qa/unoapi/svx.sce b/svx/qa/unoapi/svx.sce
160 +index 1c3925f..a16f001 100644
161 +--- a/svx/qa/unoapi/svx.sce
162 ++++ b/svx/qa/unoapi/svx.sce
163 +@@ -25,7 +25,7 @@
164 + #i111216 -o svx.AccessiblePresentationGraphicShape
165 + #i111216 -o svx.AccessiblePresentationOLEShape
166 + #i85539 -o svx.AccessiblePresentationShape
167 +--o svx.AccessibleShape
168 ++#-o svx.AccessibleShape
169 + #i90294 -o svx.GraphicExporter
170 + -o svx.SvxDrawPage
171 + #i85501 -o svx.SvxGraphCtrlAccessibleContext
172 +
173 +19:26 <@x1sc0> _rene_, since that test is using exact dimensions, it seems it
174 + fails on your side probably because the paragraph style is
175 + different. 1. I will change the test to avoid the exact
176 + dimensions. 2. meantime you can skip that test:
177 +https://cgit.freedesktop.org/libreoffice/core/commit/?id=e05f16e6bf36efbaab16dd2ed1427a750ce7cafd
178 +19:26 < IZBot> core - disable UI test that does exact comparison
179 +19:27 < _rene_> mmh, ok, saw that but that was for a different test, so.. :)
180 +19:27 -!- jacobo [~jaragunde@××××××××××××××.com] has quit [Quit: Leaving.]
181 +19:27 < _rene_> thanks, will do
182 +
183 +diff --git a/uitest/writer_tests/tdf79236.py b/uitest/writer_tests/tdf79236.py
184 +index 8585e48d8c64..704f42c009a1 100644
185 +--- a/uitest/writer_tests/tdf79236.py
186 ++++ b/uitest/writer_tests/tdf79236.py
187 +@@ -8,8 +8,11 @@ from uitest.framework import UITestCase
188 + import time
189 + from uitest.uihelper.common import get_state_as_dict, type_text
190 +
191 ++import unittest
192 ++
193 + class tdf79236(UITestCase):
194 +
195 ++ @unittest.skip("Currently broken")
196 + def test_paragraph(self):
197 +
198 + self.ui_test.create_doc_in_start_center("writer")
199 +
200 +14:39 < ztamas> _rene_: chart2dump is used to fail because of font size differences, just use a bigger delta or disable it if it
201 + fails for you.
202 +14:40 <@sberg_> noelgrandin, no
203 +14:40 < noelgrandin> sberg_, sure seems that way both in the debugger and in the resulting SAL_WARN output
204 +14:42 < ztamas> _rene_: there were some work on making font rendering consistent on different platforms, but it's not finished
205 + yet, I guess
206 +diff --git a/chart2/Module_chart2.mk b/chart2/Module_chart2.mk
207 +index 3273055d5373..cb452139170c 100644
208 +--- a/chart2/Module_chart2.mk
209 ++++ b/chart2/Module_chart2.mk
210 +@@ -33,9 +33,9 @@ $(eval $(call gb_Module_add_slowcheck_targets,chart2,\
211 + CppunitTest_chart2_export \
212 + CppunitTest_chart2_import \
213 + CppunitTest_chart2_trendcalculators \
214 +- CppunitTest_chart2_dump \
215 + CppunitTest_chart2_pivot_chart_test \
216 + ))
217 ++# CppunitTest_chart2_dump \
218 +
219 + ifeq ($(ENABLE_CHART_TESTS),TRUE)
220 + ifeq ($(WITH_FONTS), TRUE)
221 +diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
222 +index 4d65beeb90c4..f3d71501c41a 100644
223 +--- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
224 ++++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
225 +@@ -1559,14 +1559,14 @@ DECLARE_OOXMLIMPORT_TEST(testTdf43017, "tdf43017.docx")
226 + }
227 +
228 +
229 +-DECLARE_OOXMLIMPORT_TEST(testTdf112443, "tdf112443.docx")
230 ++/*DECLARE_OOXMLIMPORT_TEST(testTdf112443, "tdf112443.docx")
231 + {
232 + // the position of the flying text frame should be off page
233 + // 30624 below its anchor
234 + OUString aTop = parseDump("//fly[1]/infos/bounds", "top");
235 + CPPUNIT_ASSERT_EQUAL( OUString("30624"), aTop );
236 +
237 +-}
238 ++}*/
239 +
240 + DECLARE_OOXMLIMPORT_TEST(testTdf113946, "tdf113946.docx")
241 + {
242
243 diff --git a/app-office/libreoffice/files/libreoffice-6.0.3.2-testODFEncryptedGPG.patch b/app-office/libreoffice/files/libreoffice-6.0.3.2-testODFEncryptedGPG.patch
244 deleted file mode 100644
245 index 9cde8407ab4..00000000000
246 --- a/app-office/libreoffice/files/libreoffice-6.0.3.2-testODFEncryptedGPG.patch
247 +++ /dev/null
248 @@ -1,89 +0,0 @@
249 -From 74d438f716d9cef165c78f950d4c53a46c37503c Mon Sep 17 00:00:00 2001
250 -From: Rene Engelhard <rene@××××××.org>
251 -Date: Sun, 18 Mar 2018 22:25:36 +0100
252 -Subject: gpg4libre: fix failing gpg test due to over-long filenames
253 -MIME-Version: 1.0
254 -Content-Type: text/plain; charset=UTF-8
255 -Content-Transfer-Encoding: 8bit
256 -
257 -This squashes the following commits:
258 -
259 -From f68929ac611fdda19c1ee413effc59d33aa5ef97 Mon Sep 17 00:00:00 2001
260 -From: Thorsten Behrens <Thorsten.Behrens@×××.de>
261 -Date: Fri, 9 Mar 2018 01:38:26 +0100
262 -Subject: gpg4libre: fix failing gpg test due to over-long filenames
263 -
264 -With long workdir path, gpg sometimes fails with 'gpg: can't connect
265 -to the agent: File name too long' error.
266 -WK recommends to create preferred socket dir under /run/user, needs
267 -prepping though via gpgconf.
268 -
269 -See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=84720
270 -
271 -From d7ecf4a4e37a9eeffa2b40f9fe5a2e6a8f90c876 Mon Sep 17 00:00:00 2001
272 -From: Rene Engelhard <rene@××××××.org>
273 -Date: Sun, 18 Mar 2018 11:25:41 +0100
274 -Subject: properly check for gpgconf (and --create-socketdir) working
275 -
276 -From d6ed1d415d36809d784af780231258ea0ee1024f Mon Sep 17 00:00:00 2001
277 -From: Rene Engelhard <rene@××××××.org>
278 -Date: Sun, 18 Mar 2018 19:06:58 +0100
279 -Subject: actually add GPGCONF to config_host.mk.in
280 -
281 -From 7a95ee8d0badb2cbbd137a6e18af1bada35ae933 Mon Sep 17 00:00:00 2001
282 -From: Rene Engelhard <rene@××××××.org>
283 -Date: Sun, 18 Mar 2018 19:26:45 +0100
284 -Subject: actually add HAVE_GPGCONF_SOCKETDIR to config_host.mk.in...
285 -
286 -From 5204a5145d8232ea0650144fb4756c38303ef06e Mon Sep 17 00:00:00 2001
287 -From: Rene Engelhard <rene@××××××.org>
288 -Date: Sun, 18 Mar 2018 19:28:55 +0100
289 -Subject: revert accidentially comitted local changes :(
290 -
291 -From bc358d39ac985914160e8aaa23b29469470c032b Mon Sep 17 00:00:00 2001
292 -From: Rene Engelhard <rene@××××××.org>
293 -Date: Sun, 18 Mar 2018 20:36:45 +0100
294 -Subject: this is sh, not make...
295 -
296 -Change-Id: I7880fd7eee57cedc19b72348b45f0c1389409fe6
297 -Reviewed-on: https://gerrit.libreoffice.org/51521
298 -Tested-by: Jenkins <ci@×××××××××××.org>
299 -Reviewed-by: Caolán McNamara <caolanm@××××××.com>
300 -Tested-by: Caolán McNamara <caolanm@××××××.com>
301 ----
302 - xmlsecurity/CppunitTest_xmlsecurity_signing.mk | 14 +++++++++++++-
303 - 1 file changed, 13 insertions(+), 1 deletion(-)
304 -
305 -(limited to 'xmlsecurity/CppunitTest_xmlsecurity_signing.mk')
306 -
307 -diff --git a/xmlsecurity/CppunitTest_xmlsecurity_signing.mk b/xmlsecurity/CppunitTest_xmlsecurity_signing.mk
308 -index c382e3b..2f3ed41 100644
309 ---- a/xmlsecurity/CppunitTest_xmlsecurity_signing.mk
310 -+++ b/xmlsecurity/CppunitTest_xmlsecurity_signing.mk
311 -@@ -52,11 +52,23 @@ ifeq ($(ENABLE_PDFIMPORT),TRUE)
312 - $(eval $(call gb_CppunitTest_use_executable,xmlsecurity_signing,xpdfimport))
313 - endif
314 -
315 --# reset the LD_LIBRARY_PATH for spawned GPG processes
316 -+# various hacks to make unit test work on Linux more often
317 - ifeq ($(OS),LINUX)
318 -+# reset the LD_LIBRARY_PATH for spawned GPG processes
319 - $(call gb_CppunitTest_get_target,xmlsecurity_signing): \
320 - EXTRA_ENV_VARS := \
321 - LIBO_LD_PATH=$$LD_LIBRARY_PATH
322 -+
323 -+ifneq (,$(HAVE_GPGCONF_SOCKETDIR))
324 -+# create socket dir below /run/user/ instead of in workdir
325 -+.PHONY : gb_CppunitTest_run_gpgconf
326 -+gb_CppunitTest_run_gpgconf:
327 -+ GNUPGHOME=$(WORKDIR)/CppunitTest/xmlsecurity_signing.test.user \
328 -+ $(GPGCONF) --create-socketdir
329 -+
330 -+$(call gb_CppunitTest_get_target,xmlsecurity_signing): \
331 -+ gb_CppunitTest_run_gpgconf
332 -+endif
333 - endif
334 -
335 - # vim: set noet sw=4 ts=4:
336 ---
337 -cgit v1.1
338
339 diff --git a/app-office/libreoffice/libreoffice-6.0.3.2.ebuild b/app-office/libreoffice/libreoffice-6.0.3.2.ebuild
340 index 612ab4bcbaf..3c8a7c4dac3 100644
341 --- a/app-office/libreoffice/libreoffice-6.0.3.2.ebuild
342 +++ b/app-office/libreoffice/libreoffice-6.0.3.2.ebuild
343 @@ -245,9 +245,9 @@ PATCHES=(
344 # not upstreamable stuff
345 "${FILESDIR}/${PN}-5.4-system-pyuno.patch"
346 "${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch"
347 + "${FILESDIR}/${PN}-6.0.3.2-disable-flaky-tests.patch" #bug 656676
348 # 6.0 branch
349 "${FILESDIR}/${P}-poppler-0.64.patch"
350 - "${FILESDIR}/${PN}-6.0.3.2-testODFEncryptedGPG.patch" #bug 656676
351
352 # TODO: upstream
353 "${FILESDIR}/${PN}-5.2.5.1-glibc-2.24.patch"
354
355 diff --git a/app-office/libreoffice/libreoffice-6.0.4.2.ebuild b/app-office/libreoffice/libreoffice-6.0.4.2.ebuild
356 index 4d3bb3a4921..433d077bc2c 100644
357 --- a/app-office/libreoffice/libreoffice-6.0.4.2.ebuild
358 +++ b/app-office/libreoffice/libreoffice-6.0.4.2.ebuild
359 @@ -246,6 +246,7 @@ PATCHES=(
360 # not upstreamable stuff
361 "${FILESDIR}/${PN}-5.4-system-pyuno.patch"
362 "${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch"
363 + "${FILESDIR}/${PN}-6.0.3.2-disable-flaky-tests.patch" #bug 656676
364
365 # TODO: upstream
366 "${FILESDIR}/${PN}-5.2.5.1-glibc-2.24.patch"
367
368 diff --git a/app-office/libreoffice/libreoffice-6.0.9999.ebuild b/app-office/libreoffice/libreoffice-6.0.9999.ebuild
369 index 4d3bb3a4921..433d077bc2c 100644
370 --- a/app-office/libreoffice/libreoffice-6.0.9999.ebuild
371 +++ b/app-office/libreoffice/libreoffice-6.0.9999.ebuild
372 @@ -246,6 +246,7 @@ PATCHES=(
373 # not upstreamable stuff
374 "${FILESDIR}/${PN}-5.4-system-pyuno.patch"
375 "${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch"
376 + "${FILESDIR}/${PN}-6.0.3.2-disable-flaky-tests.patch" #bug 656676
377
378 # TODO: upstream
379 "${FILESDIR}/${PN}-5.2.5.1-glibc-2.24.patch"