]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: remove build directory at end of %install
authorTim Serong <tserong@suse.com>
Mon, 28 Mar 2022 04:12:10 +0000 (15:12 +1100)
committerTim Serong <tserong@suse.com>
Wed, 30 Mar 2022 00:10:19 +0000 (11:10 +1100)
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>
(cherry picked from commit aa18cb12003e3526c8e8f23dc2335a483fbfa68e)

ceph.spec.in

index bb3c0553af5a3c5ad62803d7a4e5cd0af8616e11..93e283efb06d211420cb6e7e2159eb2a64784fc5 100644 (file)
@@ -1445,6 +1445,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}