From owner-freebsd-ports Sun Nov 19 17:02:21 1995 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id RAA19674 for ports-outgoing; Sun, 19 Nov 1995 17:02:21 -0800 Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id RAA19653 for ; Sun, 19 Nov 1995 17:01:59 -0800 Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) id AAA17770; Mon, 20 Nov 1995 00:58:47 GMT From: Michael Smith Message-Id: <199511200058.AAA17770@genesis.atrad.adelaide.edu.au> Subject: Re: Proposal 3: Non-executable file in *_DEPEND To: asami@cs.berkeley.edu (Satoshi Asami) Date: Mon, 20 Nov 1995 00:58:47 +0000 () Cc: ports@FreeBSD.ORG In-Reply-To: <199511171729.JAA00967@silvia.HIP.Berkeley.EDU> from "Satoshi Asami" at Nov 17, 95 09:29:37 am MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1784 Sender: owner-ports@FreeBSD.ORG Precedence: bulk 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! [[