HomeClusterLabs Projects

Build: rpm: Fix python2 vs. python3 problems on SuSE.

Description

Build: rpm: Fix python2 vs. python3 problems on SuSE.

Package builds on SuSE Tumbleweed are failing because the spec file
installs compiled CTS python files into /usr/bin/python2.X, but then
tries to package up files in /usr/bin/python3.X.

The problem here is that python_sitelib is already defined on SuSE, so
our attempts at setting it will never happen. Thus, we end up with
%{python}=python (which is actually python2), and
%{python_sitelib}=/usr/lib/python3.X.

As a fix, we can set %{python}=python3 if the %{python_version} macro is
set. Fedora really doesn't want us using this (and will fail if it is
used), but this piece of code should never be run on Fedora anyway.
This is the last ditch effort to set these variables.

Details

Provenance
clumensAuthored on Nov 10 2020, 12:10 PM
Parents
rPdac11b80bc7e: Merge pull request #2220 from kgaillot/2.0
Branches
Unknown
Tags
Unknown

Event Timeline