unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alex Kost <alezost@gmail.com>
To: Alex Vong <alexvong1995@gmail.com>
Cc: guix-guix-devel <guix-devel@gnu.org>
Subject: Re: compiling guix is too slow?
Date: Wed, 05 Jul 2017 10:35:38 +0300	[thread overview]
Message-ID: <87inj7e3p1.fsf@gmail.com> (raw)
In-Reply-To: <87d19gmxbq.fsf@gmail.com> (Alex Vong's message of "Tue, 04 Jul 2017 16:16:09 +0800")

Alex Vong (2017-07-04 16:16 +0800) wrote:

[...]
> Is there an intermediate approch? Is is possible for Emacs to signal a
> warning when the required features are not found, but still continue
> loading the rest of the config?

If you wish to have a message in *Messages* buffer, you can do it like
this:

(unless (require 'foo nil t)
  (message "Error during loading 'foo'!!!"))

or like this:

(with-demoted-errors "%S" (require 'foo))

If you want to have a warning in a pop-up buffer, then:

(unless (require 'foo nil t)
  (display-warning 'oops "Error during loading 'foo'!!!"))

[...]
> Thanks for the suggestion! It turns out setting NIX_STATE_DIR to
> "/usr/local/var/guix/" and making "~/.config/guix/latest" pointing to
> "~/scm/guix/" completely resolves the problem. So now only a oneliner is
> required:
>
>   (require 'guix-autoloads '() t)

Actually, why do you need this line at all?  Such autoloads should be
loaded automatically.  Do you also require autoloads of other emacs
packages?  Do you use Emacs from Guix or from your operating system (not
GuixSD)?

> Do you think it is a bug that Emacs-Guix does not set
> `guix-state-directory' correctly?

I'm not sure what you mean.  It sets this variable to "/var/guix" by
default (or to NIX_STATE_DIR if you use it).  If you use Guix with a
non-standard state directory, how can Emacs-Guix define it?

BTW, don't you have problems using "/usr/local/var" as the state
directory?

If you use guix from a git checkout, I think it is a standard practice
to configure it with "--localstatedir=/var".  It is even mentioned in
the manual a couple of times:

  (info "(guix) Building from Git")
  (info "(guix) Requirements")

-- 
Alex

  reply	other threads:[~2017-07-05  7:35 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-28 22:58 compiling guix is too slow? Feng Shu
2017-06-29  1:23 ` Adonay Felipe Nogueira
2017-06-29  2:56 ` Leo Famulari
2017-07-01 13:33   ` Ludovic Courtès
2017-07-03  7:50     ` Andy Wingo
2017-07-03  8:06       ` ng0
2017-07-03 10:19         ` Ludovic Courtès
2017-07-03 12:15           ` ng0
2017-07-04  9:17             ` Ricardo Wurmus
2017-07-04  9:23               ` ng0
2017-07-03 10:18       ` Ludovic Courtès
2017-06-29  4:28 ` Alex Vong
2017-07-02 20:38   ` Alex Kost
2017-07-04  8:16     ` Alex Vong
2017-07-05  7:35       ` Alex Kost [this message]
2017-07-05 14:39         ` Alex Vong
2017-07-06  3:49 ` Chris Marusich
2018-02-05  7:34   ` Can we speed it up? Prev: " Pjotr Prins
2018-02-05  8:15     ` Konrad Hinsen
2018-02-05  8:55       ` Pjotr Prins
2018-02-05  9:56         ` Konrad Hinsen
2018-02-05 10:12           ` Pjotr Prins
2018-02-05 10:15     ` 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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=87inj7e3p1.fsf@gmail.com \
    --to=alezost@gmail.com \
    --cc=alexvong1995@gmail.com \
    --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 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).