VirtualBox

Changeset 90367 in vbox for trunk


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

Installer/linux/rpm/VirtualBox.tmpl.spec: For EL7 make sure we use default gcc for kernel module compilation. The gcc from devtoolset-4 is newer, but doesn't understand some options which some kernels consider vital for CONFIG_RETPOLINE=y.

File:
1 edited

Legend:

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

    r90038 r90367  
    4949%{!?rpm_suse: %define vbox_python_sitelib %{python_sitelib}}
    5050%endif
    51 
    52 # our Qt5 libs are built on EL5 with ld 2.17 which does not provide --link-id=
    53 %undefine _missing_build_ids_terminate_build
    5451
    5552# Remove source code from debuginfo package, needed for Fedora 27 and later
     
    125122mv VBoxTunctl $RPM_BUILD_ROOT/usr/bin
    126123%if %{?is_ose:0}%{!?is_ose:1}
     124%if "%BUILDREL%" == "el7"
     125# For el7 we use gcc from devtoolset-4, which is not suitable for kernel work.
     126old_path="$PATH"
     127PATH=${PATH%/opt/rh/devtoolset-4/root/bin:}
     128PATH=${PATH%/opt/rh/devtoolset-4/root/usr/bin:}
     129%endif
    127130for d in /lib/modules/*; do
    128131  if [ -L $d/build ]; then
     
    152155  fi
    153156done
     157%if "%BUILDREL%" == "el7"
     158# For el7 restore PATH, see above.
     159PATH="$old_path"
     160unset old_path
     161%endif
    154162rm -r src
    155163%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