all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alex Kost <alezost@gmail.com>
To: myglc2 <myglc2@gmail.com>
Cc: 22607@debbugs.gnu.org
Subject: bug#22607: doc install from *Guix Package Info: profile* fails
Date: Tue, 09 Feb 2016 21:47:04 +0300	[thread overview]
Message-ID: <8760xxbu1j.fsf@gmail.com> (raw)
In-Reply-To: <87si116d8j.fsf@gmail.com> (myglc2@gmail.com's message of "Tue, 09 Feb 2016 11:49:00 -0500")

myglc2 (2016-02-09 19:49 +0300) wrote:

> Running: guixSD.
>
> Scenario: Finding and installing doc for a package (ncurses) used by a
> by a global package (emacs) I hit the following error.

A-a-a! What you tried is more or less the equivalent of:

  guix package -i foo --profile=/run/current-system/profile

A system is "composed" during "guix system" command, and it is
immutable, so you can't install packages to an existing system.

The only proper way to install packages globally is by adding them to
your system config.scm and running "guix system reconfigure".

You shouldn't (!) try to install packages in a system profile in any
other way.

[...]
> user
> ====
[...]
> guix/utils.scm:607:4: In procedure switch-symlinks:
> guix/utils.scm:607:4: In procedure symlink: Read-only file system: "/var/guix/profiles/system-31-link/profile-1-link.new"

Unsurprisingly, a user don't have rights to change /var/guix/...

[...]
> root
> ====

You are brave!  I wouldn't try to run Emacs as root and do some unknown
actions.

> scheme@(guile-user)> (process-package-actions "/var/guix/profiles/system-32-link/profile" #:install '((32467968 "doc")) #:upgrade '() #:remove '() #:use-substitutes? #t #:dry-run? #f)
> The process begins ...
> The following package will be installed:
>    ncurses:doc	6.0	/gnu/store/wng6fsgiiqi0rcc4p9655ga4b2j5jk53-ncurses-6.0-doc
>
> substitute: updating list of substitutes from 'http://hydra.gnu.org'... 100.0%
> The following derivations will be built:
>    /gnu/store/kdpgj81d7fi6pxzv0c43kwr9swzimixa-profile.drv
>    /gnu/store/s0f0f0y32kjk9km8ki5i5hy6rlhwlxcx-gtk-icon-themes.drv
>    /gnu/store/himj3dxych8xw300c1dkmyn8kyczry57-ca-certificate-bundle.drv
>    /gnu/store/bdzjjck73nz1xb8m5f0cj0zzb1cplxg7-info-dir.drv
> guix/utils.scm:607:4: In procedure switch-symlinks:
> guix/utils.scm:607:4: In procedure symlink: Read-only file system: "/var/guix/profiles/system-32-link/profile-1-link.new"

Thanks God /gnu/store on GuixSD is read-only even for root!

A system is not just a set of packages.  Look at any
"/var/guix/profiles/system-XX-link" file.  It is a symlink to the store.
"profile" (which contains the installed packages) is only one of its
subdirectories.  What you tried led to an attempt of making a new
generation of this "profile" directory, and happily in failed even for
root.

Why do you install everything globally?  IMO it is much more convenient
to manage a user profile (no root involved, no "system reconfigure" all
the time).

Really, it is a big feature of Guix to be able to install packages
without using root rights.  Of course it's your choice, but I highly
recommend to install your packages in ~/.guix-profile.  The only global
packages I added to %base-packages are: 'nss-certs' and 'iproute'.

-- 
Alex

  reply	other threads:[~2016-02-09 18:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-09 16:49 bug#22607: doc install from *Guix Package Info: profile* fails myglc2
2016-02-09 18:47 ` Alex Kost [this message]
2016-02-10  0:58   ` myglc2
2016-02-10 10:14     ` Alex Kost
2016-02-10 18:36       ` myglc2
2016-02-22 19:55       ` Alex Kost
2016-02-10 13:32     ` Ludovic Courtès
2016-02-10 18:46       ` myglc2
2016-02-10 13:32     ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8760xxbu1j.fsf@gmail.com \
    --to=alezost@gmail.com \
    --cc=22607@debbugs.gnu.org \
    --cc=myglc2@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.