From aa18cb12003e3526c8e8f23dc2335a483fbfa68e Mon Sep 17 00:00:00 2001 From: Tim Serong Date: Mon, 28 Mar 2022 15:12:10 +1100 Subject: [PATCH] ceph.spec.in: remove build directory at end of %install 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 --- ceph.spec.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ceph.spec.in b/ceph.spec.in index 649247308a7..19f5714a996 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -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} -- 2.47.3