On Fedora 15+ & derivatives upto 21
sudo yum-builddep libreoffice
On Fedora 22 upwards :
sudo dnf builddep libreoffice
The following gets the LO source code from git repo. This will take some time depending on your bandwidth.
git clone git://anongit.freedesktop.org/libreoffice/core libreoffice
Go to the root of the downloaded git repository.
./autogen.sh --with-parallelism=5 --without-junit --enable-debug --without-java --without-doxygen --without-help --without-myspell-dicts
make
You can tweak the --with-parallelism param value to the number of cores you want to use for compilation. --enable-debug adds debugging symbols for debugging later.
On our reference machine, make takes 1.75 hrs to finish.
To run the LibreOffice you have just built, do
$ instdir/program/soffice --calc
Please refer https://wiki.documentfoundation.org/Development/BuildingOnLinux
The easiest way to start LO in gdb is to run :
make debugrun
Refer https://wiki.documentfoundation.org/Development/How_to_debug for a primer on using gdb
Libreoffice developers use a code review tool called gerrit. Refer the LO wiki https://wiki.documentfoundation.org/Development/gerrit for setting up your gerrit account and steps to patch submission. For further information on patch submission and modification during review refer https://wiki.documentfoundation.org/Development/gerrit/SubmitPatch
Libreoffice Opengrok is a very useful tool to search in the libreoffice git repositories.