[Libreoffice] [Proof-of-concept] Drastically speedup the offapi (and oovbaapi) build

Bjoern Michaelsen bjoern.michaelsen at canonical.com
Thu Sep 1 02:21:40 PDT 2011


Hi Kendy, all,

On Thu, 01 Sep 2011 10:25:20 +0200
Jan Holesovsky <kendy at suse.cz> wrote:

> With the attached patch, the offapi/UnoApi_offapi.mk (and oovbaapi)
> has to change to something like the following; this is of course only
> part of that, the other rules have to be adapted the same way, but
> that should be ~trivial.  Second part of the problem is that idlc
> have to be patched to bail out with != 0 exit value, according to the
> comments it is not the case right now.

Just a word of warning after a short skimming of the patch: It seems
like you are using $? with huge amounts of files to create a
commandline. This is quite risky on Linux, where you easily hit the
command length limits of the shell on certain installs (depending on
ulimits). There is solenv/gbuild/Tempfile.mk to work around that (to
create response files). Tempfile.mk btw is the easiest way to trigger
that good old make 3.81 bug.

Best,

Bjoern


-- 
https://launchpad.net/~bjoern-michaelsen




More information about the LibreOffice mailing list