VirtualBox

Changeset 96934 in vbox for trunk


Ignore:
Timestamp:
Sep 29, 2022 8:28:15 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
153845
Message:

/Config.kmk: Fix non-executable signing (code signing service case) on darwin. Used the wrong signing mode, ending up with no signature. The naming of the signing mode is totally counter-intuitive, and the result of signing mode "mac_dmg" is really difficult to put in the expected place. bugref:10298

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r96910 r96934  
    44024402  if $(intersects darwin all 1,$(VBOX_WITH_CORP_CODE_SIGNING))
    44034403   ## @todo cannot handle $(2), the identifier.
    4404    VBOX_SIGN_FILE_FN = $(call MSG_TOOL,SIGNTOOL,,$(1),$(2))$(NLTAB)$(call VBOX_CCS_SIGN_CMD,binary,$(1))
     4404   VBOX_SIGN_FILE_FN = $(call MSG_TOOL,SIGNTOOL,,$(1),$(2))$(NLTAB) \
     4405    $(call VBOX_CCS_SIGN_CMD,mac_dmg,$(1))$(NLTAB) \
     4406        $(REDIRECT) -E 'LC_ALL=C' -we "$(1).tmp" -- ditto -x -k -V "$(1).zip" "$(call VBOX_DIRX,$(1))"$(NLTAB) \
     4407    dirname="$(call VBOX_DIRX,$(1))/$(DOLLAR)($(SED) -n -e 's+^copying file \([0-9]\{1,\}\)/.\{1,\}$(DOLLAR)+\1+p')" ; \
     4408    $(MV) -f -- "$(DOLLAR)dirname/$(basename $(1))" "$(call VBOX_DIRX,$(1))" ; \
     4409    $(RM) -Rf -- "$(DOLLAR)dirname/"$(NLTAB) \
     4410        $(RM) -f -- "$(1).zip" "$(1).tmp"
    44054411  else
    44064412   VBOX_SIGN_FILE_FN = $(call MSG_TOOL,SIGNTOOL,,$(1),$(2))$(NLTAB)$(VBOX_CODESIGN) \
     
    44194425  # @param 2  Identifier, optional.
    44204426  # @note Will segfault if --file-list is used on 10.15.2 (kSecCodeInfoChangedFiles -> NULL, outputter doesn't check for NULL).
    4421   VBOX_SIGN_DMG_FN = $(filter-out --file-list=-,$(VBOX_SIGN_FILE_FN))
     4427  if $(intersects darwin all 1,$(VBOX_WITH_CORP_CODE_SIGNING))
     4428   VBOX_SIGN_DMG_FN = $(call MSG_TOOL,SIGNTOOL,,$(1),$(2))$(NLTAB)$(call VBOX_CCS_SIGN_CMD,binary,$(1))
     4429  else
     4430   VBOX_SIGN_DMG_FN = $(filter-out --file-list=-,$(VBOX_SIGN_FILE_FN))
     4431  endif
    44224432
    44234433  ## Sign a PKG file. Used with corp code signing only.
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette