Building Source Code ==================== xcat-core --------- Clone the xCAT project from `GitHub `_ and build the rpms with ``buildrpms.pl``:: cd xcat-core ./buildrpms.pl --target alma+epel-9-x86_64 Each package is built in its own ``mock`` chroot, so the build does not depend on what happens to be installed on the build host. Pass ``--target`` once per target to build several; the default is every supported EL target. ``./buildrpms.pl --help`` lists the rest. To build the source rpms and no binary rpms, pass ``--source-only``:: cd xcat-core ./buildrpms.pl --target alma+epel-9-x86_64 --source-only A source rpm is the input that a build service such as mock, koji, COPR or OBS takes, and it lets one machine make the source rpms while another makes the binary rpms for each architecture. ``rpmbuild`` does not need the packages named in ``BuildRequires`` to make a source rpm, so this also builds on a machine that cannot complete a full build. The source rpms land in ``dist//rpms/SRPMS/``. The binary repository metadata is left as the last full build wrote it, and no ``.repo`` file is emitted, because a source-only run has no binary packages to advertise. .. note:: ``buildcore.sh``, ``makerpm`` and ``buildlocal.sh`` were removed in 2.19. ``buildrpms.pl`` replaces all three, and its ``--source-only`` replaces the old ``SRCONLY=1``. Debian and Ubuntu packages are still built by ``./build-ubunturepo``. xcat-deps --------- The ``xcat-deps`` package is currently owned and maintained by the core development on our internal servers. Use the packages created at: http://xcat.org/download.html#xcat-dep man pages --------- The xCAT man pages are written in Perl POD files and automatically get built into the xCAT rpms. The content in the .pod files are always the master. In the past, the man pages were converted into html files and uploaded to SourceForge. In moving to `ReadTheDocs `_ we want to also provide the man pages as references in the documentation. To convert the ``pods`` to ``rst``, we are using The Perl module: `pod2rst `_. The following steps will help configure ``pod2rst`` and be able to generate the changes .rst files to push to GitHub. #. Download the following Perl modules: - `Pod-POM-View-Restructured-0.02 `_ - `Pod-POM-2.00 `_ #. For each of the above Perl modules: * **[as root]** Extract and build the Perl module :: perl Makefile.PL make make install * **[as non-root]** Extract and build the Perl module using PREFIX to specify a directory that you have write permission :: mkdir ~/perllib perl Makefile.PL PREFIX=~/perllib make make install #. Execute the script ``create_man_pages.py`` to generate the .rst files into ``xcat-core/docs`` : * **[as root]** :: cd xcat-core ./create_man_pages.py * **[as non root]** :: cd xcat-core ./create_man_pages.py --prefix=~/perllib