Date: Sun, 10 Nov 2002 21:45:10 -0500 (EST) From: "David A. Panariti" <davep.freebsd@meduseld.net> To: andy@fud.org.nz Cc: FreeBSD-stable@FreeBSD.ORG Subject: Re: unexpected error from make Message-ID: <20021110.214510.608042616.davep@meduseld.net> In-Reply-To: <02Nov11.143712nzdt.119042@homer.fire.org.nz> References: <20021111013430.GA1785@thai-aec.org> <02Nov11.143712nzdt.119042@homer.fire.org.nz>
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "Andrew" == Andrew Thompson <andy@fud.org.nz> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021110.214510.608042616.davep>