From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Marusich Subject: Re: Reverse dependencies Date: Fri, 12 Aug 2016 09:36:48 -0700 Message-ID: <877fbm3pwf.fsf@gmail.com> References: <20160716161333.GA29212@jasmine> <87fuqa3qhg.fsf@gmail.com> <4f2d94024c65e0066ce875f7c26f3c28@openmailbox.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40902) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYFS2-0008KW-DC for help-guix@gnu.org; Fri, 12 Aug 2016 12:36:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bYFS0-00087q-1Q for help-guix@gnu.org; Fri, 12 Aug 2016 12:36:53 -0400 Received: from mail-pa0-x22c.google.com ([2607:f8b0:400e:c03::22c]:33941) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYFRz-00087Y-Mf for help-guix@gnu.org; Fri, 12 Aug 2016 12:36:51 -0400 Received: by mail-pa0-x22c.google.com with SMTP id fi15so10066131pac.1 for ; Fri, 12 Aug 2016 09:36:51 -0700 (PDT) In-Reply-To: <4f2d94024c65e0066ce875f7c26f3c28@openmailbox.org> (Eric Bavier's message of "Fri, 12 Aug 2016 11:30:59 -0500") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Eric Bavier Cc: help-guix --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Eric Bavier writes: > On 2016-08-12 11:24, Chris Marusich wrote: >> Eric Bavier writes: >> >>> On 2016-08-11 09:43, Vincent Legoll wrote: >>>> Hello, >>>> >>>>>> I'm trying to understand which package(s) depends on some other >>>>>> package, >>>>>> kind of the reverse of what guix graph does (I think). >>>>> >>>>> I think that `guix refresh --list-dependent foo` is what you are >>>>> asking >>>>> for, or at least it's close. We use it to learn what will need to be >>>>> rebuilt when upgrading foo. >>>> >>>> Not really what I want to know: >>>> >>>> # guix refresh --list-dependent inkscape >>>> Building the following 5 packages would ensure 10 dependent packages >>>> are rebuilt: frescobaldi-2.19.0 solfege-3.22.2 simple-scan-3.19.91 >>>> termite-11 hydra-20150407.4c0e3e4 >>>> >>>> None of those are installed, but inkscape is pulled in by something >>>> which I want to know >>>> >>>> Is there no other way to get that information ? >>> >>> Something like (mildly tested): >>> >>> (use-modules (guix packages) >>> (gnu packages) >>> (gnu packages inkscape) >>> (srfi srfi-1) >>> (srfi srfi-26)) >>> >>> (fold-packages >>> (lambda (package _) >>> (when (any (cut eq? <> inkscape) >>> (map second (package-direct-inputs package))) >>> (format #t "~a depends on inkscape~%" >>> (package-full-name package)))) >>> #t) >>> >>> which, when run, results in: >>> "dblatex-0.3.5 depends on inkscape" >> >> The 'guix graph' command has the ability to print out references, >> but my >> understanding is that because these are the references which result >> from >> Nix's scan of the output store path, these references will only be >> runtime dependencies (see '(guix) Invoking guix graph' in the manual). > > This is not completely accurate. 'guix graph's '--type' argument can > be used to display different node types. The 'references' type > corresponds to run-time dependencies. I see! Thank you for the additional information. =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXrfshAAoJEN1AmhXYIkadtl4P/id/2d1di2ssq6I+58rk9xoy 4iM6xcAmCMGXuBw8TeCgxaB1iE67j+t5k48iucuGKgMa4uNSjK8URxAAbl8CC1Jh lHRrXLrvKeWnFWzeS0TeIcyQHjS7EByIEWrUAp7zO4zSeYgqXR9OiZBRfTbJaegn VVvoIr7gdjZT51gvbNKIG4vV71ZzSjfwk/XFqN4/IiixAnGKAyEpiK7YC6qfCy06 efg2J3X+zKJ7FQGCULxJ/mwMIAe9eEcgPBFix0VzCYaFrMkOIOxryaak+lYso3Gl PO43TA5E8frh/N0pTXrouT0PYSqPkwtbzhjimOPGGltptRSuXUCt9mNYcwFHvh7E DYCHVe+B1QJdcCzw2NaTROsA6dB2Fl39CO0aPWSCWTUsV73s+qpv7b8WwiwWI8/f oJiBFY5QWKb3/7XrZ/hyNIBvOQuF21bw7J3Us97E/TSXVGm8Kr0b2QfYfJE7prAq /EJUYF6SKPMx1PRoYpM61VII2zOax2xs7BXq30QglCYK5wCQ8i/1P8QImMWDTMlh MYU9EdV81D7zB2y89nDzRCPTiiGOi8nI2oeq/Yn26DxNGzHs9KFWnrH+VMh5kXoZ qH1sq0hxp6ojFYHu0cMJQR1j0GyiN9M62CUNEdLM7TopMoEeBvpIWII/rFCd5A9b yWjsnmxTA/1cI4SpkMvg =OFJh -----END PGP SIGNATURE----- --=-=-=--