help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Two copies of same library in store after cleaning generations and g


From: zimoun
Subject: Re: Two copies of same library in store after cleaning generations and gc
Date: Mon, 22 Aug 2022 17:49:05 +0200

Hi,

On ven., 19 août 2022 at 12:37, "Mike Jones" <mike@mjones.io> wrote:

> Presumably these aren't deduplicated due to the differing
> self-references?

Yes.

Note that this happens for only the packages with multi-outputs impacted
by grafted ones.  If I am correct, using Guix 65cabb0, the number of
packages with multi-outputs is 681 (see below).

On this number, a subset will be impacted by the ~11 grafted packages.


Cheers,
simon

--8<---------------cut here---------------start------------->8---
scheme@(guix-user)> ,use(ice-9 match)
scheme@(guix-user)> ,use(gnu)
scheme@(guix-user)> ,use(guix)
scheme@(guix-user)> (length (fold-packages
  (lambda (package result)
    (match (package-outputs package)
      ((x y z ...) (cons package result))
      (_ result)))
  '()))

$1 = 681

scheme@(guix-user)> (length (fold-packages
  (lambda (package result)
    (if (package-replacement package)
      (cons package result)
      result))
  '()))

$2 = 11
--8<---------------cut here---------------end--------------->8---




reply via email to

[Prev in Thread] Current Thread [Next in Thread]