#4539 freeipa-server cannot be installed due to python-qrcode packaging
Closed: Fixed None Opened 10 years ago by mkosek.

FreeIPA could not be installed on my fresh F20 due to packaging problems with python-qrcode:

# yum install freeipa-server --enablerepo=mkosek-freeipa
Loaded plugins: versionlock
mkosek-freeipa                                                                                                                 | 3.0 kB  00:00:00     
Resolving Dependencies
--> Running transaction check
---> Package freeipa-server.x86_64 0:4.0.3-1.fc20 will be installed
--> Processing Dependency: freeipa-admintools = 4.0.3-1.fc20 for package: freeipa-server-4.0.3-1.fc20.x86_64
--> Processing Dependency: freeipa-client = 4.0.3-1.fc20 for package: freeipa-server-4.0.3-1.fc20.x86_64
--> Processing Dependency: freeipa-python = 4.0.3-1.fc20 for package: freeipa-server-4.0.3-1.fc20.x86_64
--> Running transaction check
---> Package freeipa-admintools.x86_64 0:4.0.3-1.fc20 will be installed
---> Package freeipa-client.x86_64 0:4.0.3-1.fc20 will be installed
---> Package freeipa-python.x86_64 0:4.0.3-1.fc20 will be installed
--> Processing Dependency: python-qrcode-core >= 5.0.0 for package: freeipa-python-4.0.3-1.fc20.x86_64
--> Processing Dependency: python-yubico for package: freeipa-python-4.0.3-1.fc20.x86_64
--> Running transaction check
---> Package python-qrcode-core.noarch 0:5.0.1-1.fc20 will be installed
---> Package python-yubico.noarch 0:1.2.1-3.fc20 will be installed
--> Processing Dependency: pyusb for package: python-yubico-1.2.1-3.fc20.noarch
--> Running transaction check
---> Package pyusb.noarch 0:1.0.0-0.7.a3.fc20 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================================================
 Package                              Arch                     Version                               Repository                                  Size
======================================================================================================================================================
Installing:
 freeipa-server                       x86_64                   4.0.3-1.fc20                          mkosek-freeipa                             1.0 M
Installing for dependencies:
 freeipa-admintools                   x86_64                   4.0.3-1.fc20                          mkosek-freeipa                              47 k
 freeipa-client                       x86_64                   4.0.3-1.fc20                          mkosek-freeipa                             139 k
 freeipa-python                       x86_64                   4.0.3-1.fc20                          mkosek-freeipa                             1.1 M
 python-qrcode-core                   noarch                   5.0.1-1.fc20                          mkosek-freeipa                              39 k
 python-yubico                        noarch                   1.2.1-3.fc20                          Fedora-20-x86_64-updates                    46 k
 pyusb                                noarch                   1.0.0-0.7.a3.fc20                     Fedora-20-x86_64-main                       61 k

Transaction Summary
======================================================================================================================================================
Install  1 Package (+6 Dependent packages)

Total download size: 2.4 M
Installed size: 11 M
Is this ok [y/d/N]: y
Downloading packages:
(1/7): freeipa-admintools-4.0.3-1.fc20.x86_64.rpm                                                                              |  47 kB  00:00:00     
(2/7): freeipa-client-4.0.3-1.fc20.x86_64.rpm                                                                                  | 139 kB  00:00:00     
(3/7): freeipa-python-4.0.3-1.fc20.x86_64.rpm                                                                                  | 1.1 MB  00:00:01     
(4/7): python-qrcode-core-5.0.1-1.fc20.noarch.rpm                                                                              |  39 kB  00:00:00     
(5/7): pyusb-1.0.0-0.7.a3.fc20.noarch.rpm                                                                                      |  61 kB  00:00:00     
(6/7): python-yubico-1.2.1-3.fc20.noarch.rpm                                                                                   |  46 kB  00:00:00     
(7/7): freeipa-server-4.0.3-1.fc20.x86_64.rpm                                                                                  | 1.0 MB  00:00:03     
------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                 606 kB/s | 2.4 MB  00:00:04     
Running transaction check
Running transaction test


Transaction check error:
  file /usr/lib/python2.7/site-packages/qrcode/__init__.pyc from install of python-qrcode-core-5.0.1-1.fc20.noarch conflicts with file from package python-qrcode-2.4.1-5.fc20.noarch
  file /usr/lib/python2.7/site-packages/qrcode/image/__init__.pyc from install of python-qrcode-core-5.0.1-1.fc20.noarch conflicts with file from package python-qrcode-2.4.1-5.fc20.noarch
  file /usr/lib/python2.7/site-packages/qrcode/__init__.pyo from install of python-qrcode-core-5.0.1-1.fc20.noarch conflicts with file from package python-qrcode-2.4.1-5.fc20.noarch
  file /usr/lib/python2.7/site-packages/qrcode/image/__init__.pyo from install of python-qrcode-core-5.0.1-1.fc20.noarch conflicts with file from package python-qrcode-2.4.1-5.fc20.noarch
  file /usr/lib/python2.7/site-packages/qrcode/util.py from install of python-qrcode-core-5.0.1-1.fc20.noarch conflicts with file from package python-qrcode-2.4.1-5.fc20.noarch
  file /usr/lib/python2.7/site-packages/qrcode/util.pyc from install of python-qrcode-core-5.0.1-1.fc20.noarch conflicts with file from package python-qrcode-2.4.1-5.fc20.noarch
  file /usr/lib/python2.7/site-packages/qrcode/util.pyo from install of python-qrcode-core-5.0.1-1.fc20.noarch conflicts with file from package python-qrcode-2.4.1-5.fc20.noarch
  file /usr/lib/python2.7/site-packages/qrcode/base.py from install of python-qrcode-core-5.0.1-1.fc20.noarch conflicts with file from package python-qrcode-2.4.1-5.fc20.noarch
  file /usr/lib/python2.7/site-packages/qrcode/image/base.py from install of python-qrcode-core-5.0.1-1.fc20.noarch conflicts with file from package python-qrcode-2.4.1-5.fc20.noarch
  file /usr/lib/python2.7/site-packages/qrcode/base.pyc from install of python-qrcode-core-5.0.1-1.fc20.noarch conflicts with file from package python-qrcode-2.4.1-5.fc20.noarch
  file /usr/lib/python2.7/site-packages/qrcode/image/base.pyc from install of python-qrcode-core-5.0.1-1.fc20.noarch conflicts with file from package python-qrcode-2.4.1-5.fc20.noarch
  file /usr/lib/python2.7/site-packages/qrcode/base.pyo from install of python-qrcode-core-5.0.1-1.fc20.noarch conflicts with file from package python-qrcode-2.4.1-5.fc20.noarch
  file /usr/lib/python2.7/site-packages/qrcode/image/base.pyo from install of python-qrcode-core-5.0.1-1.fc20.noarch conflicts with file from package python-qrcode-2.4.1-5.fc20.noarch
  file /usr/lib/python2.7/site-packages/qrcode/constants.pyc from install of python-qrcode-core-5.0.1-1.fc20.noarch conflicts with file from package python-qrcode-2.4.1-5.fc20.noarch
  file /usr/lib/python2.7/site-packages/qrcode/constants.pyo from install of python-qrcode-core-5.0.1-1.fc20.noarch conflicts with file from package python-qrcode-2.4.1-5.fc20.noarch
  file /usr/lib/python2.7/site-packages/qrcode/exceptions.pyc from install of python-qrcode-core-5.0.1-1.fc20.noarch conflicts with file from package python-qrcode-2.4.1-5.fc20.noarch
  file /usr/lib/python2.7/site-packages/qrcode/exceptions.pyo from install of python-qrcode-core-5.0.1-1.fc20.noarch conflicts with file from package python-qrcode-2.4.1-5.fc20.noarch
  file /usr/lib/python2.7/site-packages/qrcode/main.py from install of python-qrcode-core-5.0.1-1.fc20.noarch conflicts with file from package python-qrcode-2.4.1-5.fc20.noarch
  file /usr/lib/python2.7/site-packages/qrcode/main.pyc from install of python-qrcode-core-5.0.1-1.fc20.noarch conflicts with file from package python-qrcode-2.4.1-5.fc20.noarch
  file /usr/lib/python2.7/site-packages/qrcode/main.pyo from install of python-qrcode-core-5.0.1-1.fc20.noarch conflicts with file from package python-qrcode-2.4.1-5.fc20.noarch

Maybe proper Obsoletes tag is missing in python-qrcode-core code?


So the problem here is that python-qrcode got split into python-qrcode-core and python-qrcode. For some reason, this is attempting to install python-qrcode-core without upgrading python-qrcode. I'm not sure exactly what spec file tweak needs to happen to fix this.

I believe both python-qrcode and python-qrcode-core need Obsoletes: python-qrcode < 5.0

OR, python-qrcode-core could have Conflicts python-qrcode < 5.0

Metadata Update from @mkosek:
- Issue assigned to npmccallum
- Issue set to the milestone: FreeIPA 4.0.4

7 years ago

Log in to comment on this ticket.

Metadata