From owner-freebsd-ports@FreeBSD.ORG Wed Feb 16 00:35:15 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5346C16A4CE for ; Wed, 16 Feb 2005 00:35:15 +0000 (GMT) Received: from smtpq3.home.nl (smtpq3.home.nl [213.51.128.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CDF943D54 for ; Wed, 16 Feb 2005 00:35:14 +0000 (GMT) (envelope-from danny@ricin.com) Received: from [213.51.128.134] (port=44290 helo=smtp3.home.nl) by smtpq3.home.nl with esmtp (Exim 4.30) id 1D1D9t-0000Sf-Bc; Wed, 16 Feb 2005 01:35:13 +0100 Received: from cp464173-a.dbsch1.nb.home.nl ([84.27.215.228]:53272 helo=workstation.homenet) by smtp3.home.nl with esmtp (Exim 4.30) id 1D1D9s-00068u-GT; Wed, 16 Feb 2005 01:35:12 +0100 From: Danny Pansters To: Paul Schmehl Date: Wed, 16 Feb 2005 01:35:01 +0100 User-Agent: KMail/1.7.2 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200502160135.01676.danny@ricin.com> X-AtHome-MailScanner-Information: Please contact support@home.nl for more information X-AtHome-MailScanner: Found to be clean cc: ports@freebsd.org Subject: Re: mysqltcl X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: danny@ricin.com List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2005 00:35:15 -0000 On Wednesday 16 February 2005 01:10, Paul Schmehl wrote: > I have two questions. I'm trying to create a new port, and I need to > indicate a dependency for mysqltcl. What I've tried fails: > > mysqltcl:${PORTSDIR}/databases/mysqltcl > > Second question - RUN_DEPENDS+= > ${LOCALBASE}/bin/dtplite:${PORTSDIR}/devel/tcllib worked. > > In the interest of teaching a man to fish rather than feeding him, how did > you figure this out? How do you figure out what library name or executable > to use in the first tuple of DEPENDS? I've been doing it by trial and > error, and that's obviously time consuming and inefficient. > > Is there a db somewhere that you can look this stuff up in? Is it in the > docs somewhere? Tea leaves? What you're doing should be ok I think, you could really pick any binary/library installed by the dependent-on port and even lib versions, e.g. somelib.5, are only needed if versions matter AFAIK. If you just installed mysqltcl did you perhaps just not run rehash? Obviously if you require a package and you know you need lib XYZ from it you'd add a dep specifically for that, but usually I think all you need is to point to something (a binary in PATH or a known library) that is uniquely installed by the port that provides what you need. Perhaps someone can correct me if this is not so. If it may turn out to be the issue here: IMO you should not (need to) include a path in these cases, e.g. ${LOCALBASE}/bin. It should (almost) never be needed if PATH and lib paths are updated. Something's odd or wrong if it's needed. (Please note: I don't use this particular port) Then again, it might be tea leaves also... The Docs are of course in /usr/ports/Mk/bsd.port.mk. They're still in beta though :) HTH, Dan