summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2009-05-21 10:28:55 -0400
committerFrank Ch. Eigler <fche@elastic.org>2009-05-21 10:28:55 -0400
commit1208cc21f63fff917e7817487d727d4cbe12d0ea (patch)
tree1e74102ef1a3dc8bc6505ad6c7277f5b0c649a52
parentd79591b3274ba961600d387f41277626608b02af (diff)
downloadsystemtap-steved-1208cc21f63fff917e7817487d727d4cbe12d0ea.tar.gz
systemtap-steved-1208cc21f63fff917e7817487d727d4cbe12d0ea.tar.xz
systemtap-steved-1208cc21f63fff917e7817487d727d4cbe12d0ea.zip
PR10182: clean uprobes.ko during rpm upgrade
-rw-r--r--systemtap.spec7
1 files changed, 7 insertions, 0 deletions
diff --git a/systemtap.spec b/systemtap.spec
index d3b3f237..c0864657 100644
--- a/systemtap.spec
+++ b/systemtap.spec
@@ -252,6 +252,13 @@ exit 0
chkconfig --del systemtap
exit 0
+%post
+# Remove any previously-built uprobes.ko materials
+(make -C /usr/share/systemtap/runtime/uprobes clean) >/dev/null 3>&1 || true
+
+%preun
+# Ditto
+(make -C /usr/share/systemtap/runtime/uprobes clean) >/dev/null 3>&1 || true
%files
%defattr(-,root,root)