VirtualBox

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


Ignore:
Timestamp:
Aug 30, 2019 4:14:40 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
133018
Message:

Installer/linux: Introduce python3 support in the RPM creation (for building it still uses python2, which is a separate issue). Also use the same debugsource/debuginfo tweak on OL8 as with Fedora 27+.

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

Legend:

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

    r76759 r80516  
    4040
    4141%MACROSPYTHON%
     42%if %{?__python3:1}%{!?__python3:0}
     43%define vbox_python %{__python3}
     44%else
     45%define vbox_python %{__python}
     46%endif
    4247
    4348# our Qt5 libs are built on EL5 with ld 2.17 which does not provide --link-id=
     
    4651# Remove source code from debuginfo package, needed for Fedora 27 and later
    4752# as we build the binaries before creating the RPMs.
    48 
    4953%if 0%{?fedora} >= 27
     54%undefine _debugsource_packages
     55%undefine _debuginfo_subpackages
     56%endif
     57%if 0%{?rhel} >= 8
    5058%undefine _debugsource_packages
    5159%undefine _debuginfo_subpackages
     
    9098(export VBOX_INSTALL_PATH=/usr/lib/virtualbox && \
    9199  cd ./sdk/installer && \
    92   %{__python} ./vboxapisetup.py install --prefix %{_prefix} --root $RPM_BUILD_ROOT)
     100  %{vbox_python} ./vboxapisetup.py install --prefix %{_prefix} --root $RPM_BUILD_ROOT)
    93101%endif
    94102rm -rf sdk/installer
  • trunk/src/VBox/Installer/linux/rpm/rules

    r80509 r80516  
    164164             VBOX_DO_STRIP= \
    165165             $(if $(filter el5,$(rpmrel)),VBOX_BLD_PYTHON=$(strip \
    166                 $(firstword $(wildcard /usr/local/bin/python2.7) \
    167                 $(wildcard /usr/bin/python2.6) $(wildcard /usr/bin/python))),) \
     166                $(firstword $(wildcard /usr/local/bin/python2.7) $(wildcard /usr/bin/python2.7) \
     167                $(wildcard /usr/bin/python2.6) $(wildcard /usr/bin/python2) $(wildcard /usr/bin/python))),) \
    168168             $(doc_dir) \
    169169             $(if $(ose),,VBOX_WITH_DOCS_CHM=1) \
     
    222222            -e 's|%SPEC%|$(rpmspec)|g' \
    223223            -e 's|%PYTHON%|$(if $(filter el5,$(rpmrel)),,with_python)|g' \
    224             -e 's|%MACROSPYTHON%|$(if $(wildcard /usr/lib/rpm/macros.python),%include /usr/lib/rpm/macros.python,)|g' \
     224            -e 's|%MACROSPYTHON%|$(if $(wildcard /usr/lib/rpm/macros.d/macros.python3),,$(if $(wildcard /usr/lib/rpm/macros.python),%include /usr/lib/rpm/macros.python,))|g' \
    225225            -e 's|%INSTMOD%|$(instmod)|g' \
    226226            -e 's|%LIBASOUND%|$(if $(filter lib64,$(rpmlib)),libasound.so.2()(64bit),libasound.so.2)|g' \
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette