]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: remove build directory in %clean, not %install 45697/head
authorTim Serong <tserong@suse.com>
Wed, 30 Mar 2022 05:25:30 +0000 (16:25 +1100)
committerTim Serong <tserong@suse.com>
Wed, 30 Mar 2022 07:36:54 +0000 (18:36 +1100)
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 <tserong@suse.com>
(cherry picked from commit 94ad178bdcbae56a8eafc65a3a276e25d7a51a5e)

ceph.spec.in

index 93e283efb06d211420cb6e7e2159eb2a64784fc5..6041d68d677cee2e4fd90159dfad56cdf8c2466a 100644 (file)
@@ -1445,13 +1445,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 %{_vpath_builddir}
 
-%clean
-rm -rf %{buildroot}
-
 #################################################################################
 # files and systemd scriptlets
 #################################################################################