From owner-freebsd-ports@FreeBSD.ORG Fri Jan 7 13:59:27 2011 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 777FF106566C for ; Fri, 7 Jan 2011 13:59:27 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirj.bris.ac.uk (dirj.bris.ac.uk [137.222.10.78]) by mx1.freebsd.org (Postfix) with ESMTP id 381FD8FC16 for ; Fri, 7 Jan 2011 13:59:26 +0000 (UTC) Received: from ncsc.bris.ac.uk ([137.222.10.41]) by dirj.bris.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1PbCqk-0001aM-BZ; Fri, 07 Jan 2011 13:59:26 +0000 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncsc.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1PbCqk-0003XR-8P; Fri, 07 Jan 2011 13:59:26 +0000 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4) with ESMTP id p07DxP9D028446; Fri, 7 Jan 2011 13:59:26 GMT (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4/Submit) id p07DxPCR028445; Fri, 7 Jan 2011 13:59:25 GMT (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-cluster241.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Fri, 7 Jan 2011 13:59:25 +0000 From: Anton Shterenlikht To: garga@freebsd.org Message-ID: <20110107135925.GA22055@mech-cluster241.men.bris.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: ports@freebsd.org Subject: clamav makefile patch 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: Fri, 07 Jan 2011 13:59:27 -0000 clamav fails configure on ia64 portscluster because LLVM is included in default options: from http://pointyhat.freebsd.org/errorlogs/ia64-errorlogs/e.8.20101230091827/clamav-0.96.5_1.log configure: error: Failed to configure LLVM, and LLVM was explicitly requested With this patch it builds fine on my ia64 box. --- Makefile 2010-12-16 17:43:46.000000000 +0000 +++ Makefile.new 2011-01-07 13:52:26.000000000 +0000 @@ -140,7 +140,7 @@ CONFIGURE_ARGS+=--without-iconv .endif -.if defined(WITH_LLVM) && ${ARCH} != "sparc64" +.if defined(WITH_LLVM) && ${ARCH} != "sparc64" && ${ARCH} != "ia64" CONFIGURE_ARGS+=--enable-llvm USE_GMAKE= yes . if defined(WITH_TESTS) However, LLVM probably doesn't build on PPC either, so it might be better to use something like .if defined(WITH_LLVM) && ${ARCH} == "i386" | ${ARCH} == "amd64" -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423