-
Notifications
You must be signed in to change notification settings - Fork 151
Allow bootstrapping foreman-build #12768
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
base: rpm/develop
Are you sure you want to change the base?
Conversation
|
This may be an effect of the conditionals I use. Needs some further investigation. This is allowed in RPM 4.20+ but I guess the version used here is older: |
|
The two warnings we see are caused by We could modify that changelog entry to dismiss the warnings. To fix the errors, we either need to upgrade the RPM or we put that comment on the line above or below the conditional. Is there any other way? |
ogajduse
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Structurally LGTM
cd8fd32 to
999ea95
Compare
|
Rebased to clean the rpmlint warning and also changed the endif statements to be compatible with EL9 RPM. |
999ea95 to
a547aa5
Compare
|
Edit: it's back; I messed up the original changelog entry but that's fixed now. |
a547aa5 to
80644ed
Compare
80644ed to
4db1a52
Compare
In a fresh environment you need the foreman-build package, but you can't build that without foreman itself. This uses RPM conditionals[1] to only build the foreman-build and foreman-plugin packages. It moves the macro definition next to the mkdir statement to have fewer if statements. [1]: https://rpm-software-management.github.io/rpm/manual/conditionalbuilds.html
This introduces a single variable to configure the buildroot as either
bootstrapping or not.
Recommended way of using it:
obal copr-project foreman-copr -e bootstrap=true
obal release foreman
obal copr-project foreman-copr
Then build all the required packages.
4db1a52 to
524a24c
Compare
|
How did a build from this PR end up in the staging repo?! in the changelog |
|
Because I messed up a command and my user has the permissions. I deleted the copr build, will see about nightly too. Sorry! |
In a fresh environment you need the foreman-build package, but you can't build that without foreman itself. This uses RPM conditionals to only build the foreman-build and foreman-plugin packages.
It moves the macro definition next to the mkdir statement to have fewer if statements.
To use this you need to define the with option at the chroot level. I've opened theforeman/obal#419 for that and working on the end-to-end pieces. Once that's merged you can use:
This is useful if you want to fully bootstrap it from scratch in your own user. It can also be used to start building a new OS (version) or architecture but then it needs some manual tweaking.