In the new onlineupdater code we have a global variable gArchiveReader in the file onlineupdate/source/update/updater/updater.cxx
We should replace that global variable with local variables and pass them around through parameters.
You need to compile with the flag --enable-online-update=mar for this task.
I want to work on this ticket but got stuck on building the software.
I did the autogen.sh with the following command (that worked fine so far):
./autogen.sh --enable-online-update=mar --with-update-config=/tmp/update.ini
But on additional "make" command the build stopped by complaining about the content of the "update.ini" file. Is there a something about the syntax of this file in the docs?
(In reply to Chris from comment #2)
> I want to work on this ticket but got stuck on building the software.
> I did the autogen.sh with the following command (that worked fine so far):
> ./autogen.sh --enable-online-update=mar --with-update-config=/tmp/update.ini
> But on additional "make" command the build stopped by complaining about the
> content of the "update.ini" file. Is there a something about the syntax of
> this file in the docs?
oh. I forgot that the file is now required.
The content of the file is a typical windows based ini file and for you the content needs to be at least. For path_to_a_simple_text_file you can use to any simple few character text file that contains a few characters. You don't need a valid certificate right now as you don't need to execute an update to test your code.
Moved the global variable to local one:
Christian Barth committed a patch related to this issue.
It has been pushed to "master":
tdf#108563 Transform global variable gArchiveReader to local variable
It will be available in 6.0.0.
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
Chris, if you are interested in other easy hacks around the online updater please let me know.
Sure Markus, if you have more work for the onlineupdater just tell. :)