VirtualBox

Changeset 90368 in vbox for trunk/src/VBox/Installer/linux


Ignore:
Timestamp:
Jul 28, 2021 1:30:11 PM (3 years ago)
Author:
vboxsync
Message:

Installer/linux/rpm/VirtualBox.tmpl.spec: Use the right expansion for substring processing. It's a prefix.

rpm/rules: Avoid adding the special gcc location for EL7 to PATH more than once.

Location:
trunk/src/VBox/Installer/linux/rpm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/rpm/VirtualBox.tmpl.spec

    r90367 r90368  
    124124%if "%BUILDREL%" == "el7"
    125125# For el7 we use gcc from devtoolset-4, which is not suitable for kernel work.
     126# See the PATH trickery in src/VBox/Installer/linux/rpm/rules.
    126127old_path="$PATH"
    127 PATH=${PATH%/opt/rh/devtoolset-4/root/bin:}
    128 PATH=${PATH%/opt/rh/devtoolset-4/root/usr/bin:}
     128PATH=${PATH#/opt/rh/devtoolset-4/root/usr/bin:}
    129129%endif
    130130for d in /lib/modules/*; do
  • trunk/src/VBox/Installer/linux/rpm/rules

    r90361 r90368  
    150150ifeq ($(NOQT),)
    151151 ifeq ($(rpmrel),el7)
     152  # Protect against the fact that this Makefile is run several times, updating
     153  # PATH every time. Still assumes that nothing else is added as a prefix.
     154  PATH := $(PATH:/opt/rh/devtoolset-4/root/usr/bin:%=%)
    152155  export PATH := /opt/rh/devtoolset-4/root/usr/bin:$(PATH)
    153156 endif
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