VirtualBox

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


Ignore:
Timestamp:
Jun 25, 2020 6:03:25 PM (5 years ago)
Author:
vboxsync
Message:

Installer/linux: Some RPM build/package cleanups. Makes the CHM help file optional (WINE is increasingly hard to get in working shape), just use it if there is a prebuilt one. Move directory where the main VirtualBox build is done to .../out (there is still lots of rubbish dumped into the source tree, to be fixed later).

File:
1 edited

Legend:

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

    r84049 r84959  
    2626#                   either the subversion rev [if available] or the build date)
    2727#  NODOCS=1         don't build docs, use precompiled UserManual.pdf and
    28 #                   VirtualBox.chm from $(vboxroot)/prebuild
     28#                   maybe VirtualBox.chm from $(vboxroot)/prebuild
    2929#  NOMODS=1         don't build any module
    3030#  NOQT=1           don't build the Qt GUI
     
    3636#  NOWEBSVC=1       don't build the webservice API, default for OSE
    3737#  STAGEDISO=<path> don't build the VBoxAdditions, use the precompiled .iso
     38#  STAGEDCHM=<path> use VirtualBox*.chm from this directory
    3839#  PKGDIR=<path>    where to store the final package(s)
    3940#  svn_revision=xxx do not depend on subversion being available, but use this
    4041#                   hard-coded revision number instead
    4142#
    42 # NODOCS will also be set if UserManual*.pdf and VirtualBox*.chm are placed in
    43 # $(vboxroot)/prebuild.  STAGEDISO will be set if VBoxGuestAdditions.iso is
    44 # placed there.  Wine will not be required to be available if both NODOCS and
    45 # STAGEDISO are set.
     43# NODOCS will be set if UserManual*.pdf is placed in $(vboxroot)/prebuild.
     44# STAGEDISO will be set if VBoxGuestAdditions.iso is placed there.
     45# STAGEDCHM will be set if VirtualBox*.chm is placed there.
     46# VirtualBox*.chm is used if it is provided, but never attempted to be built.
     47#
     48# Wine will not be required if either NODOCS or STAGEDISO are set.
    4649
    4750ifeq ($(wildcard rpm/rules),)
     
    5356vboxroot := $(shell while ! test -r configure && ! test "$PWD" = "/"; do cd ..; done; pwd)
    5457pkgdir   := $(if $(PKGDIR),$(PKGDIR),$(shell cd $(vboxroot)/..; pwd))
    55 builddir := $(vboxroot)/rpm/builddir
     58builddir := $(vboxroot)/out/rpm/builddir
    5659stagedir := $(vboxroot)/src/VBox/Installer/linux/rpmbuild
    5760rpmlib   := $(shell if [ `uname -m` = "x86_64" ]; then echo "lib64"; else echo "lib"; fi)
     
    6568NOQT     ?= $(HEADLESS)
    6669NOWEBSVC ?= $(ose)
    67 NODOCS   ?= $(if $(wildcard $(vboxroot)/prebuild/UserManual*.pdf),$(if $(wildcard $(vboxroot)/prebuild/VirtualBox*.chm),1,),)
     70NODOCS   ?= $(if $(wildcard $(vboxroot)/prebuild/UserManual*.pdf),1,)
    6871STAGEDISO ?= $(if $(wildcard $(vboxroot)/prebuild/VBoxGuestAdditions.iso),$(vboxroot)/prebuild,)
    69 NOWINE   := $(if $(NODOCS),$(if $(STAGEDISO),1,),)$(ose)
     72STAGEDCHM ?= $(if $(wildcard $(vboxroot)/prebuild/VirtualBox*.chm),$(vboxroot)/prebuild,)
     73NOWINE   := $(if $(NODOCS),1,$(if $(STAGEDISO),1,$(ose)))
    7074
    7175ifneq ($(MAKECMDGOALS),clean)
     
    172176                $(wildcard /usr/bin/python2.6) $(wildcard /usr/bin/python2) $(wildcard /usr/bin/python))),) \
    173177             $(doc_dir) \
    174              $(if $(ose),,VBOX_WITH_DOCS_CHM=1) \
     178             $(if $(STAGEDCHM),VBOX_WITH_DOCS_CHM=1,) \
    175179             VBOX_PACKAGE_DIST=$(rpmdist) \
    176180             $(if $(svnrev),VBOX_SVN_REV=$(svnrev),) \
     
    187191        . rpm/env.sh && kmk -C $(vboxroot) $(bld_flags) $(if $(NOPARALLEL),-j1,) all
    188192        $(if $(NODOCS),cp $(vboxroot)/prebuild/UserManual*.pdf $(builddir)/bin,)
    189         $(if $(NODOCS),cp $(vboxroot)/prebuild/VirtualBox*.chm $(builddir)/bin,)
     193        $(if $(STAGEDCHM),cp $(STAGEDCHM)/VirtualBox*.chm $(builddir)/bin,)
    190194        $(if $(EFI),cp $(vboxroot)/prebuild/VBoxEFI32.fd $(builddir)/bin,)
    191195        $(if $(EFI),cp $(vboxroot)/prebuild/VBoxEFI64.fd $(builddir)/bin,)
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