Bug 2396096

Summary: clamav SRPM build fails in mock on AlmaLinux 10 due to missing BuildRequires
Product: [Fedora] Fedora EPEL Reporter: Akiyoshi Kurita <akito5623>
Component: clamavAssignee: Orion Poplawski <orion>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel10CC: anon.amish, bennie.joubert, gbcox, gk, gwync, j, lee.jnk, ondrejj, orion, pgnd, rh-bugzilla, steve
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-09-17 14:27:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Akiyoshi Kurita 2025-09-17 14:08:20 UTC
Hello everyone,

I encountered a build failure while trying to build the clamav SRPM (e.g., clamav-1.4.3-1.el10.src.rpm) in a clean mock chroot on AlmaLinux 10 (x86_64).

The build fails during the setup phase because some dependencies are not found. The key error messages from the mock log are:

No matching package to install: 'sendmail-devel'
No matching package to install: 'rust-packaging'
Not all dependencies satisfied
Error: Some packages could not be found.

It seems the .spec file is missing these packages in its BuildRequires list.

By adding the following lines to the clamav.spec file, I was able to successfully build the package in mock:

BuildRequires: sendmail-devel
BuildRequires: rust-packaging

I believe updating the spec file with these dependencies will resolve the issue for clean builds on EL10.

Please let me know if you need any further logs or information.

Best regards,

Akiyoshi Kurita (redadmin)

Comment 1 Jason Tibbitts 2025-09-17 14:27:20 UTC
The lines you suggest are already present in the current specfile (on lines 139 and 87, respectively): https://src.fedoraproject.org/rpms/clamav/blob/epel10.1/f/clamav.spec

This was built most recently on August 25th: https://koji.fedoraproject.org/koji/buildinfo?buildID=2806056