build: Change state and log directories to $localstatedir/.../guix.
authorLudovic Courtès <ludo@gnu.org>
Sun, 9 Mar 2014 21:05:29 +0000 (22:05 +0100)
committerLudovic Courtès <ludo@gnu.org>
Sun, 9 Mar 2014 21:10:01 +0000 (22:10 +0100)
* daemon.am (libstore_a_CPPFLAGS): Change /nix to /guix.
* guix/config.scm.in (%state-directory): Likewise.
* guix/store.scm (log-file): Likewise.

daemon.am
guix/config.scm.in
guix/store.scm

index 1059e44..abb7855 100644 (file)
--- a/daemon.am
+++ b/daemon.am
@@ -112,8 +112,8 @@ libstore_a_CPPFLAGS =                               \
   -I$(top_builddir)/nix/libstore               \
   -DNIX_STORE_DIR=\"$(storedir)\"              \
   -DNIX_DATA_DIR=\"$(datadir)\"                        \
-  -DNIX_STATE_DIR=\"$(localstatedir)/nix\"     \
-  -DNIX_LOG_DIR=\"$(localstatedir)/log/nix\"   \
+  -DNIX_STATE_DIR=\"$(localstatedir)/guix\"    \
+  -DNIX_LOG_DIR=\"$(localstatedir)/log/guix\"  \
   -DNIX_CONF_DIR=\"$(sysconfdir)/guix\"                \
   -DNIX_LIBEXEC_DIR=\"$(libexecdir)\"          \
   -DNIX_BIN_DIR=\"$(bindir)\"                  \
index 5edb4ce..eaadae9 100644 (file)
@@ -57,7 +57,7 @@
 
 (define %state-directory
   ;; This must match `NIX_STATE_DIR' as defined in `daemon.am'.
-  (or (getenv "NIX_STATE_DIR") "@guix_localstatedir@/nix"))
+  (or (getenv "NIX_STATE_DIR") "@guix_localstatedir@/guix"))
 
 (define %config-directory
   ;; This must match `NIX_CONF_DIR' as defined in `daemon.am'.
index e92e159..75edb34 100644 (file)
@@ -827,7 +827,7 @@ must be an absolute store file name, or a derivation file name."
   (cond ((derivation-path? file)
          (let* ((base    (basename file))
                 (log     (string-append (dirname %state-directory) ; XXX
-                                        "/log/nix/drvs/"
+                                        "/log/guix/drvs/"
                                         (string-take base 2) "/"
                                         (string-drop base 2)))
                 (log.bz2 (string-append log ".bz2")))