Skip to contentSkip to conversation

Fix mkspec to cleanup RPM_BUILD_ROOT

PATCH Applied Josh Hunt 2 participants 2 messages Feb 22, 2009 – Mar 7, 2009 Kbuild

lore
Share & tools
lore

Josh Hunt

author
#0 lore raw

PATCH 1/1 Fix mkspec to cleanup RPM_BUILD_ROOT

The contents of the %clean section in mkspec is currently commented out leaving RPM_BUILD_ROOT and its contents on the build machine. This patch removes it once the rpm build process is complete.

---

Index: linux-2.6/scripts/package/mkspec
===================================================================
--- linux-2.6.orig/scripts/package/mkspec 2009-02-20
15:51:22.000000000 -0800
+++ linux-2.6/scripts/package/mkspec 2009-02-20 16:06:32.000000000
-0800
@@ -96,7 +96,7 @@ echo "%endif"

echo ""
echo "%clean"
-echo '#echo -rf $RPM_BUILD_ROOT'
+echo 'rm -rf $RPM_BUILD_ROOT'
echo ""
echo "%files"
echo '%defattr (-, root, root)'

Applied
#1 lore raw
Quoted 5 lines · Josh Hunt

The contents of the %clean section in mkspec is currently commented out leaving RPM_BUILD_ROOT and its contents on the build machine. This patch removes it once the rpm build process is complete.

Applied,
Sam