VirtualBox

Changeset 56848 in vbox


Ignore:
Timestamp:
Jul 8, 2015 8:16:29 AM (9 years ago)
Author:
vboxsync
Message:

rpm/deb: speed up packaging a little bit: don't compress the intermediate tarballs -- disk space is not an issue but CPU time for non-parallels jobs is

Location:
trunk/src/VBox/Installer/linux
Files:
4 edited

Legend:

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

    r56829 r56848  
    4343
    4444BLDDIRS  += $(VBOX_LNX_INST_OUT_DIR) $(VBOX_LNX_INST_STAGE_DIR)
    45 PACKING  += $(PATH_STAGE_BIN)/VirtualBox.tar.bz2
    4645if !defined(VBOX_NO_LINUX_RUN_INSTALLER)
    4746 PACKING += $(PATH_STAGE_BIN)/$(VBOX_LNX_PACKAGE_NAME) \
    4847            $(PATH_STAGE_BIN)/VirtualBox-dbg.tar.bz2
     48else
     49 PACKING += $(PATH_STAGE_BIN)/VirtualBox.tar
    4950endif
    5051
     
    440441# .tar.bz2 for distribution with the files under VirtualBox-<ver>/.
    441442#
    442 $(PATH_STAGE_BIN)/VirtualBox.tar.bz2: $(VBOX_LNX_INST_ARCH_DEPS)
     443$(PATH_STAGE_BIN)/VirtualBox.tar: $(VBOX_LNX_INST_ARCH_DEPS)
    443444        $(call MSG_L1,Packing $@)
    444445        $(QUIET)$(RM) -f -- $(VBOX_LNX_INST_OUT_DIR)/VirtualBox-$(VBOX_VERSION_STRING) $@ $(patsubst %.bz2,%,$@)
    445446        $(QUIET)$(LN_SYMLINK) $(VBOX_LNX_INST_OUT_DIR)/archive/ $(VBOX_LNX_INST_OUT_DIR)/VirtualBox-$(VBOX_VERSION_STRING)
    446 ifdef VBOX_USE_PBZIP2
    447447        $(QUIET)tar --dereference --owner 0 --group 0 \
    448                 -cRhf $(patsubst %.bz2,%,$@) -C $(VBOX_LNX_INST_OUT_DIR) \
     448                -cRhf $@ -C $(VBOX_LNX_INST_OUT_DIR) \
    449449                $(addprefix VirtualBox-$(VBOX_VERSION_STRING)/,$(VBOX_LNX_ARCH_FILES))
    450         $(QUIET)pbzip2 $(patsubst %.bz2,%,$@)
    451 else
    452         $(QUIET)tar --dereference --owner 0 --group 0 \
    453                 -cjRhf $@ -C $(VBOX_LNX_INST_OUT_DIR) \
    454                 $(addprefix VirtualBox-$(VBOX_VERSION_STRING)/,$(VBOX_LNX_ARCH_FILES))
    455 endif
    456450        $(QUIET)$(RM) -f -- $(VBOX_LNX_INST_OUT_DIR)/VirtualBox-$(VBOX_VERSION_STRING)
    457451
  • trunk/src/VBox/Installer/linux/debian/rules

    r56299 r56848  
    207207        dh_clean -k
    208208        dh_installdirs
    209         tar -xjC $(prefix)/opt -f $(builddir)/bin/VirtualBox.tar.bz2
     209        tar -xC $(prefix)/opt -f $(builddir)/bin/VirtualBox.tar
    210210        $(if $(NOQT),,mv $(archdir)/virtualbox.xml debian/$(verpkg).sharedmimeinfo)
    211211        $(archdir)/scripts/install.sh --package $(package) --root $(prefix) \
  • trunk/src/VBox/Installer/linux/rpm/VirtualBox.tmpl.spec

    r56299 r56848  
    2424Release:   1
    2525URL:       http://www.virtualbox.org/
    26 Source:    VirtualBox.tar.bz2
     26Source:    VirtualBox.tar
    2727License:   GPLv2
    2828Group:     Applications/System
  • trunk/src/VBox/Installer/linux/rpm/rules

    r56811 r56848  
    190190        rm -rf $(archdir)
    191191        rm -rf $(builddir) rpm/VirtualBox-*
     192        rm -f rpm/VirtualBox.tar
    192193        rm -f rpm/VirtualBox.tar.bz2
    193194        rm -f rpm/VirtualBox.spec
     
    201202binary: rpm/build-stamp
    202203        rm -rf rpm/VirtualBox-*
    203         tar -xjf $(builddir)/bin/VirtualBox.tar.bz2 -C rpm
     204        tar -xf $(builddir)/bin/VirtualBox.tar -C rpm
    204205        sed \
    205206            -e 's|%VER%|$(ver)|g' \
     
    233234        cp VBox.sh $(archdir)
    234235        mv rpm/VirtualBox-$(ver) rpm/$(rpmname)
    235         tar -cjf rpm/VirtualBox.tar.bz2 -C rpm $(rpmname)
     236        tar -cf rpm/VirtualBox.tar -C rpm $(rpmname)
    236237        rm -f /usr/src/packages/RPMS/*/VirtualBox*rpm
    237238        rm -f /usr/src/packages/SPECS/*
    238         (cd rpm; rpmbuild -tb --clean VirtualBox.tar.bz2)
     239        (cd rpm; rpmbuild -tb --clean VirtualBox.tar)
    239240        mv /usr/src/packages/RPMS/*/$(verpkg)-debug* $(pkgdir) || true
    240241        file=`find /usr/src/packages/RPMS -name $(verpkg)*rpm -print`; \
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