I figured it out. The missing dependencies are in the PowerTools repo, which is disabled by default. The following command worked: dnf builddep --enablerepo=PowerTools coreutils-8.30-6.el8.src.rpm Now to resume working on the ls bug...