aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/util.cc
AgeCommit message (Collapse)Author
2005-05-04* The eof() state isn't guaranteed to be set non-lazily. GCC 2.95Eelco Dolstra
compatibility fix.
2005-03-24* Create missing log and temproots directories automatically (reportedEelco Dolstra
by Rob).
2005-02-09* Automatically upgrade <= 0.7 Nix stores to the new schema (so thatEelco Dolstra
existing user environments continue to work). * `nix-store --verify': detect incomplete closures.
2005-02-01* A GC setting `gc-keep-outputs' to specify whether output paths ofEelco Dolstra
derivations should be kept.
2005-02-01* nix-build: use an indirection scheme to make it easier for users toEelco Dolstra
get rid of GC roots. Nix-build places a symlink `result' in the current directory. Previously, removing that symlink would not remove the store path being linked to as a GC root. Now, the GC root created by nix-build is actually a symlink in `/nix/var/nix/gcroots/auto' to `result'. So if that symlink is removed the GC root automatically becomes invalid (since it can no longer be resolved). The root itself is not automatically removed - the garbage collector should delete dangling roots.
2005-01-31* Topologically sort paths under the references relation to ensureEelco Dolstra
that they are deleted in an order that maintains the closure invariant. * Presence of a path in a temporary roots file does not imply that all paths in its closure are also present, so add the closure.
2005-01-31* Start of concurrent garbage collection. Processes write temporaryEelco Dolstra
roots to a per-process temporary file in /nix/var/nix/temproots while holding a write lock on that file. The garbage collector acquires read locks on all those files, thus blocking further progress in other Nix processes, and reads the sets of temporary roots.
2005-01-27* Make lock removal safe by signalling to blocked processes that theEelco Dolstra
lock they are waiting on has become stale (we do this by writing a meaningless token to the unlinked file).
2005-01-20* Another change to low-level derivations. The last one this year, IEelco Dolstra
promise :-) This allows derivations to specify on *what* output paths of input derivations they are dependent. This helps to prevent unnecessary downloads. For instance, a build might be dependent on the `devel' and `lib' outputs of some library component, but not the `docs' output.
2004-11-08* Fix broken format string.Eelco Dolstra
2004-09-10* Operation `--delete-generations' to delete generations of aEelco Dolstra
profile. Arguments are either generation number, or `old' to delete all non-current generations. Typical use: $ nix-env --delete-generations old $ nix-collect-garbage * istringstream -> string2Int.
2004-08-18* The default verbosity level of all Nix commands is now lvlInfo.Eelco Dolstra
* Builder output is written to standard error by default. * The option `-B' is gone. * The option `-Q' suppresses builder output. The result of this is that most Nix invocations shouldn't need any flags w.r.t. logging.
2004-08-04* Creating a file nix-support/no-scan in the output path of aEelco Dolstra
derivation disables scanning for dependencies. Use at your own risk. This is a quick hack to speed up UML image generation (image are very big, say 1 GB). It would be better if the scanner were faster, and didn't read the whole file into memory.
2004-06-25* A flag `--keep-going / -k' to keep building goals if one fails, asEelco Dolstra
much as possible. (This is similar to GNU Make's `-k' flag.) * Refactoring to implement this: previously we just bombed out when a build failed, but now we have to clean up. In particular this means that goals must be freed quickly --- they shouldn't hang around until the worker exits. So the worker now maintains weak pointers in order not to prevent garbage collection. * Documented the `-k' and `-j' flags.
2004-06-22* Some more diagnostics changes.Eelco Dolstra
2004-06-22* Put WEXITSTATUS stuff somewhere else.Eelco Dolstra
2004-06-22* Wrapper class around pids.Eelco Dolstra
2004-06-22* Refactoring.Eelco Dolstra
2004-06-20* Refactoring.Eelco Dolstra
2004-06-15* Refactoring.Eelco Dolstra
2004-05-12* An quick and dirty hack to support distributed builds.Eelco Dolstra
2004-05-11* Ignore interrupt signals while handling an exception.Eelco Dolstra
* Ignore EINTR in reads and writes.
2004-04-23* Pass SYSTEM through config.h, and allow spaces.Eelco Dolstra
2004-03-27* Do not close a nesting level twice after close() has beenEelco Dolstra
called explicitly on a Nest object.
2004-03-22* Some more nesting.Eelco Dolstra
2004-03-22* Nix now has three different formats for the log information itEelco Dolstra
writes to stderr: - `pretty': the old nested style (default) - `escapes': uses escape codes to indicate nesting and message level; can be processed using `log2xml' - `flat': just plain text, no nesting These can be set using `--log-type TYPE' or the NIX_LOG_TYPE environment variable.
2004-02-06* Use the profile pointed to by ~/.nix-profile if no --profileEelco Dolstra
argument is specified.
2004-01-15* Catch SIGINT to terminate cleanly when the user tries to interruptEelco Dolstra
Nix. This is to prevent Berkeley DB from becoming wedged. Unfortunately it is not possible to throw C++ exceptions from a signal handler. In fact, you can't do much of anything except change variables of type `volatile sig_atomic_t'. So we set an interrupt flag in the signal handler and check it at various strategic locations in the code (by calling checkInterrupt()). Since this is unlikely to cover all cases (e.g., (semi-)infinite loops), sometimes SIGTERM may now be required to kill Nix.
2004-01-05* Implemented Eelco V.'s `nix-env -I' command to specify the defaultEelco Dolstra
path of the Nix expression to be used with the import, upgrade, and query commands. For instance, $ nix-env -I ~/nixpkgs/pkgs/system/i686-linux.nix $ nix-env --query --available [aka -qa] sylpheed-0.9.7 bison-1.875 pango-1.2.5 subversion-0.35.1 ... $ nix-env -i sylpheed $ nix-env -u subversion There can be only one default at a time. * If the path to a Nix expression is a symlink, follow the symlink prior to resolving relative path references in the expression.
2003-11-22* Fix the garbage collector.Eelco Dolstra
2003-11-19* nix-env: a tool to manage user environments.Eelco Dolstra
* Replace all directory reading code by a generic readDirectory() function.
2003-11-18* Source tree refactoring.Eelco Dolstra