Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Mar 2013 20:37:38 -0500
From:      Eitan Adler <lists@eitanadler.com>
To:        FreeBSD Ports <ports@freebsd.org>
Subject:   Using RUN_DEPENDS := ${BUILD_DEPENDS} is now a bug
Message-ID:  <CAF6rxgmH9QJ2qYPT17W=nVUU2pYTfGmBBBwMDiQPA8SAj1tJuw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Some time ago ("2012-01-21 17:40:15 UTC") I committed a change which
converted all uses of

BUILD_DEPENDS= ${RUN_DEPENDS}
to
BUILD_DEPENDS:= ${RUN_DEPENDS}

Writing:

====
  At the moment 1385 ports use BUILD_DEPENDS= ${RUN_DEPENDS} and 450
  ports use BUILD_DEPENDS:= ${RUN_DEPENDS}. This patch fixes ports that are
  currently broken. This is a temporary measure until we organically stop using
  := or someone(s) spend a lot of time changing all the ports over.

  Explicit duplication > := > = and this just moves ports one step to the left
====

With the introduction of devel/ccache support this is now a more critical issue:

ports that use BUILD_DEPENDS:= ${RUN_DEPENDS} are buggy.

Set WITH_CCACHE_BUILD=yes in /etc/make.conf and observe

[10046 eitan@gravity (100)% ...n/fbsd/ports/editors/led ]%make run-depends-list
/usr/ports/lang/perl5.14
[10047 eitan@gravity (100)% ...n/fbsd/ports/editors/led ]%vim Makefile
# add "RUN_DEPENDS := ${BUILD_DEPENDS}
[10048 eitan@gravity (100)% ...n/fbsd/ports/editors/led ]%make run-depends-list
/usr/ports/devel/ccache
/usr/ports/lang/perl5.14

Ports should *not* assume that BUILD_DEPENDS is clear when initiated
and ports should explicitly duplicate RUN_DEPENDS.

This also reduces the chance of making an error should BUILD_DEPENDS
change to be inconsistent with BUILD_DEPENDS.



-- 
Eitan Adler



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