Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation on how to build a hotfix #505

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

agrare
Copy link
Member

@agrare agrare commented Sep 6, 2024

TODO:

  • Example of creating a patch with git format-patch and fixing up the directory prefixes to work with the builddir

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
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOTE instead of a separate volume map for the hotfix dir it seemed easier to just map ./BUILD so the artifacts and the srpm are in one place but if this doesn't work for some reason I can change it

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought we already had this documented, but maybe not. @bdunne Please review.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I didn't see any so this started as me just taking notes on what I had to do so we had something to reference in the future

Copy link
Member

@kbrock kbrock Sep 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having the docker command here is helpful

So much time goes between needing to build rpms that I often forget.

Re: "I thought we already had this documented"

On the mac, mapping the BUILD volume was horribly slow. Think I mapped BUILD/rpm to speed it up.

I remember putting together documentation on this a while back but people seemed to disagree on the best approach.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the mac, mapping the BUILD volume was horribly slow. Think I mapped BUILD/rpm to speed it up.

I remember putting together documentation on this a while back but people seemed to disagree on the best approach.

Oh did you have hotfix documentation? Or you mean documentation on how to build rpms on a mac?

@Fryguy Fryguy added documentation Improvements or additions to documentation wip labels Sep 6, 2024
@agrare agrare changed the title [WIP] Add documentation on how to build a hotfix Add documentation on how to build a hotfix Sep 9, 2024

Which will create a patch file: `0001-Merge-pull-request-23123-from-agrare-fix_miq_request.patch`

Next we have to change the file location to match the RPM BUILDDIR, for a patch in the core rpm this will be e.g. `manageiq-core-18.0-1`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not totally sure what you did here.

Can you show us a diff of the fix_miq_request.patch?
Was it just a change to first line?

Yes, meta, a diff of a diff, but just trying to understand what was done here.
or maybe show it as a sed command?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation wip
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants