Skip to content

Commit

Permalink
Merge pull request #830 from thaJeztah/remove_btrfs_headers
Browse files Browse the repository at this point in the history
[master] remove libbtrfs-dev, btrfs-tools, btrfs-progs-devel build-dependencies
  • Loading branch information
thaJeztah authored Jan 17, 2023
2 parents 153875c + 1e630e1 commit 710a8db
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 16 deletions.
1 change: 0 additions & 1 deletion deb/common/control
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Build-Depends: bash,
debhelper (>= 10~) | dh-systemd,
gcc,
git,
libbtrfs-dev | btrfs-tools,
libc-dev,
libdevmapper-dev,
libltdl-dev,
Expand Down
3 changes: 0 additions & 3 deletions rpm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ rpm: fedora centos ## build all rpm packages
.PHONY: fedora
fedora: $(FEDORA_RELEASES) ## build all fedora rpm packages

.PHONY: centos-8 centos-9
centos-8 centos-9: RPMBUILD_EXTRA_FLAGS=--define '_without_btrfs 1'

.PHONY: centos
centos: $(CENTOS_RELEASES) ## build all centos rpm packages

Expand Down
6 changes: 0 additions & 6 deletions rpm/SPECS/docker-ce.spec
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
%global debug_package %{nil}

# BTRFS is enabled by default, but can be disabled by defining _without_btrfs
%if %{undefined _with_btrfs} && %{undefined _without_btrfs}
%define _with_btrfs 1
%endif

Name: docker-ce
Version: %{_version}
Release: %{_release}%{?dist}
Expand Down Expand Up @@ -33,7 +28,6 @@ Requires: tar
Requires: xz

BuildRequires: bash
%{?_with_btrfs:BuildRequires: btrfs-progs-devel}
BuildRequires: ca-certificates
BuildRequires: cmake
BuildRequires: device-mapper-devel
Expand Down
6 changes: 3 additions & 3 deletions rpm/centos-8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ COPY SPECS /root/rpmbuild/SPECS
# TODO change once we support scan-plugin on other architectures
RUN \
if [ "$(uname -m)" = "x86_64" ]; then \
dnf builddep --define '_without_btrfs 1' -y /root/rpmbuild/SPECS/*.spec; \
dnf builddep -y /root/rpmbuild/SPECS/*.spec; \
else \
dnf builddep --define '_without_btrfs 1' -y /root/rpmbuild/SPECS/docker-c*.spec; \
dnf builddep --define '_without_btrfs 1' -y /root/rpmbuild/SPECS/docker-b*.spec; \
dnf builddep -y /root/rpmbuild/SPECS/docker-c*.spec; \
dnf builddep -y /root/rpmbuild/SPECS/docker-b*.spec; \
fi

COPY --from=golang /usr/local/go /usr/local/go
Expand Down
6 changes: 3 additions & 3 deletions rpm/centos-9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ COPY SPECS /root/rpmbuild/SPECS
# TODO change once we support scan-plugin on other architectures
RUN \
if [ "$(uname -m)" = "x86_64" ]; then \
dnf builddep --define '_without_btrfs 1' -y /root/rpmbuild/SPECS/*.spec; \
dnf builddep -y /root/rpmbuild/SPECS/*.spec; \
else \
dnf builddep --define '_without_btrfs 1' -y /root/rpmbuild/SPECS/docker-c*.spec; \
dnf builddep --define '_without_btrfs 1' -y /root/rpmbuild/SPECS/docker-b*.spec; \
dnf builddep -y /root/rpmbuild/SPECS/docker-c*.spec; \
dnf builddep -y /root/rpmbuild/SPECS/docker-b*.spec; \
fi

COPY --from=golang /usr/local/go /usr/local/go
Expand Down

0 comments on commit 710a8db

Please sign in to comment.