[Rpm-maint] [rpm-software-management/rpm] Python macro improvements (#221)

Panu Matilainen notifications at github.com
Wed Jun 28 07:54:21 UTC 2017

Sorry, was on vacation for a week (and will be again for all of July)

The patch as such looks fine to me, no problem with that.

What I'm wondering about is that this of course loses is the ability to easily override python version both at run- and buildtime. The latter isn't that relevant since `PYTHON=python3 ./configure [...]` doesn't actually work, but the former will break some specs. There are more than just a handful of specs that override __python to eg python3 in rawhide, for example:
gaupol.spec:%global __python %{__python3}
gdb.spec:%global __python %{__python3}
gedit-code-assistance.spec:%global __python %{__python3}
gedit-plugins.spec:%global __python %{__python3}
gedit.spec:%global __python %{__python3}
git-cola.spec:%global __python %{__python3}

I'm not really up to date with Fedora (python) packaging policies, perhaps these are not either, but Fedora aside there *is*  chance of breaking packages that expect to override `%__python` to point to python3 for use with `%python_*` macros, which they quite legitimately (AFAICS) could've been doing up to this point. So if we break that, we need to at least have an alternative that we can point to. Do we?

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20170628/0944fe10/attachment.html>

More information about the Rpm-maint mailing list