VirtualBox

Changeset 76818 in vbox for trunk/src/VBox/Installer


Ignore:
Timestamp:
Jan 14, 2019 4:17:07 PM (6 years ago)
Author:
vboxsync
Message:

Config.kmk, HostDrivers/Support, Main, FE/Qt, Installer: bugref:9049: Wipe out VBOX_GUI_WITH_SHARED_LIBRARY, leaving split GUI build as the only possible.

Location:
trunk/src/VBox/Installer
Files:
7 edited

Legend:

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

    r76614 r76818  
    407407endif
    408408ifdef VBOX_WITH_HARDENING
    409  ifndef VBOX_GUI_WITH_SHARED_LIBRARY
    410   VBOX_DI_VBAPP_DYLIBS += \
    411         MacOS/VirtualBox.dylib \
    412         MacOS/VBoxNetDHCP.dylib \
    413         MacOS/VBoxNetNAT.dylib \
    414         MacOS/VBoxHeadless.dylib
    415  else
    416   VBOX_DI_VBAPP_DYLIBS += \
    417         MacOS/VBoxGlobal.dylib \
    418         MacOS/VirtualBoxVM.dylib \
    419         MacOS/VBoxNetDHCP.dylib \
    420         MacOS/VBoxNetNAT.dylib \
    421         MacOS/VBoxHeadless.dylib
    422  endif
     409 VBOX_DI_VBAPP_DYLIBS += \
     410        MacOS/VBoxGlobal.dylib \
     411        MacOS/VirtualBoxVM.dylib \
     412        MacOS/VBoxNetDHCP.dylib \
     413        MacOS/VBoxNetNAT.dylib \
     414        MacOS/VBoxHeadless.dylib
    423415endif
    424416ifdef VBOX_WITH_HDDPARALLELS_INSTALL
     
    786778        sudo chmod u+s $(VBOX_PATH_VBOX_APP_TMP)/Contents/MacOS/VBoxNetAdpCtl
    787779ifdef VBOX_WITH_HARDENING
    788  ifndef VBOX_GUI_WITH_SHARED_LIBRARY
    789         sudo chmod u+s \
    790                 $(foreach bin,VBoxHeadless VirtualBox VirtualBoxVM VBoxNetDHCP VBoxNetNAT,\
    791                         $(VBOX_PATH_VBOX_APP_TMP)/Contents/MacOS/$(bin))
    792  else
    793780        sudo chmod u+s \
    794781                $(foreach bin,VBoxHeadless VirtualBoxVM VBoxNetDHCP VBoxNetNAT,\
    795782                        $(VBOX_PATH_VBOX_APP_TMP)/Contents/MacOS/$(bin))
    796  endif
    797783endif
    798784        @# Do keyword replacement in the package info and description files.
     
    809795        @# Copy the resources.
    810796        $(INSTALL) -m 0755 $(VBOX_PATH_DI_SRC)/VirtualBox/preflight                         $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.res/
    811 if defined(VBOX_WITH_HARDENING) && !defined(VBOX_GUI_WITH_SHARED_LIBRARY)
     797ifdef VBOX_WITH_HARDENING
    812798        $(INSTALL) -m 0755 $(VBOX_PATH_DI_SRC)/VirtualBox/postflight                        $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.res/
    813799else
    814         $(SED)  $(if-expr !defined(VBOX_WITH_HARDENING),-e '/WITH_HARDENING/d',) \
    815                 $(if-expr !defined(VBOX_GUI_WITH_SHARED_LIBRARY),-e '/WITH_SHARED_LIBRARY/d',-e '/WITHOUT_SHARED_LIBRARY/d') \
    816                 --output $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.res/postflight \
    817                 $(VBOX_PATH_DI_SRC)/VirtualBox/postflight
     800        $(SED) -s '/WITH_HARDENING/d' -o $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.res/postflight $(VBOX_PATH_DI_SRC)/VirtualBox/postflight
    818801        $(CHMOD) 0755 $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.res/postflight
    819802endif
     
    874857        $(APPEND) -tn  $(VBOX_PATH_PACK_TMP)/VirtualBoxCLI.pkg.root/usr/local/bin/VirtualBox \
    875858                '#!/bin/bash' 'exec /Applications/VirtualBox.app/Contents/MacOS/VirtualBox "$$@"'
    876 ifdef VBOX_GUI_WITH_SHARED_LIBRARY
    877859        $(APPEND) -tn  $(VBOX_PATH_PACK_TMP)/VirtualBoxCLI.pkg.root/usr/local/bin/VirtualBoxVM \
    878860                '#!/bin/bash' 'exec /Applications/VirtualBox.app/Contents/MacOS/VirtualBoxVM "$$@"'
    879 endif
    880861        $(APPEND) -tn  $(VBOX_PATH_PACK_TMP)/VirtualBoxCLI.pkg.root/usr/local/bin/VBoxManage \
    881862                '#!/bin/bash' 'exec /Applications/VirtualBox.app/Contents/MacOS/VBoxManage "$$@"'
  • trunk/src/VBox/Installer/darwin/VirtualBox/postflight

    r76553 r76818  
    9292SET_UID_BINARIES="VBoxNetAdpCtl"
    9393SET_UID_BINARIES="${SET_UID_BINARIES} VBoxHeadless VirtualBoxVM VBoxNetDHCP VBoxNetNAT" # WITH_HARDENING
    94 SET_UID_BINARIES="${SET_UID_BINARIES} VirtualBox"                                       # WITH_HARDENING WITHOUT_SHARED_LIBRARY
    9594for bin in ${SET_UID_BINARIES}; do
    9695    chmod u+s "/Applications/VirtualBox.app/Contents/MacOS/${bin}"
  • trunk/src/VBox/Installer/linux/Makefile.kmk

    r76553 r76818  
    248248        VBoxKeyboard.so \
    249249        VirtualBox \
    250         $(if $(VBOX_GUI_WITH_SHARED_LIBRARY),VirtualBoxVM) \
    251         $(if $(VBOX_GUI_WITH_SHARED_LIBRARY),VBoxGlobal.so) \
     250        VirtualBoxVM \
     251        VBoxGlobal.so \
    252252        $(if $(VBOX_WITH_DEBUGGER_GUI),VBoxDbg.so DbgPlugInDiggers.so)
    253253 ifdef VBOX_WITH_HARDENING
    254254  VBOX_LNX_STRIP_BIN += \
    255         $(if $(VBOX_GUI_WITH_SHARED_LIBRARY),VirtualBoxVM.so,VirtualBox.so)
     255        VirtualBoxVM.so
    256256 endif
    257257 VBOX_LNX_NO_STRIP += \
  • trunk/src/VBox/Installer/solaris/Makefile.kmk

    r76553 r76818  
    294294SOLARIS_STRIP_EXES = \
    295295        VBoxZoneAccess \
    296         $(if $(VBOX_WITH_QTGUI),VirtualBox $(if $(VBOX_GUI_WITH_SHARED_LIBRARY),VirtualBoxVM),) \
     296        $(if $(VBOX_WITH_QTGUI),VirtualBox VirtualBoxVM,) \
    297297        VBoxManage \
    298298        $(if $(VBOX_WITH_VBOXSDL),VBoxSDL,) \
     
    373373        VBoxNetNAT.so \
    374374        $(if $(VBOX_WITH_VBOXSDL),VBoxSDL.so,) \
    375         $(if $(VBOX_WITH_QTGUI),$(if $(VBOX_GUI_WITH_SHARED_LIBRARY),VirtualBoxVM.so VBoxGlobal.so,VirtualBox.so),)
     375        $(if $(VBOX_WITH_QTGUI),VirtualBoxVM.so VBoxGlobal.so,)
    376376endif
    377377
     
    408408# Naturally no subdirectories.
    409409SOLARIS_USRBIN_LINKS = \
    410         $(if $(VBOX_WITH_QTGUI),VirtualBox $(if $(VBOX_GUI_WITH_SHARED_LIBRARY),VirtualBoxVM),) \
     410        $(if $(VBOX_WITH_QTGUI),VirtualBox VirtualBoxVM,) \
    411411        $(if $(VBOX_WITH_HEADLESS),VBoxHeadless,) \
    412412        $(if $(VBOX_WITH_VBOXSDL),VBoxSDL,) \
     
    678678        $(REDIRECT) -C $(VBOX_PATH_SOL_INST_SRC) -- $(VBOX_PATH_SI_SCRATCH_PKG)/makepackage.sh \
    679679                $(if-expr defined(VBOX_WITH_HARDENING),--hardened,) \
    680                 $(if-expr defined(VBOX_GUI_WITH_SHARED_LIBRARY),--guisharedlib,) \
    681680                $(VBOX_PATH_SI_SCRATCH_PKG) \
    682681                $(PKG_FILENAME) \
  • trunk/src/VBox/Installer/solaris/makepackage.sh

    r76553 r76818  
    2424# Parse options.
    2525HARDENED=""
    26 GUISHAREDLIB=""
    2726while test $# -ge 1;
    2827do
     
    3029        --hardened)
    3130            HARDENED=1
    32             ;;
    33         --guisharedlib)
    34             GUISHAREDLIB=1
    3531            ;;
    3632    *)
     
    190186if test -n "$HARDENED"; then
    191187    $VBOX_AWK 'NF == 6 \
    192         && (    (   $3 == "opt/VirtualBox/amd64/VirtualBox" \
    193                  && "'$GUISHAREDLIB'" == "") \
    194             ||  $3 == "opt/VirtualBox/amd64/VirtualBoxVM" \
     188        && (    $3 == "opt/VirtualBox/amd64/VirtualBoxVM" \
    195189            ||  $3 == "opt/VirtualBox/amd64/VBoxHeadless" \
    196190            ||  $3 == "opt/VirtualBox/amd64/VBoxSDL" \
  • trunk/src/VBox/Installer/win/Makefile.kmk

    r76553 r76818  
    610610                -E 'VBOX_WITH_SDS=$(if $(VBOX_WITH_SDS),yes,no)' \
    611611                -E 'VBOX_WITH_UNATTENDED=$(if $(VBOX_WITH_UNATTENDED),yes,no)' \
    612                 -E 'VBOX_GUI_WITH_SHARED_LIBRARY=$(if $(VBOX_GUI_WITH_SHARED_LIBRARY),yes,no)' \
    613612                -E 'BUILD_TYPE=$(KBUILD_TYPE)' \
    614613                -E 'BUILD_TARGET_ARCH=$(KBUILD_TARGET_ARCH)' \
  • trunk/src/VBox/Installer/win/VBoxMergeApp.wxi

    r74770 r76818  
    322322              Source="$(env.PATH_OUT)\bin\VirtualBox.exe">
    323323        </File>
    324         <?if $(env.VBOX_GUI_WITH_SHARED_LIBRARY) = "yes" ?>
    325                 <File Id="file_VirtualBoxVM.exe" Name="VirtualBoxVM.exe"
    326                     Source="$(env.PATH_OUT)\bin\VirtualBoxVM.exe">
    327                 </File>
    328                 <File Id="file_VBoxGlobal.dll" Name="VBoxGlobal.dll"
    329                     Source="$(env.PATH_OUT)\bin\VBoxGlobal.dll">
    330                 </File>
    331         <?endif ?>
     324        <File Id="file_VirtualBoxVM.exe" Name="VirtualBoxVM.exe"
     325            Source="$(env.PATH_OUT)\bin\VirtualBoxVM.exe">
     326        </File>
     327        <File Id="file_VBoxGlobal.dll" Name="VBoxGlobal.dll"
     328            Source="$(env.PATH_OUT)\bin\VBoxGlobal.dll">
     329        </File>
    332330        <?if $(env.VBOX_WITH_HARDENING) = "yes" ?>
    333             <?if $(env.VBOX_GUI_WITH_SHARED_LIBRARY) = "yes" ?>
    334                 <File Id="file_VirtualBoxVM.dll" Name="VirtualBoxVM.dll"
    335                     Source="$(env.PATH_OUT)\bin\VirtualBoxVM.dll">
    336                 </File>
    337             <?else ?>
    338                 <File Id="file_VirtualBox.dll" Name="VirtualBox.dll"
    339                     Source="$(env.PATH_OUT)\bin\VirtualBox.dll">
    340                 </File>
    341             <?endif ?>
     331            <File Id="file_VirtualBoxVM.dll" Name="VirtualBoxVM.dll"
     332                Source="$(env.PATH_OUT)\bin\VirtualBoxVM.dll">
     333            </File>
    342334        <?endif ?>
    343335        <File Id="file_Qt5Core$(var.VBOX_QT_INFIX).dll" Name="Qt5Core$(var.VBOX_QT_INFIX).dll"
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