]> sourceware.org Git - systemtap.git/commitdiff
dtrace: Allow for reproducible .o file builds.
authorBernhard M. Wiedemann <bwiedemann@suse.de>
Mon, 14 Aug 2017 21:33:33 +0000 (16:33 -0500)
committerDavid Smith <dsmith@redhat.com>
Mon, 14 Aug 2017 21:33:33 +0000 (16:33 -0500)
* dtrace.in: When building packages like libvirt on openSUSE that
  link a libvirt_probes.o from dtrace, the build results differed
  across builds. This is because the source's temporary filename
  was in the .o. Make the temporary filename reproducible.

dtrace.in

index 5e1cf807967a4692e84d0c28589d6feb4618159e..2e2e002a5c56e695c7d9b84e813a4797b30c24c0 100644 (file)
--- a/dtrace.in
+++ b/dtrace.in
@@ -410,7 +410,7 @@ def main():
         else:
             print("header: " + fname)
 
-        (ignore, fname) = mkstemp(suffix=".c")
+        fname = filename + ".dtrace-temp.c"
         fdesc = open(fname, mode='w')
         providers.semaphore_write(fdesc)
         fdesc.close()
This page took 0.026836 seconds and 5 git commands to generate.