Commit graph

  • 6a5599fd01 * Typo. Eelco Dolstra 2009-05-07 11:33:57 +0000
  • 098cb9d233 Add an ftruncate call paired with fallocate to play safe with some FSes (namely, BtrFS fallocate sets file size to allocated size, i.e. multiple of block size) Michael Raskin 2009-05-04 08:10:24 +0000
  • c710fe540e * Machines of type x86_64-linux can do i686-linux builds. Eelco Dolstra 2009-04-21 12:42:47 +0000
  • d5eab2fc82 * Use foreach in a lot of places. Eelco Dolstra 2009-04-21 11:52:16 +0000
  • 8f1bf28505 * nix-store --verify: don't bail out if a referenced path is missing. (It can't fix it though.) Eelco Dolstra 2009-04-21 11:06:27 +0000
  • 4e646b0ddb * Fix a few "comparison is always false/true due to limited range of data type" warnings on 64-bit platforms. The one in parser.y is likely to be a real bug. Eelco Dolstra 2009-04-16 12:03:17 +0000
  • 0460ea4c39 * Cleanup. Eelco Dolstra 2009-04-16 09:27:33 +0000
  • dfb863f333 * Don't cache transient build hook problems. Eelco Dolstra 2009-04-15 06:25:02 +0000
  • 435a93b5d8 * Remove references to __XXX primops. Eelco Dolstra 2009-04-14 13:03:27 +0000
  • 8b2a01a8c2 * Release notes. Eelco Dolstra 2009-04-14 12:02:22 +0000
  • 50cb6f9782 * Debian packages: use /etc, not /usr/etc. Eelco Dolstra 2009-04-02 08:16:15 +0000
  • 351bf658f9 * Do a substitution even if --max-jobs == 0. Eelco Dolstra 2009-03-31 21:14:07 +0000
  • cff2b2a13a * Doh! Eelco Dolstra 2009-03-31 15:50:03 +0000
  • 160a60d663 Eelco Dolstra 2009-03-30 19:35:55 +0000
  • 805144b705 * Make the poll interval configurable. Eelco Dolstra 2009-03-30 11:34:03 +0000
  • 096affb55b * Update the mtime on the lock file to make it easy to see when a slot was last used. Eelco Dolstra 2009-03-29 18:40:44 +0000
  • cbc1f57b48 * Undocument the "system" option. No sane person would use it :-) Eelco Dolstra 2009-03-29 18:08:32 +0000
  • 7377195297 * With --max-jobs 0', print a nicer error message than "Assertion !awake.empty()' failed." Eelco Dolstra 2009-03-29 18:06:00 +0000
  • 737423a89c * Use polling to wait for a remote build slot when using a build hook (that is, call the build hook with a certain interval until it accepts the build). * build-remote.pl was totally broken: for all system types other than the local system type, it would send all builds to the *first* machine of the appropriate type. Eelco Dolstra 2009-03-29 18:00:45 +0000
  • 47706e3924 * nix-copy-closure: compute the closure in one call to nix-store, which is much faster. Eelco Dolstra 2009-03-28 21:10:29 +0000
  • 6e946c8e72 * Scan for references and compute the SHA-256 hash of the output in one pass. This halves the amount of I/O. Eelco Dolstra 2009-03-28 20:51:33 +0000
  • c7152c8f97 * Don't use the non-standard __gnu_cxx::stdio_filebuf class. Eelco Dolstra 2009-03-28 19:41:53 +0000
  • 3a2bbe7f8a * Simplify communication with the hook a bit (don't use file descriptors 3/4, just use stdin/stderr). Eelco Dolstra 2009-03-28 19:29:55 +0000
  • 7fb548aa26 * Clean up the output a bit. Eelco Dolstra 2009-03-28 16:12:46 +0000
  • f54e800366 * The `fixedOutput' variable didn't get initialised when using a build hook, causing negative caching to fail randomly. Eelco Dolstra 2009-03-28 16:12:27 +0000
  • 38f98b3282 * Argh, stupid timing sensitive tests... Eelco Dolstra 2009-03-27 22:40:22 +0000
  • e23a7a8b7b * Debian 5.0, Ubuntu 8.10 builds. Eelco Dolstra 2009-03-27 14:20:03 +0000
  • cb85bc396e * Create /nix/store if it doesn't exist. Eelco Dolstra 2009-03-27 14:19:04 +0000
  • 61686926d1 * A job for creating a fully statically linked binary tarball. Eelco Dolstra 2009-03-26 14:12:42 +0000
  • 9856efc7b0 * Support doing a fully static build. Statically linked Nix binaries will be useful as a fallback on platforms for which there are no RPMs/Debs available. Eelco Dolstra 2009-03-26 12:22:08 +0000
  • 5dd8fb2069 * Don't use ULLONG_MAX in maxFreed - use 0 to mean "no limit". 18446744073709551615ULL breaks on GCC 3.3.6 (`integer constant is too large for "long" type'). Eelco Dolstra 2009-03-26 11:02:07 +0000
  • 92f525ecf4 * Negative caching, i.e. caching of build failures. Disabled by default. This is mostly useful for Hydra. Eelco Dolstra 2009-03-25 21:05:42 +0000
  • 7024a1ef07 * Removed the locking.sh test; it's redundant because of the extended parallel.sh test. Also, don't call multiple nix-builds in parallel, since they can race creating .nix-build-tmp-derivation. Eelco Dolstra 2009-03-25 16:43:38 +0000
  • 8146a0c731 * Use bash in the tests. Eelco Dolstra 2009-03-25 16:11:04 +0000
  • a046858a22 * Doh. Eelco Dolstra 2009-03-24 23:40:24 +0000
  • 12c8c64efa Eelco Dolstra 2009-03-24 14:07:37 +0000
  • 7aedcf9460 * Make this test a bit more robust. It's still timing dependent though. Eelco Dolstra 2009-03-23 15:16:36 +0000
  • 3a87163b24 * Shut up a GCC warning. Eelco Dolstra 2009-03-23 13:52:52 +0000
  • cacff1be88 * No longer block while waiting for a lock on a store path. Instead poll for it (i.e. if we can't acquire the lock, then let the main select() loop wait for at most a few seconds and then try again). This improves parallelism: if two nix-store processes are both trying to build a path at the same time, the second one shouldn't block; it should first see if it can build other goals. Also, it prevents the deadlocks that have been occuring in Hydra lately, where a process waits for a lock held by another process that's waiting for a lock held by the first. Eelco Dolstra 2009-03-23 01:05:54 +0000
  • 58969fa2bf * Refactoring. Eelco Dolstra 2009-03-22 23:53:05 +0000
  • d7b2d11255 * Test case (currently fails): multiple Nix builds shouldn't block waiting on the same lock when there are other builds that can be done. Eelco Dolstra 2009-03-22 23:16:18 +0000
  • 7a57b2920b * Better error message when nix-store --import is applied to garbage (previously it would likely say "implementation cannot deal with > 32-bit integers"). Eelco Dolstra 2009-03-22 17:51:45 +0000
  • 77d272623f * NAR archives: handle files larger than 2^32 bytes. Previously it would just silently store only (fileSize % 2^32) bytes. * Use posix_fallocate if available when unpacking archives. * Provide a better error message when trying to unpack something that isn't a NAR archive. Eelco Dolstra 2009-03-22 17:36:43 +0000
  • 7e05b8b75e * Future proofing: assume we can read manifests up to version 10 (which should therefore be backwards compatible). Eelco Dolstra 2009-03-19 10:02:02 +0000
  • b88460bcbc * Disregard the Hash field in manifests. Eelco Dolstra 2009-03-19 09:47:34 +0000
  • 2897286487 * Unify exportReferencesGraph and exportBuildReferencesGraph, and make sure that it works as expected when you pass it a derivation. That is, we have to make sure that all build-time dependencies are built, and that they are all in the input closure (otherwise remote builds might fail, for example). This is ensured at instantiation time by adding all derivations and their sources to inputDrvs and inputSrcs. Eelco Dolstra 2009-03-18 17:36:42 +0000
  • e530e0a350 * Improve the test. Eelco Dolstra 2009-03-18 16:36:13 +0000
  • 9485ec31ea * Better cleanup after tests. Eelco Dolstra 2009-03-18 16:35:35 +0000
  • 13df3915ef * Missing file. Eelco Dolstra 2009-03-18 16:23:29 +0000
  • c183ee5c79 * Acquire the locks on the output paths before trying to run the build hook. This fixes a problem with log files being partially or completely filled with 0's because another nix-store process truncates the log file. It should also be more efficient. Eelco Dolstra 2009-03-18 14:48:42 +0000
  • 1dcf208f56 * Clean up some tests (use nix-build where appropriate). Eelco Dolstra 2009-03-18 13:15:55 +0000
  • 93b6926054 * Regression test for exportBuildReferencesGraph. It currently fails. Eelco Dolstra 2009-03-17 17:38:32 +0000
  • 51e7e32c3b * Refactoring: renamed *.nix.in to *.nix. Eelco Dolstra 2009-03-17 17:11:55 +0000
  • 2d5114452d * Regression test for the `exportReferencesGraph' derivation attribute. Eelco Dolstra 2009-03-17 16:33:48 +0000
  • 33ecb42991 * Cleanup. Eelco Dolstra 2009-03-17 11:42:55 +0000
  • be88248add * Make the version available to release.nix. Eelco Dolstra 2009-03-09 15:05:08 +0000
  • a96cac0d18 Eelco Dolstra 2009-03-06 17:00:58 +0000
  • d4753c944f Eelco Dolstra 2009-03-06 11:01:45 +0000
  • 0e6f604178 * Install some headers in the right location. Eelco Dolstra 2009-03-05 14:57:50 +0000
  • 7f254706b0 * Allow the channel to declare a name for itself. Eelco Dolstra 2009-03-03 14:47:39 +0000
  • 1273d355ac * nix-install-package: don't pollute /nix/var/nix/manifests. Eelco Dolstra 2009-02-27 14:06:38 +0000
  • d4ca5c3952 * Use the regular progress bar; the hash bar isn't very useful when the size of the download isn't known in advance. Eelco Dolstra 2009-02-27 13:55:11 +0000
  • fd2e14b3c8 * nix-build: support --option. Eelco Dolstra 2009-02-27 12:09:30 +0000
  • 60cb7de336 * Allow options from the Nix config file to be overriden from the command line (e.g. "--option build-use-chroot true"). Eelco Dolstra 2009-02-27 11:04:41 +0000
  • 8ab6bc5a49 * nix-channel: use nix-build. Eelco Dolstra 2009-02-27 11:01:03 +0000
  • f052c10eed * Check the manifest version. Eelco Dolstra 2009-02-27 09:53:58 +0000
  • a7cee528c5 * Handle base-16 hashes in manifests. Eelco Dolstra 2009-02-26 21:12:35 +0000
  • 041717eda3 * download-using-manifests: don't check the cryptographic hash of downloaded files; rather, check the hash of the unpacked store path. Eelco Dolstra 2009-02-19 23:46:37 +0000
  • 621093cb1c Replace wrong (w.r.t. PATH) sed call with in-shell substitution Michael Raskin 2009-02-19 20:46:45 +0000
  • 824b154ce8 * Release output locks as soon as possible, not when the destructor of the DerivationGoal runs. Otherwise, if a goal is a top-level goal, then the lock won't be released until nix-store finishes. With --keep-going and lots of top-level goals, it's possible to run out of file descriptors (this happened sometimes in the build farm for Nixpkgs). Also, for failed derivation, it won't be possible to build it again until the lock is released. Eelco Dolstra 2009-02-16 09:24:20 +0000
  • 2ef579d1aa documentation for previous commit Marc Weber 2009-02-05 19:35:44 +0000
  • 1407a1ec99 added primop functions __isBool, __isString, __isInt Marc Weber 2009-02-05 19:35:40 +0000
  • 1bb0f1e84b * Build hook: compress the transferred data. Eelco Dolstra 2009-02-03 10:34:15 +0000
  • b682fae9d9 * Build hooks: use nix-store --import. This prevents a redundant scan for runtime dependencies (i.e. the local machine shouldn't do a scan that the remote machine has already done). Also pipe directly into `nix-store --import': don't use a temporary file. Eelco Dolstra 2009-02-02 17:24:10 +0000
  • 6f8c96d123 vim syntax: support for indented strings ('' .. '') Marc Weber 2009-01-28 12:14:53 +0000
  • 110606d470 Add the "addErrorContext" builtin to add more information in the stack trace. Nicolas Pierron 2009-01-27 14:36:44 +0000
  • 061141e632 * Make it compile on Debian 4.0 (which doesn't define PER_LINUX32_3GB in sys/personality.h). Eelco Dolstra 2009-01-27 13:36:59 +0000
  • 019176137f * When using a build hook, distinguish between transient failures (e.g. an SSH connection problem) and permanent failures (i.e. the builder failed). This matters to Hydra (it wants to know whether it makes sense to retry a build). Eelco Dolstra 2009-01-13 11:39:09 +0000
  • 4ce692df88 Eelco Dolstra 2009-01-13 10:42:13 +0000
  • c504d90c11 * Support i686-linux builds directly on x86_64-linux Nix installations. This is implemented using the personality() syscall, which causes uname to return "i686" in child processes. Eelco Dolstra 2009-01-12 16:30:32 +0000
  • 8e39d9bdb3 * Make Nix build with Bison 2.4. Eelco Dolstra 2009-01-12 12:51:28 +0000
  • 28355dafcf * Removed reference to losser.st-lab.cs.uu.nl, which is RIP after 9 years of loyal service :-) Eelco Dolstra 2009-01-05 12:14:43 +0000
  • 8fce03e0ad * nix-store --verify: repair bad hash fields in the metadata file. Eelco Dolstra 2008-12-16 13:28:18 +0000
  • 60ec75048a * Pass --use-atime / --max-atime to the daemon. Eelco Dolstra 2008-12-16 12:23:35 +0000
  • 6f6bb1fdea * Delete the chroot if it already exists (e.g. left over from an interrupted build). Eelco Dolstra 2008-12-15 23:55:11 +0000
  • 92cb7c4dfe * Put chroots in the Nix store. This ensures that we can create hard links to the inputs. Eelco Dolstra 2008-12-12 17:14:57 +0000
  • 0008b0006d * Simplify deleting .lock files in /nix/store: just don't delete them if they belong a path that's currently being built. This gets rid of some Cygwin-specific code. Eelco Dolstra 2008-12-12 17:03:18 +0000
  • ac36c6cd44 * Some hackery to make "make check" succeed on Cygwin. Eelco Dolstra 2008-12-12 15:36:18 +0000
  • 2b70a8e7c9 * Detect whether unshare() is available. Eelco Dolstra 2008-12-12 13:41:36 +0000
  • 9122dcecbb * We can't use string objects in signal handlers because they might allocate memory, which is verboten in signal handlers. This caused random failures in the test suite on Mac OS X (triggered by the spurious SIGPOLL signals on Mac OS X, which should also be fixed). Eelco Dolstra 2008-12-12 12:59:27 +0000
  • 6776a52bb3 * Use a PathSet for the chroot directories so that we don't accidentally bind-mount a directory twice. Eelco Dolstra 2008-12-12 11:49:42 +0000
  • d86bd22d24 * Define _GNU_SOURCE. Hopefully this fixes the build on Debian 4.0 (http://hydra.nixos.org/nixlog/384/1). Eelco Dolstra 2008-12-12 10:20:19 +0000
  • ac5478eb52 * Don't provide the whole Nix store in the chroot, but only the closure of the inputs. This really enforces that there can't be any undeclared dependencies on paths in the store. This is done by creating a fake Nix store and creating bind-mounts or hard-links in the fake store for all paths in the closure. After the build, the build output is moved from the fake store to the real store. TODO: the chroot has to be on the same filesystem as the Nix store for this to work, but this isn't enforced yet. (I.e. it only works currently if /tmp is on the same FS as /nix/store.) Eelco Dolstra 2008-12-11 18:57:10 +0000
  • 652817046b * Revert r13150: now that we use private namespaces for the chroot, we don't have to put the chroot in /nix/var/nix/chroots anymore. They're back in /tmp now. Eelco Dolstra 2008-12-11 17:52:34 +0000
  • 5a569509b4 * Provide a minimal /etc/passwd in the chroot to keep some builders happy. Eelco Dolstra 2008-12-11 17:44:02 +0000
  • 7c54f1603f * Do chroot builds in a private namespace. This means that all the bind-mounts we do are only visible to the builder process and its children. So accidentally doing "rm -rf" on the chroot directory won't wipe out /nix/store and other bind-mounted directories anymore. Also, the bind-mounts in the private namespace disappear automatically when the builder exits. Eelco Dolstra 2008-12-11 17:00:12 +0000
  • 07cdfb09fb * Open the connection to the daemon lazily (on demand) so that read-only operations (like nix-env -qa) work properly when the daemon isn't running. Eelco Dolstra 2008-12-11 14:30:25 +0000
  • a0766eca27 * Build on Debian 4.0 (GCC 4.1.1). Eelco Dolstra 2008-12-04 21:07:29 +0000
  • cd16d5dc3d * Doh. Eelco Dolstra 2008-12-04 17:56:12 +0000
  • 5b949241a5 * Build some 64-bit RPMs/Debs. Eelco Dolstra 2008-12-04 17:54:14 +0000