From: Tim Serong Date: Wed, 30 Mar 2022 05:25:30 +0000 (+1100) Subject: ceph.spec.in: remove build directory in %clean, not %install X-Git-Tag: v16.2.11~545^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F45698%2Fhead;p=ceph.git ceph.spec.in: remove build directory in %clean, not %install Removing the build directory at the end of %install is too soon, and means we get rid of a bunch of stuff needed to correctly create debuginfo/debugsource packages, which happens automatically right after %install. So, let's put it where it really belongs, in the %clean section. Fixes: aa18cb12003e3526c8e8f23dc2335a483fbfa68e Fixes: https://tracker.ceph.com/issues/55079 Signed-off-by: Tim Serong (cherry picked from commit 94ad178bdcbae56a8eafc65a3a276e25d7a51a5e) --- diff --git a/ceph.spec.in b/ceph.spec.in index eacf8de67531..418b3f30e8f7 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -1431,13 +1431,12 @@ install -m 644 -D monitoring/ceph-mixin/prometheus_alerts.yml %{buildroot}/etc/p %py_byte_compile %{__python3} %{buildroot}%{python3_sitelib} %endif +%clean +rm -rf %{buildroot} # built binaries are no longer necessary at this point, # but are consuming ~17GB of disk in the build environment rm -rf build -%clean -rm -rf %{buildroot} - ################################################################################# # files and systemd scriptlets #################################################################################