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

builddep: Support the --with/--without options to toggle bconds #1509

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

dm0-
Copy link
Contributor

@dm0- dm0- commented May 26, 2024

This adds the same options used by rpmbuild, mock, etc. for setting macros to flip build-time conditional switches when parsing spec files. It provides a consistent interface across related tools.

They are aliases in rpmbuild, I'm not sure if there is a better way to accomplish something like that here:

rpmbuild alias --with           --define "_with_!#:+     --with-!#:+" \
        --POPTdesc=$"enable configure <option> for build" \
        --POPTargs=$"<option>"
rpmbuild alias --without        --define "_without_!#:+  --without-!#:+" \
        --POPTdesc=$"disable configure <option> for build" \
        --POPTargs=$"<option>"

Copy link
Contributor

@kontura kontura left a comment

Choose a reason for hiding this comment

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

Sorry about the delay, this looks good, thank you!

Can you fix the formatting issue detected by the Pre Commit Hooks? You can see the specific problem here in the Details.

I have also created a CI update to fix the failing test and add a couple of new ones: rpm-software-management/ci-dnf-stack#1534

This adds the same options used by rpmbuild, mock, etc. for setting
macros to flip build-time conditional switches when parsing spec
files.  It provides a consistent interface across related tools.
@dm0-
Copy link
Contributor Author

dm0- commented Aug 5, 2024

Okay, thanks, I updated and rebased it.

@kontura kontura added this pull request to the merge queue Aug 6, 2024
Merged via the queue into rpm-software-management:main with commit 62b8ffb Aug 6, 2024
13 of 16 checks passed
kontura added a commit to kontura/ci-dnf-stack that referenced this pull request Aug 6, 2024
kontura added a commit to rpm-software-management/ci-dnf-stack that referenced this pull request Aug 6, 2024
@dm0- dm0- deleted the bcond branch August 6, 2024 11:11
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