Commit Graph
830 Commits
Author SHA1 Message Date
Samuel Thibault 8b9075f8f4 gla11y: add support for marking false positives
Change-Id: I62c24f0aa20dea1cca4ba77a71dbb247bc37a5b5
Reviewed-on: https://gerrit.libreoffice.org/51545
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2018-03-27 15:28:12 +02:00
Samuel Thibault d0f1a431ea gla11y: update heuristics but don't enable warnings yet
This updates gla11y with all heuristics to detect orphan labels and widgets
without too many false positives.

This updates gbuild to tell gla11y to only emit errors about undefined
targets and about orphan warnings for GtkScale (as was the case with
previous versions). More errors and warnings will be enabled progressively
later on.

Change-Id: I96580eb0eb8eb327f0f54563d7976a5148e9531a
Reviewed-on: https://gerrit.libreoffice.org/51161
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2018-03-27 14:46:32 +02:00
Mike Kaganski 234d0368c8 Don't generate filters with empty Includes
Avoids VS warnings:

> smoketest\Library_smoketest.vcxproj.filters : warning  : Unable to
> read the filters file "Library_smoketest.vcxproj.filters". Please
> unload the project "Library_smoketest.vcxproj" to be able to edit it.
> The required attribute "Include" is empty or missing from the element
> <Filter>.

Change-Id: I0f02e837823a5e7a0355fd0f895f00c63a5df6fc
Reviewed-on: https://gerrit.libreoffice.org/51684
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2018-03-21 10:03:48 +01:00
Stephan Bergmann d4347f5d58 Fix external/gpgmepp Linux RPATH
In other external projects using libtool, we fix that by patching configure,
resetting hardcode_libdir_flag_spec[_CXX] at the end of the linux*) case block
that sets the Linux-specific value.  But here we run autoreconf in
ExternalProject_libassuan, so that patch in configure would be overwritten.  The
relevant code in configure comes from autoconf boilerplate, so we cannot just do
the same patch in configure.ac.  But we can reset hardcode_libdir_flag_spec
sufficiently late in configure.ac so that things still work as intended.

Disable tests that would build executabes linking against libgpgme.so, which in
turn links against the libassuan and libgpg-error libs, which would no longer be
found by the linker because of the dropped -rpath flags.  (Alternatives might
be to pass in LD_LIBRARY_PATH or to link with --allow-shlib-undefined.)

Change-Id: I7e37abf802d213347bd80383b7980d85cf0762d4
Reviewed-on: https://gerrit.libreoffice.org/50960
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-03-08 22:00:58 +01:00
Stephan Bergmann 24d0704fa4 Fix external/libassuan Linux RPATH
In other external projects using libtool, we fix that by patching configure,
resetting hardcode_libdir_flag_spec[_CXX] at the end of the linux*) case block
that sets the Linux-specific value.  But here we run autoreconf in
ExternalProject_libassuan, so that patch in configure would be overwritten.  The
relevant code in configure comes from autoconf boilerplate, so we cannot just do
the same patch in configure.ac.  But we can reset hardcode_libdir_flag_spec
sufficiently late in configure.ac so that things still work as intended.

Change-Id: Ic6c6123bcfe8bc2dac87812f919842519374abaa
Reviewed-on: https://gerrit.libreoffice.org/50959
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-03-08 18:08:14 +01:00
Samuel Thibault 0a3151314a gla11y: allow python 2.6 when lxml is available
python2.6's internal xml parser is not enough for gla11y, but it can run
python-lxml fine.

Change-Id: I725471729c8e2f25ce60f1d92e08d87a96e171a5
Reviewed-on: https://gerrit.libreoffice.org/50686
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2018-03-04 11:19:37 +01:00
Thorsten Behrens 44b4ad7d21 build fix: disable gla11y for python 2.6
Things got massively worse with
f927fc06b8 so disable for the moment

Change-Id: Ie8a03aa42d5c29bc6931c9c621d1b0427eeddab8
2018-03-02 22:38:18 +01:00
Samuel Thibault e85b8efafc gla11y: fix build outside source
We need to pass the absolute path to gla11y for build outside source to
work. We however do not want to expose absolute paths in suppression files,
so we have to introduce a parameter that provides the common prefix to be
stripped.

Change-Id: Iaf652cb8d6c3646438f828a0949dfd811f964e77
Reviewed-on: https://gerrit.libreoffice.org/50568
Reviewed-by: jan iversen <jani@libreoffice.org>
Tested-by: jan iversen <jani@libreoffice.org>
2018-03-01 14:44:46 +01:00
Samuel Thibault d09cc5fe73 gla11y: add warning/error suppression machinery
Also add an accessibility test which does have a few existing issues, and
the corresponding suppression lines.

Change-Id: I7095cdc13e40501bbdf6e635c1e4f93f70bc1316
Reviewed-on: https://gerrit.libreoffice.org/50251
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-02-28 22:57:17 +01:00
Samuel Thibault 84ef6d8254 Build external lxml if not provided by system
except on windows, where gla11y will resort to python's internal xml parser,
which does not provide line numbers.

This allows gla11y to be runnable on all systems.

Change-Id: Ica4eb90f59bddfcefd783fc2ed9c8c27357e7572
Reviewed-on: https://gerrit.libreoffice.org/50115
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-02-28 22:54:21 +01:00
Andrea Gelmini 389405cc49 Fix typos
Change-Id: Ifcfb8ed6783f7d022e7c7f139e3f3bafa7b4b71a
Reviewed-on: https://gerrit.libreoffice.org/50088
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2018-02-26 12:58:03 +01:00
Caolán McNamara 1724d7db28 oss-fuzz: issue 1188, per-fuzzer config
instead of copying the whole bunch around, now the scheme is to copy
each individual fuzzer and matching config around, so duplicate the
previously shared config for each one an

Change-Id: I479ea13abfab382b6aee23bc04d5f7e535b489c9
2018-02-25 15:45:02 +00:00
Caolán McNamara 508ac4c37e oss-fuzz: explicitly mention the rc files we want
Change-Id: Iabefbc3873b45f58fb8e493d043b0e08a3f425f9
2018-02-23 11:50:41 +00:00
Stephan Bergmann 870c7a1625 The vim mode line supposedly needs to go at the end of the file
Change-Id: I413b01e93000f9f81ba6190811cea51c04f1d58b
2018-02-22 10:12:37 +01:00
Samuel Thibault ccadc6d4a5 gla11y: do not fail when not passed any .ui file
This avoids build failures when a directory uses UIConfig but does not add
any ui file.

Change-Id: I63413f87fc5515ffb9e3dd9baf25c6a4ba70c2be
Reviewed-on: https://gerrit.libreoffice.org/50071
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2018-02-21 11:30:41 +01:00
Samuel Thibault 226697ae27 Integrate initial version of gla11y tool in the build system
This is part of integrating an accessibility non-regression tool. This
adds checks in configure.ac for the presence of python lxml which we will
need, and adds support for calling the tool at build time, to check for
definite UI errors. For now, that only emits errors for missing or duplicate
accessibility relation targets, and senseless relations: a label being
mnemonic for several widgets.

Change-Id: Idda91b15b9a9e0322d16db33dfac8e03f2aa518c
Reviewed-on: https://gerrit.libreoffice.org/49856
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2018-02-20 22:21:48 +01:00
Kacper Kasper 60f1490af9 Buildsystem changes to recognize Haiku.
Change-Id: I219d556f8e124cfe426cc1ac3c54da34eb7ef790
Reviewed-on: https://gerrit.libreoffice.org/49925
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Jenkins <ci@libreoffice.org>
2018-02-19 12:58:11 +01:00
Miklos Vajna 89fa5e45c3 xmlsecurity: fold Library_xsec_fw into Library_xmlsecurity
That little amount of code hardly justifies a separate library.

Change-Id: Idbb039f38258bc12759fcf6d29328e1afe7443ab
Reviewed-on: https://gerrit.libreoffice.org/49391
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2018-02-08 09:06:57 +01:00
Andrea Gelmini f38064cb05 Fix typo
Change-Id: Iaa48657cdffc12b0e7bf1e39476e84445ea6fc3b
Reviewed-on: https://gerrit.libreoffice.org/49353
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2018-02-07 17:46:18 +01:00
Stephan Bergmann 9b1adb42c9 Fix CustomTarget_postprocess/check_dynamic_objects for --enable-gtk3-kde5
Change-Id: Ie8c2389e8e0801b092abcfef751325cdf369b98d
2018-02-07 09:32:59 +01:00
Stephan Bergmann bf23fe3a4a Fix CustomTarget_postprocess/check_dynamic_objects for --enable-qt5
The dependency of Library_vcl on qt5 libraries (via vcl/qt5/Qt5Font.cxx) is
there ever since b66a7cbd84 "QT5 first stab on
implementing CommonSalLayout", but no idea whether that is by design or is a
hack that should eventually be cleaned up.

Change-Id: I4cec702709b37069987ec68c035628b5172b3543
2018-02-07 09:32:59 +01:00
Stephan Bergmann 4a2db3545a Fix CustomTarget_postprocess/check_dynamic_objects for --enable-dconf
Change-Id: I345055bf56828fc597d14c654d4819e87630da2c
2018-02-07 09:32:59 +01:00
Michael Stahl a0d533af0c check-elf-objects: add mergedlib libs for Linux-rpm_deb-x86_64@70-TDF
Change-Id: I7b0febee10a98809073f0bfd023d39d32684a566
2018-02-06 14:06:06 +01:00
Michael Stahl 7bf0b99736 check-elf-objects: add 32-bit libs for Linux-rpm_deb-x86@71-TDF-dbg
Change-Id: Ibd308d94c7cd92ab5e2590554b54517d2ef898fe
2018-02-06 12:18:17 +01:00
Stephan Bergmann 9cb3bd3967 basename -a is non-standard
...and apparently not supported on some tinderboxes like tb70 and tb71

Change-Id: I37dae3e7bbb0b9324adf04819fa87fb6a5b9f1d0
2018-02-06 10:14:35 +01:00
Michael Stahl 49696161be postprocess: enable the check-elf-dynamic-objects for real
Change-Id: Ie08d3dfc6306c18da7b1a5c000a75a18917c1f70
Reviewed-on: https://gerrit.libreoffice.org/45529
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2018-02-05 16:52:28 +01:00
Zdeněk Crhonek ad32bcdfa1 uitest - add folder uitest/manual_tests to script
script for page https://wiki.documentfoundation.org/ListUiTests

Change-Id: I0081a4e1229105ef7387e70d76a5670a4f5de691
Reviewed-on: https://gerrit.libreoffice.org/47340
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Tested-by: Xisco Faulí <xiscofauli@libreoffice.org>
2018-02-05 14:56:52 +01:00
Caolán McNamara c23d1d3efd put a ceiling on various fuzzer input sizes
Change-Id: I7a53859377e6228542be50fd26af6b0d6701384c
2018-01-25 20:59:04 +00:00
Xisco Fauli a09958dd35 Add wiki header and footer to the output
Change-Id: Iec0be65f57cac06756f2e8101d3edb89b126e92f
Reviewed-on: https://gerrit.libreoffice.org/48430
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2018-01-24 12:45:12 +01:00
Stephan Bergmann b3b22ee3de Silence upcoming GCC 8 -Werror=parentheses in external/boost
...reporting such delights as

> [CXX] sal/cppunittester/cppunittester.cxx
> In file included from workdir/UnpackedTarball/boost/boost/mpl/aux_/na_assert.hpp:23,
[...]
>                  from external/boost/include/boost/algorithm/string.hpp:25,
>                  from sal/cppunittester/cppunittester.cxx:60:
> workdir/UnpackedTarball/boost/boost/mpl/assert.hpp:188:21: error: unnecessary parentheses in declaration of ‘assert_arg’ [-Werror=parentheses]
>  failed ************ (Pred::************
>                      ^

where boost/mpl/assert.hpp contains

> template< typename Pred >
> failed ************ (Pred::************
>       assert_arg( void (*)(Pred), typename assert_arg_pred<Pred>::type )
>     );

Change-Id: I6976b2cc23f1d309d27d3fde9098b10c9d877599
Reviewed-on: https://gerrit.libreoffice.org/48386
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-01-24 07:56:06 +01:00
Andrea Gelmini d5e2569f6f Fix typos
Change-Id: Iaad78e5f1100df1ca69d34bf7693e4a9feac17eb
Reviewed-on: https://gerrit.libreoffice.org/48084
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2018-01-18 08:10:04 +01:00
Mike Kaganski 688b16df55 VS generator: set output to soffice.bin to allow starting from debugger
It is more likely that soffice.bit should be debugged, not soffice.exe
stub. This allows to start debug session from VisualStudio, and debug
startup code.

Change-Id: Iab4615c67aeb25b811ecc71f6ae48aa9b40c45dc
Reviewed-on: https://gerrit.libreoffice.org/48025
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2018-01-17 07:13:47 +01:00
Andrea Gelmini 624f84c07e Fix typos
Change-Id: I078626eaa3155cc429320cc8c1532003b382b22a
Reviewed-on: https://gerrit.libreoffice.org/47855
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2018-01-16 12:40:51 +01:00
Stephan Bergmann aef6da021d Silence clang-cl -Werror,-Wmicrosoft-unqualified-friend in external/boost
...messages like:

> workdir/UnpackedTarball/boost\boost/bimap/detail/map_view_iterator.hpp(138,18):  error: unqualified friend declaration referring to type outside of the nearest enclosing namespace is a Microsoft extension; add a nested name specifier [-Werror,-Wmicrosoft-unqualified-friend]
>     friend class iterator_core_access;
>                  ^
>                  ::boost::iterators::

Change-Id: I393b7c95943a55d5f755cfed41e0b7bc3306c568
Reviewed-on: https://gerrit.libreoffice.org/47673
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-01-09 23:20:20 +01:00
Noel Grandin 0c1ca08318 remove unused defines
In particular, the STR_SVT_MIMETYPE defines are dead
since
    commit 1b694dad64
    Date:   Thu Aug 24 22:14:27 2017 +0200
    loplugin:unusedmethods

Change-Id: I641ec0a14efedc55c9d6a4de4a28784c273602e9
Reviewed-on: https://gerrit.libreoffice.org/47464
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-01-06 07:41:36 +01:00
Noel Grandin c26bdf54e0 remove dead eeitemid.hxx
and inline the couple of constants still in use from it

Change-Id: Icb9f5690b5649140bc0503a8917e6a0f764e3d9c
Reviewed-on: https://gerrit.libreoffice.org/47404
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-01-05 07:38:01 +01:00
Noel Grandin 420a65c107 Revert "unused SID command in starmath"
This reverts commit b9c6f2de8b.

Change-Id: Ice33baa738c025de72ceb11cf6746e017fb27484
Reviewed-on: https://gerrit.libreoffice.org/46964
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-12-22 20:21:48 +01:00
Noel Grandin b9c6f2de8b unused SID command in starmath
Change-Id: I08c09814a6a29286342fd7dc6a30ca0b6395463e
Reviewed-on: https://gerrit.libreoffice.org/46909
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-12-21 20:13:03 +01:00
Noel Grandin 9c43504411 unused SID commands in sc
Change-Id: Ifb732e0a52ac7222e0dfb7054981708fa5722b35
Reviewed-on: https://gerrit.libreoffice.org/46886
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
2017-12-21 17:00:00 +01:00
Stephan Bergmann 6310429e1a Remove Clang -Wunknown-pragmas workaround
...that appears to only be necessary for Clang <= 3.4, so no longer needed since
fa7b7f7393 "Document that Clang 3.4.2 is known to
be too old"

Change-Id: I09361f6ffc23b8d20d65d3c84d9003719e2159f8
Reviewed-on: https://gerrit.libreoffice.org/46787
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-12-20 08:50:49 +01:00
Zdeněk Crhonek aa9d919e50 uitest - writer "delete all comments"; move writer tests to sw/qa/uitest
Change-Id: Id7d6a2a413234b07df3f0f07184e7e33fec73633
Reviewed-on: https://gerrit.libreoffice.org/45985
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-12-19 16:43:44 +01:00
Noel Grandin ca6d205e88 improve the find-unused-typedefs script
Change-Id: If4ab3bf8759c194e6005091d6df6a3a11cd633b7
2017-12-15 13:46:04 +02:00
Caolán McNamara eb9f4b4071 use afl html_tags as htmlfuzzer dictionary
Change-Id: Ic179f835d4d67a9856381b87f7fbc8b144bf595d
2017-12-12 09:22:16 +00:00
Caolán McNamara ab3c05f55d oss-fuzz hasn't merged this yet
Change-Id: I0b36af5d18d1b02b7d5193e610606c5d15f95ad0
2017-12-09 19:34:27 +00:00
Caolán McNamara a126d37a90 use afl html_tags as htmlfuzzer dictionary
Change-Id: I5374c497f9d8f1a0616e123b503d2f9b642edc33
Reviewed-on: https://gerrit.libreoffice.org/46104
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-12-08 18:23:37 +01:00
Caolán McNamara c3ab8e6105 bodge ofz#4480 silence Bad-cast harder for now
Change-Id: I391448361b5cda729904661a7c5c3b33288b7417
2017-12-05 20:34:14 +00:00
Noel Grandin ebc5774c05 remove some unused defines
and move the script to python

Change-Id: I97bca04053d9d38b59c74fcf61caafbc2c137cc9
Reviewed-on: https://gerrit.libreoffice.org/45776
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-12-05 07:32:24 +01:00
Caolán McNamara 0cb20da5fd mml is an xml format too
Change-Id: I692aa11f32855e13795454bfebee45675e3f433a
2017-12-02 17:41:11 +00:00
Caolán McNamara 6af2cd3440 ofz#4480 silence Bad-cast
Change-Id: I7417d36e532fbe315dab1d3cbd070472bc16ed6a
Reviewed-on: https://gerrit.libreoffice.org/45683
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-12-01 16:29:35 +01:00
Caolán McNamara af5f86b2c1 Related: tdf#100226 unused hrc defines are the same as hxx defines now
since the gettextization, so they can be treated the same as normal ones with
something like find-unused-defines.sh

Change-Id: I2915b76fc79ff5c0eb0dc2b35b1c0421e86462da
Reviewed-on: https://gerrit.libreoffice.org/45653
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-12-01 12:41:58 +01:00