Re: [Spacewalk-devel] rhnpush with Python2 and Python 3
Thank you Michael, I will pay closer attention to the numbers in future! - Ursprüngliche Mail - Von: "Michael Mraka" An: "spacewalk-devel" Gesendet: Montag, 9. März 2020 11:49:58 Betreff: Re: [Spacewalk-devel] rhnpush with Python2 and Python 3 Stefan Bluhm: > 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? Dnf does know. Quick test on F30: [root@d3119aed1f35 /]# dnf install python3-dmidecode python2-dmidecode -y Last metadata expiration check: 0:01:50 ago on Mon Mar 9 10:42:44 2020. Dependencies resolved. == Package Architecture Version Repository Size == Installing: python2-dmidecodex86_64 3.12.2-14.fc30 fedora 87 k python3-dmidecodex86_64 3.12.2-14.fc30 fedora 86 k Installing dependencies: python2 x86_64 2.7.17-1.fc30 updates45 k ... Complete! [root@d3119aed1f35 /]# rpm -qf /usr/share/python-dmidecode/pymap.xml python2-dmidecode-3.12.2-14.fc30.x86_64 python3-dmidecode-3.12.2-14.fc30.x86_64 In your case: "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" 3.12.2-15 != 3.12.2-11 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
Re: [Spacewalk-devel] rhnpush with Python2 and Python 3
Stefan Bluhm: > 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? Dnf does know. Quick test on F30: [root@d3119aed1f35 /]# dnf install python3-dmidecode python2-dmidecode -y Last metadata expiration check: 0:01:50 ago on Mon Mar 9 10:42:44 2020. Dependencies resolved. == Package Architecture Version Repository Size == Installing: python2-dmidecodex86_64 3.12.2-14.fc30 fedora 87 k python3-dmidecodex86_64 3.12.2-14.fc30 fedora 86 k Installing dependencies: python2 x86_64 2.7.17-1.fc30 updates45 k ... Complete! [root@d3119aed1f35 /]# rpm -qf /usr/share/python-dmidecode/pymap.xml python2-dmidecode-3.12.2-14.fc30.x86_64 python3-dmidecode-3.12.2-14.fc30.x86_64 In your case: "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" 3.12.2-15 != 3.12.2-11 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
Re: [Spacewalk-devel] rhnpush with Python2 and Python 3
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" An: "spacewalk-devel" 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
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