Date: Mon, 20 Nov 1995 00:58:47 +0000 () From: Michael Smith <msmith@atrad.adelaide.edu.au> To: asami@cs.berkeley.edu (Satoshi Asami) Cc: ports@FreeBSD.ORG Subject: Re: Proposal 3: Non-executable file in *_DEPEND Message-ID: <199511200058.AAA17770@genesis.atrad.adelaide.edu.au> In-Reply-To: <199511171729.JAA00967@silvia.HIP.Berkeley.EDU> from "Satoshi Asami" at Nov 17, 95 09:29:37 am
next in thread | previous in thread | raw e-mail | index | archive | help
Satoshi Asami stands accused of saying: > 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? Pardon my ignorance, but is there a PKG_DEPENDS, to list packages that the current item depends on? If so, may I suggest a possible extension to the naming convention for packages as used by this entry : package-major.minor to require an exact version of a package package to require any version of a package package>major.minor to require version major.minor or higher. And as well, a PACKAGE_USES entry to indicate other packages that aren't required, but _are_ used (for extra features, etc). > Satoshi -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and (GSM mobile) 041-122-496 [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] My car has "demand start" -Terry Lambert UNIX: live FreeBSD or die! [[
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199511200058.AAA17770>