Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jan 2008 01:56:33 +0100
From:      "Danny Pansters" <danny@ricin.com>
To:        freebsd-ports@freebsd.org
Cc:        Jim Stapleton <stapleton.41@gmail.com>
Subject:   Re: Question on error: "Makefile", line 24: Need an operator
Message-ID:  <200801150156.33904.danny@ricin.com>
In-Reply-To: <80f4f2b20801141156v141231d5p65129b83f3d37194@mail.gmail.com>
References:  <80f4f2b20801141156v141231d5p65129b83f3d37194@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 14 January 2008 20:56:11 Jim Stapleton wrote:
> I'm trying to build a port for FreeBSD, and I get this error when
> running "Make":
>
> "Makefile", line 24: Need an operator
> make: fatal errors encountered -- cannot continue
>
>
>
> To my knowledge, everything looks good so far. The line in question is:
> do-build:
>     (cd ${WRKDIR}/extended_threading/extended_threading/ && \
>      echo "import sys; import py_compile; for f in sys.argv:
> py_compile.compile(f)" | python *)
>
>
> Can anyone tell me what I am doing wrong? (operator? huh?)
>
> Thanks,
> -Jim Stapleton
>
>
> sjss@elrond 14:42:07 (2) ~/dev/extended_threading_port > cat Makefile
> # New ports collection makefile for:   py-extended_threading
> # Date created:        14 Jan 2008
> # Whom:                James Stapleton <user(sjss) host(var [dash] dev
> [dot] net)>
> #
> # $FreeBSD$
> #
>
> PORTNAME=       py_extended_threading
> PORTVERSION=    0.2
> CATEGORIES=     devel python
> MASTER_SITES+= 
> http://www.var-dev.net/programming/python/extended_threading/ \
> http://www.var-dev.com/programming/python/extended_threading/ \
> http://www.var-dev.org/programming/python/extended_threading/ DISTNAME=    
>   extended_threading-0_2
> EXTRACT_SUFX=   .tar.bz2
>
> MAINTAINER=    user(sjss) host(var [dash] dev [dot] net)
> COMMENT=       a library to extend pythons threading library
>
> USE_PYTHON=     2.3+
>

This usually comes up when you have spaces instead of tabs.

> do-build:
>     (cd ${WRKDIR}/extended_threading/extended_threading/ && \
>      echo "import sys; import py_compile; for f in sys.argv:
> py_compile.compile(f)" | python *)

BTW, I think python -c "import sys; import py_compile; for f in sys.argv: 
py_compile.compile(f)" is nicer than using echo.

> .include <bsd.port.mk>
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"


HTH,

Dan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801150156.33904.danny>