Hello Michael,

> You need the same version of python3-dmidecode and python2-dmidecode (built 
> from the same srpm) so the /usr/share/python-dmidecode/pymap.xml file is 
> identical in both and do not conflict.

That might be. But the package building still conflicts as dnf does not know 
this (see error message below). Is it still possible to build rhnpush (without 
manual interaction) or is this a bug in the spec file?

Best wishes,

Stefan

----- Ursprüngliche Mail -----
Von: "Michael Mraka" <michael.mr...@redhat.com>
An: "spacewalk-devel" <spacewalk-devel@redhat.com>
Gesendet: Montag, 9. März 2020 11:16:29
Betreff: Re: [Spacewalk-devel] rhnpush with Python2 and Python 3

Stefan Bluhm:
> Hello,
> 
> can you tell me how to build the RPM for python2-rhnpush for the server or 
> any other system that has Python 2 and Python 3 installed (Fedora and 
> RHEL7+)? As far as I understand from the source, it is actually not possible 
> to build the package on Fedora/later RHEL versions (Python 2 is always built, 
> Python 3 is always built on Fedora/latest RHEL).
> 
> Python 2 requires "python2-rhn-client-tools" and Python 3 requires 
> "python3-rhn-client-tools". Both packages require their own version of 
> mutually exclusive "python?-dmidecode" versions. So an "dnf install" for 
> these packages will fail with the message:
> 
> "file /usr/share/python-dmidecode/pymap.xml from install of
> python3-dmidecode-3.12.2-15.el8.x86_64 conflicts with file from package
> python2-dmidecode-3.12.2-11.el8.x86_64"

Hello Stefan,

You need the same version of python3-dmidecode and python2-dmidecode
(built from the same srpm) so the /usr/share/python-dmidecode/pymap.xml
file is identical in both and do not conflict.

> How did you manage to build python2-rhnpush on the latest Fedora? On my 
> branch, I now added a "--with server" option to only build Python2 for that.
> 
> Best wishes,
> Stefan

Regards,

--
Michael Mráka
System Management Engineering, Red Hat

_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel


_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to