all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* cleaning the store
@ 2016-05-26 16:36 Catonano
  2016-05-26 16:58 ` Leo Famulari
  2016-05-26 18:38 ` Leo Famulari
  0 siblings, 2 replies; 11+ messages in thread
From: Catonano @ 2016-05-26 16:36 UTC (permalink / raw)
  To: help-guix

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

I erased ALL the prevoius generations and still there are some elements
that "guix gc -d ..." cannot eliminate from the store because they turn out
to be "still alive"

Of course emacs-cider is not installed in the current generation

I don't understand.

Is there a way to let guix tell me what is still pointing to those ?

$ ls /gnu/store/ | grep emacs-cider
magg7sgr09yv4bc5pvhpgw4h7qslpa2s-emacs-cider-0.12.0.drv
myhz4ramjj089acxgj9bqjykwivqrlrj-emacs-cider-0.12.0-guile-builder
nswa3vzly4xd97b1ddz2n3312fd7nvaa-emacs-cider-0.12.0.tar.gz.drv
qkpfpc6ighlvq6x22ikh84vjpw6gxmji-emacs-cider-0.12.0-guile-builder
z00jb6ylnvlskaf0j1spbnirz6ck2q8y-emacs-cider-0.12.0.tar.gz.drv


guix gc -d /gnu/store/*-emacs-cider-0.12.0*
finding garbage collector roots...
guix gc: error: build failed: cannot delete path
`/gnu/store/magg7sgr09yv4bc5pvhpgw4h7qslpa2s-emacs-cider-0.12.0.drv' since
it is still alive

[-- Attachment #2: Type: text/html, Size: 1048 bytes --]

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

* Re: cleaning the store
  2016-05-26 16:36 cleaning the store Catonano
@ 2016-05-26 16:58 ` Leo Famulari
  2016-05-26 18:16   ` Catonano
  2016-05-26 18:38 ` Leo Famulari
  1 sibling, 1 reply; 11+ messages in thread
From: Leo Famulari @ 2016-05-26 16:58 UTC (permalink / raw)
  To: Catonano; +Cc: help-guix

On Thu, May 26, 2016 at 06:36:39PM +0200, Catonano wrote:
> I erased ALL the prevoius generations and still there are some elements
> that "guix gc -d ..." cannot eliminate from the store because they turn out
> to be "still alive"
> 
> Of course emacs-cider is not installed in the current generation
> 
> I don't understand.
> 
> Is there a way to let guix tell me what is still pointing to those ?

They are referred to by a profile. You can see the full list of your
user's profiles with `guix package --list-generations`. Other users will
have their own profiles.

You can learn more about how to work with these profiles with `guix
package --help` and also in the manual, 3.2 Invoking guix package.

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

* Re: cleaning the store
  2016-05-26 16:58 ` Leo Famulari
@ 2016-05-26 18:16   ` Catonano
  2016-05-26 18:36     ` Leo Famulari
  2016-05-26 18:40     ` Thompson, David
  0 siblings, 2 replies; 11+ messages in thread
From: Catonano @ 2016-05-26 18:16 UTC (permalink / raw)
  To: Leo Famulari; +Cc: help-guix

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

Leo,

2016-05-26 18:58 GMT+02:00 Leo Famulari <leo@famulari.name>:

> On Thu, May 26, 2016 at 06:36:39PM +0200, Catonano wrote:
> > I erased ALL the prevoius generations and still there are some elements
> > that "guix gc -d ..." cannot eliminate from the store because they turn
> out
> > to be "still alive"
> >
> > Of course emacs-cider is not installed in the current generation
> >
> > I don't understand.
> >
> > Is there a way to let guix tell me what is still pointing to those ?
>
> They are referred to by a profile. You can see the full list of your
> user's profiles with `guix package --list-generations`. Other users will
> have their own profiles.
>
> You can learn more about how to work with these profiles with `guix
> package --help` and also in the manual, 3.2 Invoking guix package.
>

Thank you

There are only 2 profiles on this machine: mine and root's profile

As for mine, I eliminated ALL previous generations and emacs-cider is not
installed in the current one

As for root's profile:

$ guix package -p root --list-installed

returns nothing


and
$ guix package -p root --list-generations
guix package: error: profile 'root' does not exist


So which profile is pointing to those things ?

[-- Attachment #2: Type: text/html, Size: 1901 bytes --]

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

* Re: cleaning the store
  2016-05-26 18:16   ` Catonano
@ 2016-05-26 18:36     ` Leo Famulari
  2016-05-26 18:41       ` Leo Famulari
  2016-05-27  6:39       ` Ricardo Wurmus
  2016-05-26 18:40     ` Thompson, David
  1 sibling, 2 replies; 11+ messages in thread
From: Leo Famulari @ 2016-05-26 18:36 UTC (permalink / raw)
  To: Catonano; +Cc: help-guix

On Thu, May 26, 2016 at 08:16:59PM +0200, Catonano wrote:
> There are only 2 profiles on this machine: mine and root's profile
> 
> As for mine, I eliminated ALL previous generations and emacs-cider is not
> installed in the current one
> 
> As for root's profile:
> 
> $ guix package -p root --list-installed
> 
> returns nothing
> 
> 
> and
> $ guix package -p root --list-generations
> guix package: error: profile 'root' does not exist

I think the argument to '-p' is the generation of the profile (an
integer). You should try running it as root, since I doubt you can read
root's profiles as an unprivileged user.

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

* Re: cleaning the store
  2016-05-26 16:36 cleaning the store Catonano
  2016-05-26 16:58 ` Leo Famulari
@ 2016-05-26 18:38 ` Leo Famulari
  2016-05-26 19:10   ` Catonano
  1 sibling, 1 reply; 11+ messages in thread
From: Leo Famulari @ 2016-05-26 18:38 UTC (permalink / raw)
  To: Catonano; +Cc: help-guix

On Thu, May 26, 2016 at 06:36:39PM +0200, Catonano wrote:
> I erased ALL the prevoius generations and still there are some elements
> that "guix gc -d ..." cannot eliminate from the store because they turn out
> to be "still alive"
> 
> Of course emacs-cider is not installed in the current generation

`guix package -s cider` returns nothing. Nor is that string present in
the Guix source tree. It's a private package, yes?

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

* Re: cleaning the store
  2016-05-26 18:16   ` Catonano
  2016-05-26 18:36     ` Leo Famulari
@ 2016-05-26 18:40     ` Thompson, David
  1 sibling, 0 replies; 11+ messages in thread
From: Thompson, David @ 2016-05-26 18:40 UTC (permalink / raw)
  To: Catonano; +Cc: help-guix

On Thu, May 26, 2016 at 2:16 PM, Catonano <catonano@gmail.com> wrote:
>
> So which profile is pointing to those things ?

'guix gc' will tell you this.

    guix gc --referrers /gnu/store/...-cider-x.y.z

- Dave

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

* Re: cleaning the store
  2016-05-26 18:36     ` Leo Famulari
@ 2016-05-26 18:41       ` Leo Famulari
  2016-05-27  6:39       ` Ricardo Wurmus
  1 sibling, 0 replies; 11+ messages in thread
From: Leo Famulari @ 2016-05-26 18:41 UTC (permalink / raw)
  To: Catonano; +Cc: help-guix

On Thu, May 26, 2016 at 02:36:36PM -0400, Leo Famulari wrote:
> On Thu, May 26, 2016 at 08:16:59PM +0200, Catonano wrote:
> > There are only 2 profiles on this machine: mine and root's profile
> > 
> > As for mine, I eliminated ALL previous generations and emacs-cider is not
> > installed in the current one
> > 
> > As for root's profile:
> > 
> > $ guix package -p root --list-installed
> > 
> > returns nothing
> > 
> > 
> > and
> > $ guix package -p root --list-generations
> > guix package: error: profile 'root' does not exist
> 
> I think the argument to '-p' is the generation of the profile (an
> integer). You should try running it as root, since I doubt you can read
> root's profiles as an unprivileged user.

Also, consider that what you see in `guix package --list-installed` are
the top-level packages, but not their dependents. This package may be
a dependent of some package you've installed in your profile.

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

* Re: cleaning the store
  2016-05-26 18:38 ` Leo Famulari
@ 2016-05-26 19:10   ` Catonano
  2016-05-26 19:34     ` Leo Famulari
  0 siblings, 1 reply; 11+ messages in thread
From: Catonano @ 2016-05-26 19:10 UTC (permalink / raw)
  To: Leo Famulari; +Cc: help-guix

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

2016-05-26 20:38 GMT+02:00 Leo Famulari <leo@famulari.name>:

> On Thu, May 26, 2016 at 06:36:39PM +0200, Catonano wrote:
> > I erased ALL the prevoius generations and still there are some elements
> > that "guix gc -d ..." cannot eliminate from the store because they turn
> out
> > to be "still alive"
> >
> > Of course emacs-cider is not installed in the current generation
>
> `guix package -s cider` returns nothing. Nor is that string present in
> the Guix source tree. It's a private package, yes?
>

yes, it's a private package

I was trying to make a recipe for cider but there were some errors in the
log, some dependencies couldn't be reached.

Maybe I messed up the inputs.

I wanted to clean to be sure that there were o interferences from the relics

Now, 2 profiles show up among the referrers

But I can't find a single scrap belonging to cider in any generation

Now I should figure out who owns those profiles.

We'll see

Thanks for your help. Particulary for the --referrers switch. I had missed
that

[-- Attachment #2: Type: text/html, Size: 1709 bytes --]

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

* Re: cleaning the store
  2016-05-26 19:10   ` Catonano
@ 2016-05-26 19:34     ` Leo Famulari
  2016-05-26 20:09       ` Catonano
  0 siblings, 1 reply; 11+ messages in thread
From: Leo Famulari @ 2016-05-26 19:34 UTC (permalink / raw)
  To: Catonano; +Cc: help-guix

On Thu, May 26, 2016 at 09:10:53PM +0200, Catonano wrote:
> 2016-05-26 20:38 GMT+02:00 Leo Famulari <leo@famulari.name>:
> 
> > On Thu, May 26, 2016 at 06:36:39PM +0200, Catonano wrote:
> > > I erased ALL the prevoius generations and still there are some elements
> > > that "guix gc -d ..." cannot eliminate from the store because they turn
> > out
> > > to be "still alive"
> > >
> > > Of course emacs-cider is not installed in the current generation
> >
> > `guix package -s cider` returns nothing. Nor is that string present in
> > the Guix source tree. It's a private package, yes?
> >
> 
> yes, it's a private package
> 
> I was trying to make a recipe for cider but there were some errors in the
> log, some dependencies couldn't be reached.
> 
> Maybe I messed up the inputs.
> 
> I wanted to clean to be sure that there were o interferences from the relics

If you make a change to your cider recipe, then the "relics" can't
interfere with later builds, because the new cider directory in
/gnu/store will have a new hash. It is impossible for the build process
to guess the hash of the old cider "relics", so they won't be used.

If you don't change the cider recipe, then the relics will be used.

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

* Re: cleaning the store
  2016-05-26 19:34     ` Leo Famulari
@ 2016-05-26 20:09       ` Catonano
  0 siblings, 0 replies; 11+ messages in thread
From: Catonano @ 2016-05-26 20:09 UTC (permalink / raw)
  To: Leo Famulari; +Cc: help-guix

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

2016-05-26 21:34 GMT+02:00 Leo Famulari <leo@famulari.name>:

> On Thu, May 26, 2016 at 09:10:53PM +0200, Catonano wrote:
>
> If you make a change to your cider recipe, then the "relics" can't
> interfere with later builds, because the new cider directory in
> /gnu/store will have a new hash. It is impossible for the build process
> to guess the hash of the old cider "relics", so they won't be used.
>
> If you don't change the cider recipe, then the relics will be used.
>

Because I tried several variations of the recipe and got always the same
error, I thought something wrong was happening.

Now I notice that at least one of the unreachable dependencies is not well
packaged.

I guess I was a bit confused, sorry

[-- Attachment #2: Type: text/html, Size: 1135 bytes --]

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

* Re: cleaning the store
  2016-05-26 18:36     ` Leo Famulari
  2016-05-26 18:41       ` Leo Famulari
@ 2016-05-27  6:39       ` Ricardo Wurmus
  1 sibling, 0 replies; 11+ messages in thread
From: Ricardo Wurmus @ 2016-05-27  6:39 UTC (permalink / raw)
  To: Leo Famulari; +Cc: help-guix


Leo Famulari <leo@famulari.name> writes:

> On Thu, May 26, 2016 at 08:16:59PM +0200, Catonano wrote:
>> There are only 2 profiles on this machine: mine and root's profile
>> 
>> As for mine, I eliminated ALL previous generations and emacs-cider is not
>> installed in the current one
>> 
>> As for root's profile:
>> 
>> $ guix package -p root --list-installed
>> 
>> returns nothing
>> 
>> 
>> and
>> $ guix package -p root --list-generations
>> guix package: error: profile 'root' does not exist
>
> I think the argument to '-p' is the generation of the profile (an
> integer). You should try running it as root, since I doubt you can read
> root's profiles as an unprivileged user.

No, “--profile” or “-p” expects a *path* to a profile.  For root’s
profile you would either be root and use the default (no “-p” option),
or use “-p /root/.guix-profile” or similar, provided you have read
access to this file.

~~ Ricardo

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

end of thread, other threads:[~2016-05-27  6:39 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-26 16:36 cleaning the store Catonano
2016-05-26 16:58 ` Leo Famulari
2016-05-26 18:16   ` Catonano
2016-05-26 18:36     ` Leo Famulari
2016-05-26 18:41       ` Leo Famulari
2016-05-27  6:39       ` Ricardo Wurmus
2016-05-26 18:40     ` Thompson, David
2016-05-26 18:38 ` Leo Famulari
2016-05-26 19:10   ` Catonano
2016-05-26 19:34     ` Leo Famulari
2016-05-26 20:09       ` Catonano

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.