-
Notifications
You must be signed in to change notification settings - Fork 56
Also build for CentOS 9. #270
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,8 +30,8 @@ AutoReq: no | |
|
|
||
| Name: containerd.io | ||
| Provides: containerd | ||
| # For some reason on rhel 8 if we "provide" runc then it makes this package unsearchable | ||
| %if 0%{!?el8:1} | ||
| # For some reason on rhel >= 8 if we "provide" runc then it makes this package unsearchable | ||
| %if 0%{?rhel} <= 7 | ||
| Provides: runc | ||
| %endif | ||
|
|
||
|
|
@@ -69,15 +69,6 @@ BuildRequires: gcc | |
| BuildRequires: systemd | ||
| BuildRequires: libseccomp-devel | ||
|
|
||
| # Should only return true if `el8` (rhel8) is NOT defined | ||
| %if 0%{!?el8:1} | ||
| %if 0%{?suse_version} | ||
| BuildRequires: libbtrfs-devel | ||
| %else | ||
| BuildRequires: btrfs-progs-devel | ||
| %endif | ||
| %endif | ||
|
Comment on lines
-72
to
-79
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure if this is correct; I think the intent here was to
If I'm reading the current changes correctly, we're now excluding btrfs on all RPM variants (not just RHEL/CentOS > 7
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually the removal of all this related to btrfs is linked not to these "ifs", but to another one further down: This "if" expression can only expand to a "true" value, so my understanding is that right now, we always build with flag "no_btrfs", no matter which distro is being used. Assuming that btrfs was never used, I also removed all dependency on btrfs build requires packages. |
||
|
|
||
| %{?systemd_requires} | ||
|
|
||
| %description | ||
|
|
@@ -108,10 +99,7 @@ cd %{_topdir}/BUILD/ | |
| cd %{_topdir}/BUILD | ||
| GO111MODULE=auto make man | ||
|
|
||
| BUILDTAGS="seccomp selinux" | ||
| %if 1%{!?el8:1} | ||
| BUILDTAGS="${BUILDTAGS} no_btrfs" | ||
| %endif | ||
| BUILDTAGS="seccomp selinux no_btrfs" | ||
|
|
||
| GO111MODULE=auto make -C /go/src/%{import_path} VERSION=%{getenv:VERSION} REVISION=%{getenv:REF} PACKAGE=%{getenv:PACKAGE} BUILDTAGS="${BUILDTAGS}" | ||
|
|
||
|
|
||
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.
This may also be excluding this rule on Fedora, (open)SUSE, Oracle etc (assuming those don't have
rheldefined), so a larger change than only "exclude on RHEL >= 8