diff --git a/packages/o/openssl/configure/patch.lua b/packages/o/openssl/configure/patch.lua index 5d474c1e849..3d6061ce3dc 100644 --- a/packages/o/openssl/configure/patch.lua +++ b/packages/o/openssl/configure/patch.lua @@ -158,7 +158,16 @@ function _replace_NUL_with_null() end function main(package) - _remove_unused_pod_usage() - _replace_NUL_with_null() - _fix_overlong_make_recipe() + try { + function() + _remove_unused_pod_usage() + _replace_NUL_with_null() + _fix_overlong_make_recipe() + end, + catch { + function (errors) + cprint("${color.error}" .. errors .. "${clear}\n") + end + } + } end diff --git a/packages/o/openssl/makefile/patch.lua b/packages/o/openssl/makefile/patch.lua index ff45c659f6e..f94b81425c1 100644 --- a/packages/o/openssl/makefile/patch.lua +++ b/packages/o/openssl/makefile/patch.lua @@ -32,5 +32,5 @@ function _patch_for_llvm_rc(package, opt) end function main(package, opt) - _patch_for_llvm_rc(package, opt) + try {function() return _patch_for_llvm_rc(package, opt) end} end