openssl-1.0.2a-parallel-obj-headers.patch?id=c8abcbe8de5d3b6cdd68c162f398c011ff6e2d9d 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. https://rt.openssl.org/Ticket/Display.html?id=3737&user=guest&pass=guest
  2. From ce279d4361e07e9af9ceca8a6e326e661758ad53 Mon Sep 17 00:00:00 2001
  3. From: Mike Frysinger <vapier@gentoo.org>
  4. Date: Sun, 8 Mar 2015 01:34:48 -0500
  5. Subject: [PATCH] fix parallel generation of obj headers
  6. The current code has dummy sleep/touch commands to try and work
  7. around the parallel issue, but that is obviously racy. Instead
  8. lets force one of the files to depend on the other so we know
  9. they'll never run in parallel.
  10. ---
  11. crypto/objects/Makefile | 6 +++---
  12. 1 file changed, 3 insertions(+), 3 deletions(-)
  13. diff --git a/crypto/objects/Makefile b/crypto/objects/Makefile
  14. index ad2db1e..7d32504 100644
  15. --- a/crypto/objects/Makefile
  16. +++ b/crypto/objects/Makefile
  17. @@ -44,11 +44,11 @@
  18. # objects.pl both reads and writes obj_mac.num
  19. obj_mac.h: objects.pl objects.txt obj_mac.num
  20. $(PERL) objects.pl objects.txt obj_mac.num obj_mac.h
  21. - @sleep 1; touch obj_mac.h; sleep 1
  22. -obj_xref.h: objxref.pl obj_xref.txt obj_mac.num
  23. +# This doesn't really need obj_mac.h, but since that rule reads & writes
  24. +# obj_mac.num, we can't run in parallel with it.
  25. +obj_xref.h: objxref.pl obj_xref.txt obj_mac.num obj_mac.h
  26. $(PERL) objxref.pl obj_mac.num obj_xref.txt > obj_xref.h
  27. - @sleep 1; touch obj_xref.h; sleep 1
  28. files:
  29. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  30. --
  31. 2.3.4