openssl-1.0.2a-parallel-install-dirs.patch?id=c8abcbe8de5d3b6cdd68c162f398c011ff6e2d9d 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. https://rt.openssl.org/Ticket/Display.html?id=3736&user=guest&pass=guest
  2. From aba899f2eca21e11e5e9797bf8258e7265dea9f5 Mon Sep 17 00:00:00 2001
  3. From: Mike Frysinger <vapier@gentoo.org>
  4. Date: Sun, 8 Mar 2015 01:32:01 -0500
  5. Subject: [PATCH] fix parallel install with dir creation
  6. The mkdir-p.pl does not handle parallel creation of directories.
  7. This comes up when the install_sw and install_docs rules run and
  8. both call mkdir-p.pl on sibling directory trees.
  9. Instead, lets create a single install_dirs rule that makes all of
  10. the dirs we need, and have these two install steps depend on that.
  11. ---
  12. Makefile.org | 17 +++++++++--------
  13. 1 file changed, 9 insertions(+), 8 deletions(-)
  14. diff --git a/Makefile.org b/Makefile.org
  15. index a6d9471..78e6143 100644
  16. --- a/Makefile.org
  17. +++ b/Makefile.org
  18. @@ -536,9 +536,9 @@
  19. dist_pem_h:
  20. (cd crypto/pem; $(MAKE) -e $(BUILDENV) pem.h; $(MAKE) clean)
  21. -install: all install_docs install_sw
  22. +install: install_docs install_sw
  23. -install_sw:
  24. +install_dirs:
  25. @$(PERL) $(TOP)/util/mkdir-p.pl $(INSTALL_PREFIX)$(INSTALLTOP)/bin \
  26. $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR) \
  27. $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines \
  28. @@ -547,6 +547,13 @@
  29. $(INSTALL_PREFIX)$(OPENSSLDIR)/misc \
  30. $(INSTALL_PREFIX)$(OPENSSLDIR)/certs \
  31. $(INSTALL_PREFIX)$(OPENSSLDIR)/private
  32. + @$(PERL) $(TOP)/util/mkdir-p.pl \
  33. + $(INSTALL_PREFIX)$(MANDIR)/man1 \
  34. + $(INSTALL_PREFIX)$(MANDIR)/man3 \
  35. + $(INSTALL_PREFIX)$(MANDIR)/man5 \
  36. + $(INSTALL_PREFIX)$(MANDIR)/man7
  37. +
  38. +install_sw: install_dirs
  39. @set -e; headerlist="$(EXHEADER)"; for i in $$headerlist;\
  40. do \
  41. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  42. @@ -636,12 +643,7 @@
  43. done; \
  44. done
  45. -install_docs:
  46. - @$(PERL) $(TOP)/util/mkdir-p.pl \
  47. - $(INSTALL_PREFIX)$(MANDIR)/man1 \
  48. - $(INSTALL_PREFIX)$(MANDIR)/man3 \
  49. - $(INSTALL_PREFIX)$(MANDIR)/man5 \
  50. - $(INSTALL_PREFIX)$(MANDIR)/man7
  51. +install_docs: install_dirs
  52. @pod2man="`cd ./util; ./pod2mantest $(PERL)`"; \
  53. here="`pwd`"; \
  54. filecase=; \
  55. --
  56. 2.3.4