Ticket #45251: patch-no-codesign.diff

File patch-no-codesign.diff, 3.7 KB (added by RJVB (René Bertin), 8 years ago)
  • llvm-3.8.1.src/tools/lldb/packages/Python/lldbsuite/test/

    old new  
    21312131
    21322132    def signBinary(self, binary_path):
    21332133        if sys.platform.startswith("darwin"):
    2134             codesign_cmd = "codesign --force --sign lldb_codesign %s" % (binary_path)
     2134            codesign_cmd = "echo Skipping codesign --force --sign lldb_codesign %s" % (binary_path)
    21352135            call(codesign_cmd, shell=True)
    21362136
    21372137    def findBuiltClang(self):
  • llvm-3.8.1.src/tools/lldb/tools/debugserver/source/MacOSX/

    old new  
    6060target_link_libraries(debugserver ${DEBUGSERVER_USED_LIBS})
    6161
    6262# Sign the debugserver binary
    63 set (CODESIGN_IDENTITY lldb_codesign)
    64 execute_process(
    65   COMMAND xcrun -f codesign_allocate
    66   OUTPUT_STRIP_TRAILING_WHITESPACE
    67   OUTPUT_VARIABLE CODESIGN_ALLOCATE
    68   )
    69 # Older cmake versions don't support "-E env".
    70 if (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} LESS 3.2)
    71   add_custom_command(TARGET debugserver
    72     POST_BUILD
    73     # Note: --entitlements option removed, as it causes errors when debugging.
    74     # was: COMMAND CODESIGN_ALLOCATE=${CODESIGN_ALLOCATE} codesign --entitlements ${CMAKE_CURRENT_SOURCE_DIR}/../debugserver-entitlements.plist --force --sign ${CODESIGN_IDENTITY} debugserver
    75     COMMAND CODESIGN_ALLOCATE=${CODESIGN_ALLOCATE} codesign --force --sign ${CODESIGN_IDENTITY} debugserver
    76     WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/bin
    77   )
    78 else()
    79   add_custom_command(TARGET debugserver
    80     POST_BUILD
    81     # Note: --entitlements option removed (see comment above).
    82     COMMAND ${CMAKE_COMMAND} -E env CODESIGN_ALLOCATE=${CODESIGN_ALLOCATE} codesign --force --sign ${CODESIGN_IDENTITY} debugserver
    83     WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/bin
    84   )
    85 endif()
     63#set (CODESIGN_IDENTITY lldb_codesign)
     64#execute_process(
     65#  COMMAND xcrun -f codesign_allocate
     66#  OUTPUT_STRIP_TRAILING_WHITESPACE
     67#  OUTPUT_VARIABLE CODESIGN_ALLOCATE
     68#  )
     69## Older cmake versions don't support "-E env".
     70#if (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} LESS 3.2)
     71#  add_custom_command(TARGET debugserver
     72#    POST_BUILD
     73#    # Note: --entitlements option removed, as it causes errors when debugging.
     74#    # was: COMMAND CODESIGN_ALLOCATE=${CODESIGN_ALLOCATE} codesign --entitlements ${CMAKE_CURRENT_SOURCE_DIR}/../debugserver-entitlements.plist --force --sign ${CODESIGN_IDENTITY} debugserver
     75#    COMMAND CODESIGN_ALLOCATE=${CODESIGN_ALLOCATE} codesign --force --sign ${CODESIGN_IDENTITY} debugserver
     76#    WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/bin
     77#  )
     78#else()
     79#  add_custom_command(TARGET debugserver
     80#    POST_BUILD
     81#    # Note: --entitlements option removed (see comment above).
     82#    COMMAND ${CMAKE_COMMAND} -E env CODESIGN_ALLOCATE=${CODESIGN_ALLOCATE} codesign --force --sign ${CODESIGN_IDENTITY} debugserver
     83#    WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/bin
     84#  )
     85#endif()
    8686
    8787install(TARGETS debugserver
    8888  RUNTIME DESTINATION bin
  • llvm-3.8.1.src/tools/lldb/tools/debugserver/source/MacOSX/

    old new  
    1212
    1313TOOLNAME = debugserver
    1414
    15 CODESIGN_TOOLS := 1
     15CODESIGN_TOOLS := 0
    1616
    1717TOOL_CODESIGN_IDENTITY := lldb_codesign
    1818
     
    5151endif
    5252
    5353$(GENERATED_MACH_SOURCES):
    54         mig -I$(PROJ_OBJ_DIR)/../.. $(PROJ_SRC_DIR)/dbgnub-mig.defs
    55  No newline at end of file
     54        mig -I$(PROJ_OBJ_DIR)/../.. $(PROJ_SRC_DIR)/dbgnub-mig.defs