GNU bug report logs - #60811
Can’t change the build system of p11-kit to meson

Previous Next

Package: guix;

Reported by: Vivien Kraus <vivien <at> planete-kraus.eu>

Date: Sat, 14 Jan 2023 08:28:01 UTC

Severity: normal

To reply to this bug, email your comments to 60811 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#60811; Package guix. (Sat, 14 Jan 2023 08:28:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Vivien Kraus <vivien <at> planete-kraus.eu>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sat, 14 Jan 2023 08:28:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Vivien Kraus <vivien <at> planete-kraus.eu>
To: bug-guix <bug-guix <at> gnu.org>
Subject: Can’t change the build system of p11-kit to meson
Date: Sat, 14 Jan 2023 09:26:51 +0100
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




Information forwarded to bug-guix <at> gnu.org:
bug#60811; Package guix. (Sat, 14 Jan 2023 20:15:01 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Csepp <raingloom <at> riseup.net>
To: Vivien Kraus <vivien <at> planete-kraus.eu>
Cc: bug-guix <at> gnu.org, 60811 <at> debbugs.gnu.org
Subject: Re: bug#60811: Can’t change the build system of
 p11-kit to meson
Date: Sat, 14 Jan 2023 21:10:30 +0100
Vivien Kraus via Bug reports for GNU Guix <bug-guix <at> 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)])
```




Information forwarded to bug-guix <at> gnu.org:
bug#60811; Package guix. (Sat, 14 Jan 2023 20:15:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#60811; Package guix. (Sat, 14 Jan 2023 22:04:01 GMT) Full text and rfc822 format available.

Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Vivien Kraus <vivien <at> planete-kraus.eu>
To: Csepp <raingloom <at> riseup.net>
Cc: bug-guix <at> gnu.org, 60811 <at> debbugs.gnu.org
Subject: Re: bug#60811: Can’t change the build system of
 p11-kit to meson
Date: Sat, 14 Jan 2023 23:03:13 +0100
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 <at> 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 <at> 4.17.0", shape = box, fontname =
sans];
  "140299993453072" -> "140299983720224" [color = blue];
  "140299983720224" [label = "perl <at> 5.34.0", shape = box, fontname =
sans];
  "140299983720224" -> "140299983567616" [color = red];
  "140299983567616" [label = "coreutils-minimal <at> 8.32", shape = box,
fontname = sans];
  "140300286436736" [label = "pkg-config <at> 0.29.2", shape = box, fontname
= sans];
  "140299980957936" [label = "libffi <at> 3.3", shape = box, fontname =
sans];

}

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

Vivien




Information forwarded to bug-guix <at> gnu.org:
bug#60811; Package guix. (Sat, 14 Jan 2023 22:04:02 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 110 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.