Browse Source

openssl: skip patch `Configurations` when version <= 1.1.0 (#8282) (#8390)

Namo 1 month ago
parent
commit
8519e49114
1 changed files with 5 additions and 0 deletions
  1. 5 0
      packages/o/openssl/configure/patch.lua

+ 5 - 0
packages/o/openssl/configure/patch.lua

@@ -1,4 +1,9 @@
 function _fix_overlong_make_recipe(package)
 function _fix_overlong_make_recipe(package)
+    -- Skip when OpenSSL version <= 1.1.0 as they don't have the `Configurations` directory
+    -- see: https://github.com/xmake-io/xmake-repo/issues/8282
+    if package:version():le("1.1.0") then
+        return
+    end
     -- In the MSYS environment, the make recipe can be too long to execute.
     -- In the MSYS environment, the make recipe can be too long to execute.
     -- This patch is adapted from OpenSSL 3.
     -- This patch is adapted from OpenSSL 3.
     -- For more details, see: https://github.com/openssl/openssl/issues/12116
     -- For more details, see: https://github.com/openssl/openssl/issues/12116