svn commit: r392209 - in head/devel: . p5-Minilla
Baptiste Daroussin
bapt at FreeBSD.org
Thu Jul 16 09:10:27 UTC 2015
On Thu, Jul 16, 2015 at 01:43:06AM +0000, Alexey Dokuchaev wrote:
> On Wed, Jul 15, 2015 at 10:38:33PM +0200, Mathieu Arnold wrote:
> > +--On 15 juillet 2015 20:17:14 +0000 Dmitry Marakasov <amdmi3 at FreeBSD.org>
> > wrote:
> >
> > | +RUN_DEPENDS:= ${BUILD_DEPENDS}
> >
> > Please, do *not* use := for depends, it is wrong.
> > <https://www.freebsd.org/doc/en/books/porters-handbook/makefile-depend.html>
>
> Can you clarify on what is wrong with := ? I've added IMHO quite clear and
> elaborate explanation in the PH on the matter, and I don't see the merit of
> using MY_DEPENDS at all: it's ugly, it's hard to read, it pollutes namespace
> for no sound reason.
>
> People should learn their tools instead of inventing obscure workarounds.
>
:= enforce the expansion to happen right away
Let's say you have:
RUN_DEPENDS= ${BLOODYSCRIPTLANGUAGEPREFIX}bal>0:${PORTSDIR}/somewhere/bla
BULID_DEPENDS:= ${RUN_DEPENDS}
.include <bsd.port.mk>
BULID_DEPENDS will magically have ${BLOODYSCRIPTLANGUAGEPREFIX} expanded to ""
because it is not yet defined at the moment the expansion is requested.
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-all/attachments/20150716/b4ce218b/attachment.bin>
More information about the svn-ports-all
mailing list