VirtualBox

Ignore:
Timestamp:
Jun 26, 2020 11:51:54 AM (5 years ago)
Author:
vboxsync
Message:

Installer/linux: Bring DEB build/package to same functionality as the recent changes for RPM (needing WINE less often, due to not building the CHM docs). Additionally a very crude (manually specified package deps are still present) way of suppressing the build of VBoxSDL, as another measure to make the functionality as identical as possible.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/debian/rules

    r82968 r84968  
    3434#                   either the subversion rev [if available] or the build date)
    3535#  NODOCS=1         don't build docs, use precompiled UserManual.pdf and
    36 #                   VirtualBox.chm from $HOME
     36#                   maybe VirtualBox.chm from $(vboxroot)/prebuild
    3737#  NOMODS=1         don't build any module
    3838#  NOQT=1           don't build the Qt GUI
     39#  NOSDL=1          don't build VBoxSDL
    3940#  EFI=1            include the EFI binary from prebuild
    4041#  VERSUFFIX=<suffix> set a particular package version suffix (e.g. _customer)
     
    4344#  NOWEBSVC=1       don't build the webservice API, default for OSE
    4445#  STAGEDISO=<path> don't build the VBoxAdditions, use the precompiled .iso
     46#  STAGEDCHM=<path> use VirtualBox*.chm from this directory
    4547#  PKGDIR=<path>    where to store the final package(s)
    4648#
    47 # NODOCS will also be set if UserManual*.pdf and VirtualBox*.chm are placed in
    48 # $(vboxroot)/prebuild.  STAGEDISO will be set if VBoxGuestAdditions.iso is
    49 # placed there.  Wine will not be required to be available if both NODOCS and
    50 # STAGEDISO are set.
     49# NODOCS will be set if UserManual*.pdf is placed in $(vboxroot)/prebuild.
     50# STAGEDISO will be set if VBoxGuestAdditions.iso is placed there.
     51# STAGEDCHM will be set if VirtualBox*.chm is placed there.
     52# VirtualBox*.chm is used if it is provided, but never attempted to be built.
     53#
     54# Wine will not be required if either NODOCS or STAGEDISO are set.
    5155
    5256package  := virtualbox
    5357verpkg   := virtualbox-6.1
    5458current  := $(shell pwd)
    55 vboxroot := $(shell cd ../../../..; pwd)
    56 pkgdir   := $(if $(PKGDIR),$(PKGDIR),$(shell cd ../../../../..; pwd))
     59vboxroot := $(shell while ! test -r configure && ! test "$PWD" = "/"; do cd ..; done; pwd)
     60pkgdir   := $(if $(PKGDIR),$(PKGDIR),$(shell cd $(vboxroot)/..; pwd))
    5761builddir := $(vboxroot)/out/debian/builddir
    5862moddir   := $(vboxroot)/out/debian/modules
     
    6468-include $(vboxroot)/SVN_REVISION
    6569svnrev   :=$(if $(svn_revision),$(svn_revision),)
     70
    6671NOMODS   ?= $(ose)
    6772NOQT     ?= $(HEADLESS)
     73NOSDL    ?= $(HEADLESS)
    6874NOWEBSVC ?= $(ose)
    69 NODOCS   ?= $(if $(wildcard $(vboxroot)/prebuild/UserManual*.pdf),$(if $(wildcard $(vboxroot)/prebuild/VirtualBox*.chm),1,),)
     75NODOCS   ?= $(if $(wildcard $(vboxroot)/prebuild/UserManual*.pdf),1,)
    7076STAGEDISO ?= $(if $(wildcard $(vboxroot)/prebuild/VBoxGuestAdditions.iso),$(vboxroot)/prebuild,)
    71 NOWINE   := $(if $(NODOCS),$(if $(STAGEDISO),1,),)$(ose)
     77STAGEDCHM ?= $(if $(wildcard $(vboxroot)/prebuild/VirtualBox*.chm),$(vboxroot)/prebuild,)
     78NOWINE   := $(if $(NODOCS),1,$(if $(STAGEDISO),1,$(ose)))
    7279PYTHON   := $(firstword $(shell which python) $(shell which python3))
    7380
     
    100107
    101108cfg_flags := $(if $(NOQT),--disable-qt,) \
     109             $(if $(NOSDL),--disable-vboxsdl,) \
    102110             $(if $(ose),--ose,) $(if $(LINUX),--with-linux=$(LINUX),) \
    103111             $(if $(HEADLESS),--build-headless,) \
     
    116124             VBOX_DO_STRIP= \
    117125             VBOX_PATH_PACKAGE_DOCS="\"/usr/share/doc/$(verpkg)\"" \
    118              $(if $(ose),,VBOX_WITH_DOCS_CHM=1) \
     126             $(if $(STAGEDCHM),VBOX_WITH_DOCS_CHM=1,VBOX_WITH_KCHMVIEWER=) \
    119127             VBOX_PACKAGE_DIST=$(debdist) \
    120128             $(if $(svnrev),VBOX_SVN_REV=$(svnrev),) \
     
    134142        . debian/env.sh && kmk -C $(vboxroot) $(bld_flags) $(if $(NOPARALLEL),-j1,) all
    135143        $(if $(NODOCS),cp $(vboxroot)/prebuild/UserManual*.pdf $(builddir)/bin,)
    136         $(if $(NODOCS),cp $(vboxroot)/prebuild/VirtualBox*.chm $(builddir)/bin,)
     144        $(if $(STAGEDCHM),cp $(STAGEDCHM)/VirtualBox*.chm $(builddir)/bin,)
    137145        $(if $(EFI),cp $(vboxroot)/prebuild/VBoxEFI32.fd $(builddir)/bin,)
    138146        $(if $(EFI),cp $(vboxroot)/prebuild/VBoxEFI64.fd $(builddir)/bin,)
     
    290298            usr/bin/VBox                        usr/bin/VBoxManage \
    291299            usr/bin/VBox                        usr/bin/vboxmanage \
    292             $(if $(HEADLESS),,usr/bin/VBox      usr/bin/VBoxSDL) \
    293             $(if $(HEADLESS),,usr/bin/VBox      usr/bin/vboxsdl) \
     300            $(if $(NOSDL),,usr/bin/VBox         usr/bin/VBoxSDL) \
     301            $(if $(NOSDL),,usr/bin/VBox         usr/bin/vboxsdl) \
    294302            $(if $(ose),,usr/bin/VBox           usr/bin/VBoxVRDP) \
    295303            usr/bin/VBox                        usr/bin/VBoxHeadless \
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