[opensuse-packaging] new %{pythons} macro, that isn't defined anywhere

Hi, I'm observing a new python rpm macro, appearing in BuildRequires: %{pythons} in some packages, that isn't defined anywhere. Consequently, this breaks a few of my branched packages. Example: https://build.opensuse.org/package/view_file/devel:languages:python/python-h... Line: 49 Could somebody shed some light on this, please? Thanks in advance, Pete -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

On Tue, 12 Jun 2018 12:32:30 +0200 Hans-Peter Jansen <hpj@urpla.net> wrote:
I expect it is defined in project config. See e.g. for factory https://build.opensuse.org/project/prjconf/openSUSE:Factory and search for pythons Josef -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

On Tuesday, 12 June 2018 12:32:30 CEST Hans-Peter Jansen wrote:
It is described here: https://en.opensuse.org/openSUSE:Packaging_Python_Singlespec#BuildRequires More details also here: https://github.com/openSUSE/python-rpm-macros#build-set It should define all python versions for which to build, e.g. python2, python3, pypy, etc. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

Oliver Kurz schrieb:
It is described here: https://en.opensuse.org/openSUSE:Packaging_Python_Singlespec#BuildRequires
Has this been changed recently on OBS? I noticed the "nothing provides %{pythons}" last week for the first time, I think, for Leap 42.x. Johannes -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537

On Dienstag, 12. Juni 2018 14:48:39 Johannes Kastl wrote:
Yes, it appeared lately. Unfortunately, defining it for older distributions is failing ATM, at least for me. I've created an issue here: https://github.com/openSUSE/python-rpm-macros/issues/16 Cheers, Pete -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

Hans-Peter Jansen schrieb:
Yes, it appeared lately. Unfortunately, defining it for older distributions is failing ATM, at least for me.
I tried with the following, but this leads to failing builds for most packages (error: Package already exists: %package -n python-foobar): # Leap 42.2 %if "%_repository" == "openSUSE_Leap_42.2" %define pythons %{?!skip_python2:python} %{?!skip_python3:python3} Macros: %pythons %{?!skip_python2:python} %{?!skip_python3:python3} :Macros %endif
I've created an issue here:
Thanks! -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537

On Tue, 12 Jun 2018 12:32:30 +0200 Hans-Peter Jansen <hpj@urpla.net> wrote:
I expect it is defined in project config. See e.g. for factory https://build.opensuse.org/project/prjconf/openSUSE:Factory and search for pythons Josef -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

On Tuesday, 12 June 2018 12:32:30 CEST Hans-Peter Jansen wrote:
It is described here: https://en.opensuse.org/openSUSE:Packaging_Python_Singlespec#BuildRequires More details also here: https://github.com/openSUSE/python-rpm-macros#build-set It should define all python versions for which to build, e.g. python2, python3, pypy, etc. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

Oliver Kurz schrieb:
It is described here: https://en.opensuse.org/openSUSE:Packaging_Python_Singlespec#BuildRequires
Has this been changed recently on OBS? I noticed the "nothing provides %{pythons}" last week for the first time, I think, for Leap 42.x. Johannes -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537

On Dienstag, 12. Juni 2018 14:48:39 Johannes Kastl wrote:
Yes, it appeared lately. Unfortunately, defining it for older distributions is failing ATM, at least for me. I've created an issue here: https://github.com/openSUSE/python-rpm-macros/issues/16 Cheers, Pete -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

Hans-Peter Jansen schrieb:
Yes, it appeared lately. Unfortunately, defining it for older distributions is failing ATM, at least for me.
I tried with the following, but this leads to failing builds for most packages (error: Package already exists: %package -n python-foobar): # Leap 42.2 %if "%_repository" == "openSUSE_Leap_42.2" %define pythons %{?!skip_python2:python} %{?!skip_python3:python3} Macros: %pythons %{?!skip_python2:python} %{?!skip_python3:python3} :Macros %endif
I've created an issue here:
Thanks! -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
participants (4)
-
Hans-Peter Jansen
-
Johannes Kastl
-
Josef Reidinger
-
Oliver Kurz