No description
Discussions with Son_Goku (from Mageia) on IRC revealed that they need
per tag/target macro support in Koji. We store tag macros in 'Extra Options'
and macro has to start with '%'.
Example:
% koji taginfo f29
Tag: f29 [11]
Arches: riscv64
Groups:
Required permission: 'admin'
Tag options:
%mymacro : 'value123'
%packager : 'Fedora Project RISC-V'
mock.package_manager : 'dnf'
[..]
Tag macros can be added using koji edit-tag.
The tag macros are allowed to overwrite macros set in koji.genMockConfig.
For example, %packager is set in koji.genMockConfig by default. The mock
configuration generated by kojid was:
[..]
config_opts['macros']['%_host'] = 'riscv64-koji-linux-gnu'
config_opts['macros']['%mymacro'] = 'value123'
config_opts['macros']['%_host_cpu'] = 'riscv64'
config_opts['macros']['%vendor'] = 'Fedora Project'
config_opts['macros']['%distribution'] = 'Fedora Project'
config_opts['macros']['%_topdir'] = '/builddir/build'
config_opts['macros']['%_rpmfilename'] = '%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm'
config_opts['macros']['%packager'] = 'Fedora Project RISC-V'
[..]
This two-line change was tested on Fedora RISC-V koji instance.
Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
|
||
|---|---|---|
| builder | ||
| cli | ||
| devtools | ||
| docs | ||
| hub | ||
| koji | ||
| plugins | ||
| tests | ||
| util | ||
| vm | ||
| www | ||
| .coveragerc | ||
| .coveragerc3 | ||
| .gitignore | ||
| Authors | ||
| COPYING | ||
| koji.next.md | ||
| koji.spec | ||
| LGPL | ||
| Makefile | ||
| README.md | ||
| runtests | ||
| setup.py | ||
koji - RPM building and tracking system
Koji is an RPM-based build system. The Fedora Project uses Koji for their build system, as do several other projects.
Koji's goal is to provide a flexible, secure, and reproducible way to build software.
Key features:
- New buildroot for each build
- Robust XML-RPC APIs for easy integration with other tools
- Web interface with SSL and Kerberos authentication
- Thin, portable command line client
- Users can create local buildroots
- Buildroot contents are tracked in the database
- Versioned data
Communicate
- Comments, questions, bugs, feedback, ideas, help requests? We'd love to hear from you.
- Mailing lists:
- Development: koji-devel AT lists.fedorahosted.org
- User discussion and Fedora-specific topics: buildsys AT lists.fedoraproject.org
- IRC chat: #koji on irc.freenode.net
Bugs/RFEs
If you have found a bug or would like to request a new feature, please report an issue in Pagure.
Download
The koji source code can be downloaded with git via:
git clone https://pagure.io/koji.git
You may browse code at https://pagure.io/koji
Archived releases can be found at https://pagure.io/koji/releases
Documentation
See: https://docs.pagure.org/koji/