Skip to content

Conversation

@ekohl
Copy link
Member

@ekohl ekohl commented Nov 22, 2025

RPM conditionals allow building with and without certain features.
This can be used to bootstrap builds, like foreman needing foreman-build
which is built from foreman.

@ekohl ekohl marked this pull request as ready for review November 22, 2025 16:57
@ekohl ekohl force-pushed the add-copr-chroot-conditionals branch 2 times, most recently from c7c960f to 2ba55c3 Compare December 1, 2025 11:40
@ogajduse
Copy link
Member

ogajduse commented Dec 5, 2025

the new options need to be added to mockbin

diff --git a/tests/fixtures/mockbin/mockbin b/tests/fixtures/mockbin/mockbin
index 9697b00..50ada49 100755
--- a/tests/fixtures/mockbin/mockbin
+++ b/tests/fixtures/mockbin/mockbin
@@ -191,6 +191,8 @@ elif prog in ['copr-cli']:
     parser_build.add_argument('--repos')
     parser_build.add_argument('--packages')
     parser_build.add_argument('--modules')
+    parser_build.add_argument('--rpmbuild-with', action='append')
+    parser_build.add_argument('--rpmbuild-without', action='append')
     parser_build.add_argument('--upload-comps')
 
     parser_build = subparsers.add_parser('watch-build')

@ekohl ekohl force-pushed the add-copr-chroot-conditionals branch from 2ba55c3 to d794ce3 Compare December 5, 2025 12:11
RPM conditionals[1] allow building with and without certain features.
This can be used to bootstrap builds, like foreman needing foreman-build
which is built from foreman.

[1]: https://rpm-software-management.github.io/rpm/manual/conditionalbuilds.html
@ekohl ekohl force-pushed the add-copr-chroot-conditionals branch from d794ce3 to 4383b11 Compare December 17, 2025 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants