Permalink
Commits on Oct 29, 2010
  1. * Merge the GC branch.

    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@24531 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    eelco committed Oct 29, 2010
Commits on Oct 6, 2010
  1. nix manual: fix 'install' -> 'uninstall' in garbage collection sectio…

    …n of introduction
    
    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@24122 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    rob committed Oct 6, 2010
Commits on Oct 4, 2010
  1. * In the referrers test, lower the nesting depth from 2500 to 1000 to

      prevent hitting a stack overflow bug in the garbage collector.
    
    
    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@24061 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    eelco committed Oct 4, 2010
  2. * Make sure that config.h is included before the system headers,

      because it defines _FILE_OFFSET_BITS.  Without this, on 
      OpenSolaris the system headers define it to be 32, and then 
      the 32-bit stat() ends up being called with a 64-bit "struct 
      stat", or vice versa.
    
      This also ensures that we get 64-bit file sizes everywhere.
    
    * Remove the redundant call to stat() in parseExprFromFile().
      The file cannot be a symlink because that's the exit condition
      of the loop before.
    
    
    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@24058 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    eelco committed Oct 4, 2010
  3. * If std::tr1::unordered_set is unavailable, use std::set.

    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@24056 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    eelco committed Oct 4, 2010
  4. * "type -P" isn't portable.

    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@24055 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    eelco committed Oct 4, 2010
  5. * In printMsg(), ignore failing writes to stderr if we're in an

      exception handler, otherwise throw an exception.  We need to ignore
      write errors in exception handlers to ensure that cleanup code runs
      to completion if the other side of stderr has been closed
      unexpectedly.
    
    
    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@24047 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    eelco committed Oct 4, 2010
  6. * Hack needed for GCC 4.3.2 on OpenSolaris.

    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@24046 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    eelco committed Oct 4, 2010
Commits on Sep 14, 2010
  1. * Doh. Remove debug message.

    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@23787 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    eelco committed Sep 14, 2010
Commits on Aug 27, 2010
  1. * Oops - "null" was displayed as "true".

    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@23482 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    eelco committed Aug 27, 2010
Commits on Aug 24, 2010
  1. * nix-build: pass --cores.

    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@23388 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    eelco committed Aug 24, 2010
Commits on Aug 17, 2010
  1. * Bump the version number.

    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@23209 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    eelco committed Aug 17, 2010
  2. * rpmBuild already includes the disk image in the output name.

    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@23205 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    eelco committed Aug 17, 2010
  3. * Update date.

    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@23199 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    eelco committed Aug 17, 2010
  4. * Document --cores in the manual.

    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@23196 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    eelco committed Aug 17, 2010
Commits on Aug 16, 2010
  1. * Typo.

    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@23192 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    eelco committed Aug 16, 2010
  2. * Remove the "tarball" jobset argument.

    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@23191 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    eelco committed Aug 16, 2010
  3. * Nix 0.16 release notes.

    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@23188 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    eelco committed Aug 16, 2010
Commits on Aug 12, 2010
  1. * Urgh, this was supposed to go in the trunk...

    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@23149 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    eelco committed Aug 12, 2010
  2. * Make --cores work when building through the Nix daemon.

    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@23136 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    eelco committed Aug 12, 2010
Commits on Aug 4, 2010
  1. * Remove "auto" and "guess" as synonyms for 0 in the handling of

      build-cores and --cores.  They're superfluous and just complicate
      the parsing.
    
    
    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@22946 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    eelco committed Aug 4, 2010
  2. * Set the default system filter to "*". This ensures that (for

      instance) "nix-env -i wine" works on x86_64-linux, even though Wine
      is built on i686-linux.  In the event that there are multiple
      matching derivations, prefer those built for the current system.
    
    
    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@22938 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    eelco committed Aug 4, 2010
Commits on Aug 2, 2010
  1. * Optimisation in the // operator: if one of the sets is empty, return

      the other set.
    
    
    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@22886 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    eelco committed Aug 2, 2010
  2. * intersectAttrs: optimise for the case where the second set is larger

      than the first set.  (That's usually the case with callPackage.)
    
    
    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@22871 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    eelco committed Aug 2, 2010
Commits on Jul 21, 2010
  1. * Don't barf if the source NAR for a patch has disappeared.

    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@22685 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    eelco committed Jul 21, 2010
Commits on Jul 15, 2010
  1. src/bsdiff-4.3/Makefile.am: include the 'compat-include' directory in…

    … distribution tarballs
    
    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@22611 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    simons committed Jul 15, 2010
Commits on Jun 25, 2010
  1. tests/build-hook.hook.sh: prefer more portable `...` syntax over $(..…

    ….) for running sub-shells
    
    The /bin/sh interpreter on Solaris doesn't understand $(...) syntax for running
    sub-shells. Consequently, this test fails on Solaris. To remedy the situation,
    the script either needs to be run by /bin/bash -- which is non-standard --, or
    it needs to use the ancient but portable `...` syntax.
    
    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@22412 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    simons committed Jun 25, 2010
Commits on Jun 24, 2010
  1. Revert "configure.ac: make flex and bison required programs"

    This reverts commit 22405. Apparently, these programs aren't necessarily
    required when building from a release archive.
    
    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@22409 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    simons committed Jun 24, 2010
  2. Fix build of bsdiff-4.3 on machines that don't have <err.h>, such as …

    …Solaris.
    
    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@22407 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    simons committed Jun 24, 2010
  3. configure.ac: Incredibly enough, tr(1) on Solaris doesn't understand …

    …A-Z syntax for ranges.
    
    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@22406 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    simons committed Jun 24, 2010
  4. configure.ac: make flex and bison required programs

    The build fails if these tools aren't available.
    
    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@22405 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    simons committed Jun 24, 2010
  5. src/libutil/util.cc: include <limit.h> to ensure that PATH_MAX is def…

    …ined
    
    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@22404 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    simons committed Jun 24, 2010
  6. Include <cstring> to ensure that strcpy(), strlen(), and memset() are…

    … declared.
    
    An "using namespace std" was added locally in those functions that refer to
    names from <cstring>. That is not pretty, but it's a very portable solution,
    because strcpy() and friends will be found in both the 'std' and in the global
    namespace.
    
    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@22403 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    simons committed Jun 24, 2010
Commits on Jun 23, 2010
  1. * Ignore packages that don't have a version.

    * Work on a manifest instead of a channel directory.
    
    
    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@22401 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    eelco committed Jun 23, 2010
  2. Added support for passing an (impure) NIX_BUILD_CORES variable to bui…

    …ld expressions.
    
    This patch adds the configuration file variable "build-cores" and the
    command line argument "--cores". These settings specify the number of
    CPU cores to utilize for parallel building within a job, i.e. by passing
    an appropriate "-j" flag to GNU Make. The default value is 1, which
    means that parallel building is *disabled*. If the number of build cores
    is specified as 0 (synonymously: "guess" or "auto"), then the actual
    value is supposed to be auto-detected by builders at run-time, i.e by
    calling the nproc(1) utility from coreutils.
    
    The environment variable $NIX_BUILD_CORES is available to builders, but
    the contents of that variable does *not* influence the hash that goes
    into the $out store path, i.e. the number of build cores to be utilized
    can be changed at will without requiring any re-builds.
    
    git-svn-id: https://svn.nixos.org/repos/nix/nix/trunk@22397 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
    simons committed Jun 23, 2010