[Rpm-maint] [rpm-software-management/rpm] platform: Ensure empty buildroot for %install (#1039)

Neal Gompa (ニール・ゴンパ) notifications at github.com
Wed Feb 5 13:09:40 UTC 2020


Conan-Kudo commented on this pull request.



> @@ -67,6 +67,20 @@
 #==============================================================================
 # ---- Build policy macros.
 #
+
+%__buildroot_clean %{__rm} -rf "%{buildroot}"} \
+    %{__mkdir_p} "%{dirname:%{buildroot}}"\
+    %{__mkdir} "%{buildroot}"\
+%{nil}
+
+#---------------------------------------------------------------------
+#	Expanded at beginning of %install scriptlet.
+#
+
+%__spec_install_pre %{___build_pre}\
+   %{?buildroot:%{?__buildroot_clean}}\
+%{nil}
+
 #---------------------------------------------------------------------

Fixed.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1039#discussion_r375244540
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200205/9644e029/attachment.html>


More information about the Rpm-maint mailing list