Excluded required packages, when compiling srpm's on RHEL 8 Beta

Latest response

I was using Mock recompiled from Centos 7 to build packages. So far minimal issues but having some serious issues with some perl dependencies. (I am suspecting probably something I have misconfigured with modules)

Using the codeready, appstream, and baseos repositories.

# /usr/bin/dnf builddep --installroot /var/lib/mock/ncoulson/centos-8-x86_64/root/ --releasever 8 --disableplugin=local --setopt=deltarpm=False /var/lib/mock/ncoulson/centos-8-x86_64/root//builddir/build/SRPMS/cyrus-imapd-3.0.7-15.ncoulson.el8.centos.src.rpm
appstream 2.7 kB/s | 2.8 kB 00:01
baseos 2.7 kB/s | 2.7 kB 00:01
codeready-builder 1.2 MB/s | 4.4 kB 00:00
Package gcc-8.2.1-3.3.el8.x86_64 is already installed.
Package gcc-c++-8.2.1-3.3.el8.x86_64 is already installed.
Package perl-ExtUtils-MakeMaker-1:7.34-1.el8.noarch is already installed.
Package perl-Pod-Html-1.22.02-414.el8.noarch is already installed.
Package perl-devel-4:5.26.2-414.el8.x86_64 is already installed.
Package pkgconf-pkg-config-1.4.2-1.el8.x86_64 is already installed.
Error:
Problem: cannot install the best candidate for the job
- package perl-generators-1.10-7.el8+1703+3db27f7b.noarch is excluded

As an example, I used the cyrus-imapd SRPM, disabled cassandra (Lots of missing dependencies, and just wanted to test), which resulted in the above.

I also get the same issues with the commented out dnf command above.c

Another example, is rebuilding perl-Nagios-Plugin-0.36-7.el7.src.rpm,
Error:
Problem 1: cannot install the best candidate for the job
- package perl-Exporter-5.72-1000.el8+1703+3db27f7b.noarch is excluded
Problem 2: cannot install the best candidate for the job
- package perl-constant-1.33-1000.el8+1703+3db27f7b.noarch is excluded

Responses

It looks like a bug to me. I have been trying to reproduce it and the error happens if a package has BuildRequires: perl-generators - the rest of the contents don't matter. In that case running

/usr/bin/dnf builddep testpkg-0-1.el8.src.rpm
gives the error
Error: 
 Problem: cannot install the best candidate for the job
  - package perl-generators-1.10-7.el8+1703+3db27f7b.noarch is excluded

and quits when best=1 is set in /etc/dnf/dnf.conf which is true in the mock build and that is why it dies. However I can't reproduce it on Fedora 29 which has dnf-4.0.9-2.fc29.noarch so the issue may have been fixed in upstream dnf (or a related package).

Thank you very much, been trying to solve this for a month now. (best=0 in the mock config got around this issue). And straight DNF (ignoring installroot) is giving me similar warnings (but installing the packages)

I put in a bugzilla report at https://bugzilla.redhat.com/show_bug.cgi?id=1665722 but I expect it is a known issue.