patch-git: Add build instructions

Using rpm -i may not work as expected if $HOME/rpmbuild is not
empty.  Recommend to use mock or build directly out of dist-git
instead.

RPM-Changelog: -
RPM-Skip-Release: yes
Related: RHEL-111490
This commit is contained in:
Florian Weimer 2025-09-23 12:18:10 +02:00
parent 428f8d6f99
commit cf728b3d9f

View File

@ -24,6 +24,18 @@ Tools team member. Once you have obtained review, you may merge.
Note that for the `c10s` branch, the pipeline is currently not green.
On the `c8s` and `c9s` branches, it is green and should remain so.
# Building locally
It is recommend to use the `mock` tool to build in a clean build
environment. Use `centpkg srpm` to create the source RPM.
If you want to build locally, be aware that the patch-git tooling
picks up additional patches in the `$HOME/rpmbuild` directory
hierarchy. You can avoid this by building directly out of dist-git,
without installing the source RPM using `rpm -i` first:
rpmbuild -bb -D "_sourcedir $PWD" glibc.spec
# Trailers in Git commit messages
The patch management tooling (in `patch-git.lua`) assumes that all Git