about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2005-02-17T13·54+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2005-02-17T13·54+0000
commit88273f9574fc137301b6a65669eb20f18d7a3b61 (patch)
treecdd501770ca5cc54217fdd9f6c308661a14bbf22
parentfb5dae8694acbabab68aaccbc64796719fcb7b02 (diff)
* Put build logs in $prefix/var/nix/log/drvs/.
-rw-r--r--Makefile.am1
-rw-r--r--src/libstore/build.cc2
2 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index f50351b05b67..ccc5bf273c2a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -28,6 +28,7 @@ init-state:
 	$(INSTALL) $(INIT_FLAGS) -d $(DESTDIR)$(localstatedir)/nix
 	$(INSTALL) $(INIT_FLAGS) -d $(DESTDIR)$(localstatedir)/nix/db
 	$(INSTALL) $(INIT_FLAGS) -d $(DESTDIR)$(localstatedir)/log/nix
+	$(INSTALL) $(INIT_FLAGS) -d $(DESTDIR)$(localstatedir)/log/nix/drvs
 	$(INSTALL) $(INIT_FLAGS) -d $(DESTDIR)$(localstatedir)/nix/profiles
 	$(INSTALL) $(INIT_FLAGS) -d $(DESTDIR)$(localstatedir)/nix/gcroots
 	$(INSTALL) $(INIT_FLAGS) -d $(DESTDIR)$(localstatedir)/nix/temproots
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 1aa3e37babd8..33914b78ea67 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -1156,7 +1156,7 @@ void DerivationGoal::computeClosure()
 void DerivationGoal::openLogFile()
 {
     /* Create a log file. */
-    Path logFileName = nixLogDir + "/" + baseNameOf(drvPath);
+    Path logFileName = nixLogDir + "/drvs/" + baseNameOf(drvPath);
     fdLogFile = open(logFileName.c_str(),
         O_CREAT | O_WRONLY | O_TRUNC, 0666);
     if (fdLogFile == -1)