* 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/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

View File

@ -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)