Hacker News new | ask | show | jobs
by nice__two 1047 days ago
I invite everyone to have a look at compiling LibreOffice [0].

Doing a full compile, has been known to bring even the most powerful machines to their knees.

They’ve employed a lot of the referenced article’s suggestions and it still is a massive code-base to compile.

[0]: https://wiki.documentfoundation.org/Development/BuildingOnLi...

2 comments

If on Fedora, you can give it a whirl like so:

    cd $(mktemp -d)
    fedpkg clone -a -b f38 libreoffice && cd libreoffice
    fedpkg mockbuild
This requires the 'fedpkg' and 'mock' packages be installed, and that your user is in the 'mock' group

Compiling is one of many benchmarks I do, lol

Edit: note for posterity -- the branch will change as time goes by. Fedora 38 is the current release, so f38 is used.

The source for the code and the target for the build don't have to match. Look into different 'mock roots' at /etc/mock/*.cfg

Full compile is rarely an issue, because most of the time is spent in incremental build.