Disable btrfs in RHEL builds
btrfs-progs is not supported on RHEL.
This commit is contained in:
parent
c6d2d347ff
commit
9eeb0aed95
11
buildah.spec
11
buildah.spec
@ -7,6 +7,12 @@
|
|||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?rhel}
|
||||||
|
%bcond_with btrfs
|
||||||
|
%else
|
||||||
|
%bcond_without btrfs
|
||||||
|
%endif
|
||||||
|
|
||||||
%global provider github
|
%global provider github
|
||||||
%global provider_tld com
|
%global provider_tld com
|
||||||
%global project containers
|
%global project containers
|
||||||
@ -39,7 +45,9 @@ BuildRequires: gpgme-devel
|
|||||||
BuildRequires: libassuan-devel
|
BuildRequires: libassuan-devel
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: ostree-devel
|
BuildRequires: ostree-devel
|
||||||
|
%if %{with btrfs}
|
||||||
BuildRequires: btrfs-progs-devel
|
BuildRequires: btrfs-progs-devel
|
||||||
|
%endif
|
||||||
BuildRequires: shadow-utils-subid-devel
|
BuildRequires: shadow-utils-subid-devel
|
||||||
%if 0%{?fedora} > 37
|
%if 0%{?fedora} > 37
|
||||||
Requires: containers-common-extra >= 4:1-78
|
Requires: containers-common-extra >= 4:1-78
|
||||||
@ -226,6 +234,9 @@ export LDFLAGS="-X main.buildInfo=`date +%s` -X main.cniVersion=${CNI_VERSION}"
|
|||||||
|
|
||||||
export BUILDTAGS='seccomp exclude_graphdriver_devicemapper'
|
export BUILDTAGS='seccomp exclude_graphdriver_devicemapper'
|
||||||
export BUILDTAGS+=' libsubid selinux'
|
export BUILDTAGS+=' libsubid selinux'
|
||||||
|
%if %{without btrfs}
|
||||||
|
export BUILDTAGS+=' btrfs_noversion exclude_graphdriver_btrfs'
|
||||||
|
%endif
|
||||||
%gobuild -o bin/%{name} %{import_path}/cmd/%{name}
|
%gobuild -o bin/%{name} %{import_path}/cmd/%{name}
|
||||||
%gobuild -o bin/imgtype %{import_path}/tests/imgtype
|
%gobuild -o bin/imgtype %{import_path}/tests/imgtype
|
||||||
%gobuild -o bin/copy %{import_path}/tests/copy
|
%gobuild -o bin/copy %{import_path}/tests/copy
|
||||||
|
Loading…
Reference in New Issue
Block a user