VirtualBox

Changeset 58387 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 23, 2015 11:07:48 AM (9 years ago)
Author:
vboxsync
Message:

Installer/linux (host): silence some non-fatal warnings in rpm/rules and do not copy no-longer-needed files.

File:
1 edited

Legend:

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

    r58186 r58387  
    8484 ifeq ($(rpmrel),)
    8585 # look for fedora
    86   rpmrel  := $(shell cat /etc/fedora-release | sed -e 's/^Fedora  *release  *\([1-9][0-9]*\) .*/fedora\1/')
     86  rpmrel  := $(shell cat /etc/fedora-release 2> /dev/null | sed -e 's/^Fedora  *release  *\([1-9][0-9]*\) .*/fedora\1/')
    8787 endif
    8888 ifeq ($(rpmrel),)
    8989 # look for OL
    90   rpmrel  := $(shell cat /etc/enterprise-release | sed -ne 's/^Enterprise Linux[a-zA-Z ]*\([1-9][0-9]*\).*/ol\1/p')
     90  rpmrel  := $(shell cat /etc/enterprise-release 2> /dev/null | sed -ne 's/^Enterprise Linux[a-zA-Z ]*\([1-9][0-9]*\).*/ol\1/p')
    9191 endif
    9292 ifeq ($(rpmrel),)
    9393 # look for CentOS
    94   rpmrel  := $(shell cat /etc/redhat-release | sed -ne 's/^CentOS[a-zA-Z ]*\([1-9][0-9]*\).*/centos\1/p')
     94  rpmrel  := $(shell cat /etc/redhat-release 2> /dev/null | sed -ne 's/^CentOS[a-zA-Z ]*\([1-9][0-9]*\).*/centos\1/p')
    9595 endif
    9696 ifeq ($(rpmrel),)
    9797 # look for Red Hat
    98   rpmrel  := $(shell cat /etc/redhat-release | sed -ne 's/^Red Hat[a-zA-Z ]*\([1-9][0-9]*\).*/centos\1/p')
     98  rpmrel  := $(shell cat /etc/redhat-release 2> /dev/null | sed -ne 's/^Red Hat[a-zA-Z ]*\([1-9][0-9]*\).*/centos\1/p')
    9999 endif
    100100 ifeq ($(rpmrel),)
     
    239239            -e "s|%WEBSVC%|$(if $(NOWEBSVC),false,true)|g" \
    240240            rpm/VirtualBox.tmpl.spec > $(archdir)/VirtualBox.spec
    241         cp vboxdrv.sh $(archdir)
    242         cp vboxballoonctrl-service.sh $(archdir)
    243         cp vboxautostart-service.sh $(archdir)
    244         cp vboxweb-service.sh $(archdir)
    245         cp VBox.sh $(archdir)
    246241        mv rpm/VirtualBox-$(ver) rpm/$(rpmname)
    247242        tar -cf rpm/VirtualBox.tar -C rpm $(rpmname)
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