From owner-freebsd-ports Sun Aug 27 05:25:59 1995 Return-Path: ports-owner Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id FAA21005 for ports-outgoing; Sun, 27 Aug 1995 05:25:59 -0700 Received: from server.netcraft.co.uk (server.netcraft.co.uk [194.72.238.2]) by freefall.FreeBSD.org (8.6.11/8.6.6) with ESMTP id FAA20996 ; Sun, 27 Aug 1995 05:25:54 -0700 Received: (from paul@localhost) by server.netcraft.co.uk (8.6.11/8.6.9) id NAA00628; Sun, 27 Aug 1995 13:25:33 +0100 From: Paul Richards Message-Id: <199508271225.NAA00628@server.netcraft.co.uk> Subject: Re: Dependencies To: asami@cs.berkeley.edu (Satoshi Asami) Date: Sun, 27 Aug 1995 13:25:32 +0100 (BST) Cc: paul@freebsd.org, ports@freebsd.org In-Reply-To: <199508260925.CAA05181@silvia.HIP.Berkeley.EDU> from "Satoshi Asami" at Aug 26, 95 02:25:38 am Reply-to: paul@freebsd.org X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 826 Sender: ports-owner@freebsd.org Precedence: bulk In reply to Satoshi Asami who said > > Uhh, it should. The line: > > EXEC_DEPENDS= gs:${PORTSDIR}/print/ghostscript > > in the ghostview Makefile does exactly that, check if the program "gs" > is in the search path (it uses "which"), and goes to build ghostscript > only if it's not found. > > Maybe you don't have /usr/local/bin in your root's search path, then > well sorry, it won't work, and I don't see any workaround for it. Can't we use the pkg* interface to find out if a package is installed or not? It's much more robust thatn relying on the path being set properly for all users who might try and install a port. -- Paul Richards, Bluebird Computer Systems. FreeBSD core team member. Internet: paul@FreeBSD.org, http://www.freebsd.org/~paul Phone: 0370 462071 (Mobile), +44 1222 457651 (home)