Skip to content

Commit 710a8db

Browse files
authored
Merge pull request #830 from thaJeztah/remove_btrfs_headers
[master] remove libbtrfs-dev, btrfs-tools, btrfs-progs-devel build-dependencies
2 parents 153875c + 1e630e1 commit 710a8db

File tree

5 files changed

+6
-16
lines changed

5 files changed

+6
-16
lines changed

deb/common/control

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ Build-Depends: bash,
1010
debhelper (>= 10~) | dh-systemd,
1111
gcc,
1212
git,
13-
libbtrfs-dev | btrfs-tools,
1413
libc-dev,
1514
libdevmapper-dev,
1615
libltdl-dev,

rpm/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,6 @@ rpm: fedora centos ## build all rpm packages
8585
.PHONY: fedora
8686
fedora: $(FEDORA_RELEASES) ## build all fedora rpm packages
8787

88-
.PHONY: centos-8 centos-9
89-
centos-8 centos-9: RPMBUILD_EXTRA_FLAGS=--define '_without_btrfs 1'
90-
9188
.PHONY: centos
9289
centos: $(CENTOS_RELEASES) ## build all centos rpm packages
9390

rpm/SPECS/docker-ce.spec

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
%global debug_package %{nil}
22

3-
# BTRFS is enabled by default, but can be disabled by defining _without_btrfs
4-
%if %{undefined _with_btrfs} && %{undefined _without_btrfs}
5-
%define _with_btrfs 1
6-
%endif
7-
83
Name: docker-ce
94
Version: %{_version}
105
Release: %{_release}%{?dist}
@@ -33,7 +28,6 @@ Requires: tar
3328
Requires: xz
3429

3530
BuildRequires: bash
36-
%{?_with_btrfs:BuildRequires: btrfs-progs-devel}
3731
BuildRequires: ca-certificates
3832
BuildRequires: cmake
3933
BuildRequires: device-mapper-devel

rpm/centos-8/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ COPY SPECS /root/rpmbuild/SPECS
3434
# TODO change once we support scan-plugin on other architectures
3535
RUN \
3636
if [ "$(uname -m)" = "x86_64" ]; then \
37-
dnf builddep --define '_without_btrfs 1' -y /root/rpmbuild/SPECS/*.spec; \
37+
dnf builddep -y /root/rpmbuild/SPECS/*.spec; \
3838
else \
39-
dnf builddep --define '_without_btrfs 1' -y /root/rpmbuild/SPECS/docker-c*.spec; \
40-
dnf builddep --define '_without_btrfs 1' -y /root/rpmbuild/SPECS/docker-b*.spec; \
39+
dnf builddep -y /root/rpmbuild/SPECS/docker-c*.spec; \
40+
dnf builddep -y /root/rpmbuild/SPECS/docker-b*.spec; \
4141
fi
4242

4343
COPY --from=golang /usr/local/go /usr/local/go

rpm/centos-9/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ COPY SPECS /root/rpmbuild/SPECS
3030
# TODO change once we support scan-plugin on other architectures
3131
RUN \
3232
if [ "$(uname -m)" = "x86_64" ]; then \
33-
dnf builddep --define '_without_btrfs 1' -y /root/rpmbuild/SPECS/*.spec; \
33+
dnf builddep -y /root/rpmbuild/SPECS/*.spec; \
3434
else \
35-
dnf builddep --define '_without_btrfs 1' -y /root/rpmbuild/SPECS/docker-c*.spec; \
36-
dnf builddep --define '_without_btrfs 1' -y /root/rpmbuild/SPECS/docker-b*.spec; \
35+
dnf builddep -y /root/rpmbuild/SPECS/docker-c*.spec; \
36+
dnf builddep -y /root/rpmbuild/SPECS/docker-b*.spec; \
3737
fi
3838

3939
COPY --from=golang /usr/local/go /usr/local/go

0 commit comments

Comments
 (0)