#4430 Split qrcode functionality to optional package
Closed: Fixed None Opened 10 years ago by pviktori.

Ticket was cloned from Red Hat Bugzilla (product Fedora): Bug 1117432

With the upgrade to freeipa 4.0.0 the freeipa-python sub package adds a
dependency on python-qrcode which in turn pulls in a large number of
dependencies which aren't needed on a minimal install of Fedora which
previously worked just fine with freeipa-client.

I'm not sure what functionality would be lost on the client side by not having
QR codes but I'm not sure whether the functionality would work on the cli or
whether it's designed to provide a QR code to be scanned by a phone through the
web console. It looks like the user of it is the otptoken.py plugin.

# yum upgrade
Resolving Dependencies
--> Running transaction check
---> Package freeipa-client.armv7hl 0:3.3.5-4.fc21 will be updated
---> Package freeipa-client.armv7hl 0:4.0.0-1.fc21 will be an update
---> Package freeipa-python.armv7hl 0:3.3.5-4.fc21 will be updated
---> Package freeipa-python.armv7hl 0:4.0.0-1.fc21 will be an update
--> Processing Dependency: python-yubico for package:
freeipa-python-4.0.0-1.fc21.armv7hl
--> Processing Dependency: python-qrcode for package:
freeipa-python-4.0.0-1.fc21.armv7hl
--> Processing Dependency: python-dateutil for package:
freeipa-python-4.0.0-1.fc21.armv7hl
--> Running transaction check
---> Package python-dateutil.noarch 0:1.5-8.fc21 will be installed
---> Package python-qrcode.noarch 0:2.4.1-6.fc21 will be installed
--> Processing Dependency: python-imaging for package:
python-qrcode-2.4.1-6.fc21.noarch
---> Package python-yubico.noarch 0:1.2.1-3.fc21 will be installed
--> Processing Dependency: pyusb for package: python-yubico-1.2.1-3.fc21.noarch
--> Running transaction check
---> Package python-pillow.armv7hl 0:2.5.0-1.fc21 will be installed
--> Processing Dependency: libwebpmux.so.1 for package:
python-pillow-2.5.0-1.fc21.armv7hl
--> Processing Dependency: libwebpdemux.so.1 for package:
python-pillow-2.5.0-1.fc21.armv7hl
--> Processing Dependency: libwebp.so.5 for package:
python-pillow-2.5.0-1.fc21.armv7hl
--> Processing Dependency: libtiff.so.5(LIBTIFF_4.0) for package:
python-pillow-2.5.0-1.fc21.armv7hl
--> Processing Dependency: libtiff.so.5 for package:
python-pillow-2.5.0-1.fc21.armv7hl
--> Processing Dependency: libopenjp2.so.7 for package:
python-pillow-2.5.0-1.fc21.armv7hl
--> Processing Dependency: liblcms2.so.2 for package:
python-pillow-2.5.0-1.fc21.armv7hl
--> Processing Dependency: libjpeg.so.62(LIBJPEG_6.2) for package:
python-pillow-2.5.0-1.fc21.armv7hl
--> Processing Dependency: libjpeg.so.62 for package:
python-pillow-2.5.0-1.fc21.armv7hl
--> Processing Dependency: libfreetype.so.6 for package:
python-pillow-2.5.0-1.fc21.armv7hl
--> Processing Dependency: ghostscript for package:
python-pillow-2.5.0-1.fc21.armv7hl
---> Package pyusb.noarch 0:1.0.0-0.10.b1.fc21 will be installed
--> Running transaction check
---> Package freetype.armv7hl 0:2.5.3-6.fc21 will be installed
--> Processing Dependency: libpng16.so.16(PNG16_0) for package:
freetype-2.5.3-6.fc21.armv7hl
--> Processing Dependency: libpng16.so.16 for package:
freetype-2.5.3-6.fc21.armv7hl
---> Package ghostscript.armv7hl 0:9.14-4.fc21 will be installed
--> Processing Dependency: urw-fonts >= 1.1 for package:
ghostscript-9.14-4.fc21.armv7hl
--> Processing Dependency: poppler-data for package:
ghostscript-9.14-4.fc21.armv7hl
--> Processing Dependency: libfontconfig.so.1 for package:
ghostscript-9.14-4.fc21.armv7hl
--> Processing Dependency: libXt.so.6 for package:
ghostscript-9.14-4.fc21.armv7hl
--> Processing Dependency: libXext.so.6 for package:
ghostscript-9.14-4.fc21.armv7hl
--> Processing Dependency: libX11.so.6 for package:
ghostscript-9.14-4.fc21.armv7hl
--> Processing Dependency: libSM.so.6 for package:
ghostscript-9.14-4.fc21.armv7hl
--> Processing Dependency: libICE.so.6 for package:
ghostscript-9.14-4.fc21.armv7hl
--> Processing Dependency: ghostscript-fonts for package:
ghostscript-9.14-4.fc21.armv7hl
---> Package lcms2.armv7hl 0:2.6-3.fc21 will be installed
---> Package libjpeg-turbo.armv7hl 0:1.3.1-3.fc21 will be installed
---> Package libtiff.armv7hl 0:4.0.3-16.fc21 will be installed
--> Processing Dependency: libjbig.so.2.0 for package:
libtiff-4.0.3-16.fc21.armv7hl
---> Package libwebp.armv7hl 0:0.4.0-4.fc21 will be installed
---> Package openjpeg2.armv7hl 0:2.1.0-2.fc21 will be installed
--> Running transaction check
---> Package fontconfig.armv7hl 0:2.11.1-4.fc21 will be installed
--> Processing Dependency: fontpackages-filesystem for package:
fontconfig-2.11.1-4.fc21.armv7hl
--> Processing Dependency: font(:lang=en) for package:
fontconfig-2.11.1-4.fc21.armv7hl
---> Package ghostscript-fonts.noarch 0:5.50-33.fc21 will be installed
--> Processing Dependency: xorg-x11-font-utils for package:
ghostscript-fonts-5.50-33.fc21.noarch
---> Package jbigkit-libs.armv7hl 0:2.0-11.fc21 will be installed
---> Package libICE.armv7hl 0:1.0.8-7.fc21 will be installed
---> Package libSM.armv7hl 0:1.2.1-7.fc21 will be installed
---> Package libX11.armv7hl 0:1.6.2-1.fc21 will be installed
--> Processing Dependency: libX11-common >= 1.6.2-1.fc21 for package:
libX11-1.6.2-1.fc21.armv7hl
--> Processing Dependency: libxcb.so.1 for package: libX11-1.6.2-1.fc21.armv7hl
---> Package libXext.armv7hl 0:1.3.2-3.fc21 will be installed
---> Package libXt.armv7hl 0:1.1.4-9.fc21 will be installed
---> Package libpng.armv7hl 2:1.6.10-2.fc21 will be installed
---> Package poppler-data.noarch 0:0.4.6-5.fc21 will be installed
---> Package urw-fonts.noarch 0:2.4-19.fc21 will be installed
--> Running transaction check
---> Package fontpackages-filesystem.noarch 0:1.44-10.fc21 will be installed
---> Package libX11-common.noarch 0:1.6.2-1.fc21 will be installed
---> Package libxcb.armv7hl 0:1.10-2.fc21 will be installed
--> Processing Dependency: libXau.so.6 for package: libxcb-1.10-2.fc21.armv7hl
---> Package lyx-fonts.noarch 0:2.1.1-1.fc21 will be installed
---> Package xorg-x11-font-utils.armv7hl 1:7.5-19.fc21 will be installed
--> Processing Dependency: libfontenc.so.1 for package:
1:xorg-x11-font-utils-7.5-19.fc21.armv7hl
--> Processing Dependency: libXfont.so.1 for package:
1:xorg-x11-font-utils-7.5-19.fc21.armv7hl
--> Running transaction check
---> Package libXau.armv7hl 0:1.0.8-3.fc21 will be installed
---> Package libXfont.armv7hl 0:1.4.7-2.fc21 will be installed
---> Package libfontenc.armv7hl 0:1.1.1-5.fc21 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================
=
 Package                    Arch       Version                 Repository  Size
===============================================================================
=
Updating:
 freeipa-client             armv7hl    4.0.0-1.fc21            rawhide    141 k
 freeipa-python             armv7hl    4.0.0-1.fc21            rawhide    1.1 M
Installing for dependencies:
 fontconfig                 armv7hl    2.11.1-4.fc21           rawhide    216 k
 fontpackages-filesystem    noarch     1.44-10.fc21            rawhide    9.2 k
 freetype                   armv7hl    2.5.3-6.fc21            rawhide    353 k
 ghostscript                armv7hl    9.14-4.fc21             rawhide    4.1 M
 ghostscript-fonts          noarch     5.50-33.fc21            rawhide    324 k
 jbigkit-libs               armv7hl    2.0-11.fc21             rawhide     43 k
 lcms2                      armv7hl    2.6-3.fc21              rawhide    127 k
 libICE                     armv7hl    1.0.8-7.fc21            rawhide     57 k
 libSM                      armv7hl    1.2.1-7.fc21            rawhide     35 k
 libX11                     armv7hl    1.6.2-1.fc21            rawhide    549 k
 libX11-common              noarch     1.6.2-1.fc21            rawhide    186 k
 libXau                     armv7hl    1.0.8-3.fc21            rawhide     28 k
 libXext                    armv7hl    1.3.2-3.fc21            rawhide     33 k
 libXfont                   armv7hl    1.4.7-2.fc21            rawhide    131 k
 libXt                      armv7hl    1.1.4-9.fc21            rawhide    145 k
 libfontenc                 armv7hl    1.1.1-5.fc21            rawhide     27 k
 libjpeg-turbo              armv7hl    1.3.1-3.fc21            rawhide    117 k
 libpng                     armv7hl    2:1.6.10-2.fc21         rawhide    246 k
 libtiff                    armv7hl    4.0.3-16.fc21           rawhide    151 k
 libwebp                    armv7hl    0.4.0-4.fc21            rawhide    170 k
 libxcb                     armv7hl    1.10-2.fc21             rawhide    154 k
 lyx-fonts                  noarch     2.1.1-1.fc21            rawhide    168 k
 openjpeg2                  armv7hl    2.1.0-2.fc21            rawhide     92 k
 poppler-data               noarch     0.4.6-5.fc21            rawhide    2.1 M
 python-dateutil            noarch     1.5-8.fc21              rawhide     84 k
 python-pillow              armv7hl    2.5.0-1.fc21            rawhide    504 k
 python-qrcode              noarch     2.4.1-6.fc21            rawhide     30 k
 python-yubico              noarch     1.2.1-3.fc21            rawhide     46 k
 pyusb                      noarch     1.0.0-0.10.b1.fc21      rawhide     65 k
 urw-fonts                  noarch     2.4-19.fc21             rawhide    3.0 M
 xorg-x11-font-utils        armv7hl    1:7.5-19.fc21           rawhide     82 k

Transaction Summary
===============================================================================
=
Install             ( 31 Dependent packages)
Upgrade  2 Packages

Total download size: 15 M
Is this ok [y/d/N]:

FreeIPA 4.0.1 was released, moving to next bugfixing release milestone.

Looking at the linked Bugzilla and GitHub issue it does not seem like this would be solved in 4.0.x time frame. Moving to later release.

FreeIPA now depends on python-qrcode-core >= 5.0.0 instead of full python-qrcode.

master:

  • 9c50f9f Update qrcode support for newer python-qrcode

ipa-4-1:

  • 0436858 Update qrcode support for newer python-qrcode

ipa-4-0:

  • 0f20014 Update qrcode support for newer python-qrcode

Metadata Update from @pviktori:
- Issue assigned to npmccallum
- Issue set to the milestone: FreeIPA 4.0.3

7 years ago

Log in to comment on this ticket.

Metadata