From owner-freebsd-ports@FreeBSD.ORG Wed Dec 1 03:34:17 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9BFD216A4CE for ; Wed, 1 Dec 2004 03:34:17 +0000 (GMT) Received: from mailout2.barnet.com.au (mailout2.barnet.com.au [218.185.88.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4C4043D53 for ; Wed, 1 Dec 2004 03:34:16 +0000 (GMT) (envelope-from edwin@mavetju.org) Received: by mailout2.barnet.com.au (Postfix, from userid 27) id 03FE470743E; Wed, 1 Dec 2004 14:34:14 +1100 (EST) X-Viruscan-Id: <41AD3BB600006C30B1BDAB@BarNet> Received: from mail2-auth.barnet.com.au (mailout2.barnet.com.au [218.185.88.16]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) Authority" (verified OK)) by mail2.barnet.com.au (Postfix) with ESMTP id ABCCB70742F; Wed, 1 Dec 2004 14:34:14 +1100 (EST) Received: from k7.mavetju (edwin-3.int.barnet.com.au [10.10.12.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) Certificate Authority" (verified OK)) by mail2-auth.barnet.com.au (Postfix) with ESMTP id 092C2707428; Wed, 1 Dec 2004 14:34:14 +1100 (EST) Received: by k7.mavetju (Postfix, from userid 1001) id D8E7460DC; Wed, 1 Dec 2004 14:34:12 +1100 (EST) Date: Wed, 1 Dec 2004 14:34:12 +1100 From: Edwin Groothuis To: Robin Schoonover Message-ID: <20041201033412.GE1538@k7.mavetju> References: <200412010138.iB11cZPt072263@8ball.rtp.freebsd.org> <20041201015308.GB1435@k7.mavetju> <20041130201128.5b2efce6@zork> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041130201128.5b2efce6@zork> User-Agent: Mutt/1.5.6i cc: ports@FreeBSD.org cc: Lars.Koeller@Uni-Bielefeld.DE Subject: Re: INDEX build failed for 4.x X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Dec 2004 03:34:17 -0000 On Tue, Nov 30, 2004 at 08:11:28PM -0700, Robin Schoonover wrote: > On Wed, 1 Dec 2004 12:53:08 +1100 > Edwin Groothuis wrote: > > On Tue, Nov 30, 2004 at 08:38:35PM -0500, Kris Kennaway wrote: > > > INDEX build failed with errors: > > > Generating INDEX - please wait.."Makefile", line 13: 1 open > > > conditional make: fatal errors encountered -- cannot continue > > > > Now that's an interesting one which I failed to understand why it > > doesn't work. > > > > The \ on line 200 of sysutils/bacula-server/Makefile is causing the > problem. Close! But it gave me enough information on what actually was wrong: .fi vs .endif Lars: is this patch okay with you? Index: Makefile =================================================================== RCS file: /home/pcvs/ports/sysutils/bacula-server/Makefile,v retrieving revision 1.37 diff -u -r1.37 Makefile --- Makefile 30 Nov 2004 20:31:40 -0000 1.37 +++ Makefile 1 Dec 2004 03:33:06 -0000 @@ -73,6 +73,7 @@ # Client only or full server version .if defined(WITH_CLIENT_ONLY) +CONFFILES= fd CONFIGURE_ARGS+= --enable-client-only PORTDOCS= bacula.pdf ReleaseNotes html-manual PKGDEINSTALL= ${PKGDIR}/pkg-deinstall.client @@ -99,6 +100,7 @@ .endif .else # Server only Options +CONFFILES= sd dir .if defined(WITH_MYSQL) CONFIGURE_ARGS+= --with-mysql=yes USE_MYSQL= yes @@ -194,18 +196,14 @@ ${CHOWN} -R bacula:bacula ${PREFIX}/share/bacula .endif # Install leaves existing conf files untouched. Respect this here! -.if defined(WITH_CLIENT_ONLY) - for na in fd; do \ -.else - for na in sd dir; do \ -.fi + for na in ${CONFFILES}; do \ if [ -f ${PREFIX}/etc/bacula-$$na.conf.new ]; then \ ${ECHO_CMD} "etc/bacula-$$na.conf.new" >> ${TMPPLIST}; \ elif [ -f ${PREFIX}/etc/bacula-$$na.conf ]; then \ ${MV} ${PREFIX}/etc/bacula-$$na.conf ${PREFIX}/etc/bacula-$$na.conf.sample; \ ${ECHO_CMD} "etc/bacula-$$na.conf.sample" >> ${TMPPLIST}; \ - fi \ - done; \ + fi; \ + done .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR}/html-manual -- Edwin Groothuis | Personal website: http://www.mavetju.org edwin@mavetju.org | Weblog: http://weblog.barnet.com.au/edwin/