- Aug 29, 2018
-
-
Eelco Dolstra authored
repl: don't add trailing spaces to history lines
-
Domen Kožar authored
-
Eelco Dolstra authored
libexpr: Use int64_t for NixInt
-
Domen Kožar authored
-
- Aug 28, 2018
-
-
aszlig authored
Using a 64bit integer on 32bit systems will come with a bit of a performance overhead, but given that Nix doesn't use a lot of integers compared to other types, I think the overhead is negligible also considering that 32bit systems are in decline. The biggest advantage however is that when we use a consistent integer size across all platforms it's less likely that we miss things that we break due to that. One example would be: https://github.com/NixOS/nixpkgs/pull/44233 On Hydra it will evaluate, because the evaluator runs on a 64bit machine, but when evaluating the same on a 32bit machine it will fail, so using 64bit integers should make that consistent. While the change of the type in value.hh is rather easy to do, we have a few more options available for doing the conversion in the lexer: * Via an #ifdef on the architecture and using strtol() or strtoll() accordingly depending on which architecture we are. For the #ifdef we would need another AX_COMPILE_CHECK_SIZEOF in configure.ac. * Using istringstream, which would involve copying the value. * As we're already using boost, lexical_cast might be a good idea. Spoiler: I went for the latter, first of all because lexical_cast does have an overload for const char* and second of all, because it doesn't involve copying around the input string. Also, because istringstream seems to come with a bigger overhead than boost::lexical_cast: https://www.boost.org/doc/libs/release/doc/html/boost_lexical_cast/performance.html The first method (still using strtol/strtoll) also wasn't something I pursued further, because it is also locale-aware which I doubt is what we want, given that the regex for int is [0-9]+. Signed-off-by:
aszlig <aszlig@nix.build> Fixes: #2339
-
- Aug 22, 2018
-
-
Eelco Dolstra authored
This reverts commit d277442d. Make sucks.
-
Eelco Dolstra authored
Drop dead code
-
- Aug 21, 2018
-
-
Eelco Dolstra authored
Ubuntu 17.10 doesn't have libbrotli. https://hydra.nixos.org/build/79867741
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
- Aug 19, 2018
-
-
Tuomas Tynkkynen authored
Dead code since https://github.com/NixOS/nixpkgs/commit/6669a3b47711dc967df0ea8ff93fa9857aad015d
-
Tuomas Tynkkynen authored
It's all dead code since 2014 (commit 0c6d62cf).
-
Eelco Dolstra authored
Fixes #2359.
-
Eelco Dolstra authored
Fixes #2361.
-
- Aug 17, 2018
-
-
Eelco Dolstra authored
Fun fact: rules with multiple targets don't work properly with 'make -j'. For example, a rule like a b: c touch a b is equivalent to a: c touch a b b: c touch a b so with 'make -j', the 'touch' command will be run twice. See e.g. https://stackoverflow.com/questions/2973445/gnu-makefile-rule-generating-a-few-targets-from-a-single-source-file.
-
- Aug 13, 2018
-
-
Eelco Dolstra authored
update config/config.{sub,guess}
-
Eelco Dolstra authored
ignore when listxattr fails with ENODATA
-
volth authored
Just curl 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD' > config/config.sub curl 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD' > config/config.guess Those files are 5 years old and failed to guess new archs ("ppc64-linux")
-
Symphorien Gibol authored
This happens on CIFS and means the remote filesystem has no extended attributes.
-
- Aug 10, 2018
-
-
Eelco Dolstra authored
-
- Aug 09, 2018
-
-
Eelco Dolstra authored
TransferManager allocates a lot of memory (50 MiB by default), and it might leak but I'm not sure about that. In any case it was causing OOMs in hydra-queue-runner. So allocate only one TransferManager per S3BinaryCacheStore. Hopefully fixes https://github.com/NixOS/hydra/issues/586.
-
Eelco Dolstra authored
Also, add $path/bin to $PATH even if it doesn't exist. This makes 'man' work properly (since it looks for ../share/man relative to $PATH entries).
-
- Aug 08, 2018
-
-
Eelco Dolstra authored
This callback is executed on a different thread, so exceptions thrown from the callback are not caught: Aug 08 16:25:48 chef hydra-queue-runner[11967]: terminate called after throwing an instance of 'nix::Error' Aug 08 16:25:48 chef hydra-queue-runner[11967]: what(): AWS error: failed to upload 's3://nix-cache/19dbddlfb0vp68g68y19p9fswrgl0bg7.ls' Therefore, just check the transfer status after it completes. Also include the S3 error message in the exception.
-
- Aug 07, 2018
-
-
Ivan Kozik authored
-
- Aug 06, 2018
-
-
Eelco Dolstra authored
Revert "progress-bar: re-draw last update if nothing new for 1sec."
-
Eelco Dolstra authored
-
Eelco Dolstra authored
This didn't work anymore since decompression was only done in the non-coroutine case. Decompressors are now sinks, just like compressors. Also fixed a bug in bzip2 API handling (we have to handle BZ_RUN_OK rather than BZ_OK), which we didn't notice because there was a missing 'throw': if (ret != BZ_OK) CompressionError("error while compressing bzip2 file");
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
- Aug 03, 2018
-
-
Eelco Dolstra authored
It adds a new operation, cmdAddToStoreNar, that does the same thing as the corresponding nix-daemon operation, i.e. call addToStore(). This replaces cmdImportPaths, which has the major issue that it sends the NAR first and the store path second, thus requiring us to store the incoming NAR either in memory or on disk until we decide what to do with it. For example, this reduces the memory usage of $ nix copy --to 'ssh://localhost?remote-store=/tmp/nix' /nix/store/95cwv4q54dc6giaqv6q6p4r02ia2km35-blender-2.79 from 267 MiB to 12 MiB. Probably fixes #1988.
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
This is primarily useful for testing since it removes the need to have SSH working.
-
Eelco Dolstra authored
This is primarily useful for testing, e.g. $ nix copy --to 'ssh://localhost?remote-store=/tmp/nix' ...
-
Eelco Dolstra authored
2.1 release notes: Add note about s3-compatible stores
-
Graham Christensen authored
-
Eelco Dolstra authored
-