ports/113941: amavisd-new won't build on !i386 and RAR

Michael Scheidell scheidell at secnap.net
Fri Jun 22 10:40:04 UTC 2007

>Number:         113941
>Category:       ports
>Synopsis:       amavisd-new won't build on !i386 and RAR
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 22 10:40:03 GMT 2007
>Originator:     Michael Scheidell
>Release:        5.5
SECNAP Network Security
FreeBSD mail.secnap.net 5.5-RELEASE-p8 FreeBSD 5.5-RELEASE-p8 #7: Sun Nov 12 12:30:30 EST 2006     scheidell at mail.secnap.net:/usr/obj/usr/src/sys/OUTSIDE  sparc64

I am working on the amavisd-new 2.5.2 port need 'best practices' advice:

if you select WITH_RAR KNOB with amavisd-new, and it is on a !i386 system, the rar port will fail, causing the amavisd-new install to fail.

Two options for workarounds:

(please don't consider this yet, I will include your preference in the amavisd-new 2.5.2 patch)

1, if rar selected on !i386 system, force to use unrar:
(this conditional is just before WITH_UNRAR

.if defined(WITH_RAR)
.if ${ARCH} != "i386"
#rar is binary port
RUN_DEPENDS+=   ${LOCALBASE}/bin/rar:${PORTSDIR}/archivers/rar

(does this break on ia64bit?

2, broke,ignore, or .error the port.
(actually, it won't matter, won't need patches as the rar makefile has this and it WILL stop the install:
RESTRICTED=     only unmodified original package can be distributed
NO_BUILD=       yes

on ! IA32 system:

cd /usr/ports/security/amavisd-new

make WITH_RAR=YES BATCH=YES deinstall reinstall
(please don't fix yet)
just looking for best practices now.


More information about the freebsd-ports-bugs mailing list