Using RUN_DEPENDS := ${BUILD_DEPENDS} is now a bug

Eitan Adler lists at eitanadler.com
Mon Mar 4 01:38:16 UTC 2013


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 at gravity (100)% ...n/fbsd/ports/editors/led ]%make run-depends-list
/usr/ports/lang/perl5.14
[10047 eitan at gravity (100)% ...n/fbsd/ports/editors/led ]%vim Makefile
# add "RUN_DEPENDS := ${BUILD_DEPENDS}
[10048 eitan at 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


More information about the freebsd-ports mailing list