officeonlin-install.sh
officeonlin-install.sh copied to clipboard
Last working config?
Whats the last working config on debian This one ? ####################################### set_core_regex='cp-6.0$' set_online_regex='collabora/collabora-online-4-0-4$' lo_src_branch='distro/collabora/cp-6.0' lo_src_tag='cp-6.0-30' #######################################
lo_src_tag='cp-6.0-31'
I have this one:
About
LOOLWSD 4.0.8 (git hash: 2fc9aba)
LOKit Collabora OfficeDev 6.0-31 (git hash: 9e571fc)
how did you get 4.0.8 included? could you please add the necessary lines in the .cfg? Thank you
#### default set is latest version of collabora
#set_name='distro/collabora'
## set_core_regex & set_online_regex are regulax expression used to find the branch name for core and online
## example:
set_core_regex='cp-6.0$'
set_online_regex='collabora-online-4-0$'
## set_version can be used if both branch name contains a common version number
## if empty, latest version available for each project will be used
set_version='cp-4.0.8-2'
#### LibreOffice parameters ###
#lo_src_repo='https://github.com/LibreOffice/core.git'
lo_src_branch='distro/collabora/cp-6.0' # a existing branch name. # THIS WILL be overriden by the set branch
#lo_src_commit='' # the short/full id of a git commit
lo_src_tag='cp-6.0-34' # a tag in the repo git
lo_dir="/home/suite/libreoffice"
#lo_forcebuild=false # force compilation
#lo_req_vol=11000 # minimum space required for LibreOffice compilation, in MB
#lo_mini=true
#lo_configure_opts='' #comma separated options names
lo_non_free_ttf=true # add Microsoft fonts to Ubuntu
#### POCO parameters ###
poco_version=$poco_version_latest #latest releases available
poco_dir="/home/suite/poco-${poco_version}-all"
#poco_forcebuild=false
#poco_req_vol=550 # minimum space required for Poco compilation, in MB
#### LibreOffice Online parameters ###
lool_src_repo="https://github.com/LibreOffice/online.git"
#lool_src_branch='distro/collabora/collabora-online-4' # a existing branch name. # THIS WILL be overriden by the set branch
#lool_src_commit='' # the short/full id of a git commit
#lool_src_tag='' # a tag in the repo git
unstable... I will try with Ubuntu 18.04
Ubuntu 18.04 seems to not crash, although I still get a lot of those errors:
loolwsd[83771]: kit-83813-83833 2019-11-28 12:43:27.416854 [ kitbroker_002 ] ERR Unknown callback event (44): {}| kit/ChildSession.cpp:2223
on every click in the LOOL
Hello,
Thanks a lot for this post. Very nice to know the last working configuration.
I succeeded to have it working on a Debian 10 (Buster) with the default script options for the core repo and poco, but I had to pause the script for the online repo and change manually to another branch before continuing.
- Core: 02b9ea64850f33df7b3c89c24a2cafbaeab0f85b (HEAD -> distro/collabora/cp-6.2, tag: cp-6.2-3, tag: CODE-4.2.0-3)
- Poco: v1.9.4
- Online: git checkout distro/collabora/collabora-online-4-0
My Lool is working with this info in the about section:
LOOLWSD
4.0.9 (git hash: 956c17af)
LOKit
Collabora OfficeDev 6.2-3 (git hash: 02b9ea6)
From that, here I think is the right translation for the config:
set_core_regex='cp-6.2$'
set_online_regex='collabora-online-4-0$'
#### LibreOffice parameters ###
lo_src_branch='distro/collabora/cp-6.2'
lo_src_tag='cp-6.2-3'
#### LibreOffice Online parameters ###
lool_src_branch='collabora-online-4-0'
lool_src_commit='956c17afe9d5e33f53fd8d107e8384520e23d862'
Maybe first check without setting the commit id to test with the most recent one.
Yes. This config looks good and is working. BUT: I don't see spell checking suggestions (right-mouse). Which is an improvement - other 6.2 versions stopped working on right-mouse click. So, the best functional version might be 6.0 until further notice.
I'm in the process of testing lots of different commits because I discovered that in the branch 6.2, there is a bug in the calc spreadsheets. I already tested the branch 6.0 up to the last commit and it's good. (with the online at v4.0.10)
As soon as I finished my tests, I'll put here my result.
I have no idea about the spell checlking thingy. I'll keep an eye in my next tests.
@quenenni hello! I'm running the 6.2 branch, what bug do you refer to?
The column and line headers are wrong, all not on top of their own column / line.
The most recent commit I found without the bug is https://github.com/LibreOffice/core/commit/60da17e045e08f1793c57c00ba83cdfce946d0aa. And couple tags later, the problem is there. I'm testing them around to try to pin point the commit more precisely.
It seems i can't upload a small picture on github to visualize the problem so here is a link to it: https://pasteboard.co/IRlD2Vu.jpg (sorry for the bad quality, but you can see the wrong headers)
And the problem is present up to a very recent commit (commit from before yesterday).
Indeed, reproducible:
LOOLWSD 4.0.4 (git hash: 305832f8) LOKit Collabora OfficeDev 6.2-3 (git hash: 02b9ea6)
My last tests showed:
- Commit https://github.com/LibreOffice/core/commit/60da17e045e08f1793c57c00ba83cdfce946d0aa is good.
- Commit https://github.com/LibreOffice/core/commit/d92a38e36872a8ca4f44483f73a8a0d12dbf2803 has the problem.
@quenenni: so which settings did you put into the config?
As it seems the script has problems when using the vars "lo_src_tag" or "lo_src_commit" (the repo is not at the right commit / tag when compiling LO sometimes, I had few errors), I decided to do it manually.
- I commented 3 lines in the script that search and set the repo to the right commit (bin/corePrep.sh).
#eval "$(SearchGitCommit $SearchGitOpts)"
#if [ -d ${lo_dir}/instdir ] && $repChanged ; then
lo_forcebuild=true
#fi
- I cloned manually the LO repo, then set the right commit
git checkout distro/collabora/cp-6.2
git pull
git checkout 60da17e045e08f1793c57c00ba83cdfce946d0aa
(and git log to check that you're at the right commit)
- For the online part: The last commit, "Bump package version to 4.0.10-1" (Mon Jan 20 23:30:44 2020) is working well. You have to configure the officeonline-install.cfg file like this:
set_version='cp-4.0.10-1' (not sure this one is compulsory)
lool_src_branch='distro/collabora/collabora-online-4-0' (this one is compulsory)
If you let the default values, the script won't go on the 4-0 branch but the 4 and it will fail.
- For the Poco part, I let the script use the default values and it works. For my tests here, the script used the poco-1.9.4-all
PS: I also tried to compil Lool on the 6.0 branch at the last commit (2, 3 days ago) and it was working.. in case you prefer to stay on the 6.0 branch.
Yes. This config looks good and is working. BUT: I don't see spell checking suggestions (right-mouse). Which is an improvement - other 6.2 versions stopped working on right-mouse click. So, the best functional version might be 6.0 until further notice.
@joergmschulz I checked the spell checking suggestions. By default, I had only en_US dictionnary available. I installed the packages hunspell-fr & hunspell-nl (apt install hunspell-fr hunspell-nl), restart loolwsd service and now have the new dictionnaries available.
The auto suggestions (the red wave under the words) is working. Then the right click on it opens a suggestion list.
All seems good to me on the 6.2 branch.
confirming - the following works well with all the changes @quemenni suggested.
- Filenames containing a % can be opened
- cell indicators work on calc documents
- spellchecking works.
lo_src_repo='https://github.com/LibreOffice/core.git'
lool_configure_opts='--disable-werror'
set_version='cp-4.0.10-1'
lool_src_branch='distro/collabora/collabora-online-4-0'
lo_src_branch='libreoffice-6-3-4' # a existing branch name. # THIS WILL be overriden by the set branch
lo_src_commit='60da17e045e08f1793c57c00ba83cdfce946d0aa' # the short/full id of a git commit
lo_src_tag='libreoffice-6-3-4' # a tag in the repo git
lo_forcebuild=false # force compilation
lo_non_free_ttf=true # add Microsoft fonts to Ubuntu
poco_version=$poco_version_latest #latest releases available
lool_src_repo="https://github.com/LibreOffice/online.git"
lool_src_branch='distro/collabora/collabora-online-4-0' # a existing branch name. # THIS WILL be overriden by the set branch
Thanks for the info. On my part I would suggest that you want to avoid poco-1.9.10, seems to break compilations atm. Cheers!
@joergmschulz
Can you tell me what the option "--disable-werror" is doing?
I never used it.
at one time when buster had been new, compilation failed without this flag. Some compiler warnings had been elevated to errors.
@joergmschulz seems this has been fixed in 6.2-4: https://gerrit.libreoffice.org/plugins/gitiles/core/+/24c4f84c33cef84672a37810009081cd6fca5309
Does this mean that the latest working can be moved to 6.2?
I'd say yes for me. It's been working on production for nearly a month without problems on my side.
In 6.2, I get spreadsheet rows that are compressed in the selection area, but normal in the working area:

yes. This is why the op.cit. version has been proposed as a good one.
What do you mean op.cit. version?
Should the script code changes be checked into github?
With the 3 script code comments and the config file listed, is this necessary: "cloned manually the LO repo"?
You don't need to manipulate the files, try to modify the config file like in this comment: https://github.com/husisusi/officeonlin-install.sh/issues/188#issuecomment-578742358
I got this, which I see has a workaround: configure: error: unrecognized options: --disable-kde4
https://github.com/husisusi/officeonlin-install.sh/issues/181
In 6.2, I get spreadsheet rows that are compressed in the selection area, but normal in the working area:
@rwagnon if you mix online 4.0 + core 6.2 seems to be a common issue.
I believe it's a good idea to stick with these combinations,
- 6.0.x + 4.0.x
- 6.2.x + 4.2.x
Since they seems to be what upstream supports.