From owner-freebsd-ports@FreeBSD.ORG Wed Sep 14 20:22:00 2005 Return-Path: X-Original-To: ports@freebsd.org 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 4173B16A41F for ; Wed, 14 Sep 2005 20:22:00 +0000 (GMT) (envelope-from neuhauser@sigpipe.cz) Received: from isis.sigpipe.cz (fw.sigpipe.cz [62.245.70.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F58743D5D for ; Wed, 14 Sep 2005 20:21:59 +0000 (GMT) (envelope-from neuhauser@sigpipe.cz) Received: by isis.sigpipe.cz (Postfix, from userid 1001) id 309611F87BEF; Wed, 14 Sep 2005 22:21:58 +0200 (CEST) Date: Wed, 14 Sep 2005 22:21:58 +0200 From: Roman Neuhauser To: Conor McDermottroe Message-ID: <20050914202158.GD19945@isis.sigpipe.cz> Mail-Followup-To: Conor McDermottroe , ports@freebsd.org References: <1126727985.776.8.camel@platinum.office.edgespace.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1126727985.776.8.camel@platinum.office.edgespace.net> User-Agent: Mutt/1.5.9i Cc: ports@freebsd.org Subject: Re: How to find package dependencies from the package X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2005 20:22:00 -0000 # lists@mcdermottroe.com / 2005-09-14 20:59:45 +0100: > How do I programatically find out the list of packages that a given > package depends on? > > Given packages found at > ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-stable/All/ > and > http://pointyhat.freebsd.org/errorlogs/i386-5-packages-latest/All/ > and so on, I have done the following: > > pkg_info -r $package.tbz > > This always claims that the package depends on nothing at all, even when > I'm fairly sure it does. For example for the net/poptop port I get the > following: > > 20:55 root@platinum [~]# fetch > ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-stable/All/poptop-1.1.4.b4_3.tbz > poptop-1.1.4.b4_3.tbz 100% of 23 kB 49 kBps > 20:55 root@platinum [~]# pkg_info -r poptop-1.1.4.b4_3.tbz > Information for poptop-1.1.4.b4_3.tbz: > > Depends on: > > 20:56 root@platinum [~]# > > This happens despite the fact that the entry at > http://www.freebsd.org/ports/net.html says: > > poptop-1.1.4.b4_3 > Windows 9x compatible PPTP (VPN) server > Long description | Package | Sources | Main Web Site > Maintained by: ports@FreeBSD.org > Requires: expat-1.95.8_3, gettext-0.14.5, gmake-3.80_2, > libgnugetopt-1.2, libiconv-1.9.2_1 > > This makes no sense to me, but I presume that either something is broken > somewhere or (way more likely) I am broken somewhere. :-) You obviously don't need gmake to install the binary package, and expat, gettext, and libiconv are gmake's dependencies. Why you're not seeing libgnugetopt is a different matter, it's not recorded in the +CONTENTS file; the port has it in RUN_DEPENDS, though. -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't THERE. http://bash.org/?255991