Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Aug 1995 00:45:20 -0700
From:      asami@cs.berkeley.edu (Satoshi Asami)
To:        paul@freebsd.org
Cc:        paul@freebsd.org, ports@freebsd.org
Subject:   Re: Dependencies
Message-ID:  <199508280745.AAA03593@silvia.HIP.Berkeley.EDU>
In-Reply-To: <199508271225.NAA00628@server.netcraft.co.uk> (message from Paul Richards on Sun, 27 Aug 1995 13:25:32 %2B0100 (BST))

next in thread | previous in thread | raw e-mail | index | archive | help
 * 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.

That is possible, but I thought it would be more robust to use "which"
because we don't know if the user installed the dependency via pkg_add
or the ports' "make install".  Note that pkg_info looks only at
/var/db/pkg.

Also, many ports actually invoke these things during compilation
and/or installation, so if it's not in the search path, you are dead
anyway. :<

Satoshi



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