Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Nov 1995 09:29:37 -0800
From:      asami@cs.berkeley.edu (Satoshi Asami)
To:        ports@freebsd.org
Subject:   Proposal 3: Non-executable file in *_DEPEND
Message-ID:  <199511171729.JAA00967@silvia.HIP.Berkeley.EDU>

next in thread | raw e-mail | index | archive | help
Here goes proposal #3.  (Boy am I glad the release is out or what,
this is so much fun)

Some people have been complaining that the dependency mechanism is not
flexible enough, i.e., {FETCH,BUILD,RUN}_DEPENDS can only take an
executable as an argument.  Although this was intended to protect us
from cases when the target system has a non-standard path (e.g.,
/usr/opt instead of /usr/local) by using the "which" command that will
DTRT as long as the PATH is set correctly, it was impossible to depend
on a package that doesn't contain any executables.

Thus, I propose the following change to the *_DEPEND paradigm:

 @ For FETCH_DEPENDS, BUILD_DEPENDS and RUN_DEPENDS, if the argument
   starts with a '/', the existence of the pathname will be tested
   ("test -e").  Otherwise, they behave as before, and will be tested
   by "which".

 @ No change to LIB_DEPENDS, DEPENDS.

What do people think?

Satoshi



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