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

Packit: easier to read distro conditionals #2017

Merged
merged 1 commit into from
Jun 26, 2023

Conversation

lsm5
Copy link
Member

@lsm5 lsm5 commented Jun 15, 2023

Distro conditionals have been rewritten in a cleaner
and easier to read way.

All bcond macros have been replaced with friendlier alternatives.

Also removed macros related to import_path as they are no longer
necessary.

@lsm5 lsm5 added the packaging label Jun 15, 2023
@lsm5 lsm5 changed the title Packit: easier to read distro conditionals [WIP] Packit: easier to read distro conditionals Jun 15, 2023
@lsm5 lsm5 force-pushed the packit-cleanup branch from edf7088 to 79276d5 Compare June 15, 2023 20:44
@lsm5
Copy link
Member Author

lsm5 commented Jun 15, 2023

Ignore until koji and copr builds verified.

@lsm5
Copy link
Member Author

lsm5 commented Jun 15, 2023

@lsm5 lsm5 marked this pull request as ready for review June 15, 2023 20:56
@lsm5
Copy link
Member Author

lsm5 commented Jun 16, 2023

I think I can also get rid of a lot of the bcond_with[outs], verifying that in a netavark PR right now. But if this PR is being reviewed and ok to merge, feel free to go ahead.

@lsm5 lsm5 marked this pull request as draft June 16, 2023 15:36
@lsm5
Copy link
Member Author

lsm5 commented Jun 16, 2023

I think I can also get rid of a lot of the bcond_with[outs], verifying that in a netavark PR right now. But if this PR is being reviewed and ok to merge, feel free to go ahead.

adding more cleanups

@lsm5 lsm5 force-pushed the packit-cleanup branch 3 times, most recently from 37ccc27 to 8c3e773 Compare June 16, 2023 19:44
@lsm5 lsm5 changed the title [WIP] Packit: easier to read distro conditionals Packit: easier to read distro conditionals Jun 16, 2023
@lsm5 lsm5 force-pushed the packit-cleanup branch from 8c3e773 to c799f6e Compare June 16, 2023 20:13
@lsm5 lsm5 marked this pull request as ready for review June 16, 2023 20:15
@lsm5
Copy link
Member Author

lsm5 commented Jun 16, 2023

@mtrmac PTAL. spec file should be much easier to read now.

@lsm5 lsm5 force-pushed the packit-cleanup branch from c799f6e to 84d9f1c Compare June 19, 2023 12:43
Distro conditionals have been rewritten in a cleaner
and easier to read way.

All `bcond` macros have been replaced with friendlier alternatives.

Also removed macros related to `import_path` as they are no longer
necessary.

update-spec-provides.sh has been updated to account for possible build
issues in downstream tasks which won't be noticed until a downstream
release.

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
@lsm5 lsm5 force-pushed the packit-cleanup branch from 84d9f1c to 0297033 Compare June 26, 2023 19:05
Copy link
Contributor

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

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

Thanks! Shrinking code is always nice.

LGTM to the little extent I understand the details, please merge as appropriate after tests pass.

@TomSweeneyRedHat
Copy link
Member

LGTM

@TomSweeneyRedHat
Copy link
Member

/lgtm

@TomSweeneyRedHat TomSweeneyRedHat merged commit 32da299 into containers:main Jun 26, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 25, 2023
@lsm5 lsm5 deleted the packit-cleanup branch December 19, 2024 11:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants