VirtualBox

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+.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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