unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#60811: Can’t change the build system of p11-kit to meson
@ 2023-01-14  8:26 Vivien Kraus via Bug reports for GNU Guix
  2023-01-14 20:10 ` Csepp
  0 siblings, 1 reply; 3+ messages in thread
From: Vivien Kraus via Bug reports for GNU Guix @ 2023-01-14  8:26 UTC (permalink / raw)
  To: 60811

Dear guix,

p11-kit is switching its build system to meson. The README already
advertises it as the way to build p11-kit. When I try to change that,
guix builds fine. Then, if I try to run guix build p11-kit, guix will
crash after exhausting all my memory. I suspect a circular dependency
of some sort, but I don’t know how to debug it.

If I try and run:
$ ./pre-inst-env guix graph --type=bag p11-kit

Then I get as an output,

digraph "Guix bag" {

And then guix starts eating my memory indefinitely until I cancel it.

How can I debug this?

Best regards,

Vivien




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

* bug#60811: Can’t change the build system of p11-kit to meson
  2023-01-14  8:26 bug#60811: Can’t change the build system of p11-kit to meson Vivien Kraus via Bug reports for GNU Guix
@ 2023-01-14 20:10 ` Csepp
  2023-01-14 22:03   ` Vivien Kraus via Bug reports for GNU Guix
  0 siblings, 1 reply; 3+ messages in thread
From: Csepp @ 2023-01-14 20:10 UTC (permalink / raw)
  To: Vivien Kraus; +Cc: 60811


Vivien Kraus via Bug reports for GNU Guix <bug-guix@gnu.org> writes:

> Dear guix,
>
> p11-kit is switching its build system to meson. The README already
> advertises it as the way to build p11-kit. When I try to change that,
> guix builds fine. Then, if I try to run guix build p11-kit, guix will
> crash after exhausting all my memory. I suspect a circular dependency
> of some sort, but I don’t know how to debug it.
>
> If I try and run:
> $ ./pre-inst-env guix graph --type=bag p11-kit
>
> Then I get as an output,
>
> digraph "Guix bag" {
>
> And then guix starts eating my memory indefinitely until I cancel it.
>
> How can I debug this?
>
> Best regards,
>
> Vivien

The way I debugged a cycle was:
* use package graph type
* import graph into Python's networkx using pydot
* run networkx's cycle detection

Here is the script so you don't have to figure it out yourself:

```
#!/usr/bin/env python
# coding: utf-8
import networkx
import sys
G = networkx.drawing.nx_pydot.read_dot(sys.stdin)
Va = networkx.function.get_node_attributes(G, "label")
print(*[Va[e[0]] for e in networkx.find_cycle(G)])
```




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

* bug#60811: Can’t change the build system of p11-kit to meson
  2023-01-14 20:10 ` Csepp
@ 2023-01-14 22:03   ` Vivien Kraus via Bug reports for GNU Guix
  0 siblings, 0 replies; 3+ messages in thread
From: Vivien Kraus via Bug reports for GNU Guix @ 2023-01-14 22:03 UTC (permalink / raw)
  To: Csepp; +Cc: 60811

Hello!

Le samedi 14 janvier 2023 à 21:10 +0100, Csepp a écrit :
> The way I debugged a cycle was:
> * use package graph type
> * import graph into Python's networkx using pydot
> * run networkx's cycle detection

If I select the "package" graph type, guix graph completes:

$ ./pre-inst-env guix graph --type=package p11-kit
digraph "Guix package" {
  "140299993452720" [label = "p11-kit@0.23.22", shape = box, fontname =
sans];
  "140299993452720" -> "140299993453072" [color = magenta];
  "140299993452720" -> "140300286436736" [color = magenta];
  "140299993452720" -> "140299980957936" [color = magenta];
  "140299993452720" -> "140299993453072" [color = magenta];
  "140299993453072" [label = "libtasn1@4.17.0", shape = box, fontname =
sans];
  "140299993453072" -> "140299983720224" [color = blue];
  "140299983720224" [label = "perl@5.34.0", shape = box, fontname =
sans];
  "140299983720224" -> "140299983567616" [color = red];
  "140299983567616" [label = "coreutils-minimal@8.32", shape = box,
fontname = sans];
  "140300286436736" [label = "pkg-config@0.29.2", shape = box, fontname
= sans];
  "140299980957936" [label = "libffi@3.3", shape = box, fontname =
sans];

}

Thank you for your python script! Unfortunately, it does not detect any
cycles here.

Vivien




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

end of thread, other threads:[~2023-01-14 22:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-14  8:26 bug#60811: Can’t change the build system of p11-kit to meson Vivien Kraus via Bug reports for GNU Guix
2023-01-14 20:10 ` Csepp
2023-01-14 22:03   ` Vivien Kraus via Bug reports for GNU Guix

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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).