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
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 22 10:40:03 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Michael Scheidell
>Release:        5.5
>Organization:
SECNAP Network Security
>Environment:
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

>Description:
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"
WITH_UNRAR=yes
WITH_RAR=
#rar is binary port
.else
RUN_DEPENDS+=   ${LOCALBASE}/bin/rar:${PORTSDIR}/archivers/rar
.endif
.endif

(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:
IA32_BINARY_PORT=       YES
RESTRICTED=     only unmodified original package can be distributed
NO_BUILD=       yes


>How-To-Repeat:
on ! IA32 system:

cd /usr/ports/security/amavisd-new

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


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list