Bug 2084662 - Allow to install clamav-unofficial-sigs with bind and bind9.16 too
Summary: Allow to install clamav-unofficial-sigs with bind and bind9.16 too
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: clamav-unofficial-sigs
Version: epel8
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Didier Fabert (tartare)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-12 15:32 UTC by chrismcc
Modified: 2022-05-25 01:34 UTC (History)
4 users (show)

Fixed In Version: clamav-unofficial-sigs-7.2.5-4.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-25 01:34:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description chrismcc 2022-05-12 15:32:25 UTC
Description of problem:

install fails on centos8/redhat8 when using bind9.16-utils 
clamav-unofficial-sigs depends on bind-utils 

Version-Release number of selected component (if applicable):

latest

How reproducible:

always



Steps to Reproduce:
1.

update bind to  bind9.16

2.
install clamav-unofficial-sigs

3.

Actual results:
[root@thing clamav-unofficial-sigs]# cat /etc/redhat-release 
CentOS Stream release 8
[root@thing clamav-unofficial-sigs]# dnf install clamav-unofficial-sigs
Last metadata expiration check: 0:29:37 ago on Thu 12 May 2022 10:59:06 AM EDT.
Error: 
 Problem: package clamav-unofficial-sigs-7.2.4-1.el8.noarch requires bind-utils, but none of the providers can be installed
  - package bind9.16-utils-32:9.16.23-0.5.el8.x86_64 conflicts with bind-utils provided by bind-utils-32:9.11.26-3.el8.x86_64
  - package bind9.16-utils-32:9.16.23-0.5.el8.x86_64 conflicts with bind-utils provided by bind-utils-32:9.11.26-4.el8_4.x86_64
  - package bind9.16-utils-32:9.16.23-0.5.el8.x86_64 conflicts with bind-utils provided by bind-utils-32:9.11.26-6.el8.x86_64
  - package bind9.16-utils-32:9.16.23-0.5.el8.x86_64 conflicts with bind-utils provided by bind-utils-32:9.11.36-2.el8.x86_64
  - package bind9.16-utils-32:9.16.23-0.5.el8.x86_64 conflicts with bind-utils provided by bind-utils-32:9.11.36-3.el8.x86_64
  - problem with installed package bind9.16-utils-32:9.16.23-0.7.el8.x86_64
  - package bind9.16-utils-32:9.16.23-0.7.el8.x86_64 conflicts with bind-utils provided by bind-utils-32:9.11.26-3.el8.x86_64
  - package bind9.16-utils-32:9.16.23-0.7.el8.x86_64 conflicts with bind-utils provided by bind-utils-32:9.11.26-4.el8_4.x86_64
  - package bind9.16-utils-32:9.16.23-0.7.el8.x86_64 conflicts with bind-utils provided by bind-utils-32:9.11.26-6.el8.x86_64
  - package bind9.16-utils-32:9.16.23-0.7.el8.x86_64 conflicts with bind-utils provided by bind-utils-32:9.11.36-2.el8.x86_64
  - package bind9.16-utils-32:9.16.23-0.7.el8.x86_64 conflicts with bind-utils provided by bind-utils-32:9.11.36-3.el8.x86_64
  - conflicting requests
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[root@thing clamav-unofficial-sigs]# 




Expected results:


Additional info:

fix:
[root@thing clamav-unofficial-sigs]# git diff 
diff --git a/clamav-unofficial-sigs.spec b/clamav-unofficial-sigs.spec
index c36ccb0..9e92f90 100644
--- a/clamav-unofficial-sigs.spec
+++ b/clamav-unofficial-sigs.spec
@@ -9,7 +9,7 @@
 %endif
 Name:           clamav-unofficial-sigs
 Version:        7.2.5
-Release:        3%{?dist}
+Release:        3%{?dist}local
 Summary:        Scripts to download unofficial clamav signatures 
 Group:          Applications/System
 License:        BSD
@@ -24,7 +24,8 @@ BuildRequires:  rsync
 %if %{with_systemd}
 BuildRequires:  systemd
 %endif
-Requires:       clamav clamav-update rsync gnupg diffutils curl bind-utils
+Requires:       clamav clamav-update rsync gnupg diffutils curl
+Requires:       /usr/bin/host /usr/bin/dig
 %if %{with_systemd}
 Requires(post): systemd-sysv
 %endif
[root@thing clamav-unofficial-sigs]# 



[root@thing clamav-unofficial-sigs]# rpm -qa | grep ^bind
bind9.16-license-9.16.23-0.7.el8.noarch
bind9.16-9.16.23-0.7.el8.x86_64
bind9.16-libs-9.16.23-0.7.el8.x86_64
bind9.16-utils-9.16.23-0.7.el8.x86_64
bind9.16-dnssec-utils-9.16.23-0.7.el8.x86_64
[root@thing clamav-unofficial-sigs]# dnf install ./results_clamav-unofficial-sigs/7.2.5/3.fc37local/clamav-unofficial-sigs-7.2.5-3.fc37local.noarch.rpm 
Last metadata expiration check: 0:32:15 ago on Thu 12 May 2022 10:59:06 AM EDT.
Dependencies resolved.
================================================================================
 Package                   Arch      Version              Repository       Size
================================================================================
Installing:
 clamav-unofficial-sigs    noarch    7.2.5-3.fc37local    @commandline     59 k
Installing dependencies:
 clamav                    x86_64    0.103.5-1.el8        epel            2.7 M

Transaction Summary
================================================================================
Install  2 Packages

Total size: 2.7 M
Total download size: 2.7 M
Installed size: 13 M
Is this ok [y/N]: y
Downloading Packages:
clamav-0.103.5-1.el8.x86_64.rpm                 1.0 MB/s | 2.7 MB     00:02    
--------------------------------------------------------------------------------
Total                                           889 kB/s | 2.7 MB     00:03     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : clamav-0.103.5-1.el8.x86_64                            1/2 
  Running scriptlet: clamav-0.103.5-1.el8.x86_64                            1/2 
  Installing       : clamav-unofficial-sigs-7.2.5-3.fc37local.noarch        2/2 
  Running scriptlet: clamav-unofficial-sigs-7.2.5-3.fc37local.noarch        2/2 
  Verifying        : clamav-0.103.5-1.el8.x86_64                            1/2 
  Verifying        : clamav-unofficial-sigs-7.2.5-3.fc37local.noarch        2/2 

Installed:
  clamav-0.103.5-1.el8.x86_64  clamav-unofficial-sigs-7.2.5-3.fc37local.noarch 

Complete!
[root@thing clamav-unofficial-sigs]#

Comment 1 Jan ONDREJ 2022-05-12 16:32:16 UTC
Where did you get bind9.16 package? If you updated bind in CentOS from non CentOS source, then you switched to an different distribution and need to ask for help elsewhere.

You can try to recompile clamav-unofficial-sigs from src.rpm to rebuild agains newver version of bind but we can't help you to update bind in RHEL8 build system and because of that can't rebuild clamav-unofficial-sigs in RHEL8.

Comment 2 chrismcc 2022-05-13 14:17:32 UTC
bind9.16 is part of CentOS8 / RedHat 8

bind 9.11.36 is EOL upstream as of Q1 2022



[root@orator ~]# dnf list all | grep ^bind
bind-export-libs.x86_64                                           32:9.11.36-3.el8                                           @baseos      
bind-libs.x86_64                                                  32:9.11.36-3.el8                                           @appstream   
bind-libs-lite.x86_64                                             32:9.11.36-3.el8                                           @appstream   
bind-license.noarch                                               32:9.11.36-3.el8                                           @appstream   
bind9.16.x86_64                                                   32:9.16.23-0.7.el8                                         @appstream   
bind9.16-libs.x86_64                                              32:9.16.23-0.7.el8                                         @appstream   
bind9.16-license.noarch                                           32:9.16.23-0.7.el8                                         @appstream   
bind9.16-utils.x86_64                                             32:9.16.23-0.7.el8                                         @appstream   
bind.x86_64                                                       32:9.11.36-3.el8                                           appstream    
bind-chroot.x86_64                                                32:9.11.36-3.el8                                           appstream    
bind-devel.i686                                                   32:9.11.36-3.el8                                           appstream    
bind-devel.x86_64                                                 32:9.11.36-3.el8                                           appstream

Comment 3 Jan ONDREJ 2022-05-14 06:07:32 UTC
OK, I see now. Thanks.

I think removal of bind-utils from spec file is not a good idea, but we can change requires to:

Requires:       (bind-utils or bind9.16-utils)

RHEL8 rpm is new enough to accept this.

Should this change go to Fedora main too to make same spec file for all branches?

Comment 4 chrismcc 2022-05-14 12:17:36 UTC
I didn't know 'Requires:' could use a logical or , TIL

As fas as I know, only RedHat8 / CentOS 8  has two bind versions, so it's not needed in fedora, only EPEL8

thanks

Comment 5 Fedora Update System 2022-05-16 06:32:27 UTC
FEDORA-EPEL-2022-4dc927932a has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-4dc927932a

Comment 6 Fedora Update System 2022-05-17 03:26:02 UTC
FEDORA-EPEL-2022-4dc927932a has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-4dc927932a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 chrismcc 2022-05-18 13:32:19 UTC
using dnf --enablerepo=epel-testing install clamav-unofficial-sigs with bind9.16-utils on cent8 stream works as expected

w00t!

thanks

Comment 8 Fedora Update System 2022-05-25 01:34:24 UTC
FEDORA-EPEL-2022-4dc927932a has been pushed to the Fedora EPEL 8 stable repository.
If problem still persists, please make note of it in this bug report.


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