Skip to content

Commit

Permalink
Also build for CentOS 9.
Browse files Browse the repository at this point in the history
Signed-off-by: Romain Geissler <romain.geissler@amadeus.com>
  • Loading branch information
Romain-Geissler-1A committed Mar 7, 2022
1 parent 7ada577 commit 6e1fe91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
1 change: 1 addition & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ def images = [
[image: "docker.io/library/amazonlinux:2", arches: ["aarch64"]],
[image: "docker.io/library/centos:7", arches: ["amd64", "aarch64"]],
[image: "quay.io/centos/centos:stream8", arches: ["amd64", "aarch64"]],
[image: "quay.io/centos/centos:stream9", arches: ["amd64", "aarch64"]],
[image: "docker.io/library/debian:buster", arches: ["amd64", "aarch64", "armhf"]], // Debian 10 (EOL: 2024)
[image: "docker.io/library/debian:bullseye", arches: ["amd64", "aarch64", "armhf"]], // Debian 11 (Next stable)
[image: "docker.io/library/fedora:34", arches: ["amd64", "aarch64"]], // EOL: May 17, 2022
Expand Down
14 changes: 1 addition & 13 deletions rpm/containerd.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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

%{?systemd_requires}

%description
Expand Down Expand Up @@ -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}"

Expand Down

0 comments on commit 6e1fe91

Please sign in to comment.