From owner-freebsd-stable Mon Nov 11 12:48: 7 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D6BA37B401 for ; Mon, 11 Nov 2002 12:48:05 -0800 (PST) Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id C278B43E42 for ; Mon, 11 Nov 2002 12:48:04 -0800 (PST) (envelope-from davep.freebsd@meduseld.net) Received: from baloo.meduseld.net ([66.30.120.153]) by rwcrmhc51.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20021111204803.KNGS24365.rwcrmhc51.attbi.com@baloo.meduseld.net> for ; Mon, 11 Nov 2002 20:48:03 +0000 Received: from localhost (localhost [127.0.0.1]) by baloo.meduseld.net (8.12.6/8.12.6) with ESMTP id gABGkaXn016569 for ; Mon, 11 Nov 2002 11:46:36 -0500 (EST) (envelope-from davep.freebsd@meduseld.net) Date: Mon, 11 Nov 2002 11:46:36 -0500 (EST) Message-Id: <20021111.114636.730557196.davep@meduseld.net> To: FreeBSD-stable@FreeBSD.ORG Subject: Re: unexpected error from make From: "David A. Panariti" In-Reply-To: <20021111151947.B31953@eborcom.com> References: <20021111013430.GA1785@thai-aec.org> <02Nov11.143712nzdt.119042@homer.fire.org.nz> <20021111151947.B31953@eborcom.com> X-Attribution: davep X-Mailer: Mew version 2.2 on XEmacs 21.4.10 (Military Intelligence) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >>>>> "Andrew" == Andrew Thompson writes: Andrew> pirat wrote: >> hi sirs, >> >> i face an unexpected error from making ImageMagick. they are >> >> install -c -o root -g wheel -m 444 >> ./www/Magick++/thumbnail-sample-plain.jpg /us >> r/local/share/doc/ImageMagick/www/Magick++ ===> Generating >> temporary packing list ===> Compressing manual pages for >> ImageMagick-5.5.1.4 ===> Running ldconfig /sbin/ldconfig -m >> /usr/local/lib Syntax error: "(" unexpected (expecting "fi") >> *** Error code 2 >> Stop in /usr/ports/graphics/ImageMagick. >> >> i do not know how to solve this problem. the only way is to >> rebuild my machine from source again. after my mchine is up, i >> remake the port again. and i still have the same error. >> >> Andrew> For what its worth, I have the same error with bison at the Andrew> moment. Andrew> Mabey something in bsd.port.mk? I ran into this with bison too. Here's the details. I sent this to the ports list the other day. The ImageMagic error may be due to a different variable w/shell metachars, or a different problem entirely. While installing the port for devel/bison, I kept getting errors. It turns out that bison has a PORTCOMMENT value with parens in it which confuses the shell. Putting quotes around the ${PORTCOMMENT} being echoed into the +COMMENT file fixed things. There may be other cases where vars should be quoted, too. Sorry, but I don't have the time to search for them. I'm not subscribed to this list, so I appreciate being CC'd on any followup. davep here is the patch: --- bsd.port.mk.ORIG Thu Nov 7 16:18:39 2002 +++ bsd.port.mk Thu Nov 7 16:18:48 2002 @@ -3566,7 +3566,7 @@ if [ -f ${COMMENT} ]; then \ ${CP} ${COMMENT} ${PKG_DBDIR}/${PKGNAME}/+COMMENT; \ else \ - ${ECHO_CMD} ${PORTCOMMENT} > ${PKG_DBDIR}/${PKGNAME}/+COMMENT; \ + ${ECHO_CMD} "${PORTCOMMENT}" > ${PKG_DBDIR}/${PKGNAME}/+COMMENT; \ fi; \ if [ -f ${PKGINSTALL} ]; then \ ${CP} ${PKGINSTALL} ${PKG_DBDIR}/${PKGNAME}/+INSTALL; \ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message