-
Notifications
You must be signed in to change notification settings - Fork 337
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
simplify package dependency #1036
Conversation
Various cleanups are possible in the spec template Can be safely removed
|
The 2ac4a75 change is exactly there because we don't have a proper API that can be exposed, and we need to make sure modules are installed alongside the builds we provide. Relying on Other cleanup you mention is OK I guess, provided it's not required by the OSes we still support (e.g. Amazon Linux 2, CentOS 7). |
Pushed in second commit
Feel free to apply only the second commit if you prefer |
Not sure why this has lingered quite so long. Let's apply Remi's second patch. In preparation, we should also drop Amazon Linux 2 (EOL in 1 yr) and CentOS 7 (EOL in 2 weeks) support. We may cut further, but these two shouldn't be controversial. Any takers on doing the needful? Maybe @ac000 or @javorszky? (Or @thresheek if you've got spare cycles) |
@remicollet can you comment on why you were suggesting removing |
(I'll go cross-reference the obsoletion of buildroot against our matrix of supported distros to make sure we're in the clear there) |
Seems Fedora has indeed deprecated the use of the |
|
The 'Group' and 'BuildRoot' tags have been declared as deprecated by the Fedora project. Also, to quote the Fedora Packaging Guidelines The contents of the buildroot SHOULD NOT be removed in the first line of %install. The %defattr directive in the %files list SHOULD ONLY be used when setting a non-default value, or to reset to the default value after having set a non-default value. Link: <https://fedoraproject.org/wiki/RPMGroups> Link: <https://fedoraproject.org/wiki/Phase_out_buildroot_tag_(draft)> Link: <https://fedoraproject.org/wiki/Archive:PackagingDrafts/BuildRoot> Link: <https://docs.fedoraproject.org/en-US/packaging-guidelines/#_tags_and_sections> [ Tweaked subject & added commit message - Andrew ] Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Rebase with master...
|
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.
Approving second patch...
the
unit-r1.31.1
was introduced in 2ac4a75Requires: unit = %{version}
is simpler, allows any release of the same version, and avoids additional metadataA specific virtual provide will make sense for an API number (for the future)
Example in unit
Provides: unit(ABI) = 12
Example for module
%{unit_api}
being defined in a rpm macro file provided by unit-devel