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

version: replace dash with tilda #7414

Closed
wants to merge 2 commits into from
Closed

Conversation

pbrezina
Copy link
Member

@pbrezina pbrezina commented Jun 7, 2024

We released a new SSSD beta version as 2.10.0-beta1, unfortunately
this caused issues in the rpm build system as this value is set as
the Version field but dash is not allowed in this field therefore
make rpms was broken.

Fedora guidelines requires to use ~ as a prerelease separator so
two NVR versions compare correctly. For example:

  • 2.10.0 < 2.10.0-beta1
  • 2.10.0~beta1 < 2.10.0

We will follow this guideline to make make rpms work again and
to avoid any further rpm issues. Next GitHub release will also
follow this guideline.

@alexey-tikhonov alexey-tikhonov self-assigned this Jun 7, 2024
@alexey-tikhonov alexey-tikhonov added the no-backport This should go to target branch only. label Jun 7, 2024
We released a new SSSD beta version as 2.10.0-beta1, unfortunately
this caused issues in the rpm build system as this value is set as
the Version field but dash is not allowed in this field therefore
`make rpms` was broken.

Fedora guidelines requires to use ~ as a prerelease separator so
two NVR versions compare correctly. For example:

* 2.10.0 < 2.10.0-beta1
* 2.10.0~beta1 < 2.10.0

We will follow this guideline to make `make rpms` work again and
to avoid any further rpm issues. Next GitHub release will also
follow this guideline.
@pbrezina
Copy link
Member Author

pbrezina commented Jun 7, 2024

@sumit-bose @alexey-tikhonov this is ready for review, failures are unrelated.

Copy link
Contributor

@sumit-bose sumit-bose left a comment

Choose a reason for hiding this comment

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

Hi,

thanks, I'm fine with the changes, so ACK.

But wouldn't it be more easy to have this and the patch from #7415 in a single PR which would hopefully have a green CI run?

bye,
Sumit

This does not work on Fedora 41, it looks like it is not supported
by dnf5.
@pbrezina
Copy link
Member Author

pbrezina commented Jun 7, 2024

Ok, I moved it here.

@alexey-tikhonov
Copy link
Member

About dnf: looks like it's a confirmed bug - rpm-software-management/dnf5#700

elif [[ "$DISTRO_BRANCH" == -redhat-* ]]; then
[ $# != 0 ] && sudo -p "$prompt" yum --assumeyes install -- "$@" |&
[ $# != 0 ] && sudo -p "$prompt" yum --assumeyes install "$@" |&
Copy link
Member

Choose a reason for hiding this comment

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

btw, 'yum' is deprecated since RHEL9

@pbrezina
Copy link
Member Author

pbrezina commented Jun 7, 2024

Pushed PR: #7414

  • master
    • fad092b - ci deps: do not use -- to denote positional arguments anymore
    • eadb872 - version: replace dash with tilda

@pbrezina pbrezina added Pushed and removed Accepted Ready to push Ready to push labels Jun 7, 2024
@pbrezina pbrezina closed this Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-backport This should go to target branch only. Pushed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants