confused: RUN_DEPENDS=${BUILD_DEPENDS} vs = vs duplication
Eitan Adler
lists at eitanadler.com
Mon Jan 23 20:18:40 UTC 2012
Quick explanation: I was confused by some of portmgr@'s comments and
thought they were speaking with a hat on instead of personal
preference.
On Mon, Jan 23, 2012 at 3:09 PM, Michael Scheidell
<scheidell at freebsd.org> wrote:
> I am SO confused.
>
> One helpful person told me:
> don't do this:
>
> BUILD_DEPENDS= daq>=0.6.2:${PORTSDIR}/net/daq \
> ${LOCALBASE}/lib/libnet11/libnet.a:${PORTSDIR}/net/libnet
> RUN_DEPENDS= daq>=0.6.2:${PORTSDIR}/net/daq \
> ${LOCALBASE}/lib/libnet11/libnet.a:${PORTSDIR}/net/libnet
This is fine
> or this
>
> RUN_DEPENDS=${BUILD_DEPENDS}
This is broken
> But, do this:
>
> RUN_DEPENDS:= ${BUILD_DEPENDS}.
This is fine
> Explicit duplication> :=> = and this just moves ports one step to the left
Ignore this comment
> so, behind the covers, does := do something BAD?
No. The paragraph at the end of
http://www.freebsd.org/doc/en/books/porters-handbook/makefile-depend.html#AEN2173
is correct.
--
Eitan Adler
More information about the freebsd-ports
mailing list