amavisd-new does not compile because of db42

Helmut Schneider jumper99 at gmx.de
Sat Jun 12 02:24:31 UTC 2010


Scot Hetzel wrote:

> The use as defined in bsd.port.mk for the IA32_BINARY_PORT variable is
> incorrectly being used in the amavisd-new port:
> 
> # IA32_BINARY_PORT
> #				- Set this instead of ONLY_FOR_ARCHS if the given port
> #				  fetches and installs compiled i386 binaries.
> 
> When this variable is set it changes how ldconfig searches for
> libraries by setting the -32 to ldconfig.  This prevents the port from
> properly detecting any 64bit libraries and only looks for 32bit
> libraries.  The reason that only db42 is being affected is because
> most of the ports dependancies are RUN_DEPENDS.
> 
> The correct way to the amavisd-new port would be to change this:
> 
> .if defined(WITH_RAR)
> IA32_BINARY_PORT=	yes
> RUN_DEPENDS+=	${LOCALBASE}/bin/rar:${PORTSDIR}/archivers/rar
> .endif
> 
> To this:
> 
> .if defined(WITH_RAR)
> # support for archivers/rar is broken on ia64
> .if ${ARCH} =="i386" || ${ARCH} == "amd64"
> RUN_DEPENDS+=	${LOCALBASE}/bin/rar:${PORTSDIR}/archivers/rar
> .else
> IGNORE= archviers/rar is a 32-bit binary port and is not compatible
> with ${ARCH} .endif
> .endif
> 
> Note:  This may need to be moved after the bsd.port.pre.mk.

I put suggested changes before bsd.port.pre.mk and amavisd-new installs
fine.

Thanks, Helmut



More information about the freebsd-ports mailing list