Skip to content

Commit

Permalink
ceph.spec.in: remove build directory at end of %install
Browse files Browse the repository at this point in the history
By the time we get to the end of the %install section, all the
built binaries have been installed in the build root, so we can
delete the build directory from the source tree.  This frees up
about 17GB of disk space on build hosts, which is helpful in
case other processes later in the RPM build need more disk space.

Fixes: https://tracker.ceph.com/issues/55079
Signed-off-by: Tim Serong <tserong@suse.com>
  • Loading branch information
tserong committed Mar 28, 2022
1 parent 01b57c1 commit aa18cb1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ceph.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -1465,6 +1465,10 @@ install -m 644 -D monitoring/ceph-mixin/prometheus_alerts.yml %{buildroot}/etc/p
%py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}
%endif

# built binaries are no longer necessary at this point,
# but are consuming ~17GB of disk in the build environment
rm -rf %{_vpath_builddir}

%clean
rm -rf %{buildroot}

Expand Down

0 comments on commit aa18cb1

Please sign in to comment.