Commit graph

308 commits

Author SHA1 Message Date
Skyler Grey
2ad2ac584b configure.ac: Fix missing space in test command
Omitting this space leads to the error "test: too many arguments"

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: Id8a83d77adfb484dcc949a10b4b25f6ad81130f8
2023-06-30 21:04:34 +02:00
Andras Timar
970291c6bf Bump version to 23.05.1.2
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ie6eb8f388d0724ef08a44e608d5c8c2265ce0f5e
2023-06-26 12:45:41 +02:00
Andras Timar
d0149b1426 Bump version to 23.05.1.1
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I39740fe9b1c30c0a56056435d58eabd3121698bf
2023-06-23 18:55:31 +02:00
Andras Timar
4ac8c8ee28 configure option to disable building unit tests
rational: building for release takes a lot of time and we
neither package, nor run (most of) these unit tests when
we make packages.
CI runs all of these tests before merging PRs, so risk is low,
if we do not run the few build-time unit tests when we package.

make -j12
--enable-tests (default): 3m 18s
--disable-test: 1m 9s
3x faster...

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I4edd98af55748432e30c65c4c910e72c0221272a
2023-06-16 09:12:21 +02:00
Andras Timar
f23a49cd88 Bump version to 23.05.0.5
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Icd47475c24b1820e8fe42491c5260d81adc8805d
2023-06-12 14:55:39 +02:00
Andras Timar
bbe0174588 Bump version to 22.05.0.4
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I5b37d3112f76bc2f1c816b9b004615538b801ab2
2023-06-09 12:34:35 +02:00
Andras Timar
119f01aa85 Bump version to 23.05.0.3
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I77f80b885fa7c6b1d67a314186a11c25e1e652a0
2023-06-04 16:47:43 +02:00
Andras Timar
60ac4b0356 Bump version to 23.05.0.2
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I59b02ca562f0fb3618a18c308e34903da5a7b8fd
2023-05-25 09:22:03 +02:00
Andras Timar
a71f59c9cc Add possibility to define help root URL from brand package
Previously the help root URL was defined in coolkitconfig.xcu,
but it was inconvenient to change. Now we have this setting in
coolwsd.xml, therefore it can be changed more easily. For
example a brand package can disable the Help buttons on
dialogs by executing the following command in postinstall
script:
  coolconfig set help_url ""

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I6d0bdd71ca908df3d2dd20bd321aff9e93896f52
2023-05-17 08:26:38 +02:00
Ashod Nakashian
c6dd263ab1 make: silence clang complaining of -pthread
The clang linker doesn't need -pthread and
warns of unknown command-line option.

This detects clang and forgoes the -pthread
flag to the linker.

Change-Id: I658cd887c567a5beeeae0e6e1b6d596231894c1b
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-15 08:47:26 +01:00
Gökay Şatır
9d6296e4b3 Remove unused document signing code.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I30cf381d1fa282cf222ab5abc676374ab7eefb6c
2023-05-08 21:51:47 +03:00
Gökay Şatır
c9217176bb Update Cypress and make related changes.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ie896ea22b5591ea5e7d574f2436ece7a31da4c0c
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
2023-05-05 07:07:14 +03:00
Bayram Çiçek
1a269be3ac use getrandom() instead of /dev/[u]random
- instead of using /dev/[u]random devices, use
getrandom() and/or getentropy() to make direct
system calls if sys/random.h is available.

- if getrandom() fails, we need to fall back
to "/dev/[u]random" approach.

Signed-off-by: Bayram Çiçek <bayram.cicek@libreoffice.org>
Change-Id: Ied37d72feabf005725b615b02854912809236bbc
2023-03-17 08:38:21 -04:00
Andras Timar
e158f33e96 Bump version to 23.05.0.1
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Iccd099258d6bb6f965b145fcdad46bcae1da994b
2023-02-16 15:17:20 +01:00
Andras Timar
719ae9bf4f Bump version to 22.05.10.1
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I90710c1ea62d42741de59928342c9afbf3b5f13c
2023-02-01 00:14:09 +01:00
Tor Lillqvist
cee9bf493a Change hardcoded sample document name and verify that we get it
You now must pass --with-wasm-additional-files=<path> where path
contains a file called sample.docx.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I21e62feb6282833a5d60b31db26328eda63cdaea
2023-01-29 06:56:08 +02:00
Tor Lillqvist
68915535c1 Add --with-wasm-additional-files=<path>
Pass the absolute pathname to directory that contains a tree of additional
files you want to be available in the WASM in-memory file system. Relevant
only if you build for WASM with Emscripten, i.e. with
--host=wasm32-local-emscripten.

(This is not usable without my still uncommitted / unpushed WIP
hacking.)

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I97a4651bed89bf35c50b009e04ddaa3e03aa8006
2023-01-28 19:50:37 +02:00
Andras Timar
142f83f8bc Bump version to 22.05.10.0
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I8da3583a13c1745fda487d5673a8113f6a18c974
2023-01-20 11:21:18 +01:00
Gülşah Köse
ce5d6360e0 Show epub settings dailog on mobile view.
Merge downloadas-epub and exportepub actions to have same functionality
on desktop and mobile view. Now we can see setup dialog on mobile view.

Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com>
Change-Id: Iebe05e65f331de6737be88288fac34244cfcde18
2023-01-19 09:54:51 +01:00
Tor Lillqvist
b248787bfa We do want to temporarily use the idea that a "WASM app" is a separate thing
Only once we have that working will we go back to having a COOL client
that on the fly can switch from a normal COOL server to using local
online and core code in WASM.

Note that the --with-wasm-fallback configure option now then
temporarily is a no-op, and the ENABLE_WASM_FALLBACK Automake
conditional and WASM_BUILDDIR Autoconf macro are not used anywhere.

Once we have something that barely works as a proof of concept, we can
go back to working towards what we really want.

(Yeah, yeah, I know that "temporary" solutions have a tendency to
become more permanent than you expect...)

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I2f01acd418686e672fd9d2e12cbbd688b128dfa5
2023-01-15 19:46:37 +01:00
Tor Lillqvist
b66baf43fb Drop unused and bogus ENABLE_EMSCRIPTENAPP
In the C++ code we can check for __EMSCRIPTEN__ to know whether we are
being compiled for WASM. In JS and HTML there is no separate WASM or
Emscripten version, but the same code should be able to switch between
talking to a normal COOL server and talking to local WASM code running
in the browser.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: If87245aa26fb1b10f6da2e3894605a8ab2e0aced
2023-01-15 19:46:37 +01:00
Tor Lillqvist
ee157c0810 Clean up WASM-related stuff in configury and the cool HTML page
There is no "Emscripten app", but a COOL client that additionally can
fall back to using in-client WASM code instead of a COOL server.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I86517c6a8f6e0397f6c466278c7be19db001e6d8
2023-01-15 19:46:37 +01:00
Tor Lillqvist
e9720a2680 Add --with-wasm-fallback configure option
Use this when building an otherwise "normal" COOL to indicate that the
client will be able to fall back to a local WASM binary in the browser
containing the necessary core and online code.

The value of the option should be the folder where the corresponding
WASM build of COOL was done.

This commit only adds the option.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I1a8c3eb1518cadb12b4159af14f4dd9dfd95a5bd
2023-01-15 19:46:37 +01:00
Tor Lillqvist
8cc1c1baa5 Preparations for a "WASM app"
The WASM C++ bits (in wasm/wasmapp.cpp) will have to export functions
hande_cool_message(), handle_error_message(), and
handle_debug_message() to receive the calls from JS.

Change-Id: Ic7f2cffdeb4408a9f726ad70a8ceb8db372787dd
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2023-01-11 09:27:36 +02:00
Michael Stahl
fdea5cde94 WASM WIP link an executable
Use the newly introduced soffice.html.linkdeps from core to get the
recursive dependencies into the link command.

This currently fails due to some problem with POCO:
wasm-ld: error: --shared-memory is disallowed by AtomicCounter.o because it was not compiled with 'atomics' or 'bulk-memory' features.

Signed-off-by: Michael Stahl <michael.stahl@allotropia.de>
Change-Id: I76b0a2265f67e89f6992d556525f1263ad1b45db
2023-01-10 22:02:22 +02:00
Michael Stahl
160362e21a WASM configure: prevent libtool from adding -rpath to link command
Signed-off-by: Michael Stahl <michael.stahl@allotropia.de>
Change-Id: Ided8a2abd781b19275b6fe16f8f47e262fef0541
2023-01-10 22:02:22 +02:00
Michael Stahl
901ad84339 WASM add simple automake file and dummy cpp file
Copy the list of .cpp files from the Android project, assuming this will
be similar in scope.

Signed-off-by: Michael Stahl <michael.stahl@allotropia.de>
Change-Id: I57c7ad2f10d1867307ff4fcea3d0c650726d18d8
2023-01-09 15:21:37 +02:00
Michael Stahl
be552175a2 WASM configure: disable checks that look irrelevant for emscripten
Signed-off-by: Michael Stahl <michael.stahl@allotropia.de>
Change-Id: I9cab5f105f518e1901c46b46c31e411d3708341c
2023-01-09 15:21:37 +02:00
Andras Timar
6d1b392b7e Bump version to 22.05.9.2
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I75c82104da273c939279ead679ae708a6bf778d8
2022-12-17 20:49:10 +01:00
Andras Timar
2a9ba59eb9 Bump version to 22.05.9.1
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Iefc36a0a4ddd53879047b1134f2aee937bbc7bca
2022-12-16 21:04:06 +01:00
Andras Timar
9407c98df4 Remove the 'Insert Bibliography Entry' feature
LibreOffice has its own solution to handle bibliography. It is outdated, and
reportedly everyone prefers Zotero or similar solutions. Moreover in Online
this feature does not work, because the bibliography database is a file in
the jail that is not retained, and because tunneled dialogs have serious UX
problems.

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ibf6195c0265c767b3acf94012ee3f82339cf34d3
2022-12-07 11:53:26 +01:00
Andras Timar
d17fb50487 enable link to non-system libpng and openssl
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I109242bde268e63e9918af0f44fcb456e2b8f6c5
2022-11-28 12:41:59 +01:00
Andras Timar
0b90a137f7 Bump version to 22.05.9.0
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I007ce044d5ab049d17cf15410ef78f5760adaeb0
2022-11-22 15:06:50 +01:00
Andras Timar
a4b9c7479d Bump version to 22.05.8.2
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I94b9c70859d68ca2b8bc2c4ad4f39d9a8653cdde
2022-11-08 11:16:28 +01:00
Andras Timar
de16f8aef6 Bump version to 22.05.8.1
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I0f1431215742cb64a2a4599b059118111b8b045b
2022-11-04 09:27:37 +01:00
Andras Timar
8561b98791 Fix build with libzstd on iOS
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Idb94f5d359593e6098b7386ce0a9d33126d8ec2d
2022-11-02 12:09:53 +01:00
Michael Meeks
a8c449642e Android - add --with-zstd-includes and libs and build instructions.
Also reduce cut/paste in configure.ac around checking for files.

Change-Id: I33f789e99ed79f08cb9cfa5ed147b764332adfde
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-11-02 12:09:53 +01:00
Andras Timar
d6b12ab9eb Require libzstd >= 1.4.0
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ia2235a89e53c51766b6f23b647d307a4059cccc6
2022-11-02 12:09:53 +01:00
Michael Meeks
2def6dc3d5 Switch to zstd image compression.
zstd provides for much faster compression server-side, as well
as better decompression.

zstd allows us to de-compress a keyframe and several deltas in a
single call in JS, so it is necessar to add a terminator to the
delta stream so that we can detect when to flush the buffer we
are working on - so the next delta applies to the correct data.

Change-Id: I0e292e3a697b4902d6488b7c04deaba2d1485e94
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-11-02 12:09:53 +01:00
Andras Timar
bdf0c90761 Bump version to 22.05.8.0
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I8e1936ca73e7e299ae042fdc20c969056df97893
2022-10-27 22:09:52 +02:00
Andras Timar
b639546287 Bump package version to 22.05.7.2
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib82128cc4c6751a62e424907751a1d02450ac848
2022-10-20 11:26:33 +02:00
Andras Timar
12a912f2ed Bump package version to 22.05.7.1
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Id84ef447554e5b8b3e9fc36dd474ffb9e033ee02
2022-10-18 22:08:41 +02:00
Andras Timar
1cddb21b94 Display build config (configure options) on admin console
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Iac66ea99d23416c494b04ff92abc0bfeb646e5be
2022-10-13 11:57:17 +02:00
Andras Timar
4e05ca3012 Bump version to 22.05.7.0
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I1d8f08aebd8abc49173a94c511d3b0f2d6b7a28f
2022-09-18 12:15:38 +02:00
Andras Timar
83dc7eef8f Bump version to 22.05.6.2
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ic95ca7bfb1932ac611e955faab456941abbfd324
2022-09-18 12:14:02 +02:00
Andras Timar
26746773b9 Bump package version to 22.05.6.1
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Icf883f86bb84b5ad9442a639996070ac30f06022
2022-09-11 23:06:47 +02:00
Aron Budea
b5f6205053 Bump package version to 22.05.5.4
Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: Ida3aeac18a52236833bdc96122e67c6a8c19cc64
2022-09-06 12:26:44 +02:00
Aron Budea
c4975d01e5 Split config.h into separate headers to avoid extensive rebuild
Eg. if only the version was changed, config.h was updated, and
everything was recompiled.

New structure, maintain these manually:
config.h.in - for configured variables that are stable if
              configuration parameters are unchanged
config_version.h.in - for version/hash related variables

----
config_unused.h.in - still generated by autoheader with all
                     variables, don't use it

Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: Id9a50a9f1e798a3b3814778d8683b7d7cb57bb29
2022-09-05 12:32:49 +01:00
Ashod Nakashian
a87d1ae54f wsd: add HttpEcho fuzzer
This is a full round-trip http fuzzer.
It can achieve >1000 iterations per second
on a single 2 Ghz core, even while going
through the network loopback layer.
The advantage is that more networking code
is fuzzed this way, including not just
the http code, but also the sockets.

Change-Id: I75d21bd0e25221ee6621097a2605d62c4bb2ae4d
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-08-17 08:55:12 -04:00
Yunusemre Şentürk
bacb4ed211 Bump package version to 22.05.5.3
Signed-off-by: Yunusemre Şentürk <yunusemre@collabora.com>
Change-Id: Ie52b0cbbd196ec2f54e84581faed6325b213cecb
2022-08-11 12:23:22 +03:00