Bug 1993650 - libgd should be a weak dependency
Summary: libgd should be a weak dependency
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: vnstat
Version: epel8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Adrian Reber
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-15 00:43 UTC by Pascal
Modified: 2021-12-14 17:51 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-12-14 17:51:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Pascal 2021-08-15 00:43:45 UTC
Description of problem:
vnstat currently requires libgd, which requires libX11, etc.  This is only actually needed if you want vnstat to create pretty pictures.  vnstat works fine without it.

Version-Release number of selected component (if applicable):
2.6-2.el8

How reproducible:
always

Steps to Reproduce:
1. dnf --setopt=install_weak_deps=False install vnstat

Actual results:
Installs all this cruft:
 dejavu-fonts-common                       noarch                   2.35-7.el8                      rhel-8-for-x86_64-baseos-rpms                       74 k
 dejavu-sans-fonts                         noarch                   2.35-7.el8                      rhel-8-for-x86_64-baseos-rpms                      1.5 M
 fontconfig                                x86_64                   2.13.1-3.el8                    rhel-8-for-x86_64-baseos-rpms                      275 k
 fontpackages-filesystem                   noarch                   1.44-22.el8                     rhel-8-for-x86_64-baseos-rpms                       16 k
 gd                                        x86_64                   2.2.5-7.el8                     rhel-8-for-x86_64-appstream-rpms                   144 k
 jbigkit-libs                              x86_64                   2.1-14.el8                      rhel-8-for-x86_64-appstream-rpms                    55 k
 libX11                                    x86_64                   1.6.8-4.el8                     rhel-8-for-x86_64-appstream-rpms                   611 k
 libX11-common                             noarch                   1.6.8-4.el8                     rhel-8-for-x86_64-appstream-rpms                   158 k
 libXau                                    x86_64                   1.0.9-3.el8                     rhel-8-for-x86_64-appstream-rpms                    37 k
 libXpm                                    x86_64                   3.5.12-8.el8                    rhel-8-for-x86_64-appstream-rpms                    58 k
 libjpeg-turbo                             x86_64                   1.5.3-10.el8                    rhel-8-for-x86_64-appstream-rpms                   156 k
 libtiff                                   x86_64                   4.0.9-18.el8                    rhel-8-for-x86_64-appstream-rpms                   188 k
 libwebp                                   x86_64                   1.0.0-3.el8_4                   rhel-8-for-x86_64-appstream-rpms                   272 k
 libxcb                                    x86_64                   1.13.1-1.el8                    rhel-8-for-x86_64-appstream-rpms                   229 k


Expected results:
vnstat only installed

Additional info:
Thank you!

Comment 1 Pascal 2021-08-17 16:24:11 UTC
workaround:
dnf install dnf-plugins-core
dnf download vnstat
dnf remove dnf-plugins-core
rpm -i vnstat-2.6-2.el8.x86_64.rpm --nodeps

Comment 2 Adrian Reber 2021-08-30 22:03:27 UTC
Weak dependencies does not really work here. gd is a dependency of the vnstati binary and the way you are working around gd is by breaking vnstati. It should be possible, however, to split out vnstati in its own sub-package which can be installed separately.


Note You need to log in before you can comment on or make changes to this bug.