From 008adfaa8c453299104c1d060d0c5ca20891cd25 Mon Sep 17 00:00:00 2001 From: Adam Grare Date: Fri, 6 Sep 2024 14:24:26 -0400 Subject: [PATCH] Add documentation on how to build a hotfix --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 7e82dab2..b802fd71 100644 --- a/README.md +++ b/README.md @@ -127,6 +127,25 @@ docker cp ${CONTAINER}:/root/BUILD/rpms/x86_64/ ./rpms/ docker rm ${CONTAINER} ``` +## Building a Hotfix + +Sometimes it is necessary to apply a patch without rebuilding the whole release in order to +deliver a fix quickly. This can be accomplished by building a hotfix rpm which will apply +a series of patches. + +Create a patch file using `git format-patch` and copy to `rpm_spec/patches/`. You will have to modify the path to be relative to the RPM BUILDDIR. + +`docker build --pull --tag $USER/rpm_build:radjabov-hotfix .` + +Create a `BUILD/hotfix` directory and copy the .src.rpm for the release that you want to +build a hotfix against, for example `manageiq-release-18.0-1.el9.src.rpm` + +```sh +docker run --rm -v `pwd`/OPTIONS:/root/OPTIONS -v `pwd`/BUILD:/root/BUILD $USER/rpm_build:radjabov-hotfix build_hotfix +``` + +The rpms for the hotfix will be in `BUILD/rpms`. + ## Versioning Branch `morphy` == v13