VirtualBox

Changeset 54680 in vbox


Ignore:
Timestamp:
Mar 7, 2015 5:51:01 AM (10 years ago)
Author:
vboxsync
Message:

Installer/darwin: Corrected frameworks so they're signable on 10.10 with xcode 6.1.1.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r54679 r54680  
    27602760        --force \
    27612761        --file-list - \
     2762       $(3) \
    27622763        $(VBOX_CERTIFICATE_SUBJECT_NAME_ARGS) \
    27632764        $(1) $(if $(2),--identifier "$(2)",)
     
    28392840        $(MKDIR) -p -- "$$($1.kext_0_OUTDIR)/Contents/MacOS/"
    28402841        $(INSTALL) -m 644 $$($1_1_TARGET) $$($1.kext_0_OUTDIR)/Contents/MacOS/$1
    2841         $(call VBOX_SIGN_BUNDLE_FN,$$($1.kext_0_OUTDIR),org.virtualbox.app.kext.$1)
     2842        $(call VBOX_SIGN_BUNDLE_FN,$$($1.kext_0_OUTDIR),org.virtualbox.app.kext.$1,)
    28422843   endef
    28432844  else
  • trunk/Makefile.kmk

    r52855 r54680  
    143143# Install our Qt DLLs / Shared Objects / Frameworks.
    144144# Note: The installer fixes the darwin .dylibs when hardening is enabled.
     145# Note: Contents/Info.plist is where it's in 4.7.x, not sure if the location is kosher... According to
     146#       https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/FrameworkAnatomy.html
     147#       the Info.plist file goes into Resources.
    145148#
    146149ifeq ($(KBUILD_TARGET),darwin)
     
    149152 qt4-bin_INST = $(INST_VIRTUALBOX)Contents/
    150153 qt4-bin_SOURCES = $(foreach qtmod,$(VBOX_QT4_MOD_NAMES) \
    151         ,$(PATH_SDK_QT4_LIB)/$(qtmod).framework/Versions/4/$(qtmod)=>Frameworks/$(qtmod).framework/Versions/4/$(qtmod))
     154        ,$(PATH_SDK_QT4_LIB)/$(qtmod).framework/Versions/4/$(qtmod)=>Frameworks/$(qtmod).framework/Versions/4/$(qtmod) \
     155         $(PATH_SDK_QT4_LIB)/$(qtmod).framework/Contents/Info.plist=>Frameworks/$(qtmod).framework/Versions/4/Resources/Info.plist \
     156        )
    152157 ifdef VBOX_WITH_COCOA_QT
    153158  qt4-bin_SOURCES += \
     
    161166 endif
    162167 qt4-bin_SYMLINKS = $(foreach qtmod, $(VBOX_QT4_MOD_NAMES) \
    163                 ,Frameworks/$(qtmod).framework/$(qtmod)=>Versions/4/$(qtmod))
    164  ifdef VBOX_WITH_COCOA_QT
    165   qt4-bin_SYMLINKS += \
    166         Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Resources=>Versions/4/Resources/
    167  endif
     168                ,Frameworks/$(qtmod).framework/Versions/Current=>4 \
     169                 Frameworks/$(qtmod).framework/$(qtmod)=>Versions/4/$(qtmod) \
     170                 Frameworks/$(qtmod).framework/Resources=>Versions/4/Resources \)
    168171else
    169172 if defined(VBOX_WITH_QT4_SUN) || defined(VBOX_WITH_QT4_PAYLOAD)
  • trunk/src/VBox/Installer/darwin/Makefile.kmk

    r54678 r54680  
    498498        Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/classes.nib \
    499499        Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/info.nib \
    500         Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/keyedobjects.nib
     500        Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/keyedobjects.nib \
     501        $(foreach qtmod, $(VBOX_QT4_MOD_NAMES), Frameworks/$(qtmod).framework/Versions/4/Resources/Info.plist)
    501502
    502503VBOX_DI_VBAPP_SYMLINKS = \
    503504        Resources/VirtualBoxVM.app/Contents/MacOS=>../../../MacOS/ \
    504505        Resources/vmstarter.app/Contents/MacOS=>../../../MacOS/ \
    505         $(foreach qtmod, $(VBOX_QT4_MOD_NAMES), Frameworks/$(qtmod).framework/$(qtmod)=>Versions/4/$(qtmod)) \
    506         Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Resources=>Versions/4/Resources/
     506        $(foreach qtmod, $(VBOX_QT4_MOD_NAMES) \
     507        ,Frameworks/$(qtmod).framework/Versions/Current=>4 )
     508ifndef VBOX_NOT_OSX_105
     509VBOX_DI_VBAPP_SYMLINKS += $(foreach qtmod, $(VBOX_QT4_MOD_NAMES) \
     510        ,Frameworks/$(qtmod).framework/$(qtmod)=>Versions/4/$(qtmod) \
     511         Frameworks/$(qtmod).framework/Resources=>Versions/4/Resources/ )
     512endif
    507513
    508514ifdef VBOX_WITH_PYTHON
     
    695701        $(foreach qtmod, $(VBOX_QT4_MOD_NAMES) \
    696702                ,$(NLTAB)$(call VBOX_SIGN_MACHO_FN,$(VBOX_PATH_VBOX_APP_TMP)/Contents/Frameworks/$(qtmod).framework/Versions/4/$(qtmod),org.virtualbox.app.frameworks.$(qtmod)) )
     703        $(foreach qtmod, $(VBOX_QT4_MOD_NAMES) \
     704                ,$(NLTAB)$(call VBOX_SIGN_BUNDLE_FN,$(VBOX_PATH_VBOX_APP_TMP)/Contents/Frameworks/$(qtmod).framework/Versions/4,org.virtualbox.app.frameworks.$(qtmod)) )
    697705        $(foreach dylib, \
    698706                $(VBOX_DI_VBAPP_DYLIBS) \
     
    721729                , $(NLTAB)$(call VBOX_SIGN_FILE_FN,$(VBOX_PATH_VBOX_APP_TMP)/Contents/$(file),org.virtualbox.app.$(tolower $(subst $(SP),,$(subst /,.,$(file))))) )
    722730
     731        $(call VBOX_SIGN_BUNDLE_FN,$(VBOX_PATH_VBOX_APP_TMP)/Contents/Resources/VirtualBoxVM.app,,)
     732        $(call VBOX_SIGN_BUNDLE_FN,$(VBOX_PATH_VBOX_APP_TMP)/Contents/Resources/vmstarter.app,,)
     733        $(call VBOX_SIGN_BUNDLE_FN,$(VBOX_PATH_VBOX_APP_TMP),,--deep)
    723734 else
    724735        $(foreach other, $(VBOX_DI_VBAPP_OTHER_UNIVERSAL_BINS) $(VBOX_DI_VBAPP_OTHER_BINS) \
     
    727738                , $(NLTAB)$(call VBOX_SIGN_MACHO_FN,$(VBOX_PATH_VBOX_APP_TMP)/Contents/$(bin),org.virtualbox.app.macos.$(notdir $(bin))) )
    728739 endif
    729  ifdef VBOX_NOT_OSX_105 # requires codesign+framworks from Lion or later. Snow Leopard codesign says object file format invalid or unsuitable.
    730         $(call VBOX_SIGN_BUNDLE_FN,$(VBOX_PATH_VBOX_APP_TMP)/Contents/Resources/VirtualBoxVM.app,)
    731         $(call VBOX_SIGN_BUNDLE_FN,$(VBOX_PATH_VBOX_APP_TMP)/Contents/Resources/vmstarter.app,)
    732         $(call VBOX_SIGN_BUNDLE_FN,$(VBOX_PATH_VBOX_APP_TMP),)
    733  endif
    734740endif
    735741        @# Set the correct owner and set the set-user-ID-on-execution bit on the relevant executables.
     
    740746                        $(VBOX_PATH_VBOX_APP_TMP)/Contents/MacOS/$(bin))
    741747endif
     748        exit 1
    742749        @# Do keyword replacement in the package info and description files.
    743750        $(SED) \
Note: See TracChangeset for help on using the changeset viewer.

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