Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Mar 1996 17:11:59 -0800
From:      asami@cs.berkeley.edu (Satoshi Asami)
To:        masafumi@pobox.com
Cc:        freebsd-ports@FreeBSD.org, masafumi@pobox.com
Subject:   Re: what if pkgname and exec name of depends differ?
Message-ID:  <199603260111.RAA18951@sunrise.cs.berkeley.edu>
In-Reply-To: <199603251950.EAA01150@mail.tky007.tth.expo96.ad.jp> (message from Masafumi NAKANE/=?ISO-2022-JP?B?GyRCQ2Y6LDJtSjgbKEI=?= on Tue, 26 Mar 1996 04:50:17 %2B0900)

next in thread | previous in thread | raw e-mail | index | archive | help
 *      I've sent the following message to freebsd-questions mailing-list
 * and haven't got answer.  And I figured this list might be better place
 * to ask this.  Sorry if any of you have seen this.

Yes, this is a far better place, actually discussion like this is
exactly what freebsd-ports is intended for! :)

 * Ok, the situation is this:
 *      This software I'm porting (let's call this `foo-1.0') needs perl
 * version 5.0 or higher.  So I put the following in foo's Makefile.
 * 
 *   RUN_DEPENDS=	perl5.002:${PORTSDIR}/lang/perl5
 *   BUILD_DEPENDS=	perl5.002:${PORTSDIR}/lang/perl5
 * 
 *      Configuring and Building processes go well with this setting.
 * However, when I run pkg_add or pkg_delete, these programs try to write
 * dependency info into /var/db/pkg/perl5.002, where it actually should
 * be /var/db/pkg/perl-5.002.

Wait, this doesn't make sense.  What you did is perfectly correct,
bsd.port.mk is supposed to pick up the package name from the perl5
directory and put it in foo's package.

At no point (during the package building) does it look at the first
field of RUN_DEPENDS, in other words, executable names are irrelevant
as far as package dependencies are concerned.

Seems like your lang/perl5 port is screwed up.  What does it say in
the "Registering depends:" line while it's building the package?  What
do you have in lang/perl5/Makefile (it should contain a line
"PKGNAME=perl-5.002").

Satoshi



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