VirtualBox

Changeset 57789 in vbox for trunk


Ignore:
Timestamp:
Sep 16, 2015 3:59:29 PM (9 years ago)
Author:
vboxsync
Message:

Installer/linux: support building RPMs without VBoxSDL.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r56243 r57789  
    11351135    fi
    11361136  else
    1137     log_failure "SDL not found"
     1137    log_failure "SDL not found (can be disabled using --disable-sdl)"
    11381138    fail
    11391139  fi
     
    25142514      WITH_LIBVPX=0
    25152515      ;;
     2516    --disable-vboxsdl)
     2517      WITH_SDL=0
     2518      ;;
    25162519    --build-debug|-d)
    25172520      BUILD_TYPE=debug
     
    27212724  [ "$OS" != "darwin"  ] && check_png
    27222725  [ $OSE -eq 0 -a "$OS" = "linux" ] && check_pam
    2723   [ $WITH_SDL -eq 1 ]    && check_sdl
     2726  if [ $WITH_SDL -eq 1 ]; then
     2727    check_sdl
     2728  else
     2729    cnf_append "VBOX_WITH_VBOXSDL" ""
     2730  fi
    27242731  [ $WITH_SDL_TTF -eq 1 -a $OSE -eq 0 ] && check_sdl_ttf
    27252732  [ $WITH_X11    -eq 1 ] && check_x
  • trunk/src/VBox/Installer/linux/rpm/VirtualBox.tmpl.spec

    r56888 r57789  
    116116rmdir icons
    117117mv virtualbox.xml $RPM_BUILD_ROOT/usr/share/mime/packages
    118 for i in VBoxManage VBoxSVC VBoxSDL VirtualBox VBoxHeadless VBoxDTrace VBoxExtPackHelperApp VBoxBalloonCtrl VBoxAutostart vbox-img; do
     118for i in VBoxManage VBoxSVC VirtualBox VBoxHeadless VBoxDTrace VBoxExtPackHelperApp VBoxBalloonCtrl VBoxAutostart vbox-img; do
    119119  mv $i $RPM_BUILD_ROOT/usr/lib/virtualbox; done
    120120if %WEBSVC%; then
     
    122122    mv $i $RPM_BUILD_ROOT/usr/lib/virtualbox; done
    123123fi
    124 for i in VBoxSDL VirtualBox VBoxHeadless VBoxNetDHCP VBoxNetNAT VBoxNetAdpCtl; do
     124test -f VBoxSDL && mv VBoxSDL $RPM_BUILD_ROOT/usr/lib/virtualbox
     125for i in VirtualBox VBoxHeadless VBoxNetDHCP VBoxNetNAT VBoxNetAdpCtl; do
    125126  chmod 4511 $RPM_BUILD_ROOT/usr/lib/virtualbox/$i; done
    126127if [ -f $RPM_BUILD_ROOT/usr/lib/virtualbox/VBoxVolInfo ]; then
    127128  chmod 4511 $RPM_BUILD_ROOT/usr/lib/virtualbox/VBoxVolInfo
    128129fi
     130test -f VBoxSDL && chmod 4511 $RPM_BUILD_ROOT/usr/lib/virtualbox/VBoxSDL
    129131if [ -d ExtensionPacks/VNC ]; then
    130132  mv ExtensionPacks/VNC $RPM_BUILD_ROOT/usr/lib/virtualbox/ExtensionPacks
     
    183185ln -s VBox $RPM_BUILD_ROOT/usr/bin/VBoxManage
    184186ln -s VBox $RPM_BUILD_ROOT/usr/bin/vboxmanage
    185 ln -s VBox $RPM_BUILD_ROOT/usr/bin/VBoxSDL
    186 ln -s VBox $RPM_BUILD_ROOT/usr/bin/vboxsdl
     187test -f VBoxSDL && ln -s VBox $RPM_BUILD_ROOT/usr/bin/VBoxSDL
     188test -f VBoxSDL && ln -s VBox $RPM_BUILD_ROOT/usr/bin/vboxsdl
    187189ln -s VBox $RPM_BUILD_ROOT/usr/bin/VBoxVRDP
    188190ln -s VBox $RPM_BUILD_ROOT/usr/bin/VBoxHeadless
  • trunk/src/VBox/Installer/linux/rpm/rules

    r57786 r57789  
    2424#  NOMODS=1         don't build any module
    2525#  NOQT=1           don't build the Qt GUI
     26#  NOSDL=1          don't build VBoxSDL
    2627#  EFI=1            include the EFI binary from prebuild
    2728#  VERSUFFIX=<suffix> set a particular package version suffix (e.g. _customer)
     
    145146
    146147cfg_flags := $(if $(NOQT),--disable-qt,) \
     148             $(if $(NOSDL),--disable-vboxsdl,) \
    147149             $(if $(filter sles10.1,$(rpmrel)),--build-libxml2,) \
    148150             $(if $(filter el5 el6 sles10.1 sles11.0 mdv2011.0,$(rpmrel)),--build-libvpx,) \
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