OpenJDK / jdk / jdk
changeset 58383:4253bf176649
8240972: macOS codesign fail on macOS 10.13.5 or older
Reviewed-by: erikj, ihse
Contributed-by: junyuan.zheng@microsoft.com
author | erikj |
---|---|
date | Thu, 12 Mar 2020 12:55:19 -0700 |
parents | e287fc5b9e86 |
children | b2b9f856b71a |
files | make/autoconf/basic_tools.m4 |
diffstat | 1 files changed, 14 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/make/autoconf/basic_tools.m4 Thu Mar 12 11:56:49 2020 -0700 +++ b/make/autoconf/basic_tools.m4 Thu Mar 12 12:55:19 2020 -0700 @@ -393,12 +393,25 @@ AC_MSG_CHECKING([if codesign certificate is present]) $RM codesign-testfile $TOUCH codesign-testfile - $CODESIGN -s "$MACOSX_CODESIGN_IDENTITY" codesign-testfile 2>&AS_MESSAGE_LOG_FD >&AS_MESSAGE_LOG_FD || CODESIGN= + $CODESIGN -s "$MACOSX_CODESIGN_IDENTITY" codesign-testfile 2>&AS_MESSAGE_LOG_FD \ + >&AS_MESSAGE_LOG_FD || CODESIGN= $RM codesign-testfile if test "x$CODESIGN" = x; then AC_MSG_RESULT([no]) else AC_MSG_RESULT([yes]) + # Verify that the codesign has --option runtime + AC_MSG_CHECKING([if codesign has --option runtime]) + $RM codesign-testfile + $TOUCH codesign-testfile + $CODESIGN --option runtime -s "$MACOSX_CODESIGN_IDENTITY" codesign-testfile \ + 2>&AS_MESSAGE_LOG_FD >&AS_MESSAGE_LOG_FD || CODESIGN= + $RM codesign-testfile + if test "x$CODESIGN" = x; then + AC_MSG_ERROR([codesign does not have --option runtime. macOS 10.13.6 and above is required.]) + else + AC_MSG_RESULT([yes]) + fi fi fi UTIL_REQUIRE_PROGS(SETFILE, SetFile)