From owner-freebsd-ports@FreeBSD.ORG Wed Sep 14 20:23:44 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 76FA016A41F for ; Wed, 14 Sep 2005 20:23:44 +0000 (GMT) (envelope-from pav@FreeBSD.org) Received: from hood.oook.cz (hood.oook.cz [212.27.205.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6870343D45 for ; Wed, 14 Sep 2005 20:23:43 +0000 (GMT) (envelope-from pav@FreeBSD.org) Received: from ikaros.oook.cz (localhost [127.0.0.1]) by hood.oook.cz (8.13.4/8.13.4) with ESMTP id j8EKNfaf058380 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 14 Sep 2005 22:23:41 +0200 (CEST) (envelope-from pav@FreeBSD.org) Received: (from pav@localhost) by ikaros.oook.cz (8.13.4/8.13.4/Submit) id j8EKNer8058379; Wed, 14 Sep 2005 22:23:40 +0200 (CEST) (envelope-from pav@FreeBSD.org) X-Authentication-Warning: ikaros.oook.cz: pav set sender to pav@FreeBSD.org using -f From: Pav Lucistnik To: Roman Neuhauser In-Reply-To: <20050914202158.GD19945@isis.sigpipe.cz> References: <1126727985.776.8.camel@platinum.office.edgespace.net> <20050914202158.GD19945@isis.sigpipe.cz> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-CXHnZtzUE0gUqFGGbXAM" Date: Wed, 14 Sep 2005 22:23:40 +0200 Message-Id: <1126729420.77533.29.camel@ikaros.oook.cz> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 FreeBSD GNOME Team Port Cc: ports@FreeBSD.org, Conor McDermottroe Subject: Re: How to find package dependencies from the package X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pav@FreeBSD.org 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:23:44 -0000 --=-CXHnZtzUE0gUqFGGbXAM Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable Roman Neuhauser p=ED=B9e v st 14. 09. 2005 v 22:21 +0200: > # 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? > >=20 > > 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: > >=20 > > pkg_info -r $package.tbz > >=20 > > This always claims that the package depends on nothing at all, even whe= n > > I'm fairly sure it does. For example for the net/poptop port I get the > > following: > >=20 > > 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: > >=20 > > Depends on: > >=20 > > 20:56 root@platinum [~]# > >=20 > > This happens despite the fact that the entry at > > http://www.freebsd.org/ports/net.html says: > >=20 > > poptop-1.1.4.b4_3=20 > > 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 > >=20 > > This makes no sense to me, but I presume that either something is broke= n > > somewhere or (way more likely) I am broken somewhere. :-) >=20 > You obviously don't need gmake to install the binary package, > and expat, gettext, and libiconv are gmake's dependencies. >=20 > 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. >=20 libgnugetopt is only applicable to FreeBSD 4.X. Packages for 5.X and newer don't contain this dependency. --=20 Pav Lucistnik --=-CXHnZtzUE0gUqFGGbXAM Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDKIbMntdYP8FOsoIRAvIhAJ4xQtceUAlZ0dgV82cQ3kRCuj/iHQCfeGaX KuKxPG+9PGCydiWweqt4lsg= =loL7 -----END PGP SIGNATURE----- --=-CXHnZtzUE0gUqFGGbXAM--