(strange) .if ${ARCH} == "alpha" style comparations break INDEX ?!

Adam McLaurin freebsd at irotas.net
Mon Apr 11 11:09:04 PDT 2005


To fix the Makefile error, wrap all the ${ARCH} with quotes.

For example,
("${ARCH}" == "amd64" || "${ARCH}" == "ia64")

Scripts should *never* assume that externally defined variables are
actually set.

Thanks,
Adam McLaurin


On Mon, 11 Apr 2005 21:49:52 +0400, "George Kouryachy"
<frbrgeorge at gmail.com> said:
> It's because of lacking ARCH variable
> 
> Just add proper ARCH=i386 or another arch in /etc/make.conf, that's all.
> It probably will be added in system sources to /usr/ports/Mk
> 
> On Apr 11, 2005 2:48 PM, Ion-Mihai Tetcu <itetcu at people.tecnik93.com>
> wrote:
> > 
> > Like in:
> > cache-update:25: Updating cached data for /usr/ports/audio/boodler
> > "Makefile", line 34: Malformed conditional (${ARCH} == "amd64" || ${ARCH} == "ia64")
> > "Makefile", line 34: Need an operator
> > "Makefile", line 36: if-less endif
> > "Makefile", line 36: Need an operator
> > make: fatal errors encountered -- cannot continue
> 
> -- 
> George V Kouryachy (aka Fr. Br. George)
> mailto:george at gmail dot com
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"


More information about the freebsd-ports mailing list