VirtualBox

Changeset 54676 in vbox for trunk/src/VBox/Installer/darwin


Ignore:
Timestamp:
Mar 7, 2015 12:16:35 AM (10 years ago)
Author:
vboxsync
Message:

Installer/darwin: Can't switch between x86 and amd64 binaries with new signing (and we no longer need to).

Location:
trunk/src/VBox/Installer/darwin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/darwin/Makefile.kmk

    r54675 r54676  
    640640                ,$(INSTALL) -m 0644 $(VBOX_PATH_DIST)/VirtualBox.app/Contents/$(dylib)          $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(dylib)$(NLTAB))
    641641        @# Copy the other binaries.
    642         $(foreach otherbin, $(VBOX_DI_VBAPP_OTHER_UNIVERSAL_BINS) \
     642        $(foreach otherbin, $(VBOX_DI_VBAPP_OTHER_UNIVERSAL_BINS) $(VBOX_DI_VBAPP_OTHER_BINS) \
    643643                ,$(INSTALL) -m 0644 $(VBOX_PATH_DIST)/VirtualBox.app/Contents/$(otherbin)       $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(otherbin)$(NLTAB))
    644         $(foreach otherbin, $(VBOX_DI_VBAPP_OTHER_BINS) \
    645                 ,$(INSTALL) -m 0644 $(VBOX_PATH_DIST)/VirtualBox.app/Contents/$(otherbin)       $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(otherbin)-$(KBUILD_TARGET_ARCH)$(NLTAB))
    646644        @# Create/copy the universal executable binaries.
    647645        $(foreach otherbin, $(VBOX_DI_VBAPP_UNIVERSAL_PROGS) \
     
    649647        @# Copy the binaries.
    650648        $(foreach prog, $(VBOX_DI_VBAPP_PROGS) \
    651                 ,$(INSTALL) -m 0755 $(VBOX_PATH_DIST)/VirtualBox.app/Contents/$(prog)           $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(prog)-$(KBUILD_TARGET_ARCH)$(NLTAB))
     649                ,$(INSTALL) -m 0755 $(VBOX_PATH_DIST)/VirtualBox.app/Contents/$(prog)           $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(prog)$(NLTAB))
    652650#ifdef VBOX_WITH_HARDENING - disabled temporarily
    653651if 1
     
    659657                $(VBOX_DI_VBAPP_DYLIBS) \
    660658                $(VBOX_DI_VBAPP_DYLIBS.$(KBUILD_TARGET_ARCH)) \
    661                 $(addsuffix -$(KBUILD_TARGET_ARCH), $(VBOX_DI_VBAPP_PROGS)) \
     659                $(VBOX_DI_VBAPP_PROGS) \
    662660                ,install_name_tool \
    663661                        $(foreach qtmod, $(VBOX_QT4_MOD_NAMES), \
     
    699697                , $(NLTAB)$(call VBOX_SIGN_MACHO_FN,$(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(bin),org.virtualbox.app.macos.$(notdir $(bin))) )
    700698 ifdef VBOX_NOT_OSX_105 # Still being hacked on, everything needs to be signed that lives in Contents/MacOS, guess we have to MOVE files out.
    701         $(foreach other, $(VBOX_DI_VBAPP_OTHER_UNIVERSAL_BINS) \
     699        $(foreach other, $(VBOX_DI_VBAPP_OTHER_UNIVERSAL_BINS) $(VBOX_DI_VBAPP_OTHER_BINS)\
    702700                , $(NLTAB)$(call VBOX_SIGN_MACHO_FN,$(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(other),org.virtualbox.app.macos.$(notdir $(other))) )
    703         $(foreach arch, $(KBUILD_TARGET_ARCH) \
    704                 , $(foreach other, $(VBOX_DI_VBAPP_OTHER_BINS) \
    705                         , $(NLTAB)$(call VBOX_SIGN_MACHO_FN,$(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(other)-$(arch),org.virtualbox.app.macos.$(notdir $(other))-$(arch)) ) )
    706701        $(foreach other, $(filter MacOS/%,$(VBOX_DI_VBAPP_MISC_FILES)) \
    707702                        $(if $(VBOX_WITH_PYTHON),MacOS/vboxshell.py,) \
     
    709704                , $(NLTAB)$(call VBOX_SIGN_VMM_MOD_FN,$(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(other),org.virtualbox.app.macos.$(notdir $(other))) )
    710705 else
    711         $(foreach other, $(VBOX_DI_VBAPP_OTHER_UNIVERSAL_BINS) \
     706        $(foreach other, $(VBOX_DI_VBAPP_OTHER_UNIVERSAL_BINS) $(VBOX_DI_VBAPP_OTHER_BINS) \
    712707                , $(NLTAB)$(call VBOX_SIGN_VMM_MOD_FN,$(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(other),org.virtualbox.app.macos.$(notdir $(other))) )
    713         $(foreach arch, $(KBUILD_TARGET_ARCH) \
    714                 , $(foreach other, $(VBOX_DI_VBAPP_OTHER_BINS) \
    715                         , $(NLTAB)$(call VBOX_SIGN_VMM_MOD_FN,$(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(other)-$(arch),org.virtualbox.app.macos.$(notdir $(other))-$(arch)) ) )
    716708 endif
    717         $(foreach arch, $(KBUILD_TARGET_ARCH) \
    718                 , $(foreach bin, $(if-expr defined(VBOX_NOT_OSX_105),$(filter-out MacOS/VirtualBox,$(VBOX_DI_VBAPP_PROGS)),$(VBOX_DI_VBAPP_PROGS)) \
    719                 , \
    720                $(NLTAB)$(MV) -- $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(bin)-$(arch) $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(bin) \
    721                 $(NLTAB)$(call VBOX_SIGN_MACHO_FN,$(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(bin),org.virtualbox.app.macos.$(notdir $(bin))) \
    722                $(NLTAB)$(MV) -- $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(bin) $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(bin)-$(arch) \
    723                 ))
     709        $(foreach bin, $(if-expr defined(VBOX_NOT_OSX_105),$(filter-out MacOS/VirtualBox,$(VBOX_DI_VBAPP_PROGS)),$(VBOX_DI_VBAPP_PROGS)) \
     710                , $(NLTAB)$(call VBOX_SIGN_MACHO_FN,$(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(bin),org.virtualbox.app.macos.$(notdir $(bin))) )
    724711 ifdef VBOX_NOT_OSX_105 # requires codesign+framworks from Lion or later. Snow Leopard codesign says object file format invalid or unsuitable.
    725712        $(call VBOX_SIGN_BUNDLE_FN,$(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/Resources/VirtualBoxVM.app,)
     
    733720        sudo chmod u+s \
    734721                $(foreach bin,VBoxHeadless VirtualBox VirtualBoxVM VBoxNetAdpCtl VBoxNetDHCP VBoxNetNAT,\
    735                         $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/MacOS/$(bin)-$(KBUILD_TARGET_ARCH))
     722                        $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/MacOS/$(bin))
    736723endif
    737724        @# Do keyword replacement in the package info and description files.
  • trunk/src/VBox/Installer/darwin/VBoxKEXTs/VirtualBoxStartup.sh

    r49540 r54676  
    77
    88#
    9 # Copyright (C) 2007-2013 Oracle Corporation
     9# Copyright (C) 2007-2015 Oracle Corporation
    1010#
    1111# This file is part of VirtualBox Open Source Edition (OSE), as
     
    7373
    7474    #
    75     # Switch the binaries to the right architecture.
    76     #
    77     VBOX_ARCH=`uname -m`
    78     if test "$VBOX_ARCH" = "x86_64"; then
    79         VBOX_ARCH="amd64"
    80     else
    81         VBOX_ARCH="x86"
    82     fi
    83     for VBOX_TRG in `ls /Applications/VirtualBox.app/Contents/MacOS/*-${VBOX_ARCH}`;
    84     do
    85         VBOX_LINKNAME=`echo "$VBOX_TRG" | sed -e 's|-'"${VBOX_ARCH}"'$||' `
    86         if test "$VBOX_LINKNAME" != "$VBOX_TRG"; then
    87             rm -f "$VBOX_LINKNAME"
    88             if ! /bin/ln -vh "$VBOX_TRG" "$VBOX_LINKNAME"; then
    89                 ConsoleMessage "Error: /bin/ln -vh $VBOX_TRG $VBOX_LINKNAME failed"
    90                 VBOX_RC=1
    91             fi
    92         else
    93             ConsoleMessage "Error: Script error VBOX_TRG=$VBOX_TRG"
    94             VBOX_RC=1
    95         fi
    96     done
    97 
    98     #
    9975    # Check that all the directories exist first.
    10076    #
  • trunk/src/VBox/Installer/darwin/VirtualBox/postflight

    r49540 r54676  
    11#!/bin/sh
     2# $Id$
     3## @file
     4# Post installation script.
     5#
    26
    37#
    4 # Copyright (C) 2007-2010 Oracle Corporation
     8# Copyright (C) 2007-2015 Oracle Corporation
    59#
    610# This file is part of VirtualBox Open Source Edition (OSE), as
     
    1620CPDIR="${CP} -R"
    1721
    18 #
    19 # Select the right architecture.
    20 #
    21 MY_ARCH=`uname -m`
    22 if test "$MY_ARCH" = "x86_64"; then
    23   MY_ARCH="amd64"
    24 else
    25   MY_ARCH="x86"
    26 fi
    27 set -e
    28 for trg in `ls /Applications/VirtualBox.app/Contents/MacOS/*-${MY_ARCH}`;
    29 do
    30     linkname=`echo "$trg" | sed -e 's|-'"${MY_ARCH}"'$||' `
    31     if test "$linkname" = "$trg"; then
    32         echo "oops: $trg" 1>&2
    33         exit 1;
    34     fi
    35     rm -f         "$linkname"
    36     /bin/ln -vh "$trg" "$linkname"
    37 done
    3822
    3923#
     
    10488
    10589exit 0;
     90
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