| |
@@ -91,55 +91,6 @@
|
| |
following builds are canceled,
|
| |
but the builds that already succeeded are pushed to the repository.
|
| |
|
| |
- [#scratch_builds]
|
| |
- === Scratch Builds
|
| |
-
|
| |
- Sometimes it is useful to be able to build a package against the buildroot
|
| |
- without actually including it in the release.
|
| |
- This is called a scratch build.
|
| |
-
|
| |
- The following section covers using koji directly,
|
| |
- as well as the fedpkg tool,
|
| |
- to do scratch builds.
|
| |
-
|
| |
- To create a scratch build from changes you haven't committed, do the following:
|
| |
-
|
| |
- ....
|
| |
- fedpkg scratch-build --srpm
|
| |
- ....
|
| |
-
|
| |
- From the latest git commit:
|
| |
-
|
| |
- ....
|
| |
- koji build --scratch rawhide 'git url'
|
| |
- ....
|
| |
-
|
| |
- If you have committed the changes to git
|
| |
- and you are in the current branch,
|
| |
- you can do a scratch build with `fedpkg`,
|
| |
- which wraps the koji command line tool with the appropriate options:
|
| |
-
|
| |
- ....
|
| |
- fedpkg scratch-build
|
| |
- ....
|
| |
-
|
| |
- To run a scratch build for a specific architecture:
|
| |
-
|
| |
- ....
|
| |
- fedpkg scratch-build --arches <archs>
|
| |
- ....
|
| |
-
|
| |
- `<archs>`can be a comma separated list of several architectures.
|
| |
-
|
| |
- Finally, it is possible to combine the scratch-build command
|
| |
- with a specific koji tag in the form:
|
| |
-
|
| |
- ....
|
| |
- fedpkg scratch-build --target TARGET
|
| |
- ....
|
| |
-
|
| |
- Run `fedpkg scratch-build --help` or `koji build --help` for more information.
|
| |
-
|
| |
[#build_failures]
|
| |
=== Build Failures
|
| |
|
| |
Page "Using the Koji Build System" had a section about Koji scratch builds, listing various way of doing them using 'koji' and 'fedpkg'. This listing was not specifically useful, because:
It was not comprehensive, i.e. it just enumerated possible arguments, but did not cover all of them.
It did not have a clear position if koji or fedpkg should be preferred, and similarly for 'fedpkg build --scratch' and 'fedpkg scratch-build'.
It did not differentiate between rare needs like building against defined Koji target or doing a scratch build from a pushed dist-git commit, and the common need of building from local changes.
It suggested calling 'rpmbuild' directly, without anything in these docs explaining how to configure it correctly.
Actually, only the most common case is worth documenting like this, and it should be in "Package Maintenance Guide". Such simplification is done here, by erasing the whole section and documenting 'fedpkg scratch-build --srpm' in the Guide.