0019-Support-LibreSSL-as-provider-of-openssl.patch 974 B

123456789101112131415161718192021222324252627
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Wed, 30 Mar 2016 02:59:19 +0200
  3. Subject: Support LibreSSL as provider of openssl
  4. The build scripts check for openssl by grepping the string "OpenSSL" in
  5. the output of openssl version command. LibreSSL fails this test as it
  6. outputs something like "LibreSSL 2.2.4". This patch fix the
  7. prereq-bulid.mk file so that it accepts LibreSSL as openssl provider as
  8. well.
  9. Signed-off-by: Marek Behun <kabel@blackhole.sk>
  10. Backport of r48267
  11. diff --git a/include/prereq-build.mk b/include/prereq-build.mk
  12. index 32c4ada..f36d57c 100644
  13. --- a/include/prereq-build.mk
  14. +++ b/include/prereq-build.mk
  15. @@ -151,7 +151,7 @@ $(eval $(call SetupHostCommand,file,Please install the 'file' package, \
  16. file --version 2>&1 | grep file))
  17. $(eval $(call SetupHostCommand,openssl,Please install the 'openssl' utility, \
  18. - openssl version | grep OpenSSL))
  19. + openssl version | grep '\(OpenSSL\|LibreSSL\)'))
  20. # Install ldconfig stub