From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Kz7H5-0007A4-G0 for garchives@archives.gentoo.org; Sun, 09 Nov 2008 10:12:08 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D840EE0357; Sun, 9 Nov 2008 10:12:06 +0000 (UTC) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.186]) by pigeon.gentoo.org (Postfix) with ESMTP id 17BC2E0366 for ; Sun, 9 Nov 2008 10:12:05 +0000 (UTC) Received: by fk-out-0910.google.com with SMTP id 18so2859703fks.2 for ; Sun, 09 Nov 2008 02:12:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:openpgp:content-type; bh=cO7W5cMT/BJhQ+qpxg761W2lT4Rw4hdoNKf0oy19T5I=; b=h1L3Y86uEJyNb9GlHV60zfH88Nz/5S7GXmdY/0Wkmya0GkVs+A+20lEzRHfzmkED8j IR6sNPY2GcJsa2Mit0w1qC9ViW7Jb5O/PIOaFMV9rRid/vR0k4KC86aAe03XgONi3lJ5 GeS3h3ZvizQsFZNcbVQ679P85QPAeYay7Fql8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:openpgp:content-type; b=jQra+760uGnxOSNA06CQcme+VUO9f1kvZE11JQBKybv91XOJU1QpmEB5M7AjwuIhGC hVDhpGH9IiW3f8FpbOkUBfY6YVVIQs4gjQrZb3WHV9Ab+8Ot3I60NlGlQlnX05X8qHGw LOHze0LdYVwW4nYYzdqTvWA52imEDLFqCvoA0= Received: by 10.181.52.14 with SMTP id e14mr1675819bkk.99.1226225523979; Sun, 09 Nov 2008 02:12:03 -0800 (PST) Received: from ?192.168.0.2? (dslb-088-067-139-063.pools.arcor-ip.net [88.67.139.63]) by mx.google.com with ESMTPS id 22sm8052369fkr.4.2008.11.09.02.12.03 (version=SSLv3 cipher=RC4-MD5); Sun, 09 Nov 2008 02:12:03 -0800 (PST) Message-ID: <4916B768.8030706@googlemail.com> Date: Sun, 09 Nov 2008 11:11:52 +0100 From: Daniel Pielmeier User-Agent: Thunderbird 2.0.0.17 (X11/20080928) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Showing "reverse" dependencies References: <20081109035123.GA6165@solfire> <49166132.40506@gmail.com> <200811090813.41645.alan.mckinnon@gmail.com> In-Reply-To: <200811090813.41645.alan.mckinnon@gmail.com> X-Enigmail-Version: 0.95.7 OpenPGP: id=215AD14D Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig6046BBE68BC68E1A85617BD4" X-Archives-Salt: c200125e-f64b-458d-a703-876aab2326a3 X-Archives-Hash: 67f2ba94bb9867331d41d4729124b676 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig6046BBE68BC68E1A85617BD4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Alan McKinnon schrieb am 09.11.2008 07:13: > On Sunday 09 November 2008 06:04:02 Dale wrote: >> meino.cramer@gmx.de wrote: >>> Hi, >>> >>> is there a way to list the package, which depend on >>> a given (known) package (in my case a library)? >>> >>> Kind regards, >>> Meino Cramer >> If I understand correctly, equery depends . That's if = I >> understand correctly. If you don't have it, emerge gentoolkit. >=20 > Just be aware that equery depends is somewhat broken >=20 > It lists dependencies in the tree, not dependencies a specific machine = is=20 > using. Plus it doesn't find some valid deps either. >=20 > It's still useful, but the user also has to use eix to determine which = deps=20 > are valid for them and which are not. >=20 There is a possibility to get the reverse dependencies, but it seems almost nobody is aware of this because this function of portage is mostly used for cleaning up unneeded packages. But in order to remove unneeded packages portage has to know the reverse dependencies of each package to determine if it is unneeded. emerge -pv --depclean atom Always consider that equery and depclean only work on packages that are installed on the system and not for packages that are not. Gentoo-Portage [1] can list the reverse dependencies for packages that are not installed. Note the output of equery is sometimes wrong. To test this let us compare the output of the "emerge -pv depclean atom" with "equery depends atom". For example we want to check the reverse dependencies of x11-libs/gtk+ on my system. It is almost identical besides 1) media-video/mplayer and 2) sys-devel/gcc are listed only in equery and 3) net-www/gnash is only listed in depclean output. 1) So why is mplayer listed in equery. The gtk use flag is globally on on my system but I have disabled gtk in package.use so equery is wrong he= re. 2) Now for gcc I have no entry in package.use that disables it so it seems at the first glance equery is right. Lets take a look at the ebuild itself. The following is from the RDEPEND section. !build? ( gcj? ( gtk? ( x11-libs/libXt x11-libs/libX11 x11-libs/libXtst x11-proto/xproto x11-proto/xextproto >=3Dx11-libs/gtk+-2.2 x11-libs/pango ) To explain this, it says if the build flag is disabled and gcj and gtk are enabled it will depend on the the packages listed below gtk. I have build and gcj disabled but gtk enabled, so it does not fulfill the conditions needed for a gtk dependency and equery is wrong again. 3) Now finally why does depclean list gnash and equery not. The gtk flag is enabled for the ebuild and the dependency list in the ebuild clearly shows: gtk? ( >x11-libs/gtk+-2 x11-libs/pango dev-libs/glib dev-libs/atk ) I guess equery gets confused by the following construct in the ebuild which looks similar to the gcc case: !gtk? ( !kde? ( !qt3? ( !sdl? ( ( !fbcon? ( >x11-libs/gtk+-2 x11-libs/pango dev-libs/glib dev-libs/atk =3Dkde-base/kdelibs-3.5* ) ) ) ) ) ) This conditions doesn't match on my system so equery does not list gnash. In addition I think such conditions may cause some misunderstanding as they mean if gtk kde qt3 sdl and fbcon are all unset it should depend on gtk and kde which would be rather confusing for the user if he has this flags unset. [1] http://www.gentoo-portage.com/x11-libs/gtk+/RDep#ptabs Regards, Daniel --------------enig6046BBE68BC68E1A85617BD4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkkWt20ACgkQlcuUeyFa0U0YOQCgr47be9lEmrgrmHuUOmKI5Cdm gBoAnRzauvWrNn/bDMW2/pEHPM679OWx =VcVs -----END PGP SIGNATURE----- --------------enig6046BBE68BC68E1A85617BD4--