From owner-freebsd-ports@FreeBSD.ORG Sat Jun 12 02:24:31 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24FAA1065674 for ; Sat, 12 Jun 2010 02:24:31 +0000 (UTC) (envelope-from freebsd-ports@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id CDFFF8FC18 for ; Sat, 12 Jun 2010 02:24:30 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1ONGOZ-0007sS-1B for freebsd-ports@freebsd.org; Sat, 12 Jun 2010 04:24:27 +0200 Received: from p5dcd6838.dip.t-dialin.net ([93.205.104.56]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Jun 2010 04:24:27 +0200 Received: from jumper99 by p5dcd6838.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Jun 2010 04:24:27 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-ports@freebsd.org connect(): No such file or directory From: "Helmut Schneider" Date: Sat, 12 Jun 2010 02:24:17 +0000 (UTC) Lines: 39 Message-ID: References: <4C1166C6.600@FreeBSD.org> <4C11E9EB.6080101@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: p5dcd6838.dip.t-dialin.net User-Agent: XanaNews/1.19.1.269 X-Ref: news.gmane.org ~XNS:00000066 Subject: Re: amavisd-new does not compile because of db42 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jun 2010 02:24:31 -0000 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