unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#47201: sbcl-cl-webkit doesn't protect webkitgtk from garbage collection
@ 2021-03-16 23:40 pkill9
  2021-03-16 23:54 ` Leo Famulari
  0 siblings, 1 reply; 3+ messages in thread
From: pkill9 @ 2021-03-16 23:40 UTC (permalink / raw)
  To: 47201

I have nyxt installed, which has sbcl-cl-webkit as an input, which has
webkitgtk as an input, and recently it produced an error which was
fixed by building webkitgtk, so it wasn't in the store.

sbcl-cl-webkit won't be deleted by `guix gc`, however webkitgtk will
be, so it seems it's not protected from garbage collection by
sbcl-cl-webkit. Am I wrong in this?




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

* bug#47201: sbcl-cl-webkit doesn't protect webkitgtk from garbage collection
  2021-03-16 23:40 bug#47201: sbcl-cl-webkit doesn't protect webkitgtk from garbage collection pkill9
@ 2021-03-16 23:54 ` Leo Famulari
  2021-03-17  8:49   ` Guillaume Le Vaillant
  0 siblings, 1 reply; 3+ messages in thread
From: Leo Famulari @ 2021-03-16 23:54 UTC (permalink / raw)
  To: pkill9; +Cc: 47201

On Tue, Mar 16, 2021 at 11:40:05PM +0000, pkill9 wrote:
> I have nyxt installed, which has sbcl-cl-webkit as an input, which has
> webkitgtk as an input, and recently it produced an error which was
> fixed by building webkitgtk, so it wasn't in the store.
> 
> sbcl-cl-webkit won't be deleted by `guix gc`, however webkitgtk will
> be, so it seems it's not protected from garbage collection by
> sbcl-cl-webkit. Am I wrong in this?

You can check on this with the `guix gc` tool.

Specifically, like this:

$ guix gc --references $(guix build sbcl-cl-webkit)

That will show you the "store references" of the built sbcl-cl-webkit
package. These store references are strings that refer to files in
/gnu/store, found by scanning the result of building sbcl-cl-webkit. 

These references are recorded in the Guix database at
'/var/guix/db/db.sqlite'.

The built package must keep references to its runtime dependencies, or
they will be subject to garbage collection, and that would represent a
bug in the package definition.

Does that make sense?




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

* bug#47201: sbcl-cl-webkit doesn't protect webkitgtk from garbage collection
  2021-03-16 23:54 ` Leo Famulari
@ 2021-03-17  8:49   ` Guillaume Le Vaillant
  0 siblings, 0 replies; 3+ messages in thread
From: Guillaume Le Vaillant @ 2021-03-17  8:49 UTC (permalink / raw)
  To: Leo Famulari; +Cc: pkill9, 47201

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


Leo Famulari <leo@famulari.name> skribis:

> On Tue, Mar 16, 2021 at 11:40:05PM +0000, pkill9 wrote:
>> I have nyxt installed, which has sbcl-cl-webkit as an input, which has
>> webkitgtk as an input, and recently it produced an error which was
>> fixed by building webkitgtk, so it wasn't in the store.
>> 
>> sbcl-cl-webkit won't be deleted by `guix gc`, however webkitgtk will
>> be, so it seems it's not protected from garbage collection by
>> sbcl-cl-webkit. Am I wrong in this?
>
> You can check on this with the `guix gc` tool.
>
> Specifically, like this:
>
> $ guix gc --references $(guix build sbcl-cl-webkit)
>
> That will show you the "store references" of the built sbcl-cl-webkit
> package. These store references are strings that refer to files in
> /gnu/store, found by scanning the result of building sbcl-cl-webkit. 
>
> These references are recorded in the Guix database at
> '/var/guix/db/db.sqlite'.
>
> The built package must keep references to its runtime dependencies, or
> they will be subject to garbage collection, and that would represent a
> bug in the package definition.
>
> Does that make sense?

I think this issue is identical to what has been reported a few years
ago in bug#33848 (https://issues.guix.gnu.org/33848) which is still
open.
The binaries created by SBCL store some pathnames as UTF-32 strings, and
the reference scanner of Guix doesn't support that, so it misses some
references.

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

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

end of thread, other threads:[~2021-03-17  8:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-16 23:40 bug#47201: sbcl-cl-webkit doesn't protect webkitgtk from garbage collection pkill9
2021-03-16 23:54 ` Leo Famulari
2021-03-17  8:49   ` Guillaume Le Vaillant

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