Subject: Re: pkg/4771: gv pkg doesn't depend on ghostscript, as it should.
To: None <perry@piermont.com>
From: smrf <Michael.Robinson@vuw.ac.nz>
List: netbsd-bugs
Date: 01/05/1998 09:58:09
"Perry E. Metzger" writes:
>Mike Long writes:
>> I don't think this is really necessary.  What if the user has already
>> built and installed ghostscript independently of the package system,
>> and merely wishes to upgrade to gv from ghostview?
>
>Then they've destroyed the entire point of dependencies in the package
>system. You can use the force options to build anyway if you really
>know what you are doing. Just typing "make" in gv doesn't work, and it
>should. The PR author was correct. This is broken.

I'm glad people agree with me :).  However, as other people
have elaborated on how the dependencies checking works, the
patch in the PR is incorrect; it should be:

--- Makefile.old        Sun Jan  4 16:26:09 1998
+++ Makefile    Mon Jan  5 09:57:14 1998
@@ -13,6 +13,7 @@
 
 MAINTAINER=    ports@freebsd.org
 
+RUN_DEPENDS=   gs:${PORTSDIR}/print/ghostscript5
 LIB_DEPENDS=   Xaw3d\\.6\\.:${PORTSDIR}/x11/Xaw3d
 
 USE_IMAKE=     yes

Which checks for gs in $PATH, not just in /usr/pkg/bin.
    -- smrf.