unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* List build dependencies of a store item
@ 2019-10-23  5:33 Arun Isaac
  2019-10-23  6:31 ` Julien Lepiller
  2019-10-23  8:04 ` Efraim Flashner
  0 siblings, 2 replies; 7+ messages in thread
From: Arun Isaac @ 2019-10-23  5:33 UTC (permalink / raw)
  To: help-guix

[-- Attachment #1: Type: text/plain, Size: 417 bytes --]


I am customizing the git-minimal package, and for some reason python is
getting rebuilt from source, and I'm not able to figure out why.

I can recursively list/graph runtime dependencies (references) of a
store item using the following commands.

guix size /gnu/store/...
guix graph -t references /gnu/store/...

How do I list the build dependencies (inputs of the build derivation) of
a store item?

Thanks,
Arun.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: List build dependencies of a store item
  2019-10-23  5:33 List build dependencies of a store item Arun Isaac
@ 2019-10-23  6:31 ` Julien Lepiller
  2019-10-23 16:22   ` Arun Isaac
  2019-10-23  8:04 ` Efraim Flashner
  1 sibling, 1 reply; 7+ messages in thread
From: Julien Lepiller @ 2019-10-23  6:31 UTC (permalink / raw)
  To: help-guix, Arun Isaac

Le 23 octobre 2019 07:33:37 GMT+02:00, Arun Isaac <arunisaac@systemreboot.net> a écrit :
>
>I am customizing the git-minimal package, and for some reason python is
>getting rebuilt from source, and I'm not able to figure out why.
>
>I can recursively list/graph runtime dependencies (references) of a
>store item using the following commands.
>
>guix size /gnu/store/...
>guix graph -t references /gnu/store/...
>
>How do I list the build dependencies (inputs of the build derivation)
>of
>a store item?
>
>Thanks,
>Arun.

I think a store item doesn't know where it comes from, so you can only find its runtime references. If you have a package foo, you can find its build-time dependencies with guix graph:

guix graph foo

There's even a script that was shared here to show the path between two nodes of a guix graph, but I can't find it anymore.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: List build dependencies of a store item
  2019-10-23  5:33 List build dependencies of a store item Arun Isaac
  2019-10-23  6:31 ` Julien Lepiller
@ 2019-10-23  8:04 ` Efraim Flashner
  2019-10-23 16:27   ` Arun Isaac
  1 sibling, 1 reply; 7+ messages in thread
From: Efraim Flashner @ 2019-10-23  8:04 UTC (permalink / raw)
  To: Arun Isaac; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 653 bytes --]

On Wed, Oct 23, 2019 at 11:03:37AM +0530, Arun Isaac wrote:
> 
> I am customizing the git-minimal package, and for some reason python is
> getting rebuilt from source, and I'm not able to figure out why.
> 
> I can recursively list/graph runtime dependencies (references) of a
> store item using the following commands.
> 

I assume git-minimal is used for the guile-git bindings, and I don't
think that shows up in the graph.


-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: List build dependencies of a store item
  2019-10-23  6:31 ` Julien Lepiller
@ 2019-10-23 16:22   ` Arun Isaac
  2019-10-23 16:49     ` Gábor Boskovits
  0 siblings, 1 reply; 7+ messages in thread
From: Arun Isaac @ 2019-10-23 16:22 UTC (permalink / raw)
  To: Julien Lepiller, help-guix

[-- Attachment #1: Type: text/plain, Size: 839 bytes --]


> I think a store item doesn't know where it comes from, so you can only
> find its runtime references.

That's a good point. I missed that.

> If you have a package foo, you can find its build-time dependencies
> with guix graph:
>
> guix graph foo

Indeed, this is what I want but for a modified version of a package
defined in a file. I realized I could do it with

guix graph -e '(load "/path/to/file.scm")'

However, it might be nicer to have something like

guix graph -f /path/to/file.scm

similar to

guix build -f /path/to/file.scm

> There's even a script that was shared here to show the path between
> two nodes of a guix graph, but I can't find it anymore.

Yes, I remember such a script too. It would be very useful to have. But,
even I am unable to find it. If someone knows where to find that script,
please share a link.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: List build dependencies of a store item
  2019-10-23  8:04 ` Efraim Flashner
@ 2019-10-23 16:27   ` Arun Isaac
  0 siblings, 0 replies; 7+ messages in thread
From: Arun Isaac @ 2019-10-23 16:27 UTC (permalink / raw)
  To: Efraim Flashner; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 395 bytes --]


>> I am customizing the git-minimal package, and for some reason python is
>> getting rebuilt from source, and I'm not able to figure out why.

I figured this is due to git-minimal depending on curl which in turn
depends on python as a native-input.

> I assume git-minimal is used for the guile-git bindings, and I don't
> think that shows up in the graph.

guile-git only depends on libgit2.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: List build dependencies of a store item
  2019-10-23 16:22   ` Arun Isaac
@ 2019-10-23 16:49     ` Gábor Boskovits
  2019-10-23 20:19       ` Arun Isaac
  0 siblings, 1 reply; 7+ messages in thread
From: Gábor Boskovits @ 2019-10-23 16:49 UTC (permalink / raw)
  To: Arun Isaac; +Cc: help-guix

Hello,

Arun Isaac <arunisaac@systemreboot.net> ezt írta (időpont: 2019. okt. 23.,
Sze, 18:43):

>
> > I think a store item doesn't know where it comes from, so you can only
> > find its runtime references.
>
> That's a good point. I missed that.
>
> > If you have a package foo, you can find its build-time dependencies
> > with guix graph:
> >
> > guix graph foo
>
> Indeed, this is what I want but for a modified version of a package
> defined in a file. I realized I could do it with
>
> guix graph -e '(load "/path/to/file.scm")'
>
> However, it might be nicer to have something like
>
> guix graph -f /path/to/file.scm
>
> similar to
>
> guix build -f /path/to/file.scm
>
> > There's even a script that was shared here to show the path between
> > two nodes of a guix graph, but I can't find it anymore.
>
> Yes, I remember such a script too. It would be very useful to have. But,
> even I am unable to find it. If someone knows where to find that script,
> please share a link.
>

The script is here:
https://lists.gnu.org/archive/html/guix-devel/2018-07/msg00212.html


-- 
OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:CF63:0B21

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: List build dependencies of a store item
  2019-10-23 16:49     ` Gábor Boskovits
@ 2019-10-23 20:19       ` Arun Isaac
  0 siblings, 0 replies; 7+ messages in thread
From: Arun Isaac @ 2019-10-23 20:19 UTC (permalink / raw)
  To: Gábor Boskovits; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 127 bytes --]


> The script is here:
> https://lists.gnu.org/archive/html/guix-devel/2018-07/msg00212.html

Yes, this is the one. Thank you!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-10-23 20:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-23  5:33 List build dependencies of a store item Arun Isaac
2019-10-23  6:31 ` Julien Lepiller
2019-10-23 16:22   ` Arun Isaac
2019-10-23 16:49     ` Gábor Boskovits
2019-10-23 20:19       ` Arun Isaac
2019-10-23  8:04 ` Efraim Flashner
2019-10-23 16:27   ` Arun Isaac

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).