[Bug 293813] security/clamav: package build fails with UNRAR disabled due to unconditional libclamunrar* entries in pkg-plist

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 14 Mar 2026 21:12:45 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293813

            Bug ID: 293813
           Summary: security/clamav: package build fails with UNRAR
                    disabled due to unconditional libclamunrar* entries in
                    pkg-plist
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: chris@cretaforce.gr

ClamAV fails during package creation when the UNRAR option is disabled because
last commit removed the %%UNRAR%% guards from the libclamunrar* and
libclamunrar_iface* entries in pkg-plist, making those files unconditionally
required even though they are only built and staged when UNRAR is enabled; the
build itself succeeds, but pkg-static aborts because the expected libraries are
missing from the stage directory.

Error pkg-static: Unable to access file
/wrkdirs/usr/ports/security/clamav/work/stage/usr/local/lib/libclamunrar.so:No
such file or directory
pkg-static: Unable to access file
/wrkdirs/usr/ports/security/clamav/work/stage/usr/local/lib/libclamunrar.so.12:No
such file or directory
pkg-static: Unable to access file
/wrkdirs/usr/ports/security/clamav/work/stage/usr/local/lib/libclamunrar.so.12.1.0:No
such file or directory
pkg-static: Unable to access file
/wrkdirs/usr/ports/security/clamav/work/stage/usr/local/lib/libclamunrar_iface.so:No
such file or directory
pkg-static: Unable to access file
/wrkdirs/usr/ports/security/clamav/work/stage/usr/local/lib/libclamunrar_iface.so.12:No
such file or directory
pkg-static: Unable to access file
/wrkdirs/usr/ports/security/clamav/work/stage/usr/local/lib/libclamunrar_iface.so.12.1.0:No
such file or directory

-- 
You are receiving this mail because:
You are the assignee for the bug.