all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Federico Beffa <beffa@ieee.org>
Cc: guix-devel@gnu.org
Subject: Re: guix 0.7 installation
Date: Sun, 14 Sep 2014 16:24:57 +0200	[thread overview]
Message-ID: <87iokqb7pi.fsf@gnu.org> (raw)
In-Reply-To: <CAKrPhPNcCqosdxNnESoTKPkcixPUJ=a_FEc8v7bJ0oG56mMTBw@mail.gmail.com> (Federico Beffa's message of "Sat, 13 Sep 2014 14:08:33 +0200")

Federico Beffa <beffa@ieee.org> skribis:

> Having played with guix a little bit, I have a few questions:
>
> - My locally built guix is now built with references to guix libraries
>   (in /gnu/store). What happens if I "guix pull" and "guix package -u"
>   and then garbage collect old profiles and packages?  Is it possible
>   that at some point my guix will break?

It’s possible.  However, since all the tools needed to build Guix are
now in your profile, you’ll always be able to do ‘make clean && make &&
make install’.

> - Every time I use guix I get the following note:
>
>   ;;; note: source file /usr/local/share/guile/site/2.0/srfi/srfi-37.scm
>   ;;;       newer than compiled /usr/local/share/guile/site/2.0/srfi/srfi-37.go
>
>   I guess it is just a matter of recompiling the module, but the
>   "make install" procedure should in principle get it right.

Indeed.  Having checked the makefile, I don’t see why it doesn’t happen,
since ‘make install’ does do the right thing for all the other .go
files.

However, I wouldn’t worry too much, since this file is no longer needed
if you use a recent Guile.

> - Out of curiosity I've installed the guix package into my store. The
>   installation procedure suggested to define the following environment
>   variables:
>
>   export GUILE_LOAD_PATH="$HOME/.guix-profile/share/guile/site/2.0"
>   export GUILE_LOAD_COMPILED_PATH="$HOME/.guix-profile/share/guile/site/2.0"
>
>   I did that. However, the guix package binary was still pointing to
>   my local copy of object files in "/usr/local/share/guile/...". That
>   sounded a little worrying to me. For this reason, for the moment, I
>   just removed the guix package. Is there a way to force the guix
>   package binary to only look in the store for object files?

If you look at the ‘guix’ program, you’ll see that it adds its own
module directory at the front of the search path.

Thus, /usr/local/bin/guix will always look at things in
/usr/local/share/guile first.  Conversely, /gnu/.../bin/guix will always
look at /gnu/.../share/guile first.  This is on purpose, to make sure we
don’t inadvertently mix different versions.

(Actually the very first thing in the search path is
~/.config/guix/latest, which is populated by ‘guix pull’.)

> - If I would install the guix package and uninstall the locally built
>   one from /usr/local, how would a new user be able to start using
>   guix?

They could get started by using, say, ~federico/.guix-profile/bin/guix
to install Guix in their own profile.

> - To use the build tools from the stores I've defined the following
>   environment variables:
>
>   export PKG_CONFIG_PATH="$HOME/.guix-profile/lib/pkgconfig"
>   export ACLOCAL_PATH="$HOME/.guix-profile/share/aclocal"
>   export CPATH="$HOME/.guix-profile/include"
>   export LIBRARY_PATH="$HOME/.guix-profile/lib"
>
>   Is it possible that having these variables defined does interfere
>   with the workings of my host distribution (Debian 7.6)? What
>   happens, say, if an install script for a Debian package makes use of
>   pkg-config (or any other tool) and there is a difference between the
>   one expected by the Debian package (reported by ATP tools) and the
>   one found on my system? Should I better not have these variables
>   defined by default?

I don’t think APT’s scripts can be influenced by these environment
variables, at least as long as they’re not defined in a global file such
as /etc/profile.

Most of us have been using Guix on top of some other distro anyway, at
least until recently.

Thanks,
Ludo’.

  reply	other threads:[~2014-09-14 14:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-13 12:08 guix 0.7 installation Federico Beffa
2014-09-14 14:24 ` Ludovic Courtès [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-09-12 15:34 Federico Beffa
2014-09-12 19:35 ` Ludovic Courtès
2014-09-02 12:21 Federico Beffa
2014-08-30 21:53 Federico Beffa
2014-08-31 20:22 ` Ludovic Courtès
2014-08-30 12:43 Federico Beffa
2014-08-30 20:18 ` Ludovic Courtès
2014-08-30 11:33 Federico Beffa
2014-08-30 20:11 ` 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=87iokqb7pi.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=beffa@ieee.org \
    --cc=guix-devel@gnu.org \
    /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.