* Put build logs in $prefix/var/nix/log/drvs/.

This commit is contained in:
Eelco Dolstra 2005-02-17 13:54:45 +00:00
parent fb5dae8694
commit 88273f9574
2 changed files with 2 additions and 1 deletions

View file

@ -28,6 +28,7 @@ init-state:
$(INSTALL) $(INIT_FLAGS) -d $(DESTDIR)$(localstatedir)/nix $(INSTALL) $(INIT_FLAGS) -d $(DESTDIR)$(localstatedir)/nix
$(INSTALL) $(INIT_FLAGS) -d $(DESTDIR)$(localstatedir)/nix/db $(INSTALL) $(INIT_FLAGS) -d $(DESTDIR)$(localstatedir)/nix/db
$(INSTALL) $(INIT_FLAGS) -d $(DESTDIR)$(localstatedir)/log/nix $(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/profiles
$(INSTALL) $(INIT_FLAGS) -d $(DESTDIR)$(localstatedir)/nix/gcroots $(INSTALL) $(INIT_FLAGS) -d $(DESTDIR)$(localstatedir)/nix/gcroots
$(INSTALL) $(INIT_FLAGS) -d $(DESTDIR)$(localstatedir)/nix/temproots $(INSTALL) $(INIT_FLAGS) -d $(DESTDIR)$(localstatedir)/nix/temproots

View file

@ -1156,7 +1156,7 @@ void DerivationGoal::computeClosure()
void DerivationGoal::openLogFile() void DerivationGoal::openLogFile()
{ {
/* Create a log file. */ /* Create a log file. */
Path logFileName = nixLogDir + "/" + baseNameOf(drvPath); Path logFileName = nixLogDir + "/drvs/" + baseNameOf(drvPath);
fdLogFile = open(logFileName.c_str(), fdLogFile = open(logFileName.c_str(),
O_CREAT | O_WRONLY | O_TRUNC, 0666); O_CREAT | O_WRONLY | O_TRUNC, 0666);
if (fdLogFile == -1) if (fdLogFile == -1)