summaryrefslogtreecommitdiff
path: root/nix
AgeCommit message (Collapse)Author
2013-01-11Merge branch 'core-updates'Ludovic Courtès
Conflicts: guix/build/union.scm
2013-01-09daemon: Fix warning message when running as root without a build user group.Ludovic Courtès
* nix/nix-daemon/guix-daemon.cc (main): Fix warning message when running as root without `--build-users-group'.
2013-01-09guix-daemon: Rename `--build-cores' for consistency with `guix-build'.Ludovic Courtès
* nix/nix-daemon/guix-daemon.cc (options): Change `--build-cores' to `--cores', and `-C' to `-c'. (parse_opt): Adjust accordingly.
2013-01-06Update a few more license headers.Ludovic Courtès
* distro/packages/openssl.scm, m4/guix.m4, nix/sync-with-upstream: Update headers.
2013-01-06Update license headers.Ludovic Courtès
Change all license headers, except guix/build/* and ld-wrapper.scm, with this code: (use-modules (guix build utils) (srfi srfi-1)) (fluid-set! %default-port-encoding "UTF-8") (substitute* (remove (lambda (f) (or (string-contains f ".tar.") (string-contains f ".git/") (string-contains f ".so") (string-suffix? ".o" f) (string-suffix? ".a" f) (string-suffix? ".go" f) (string-suffix? ".pdf" f) (string-suffix? ".png" f) (string-suffix? ".info" f) (equal? (basename f) "guix-daemon") (equal? (basename f) "nix-setuid-helper") (string-contains f "nix-upstream/") (string-contains f "distro/packages/bootstrap/"))) (find-files "." "\\.[a-z]+$")) (("^([[:graph:]]+) This file is part of Guix." _ comment-start) (string-append comment-start " This file is part of GNU Guix.")) (("^([[:graph:]]+) Guix --- Nix package management.*" _ comment-start) (string-append comment-start " GNU Guix --- Functional package management for GNU\n")) (("^([[:graph:]]+) Guix is " _ comment-start) (string-append comment-start " GNU Guix is ")) (("^([[:graph:]]+) along with Guix." _ comment-start) (string-append comment-start " along with GNU Guix.")) (("^([[:graph:]]+) Copyright \\(C\\)" _ comment-start) (string-append comment-start " Copyright ©"))) Change headers using C-style comments manually.
2013-01-02daemon: Show the chroot contents upon `--debug'.Ludovic Courtès
* nix/nix-daemon/guix-daemon.cc (main)[HAVE_CHROOT]: Display the contents of `settings.dirsInChroot' at `lvlDebug'.
2013-01-02daemon: Properly initialize libgcrypt.Ludovic Courtès
* nix/nix-daemon/guix-daemon.cc (main): Call `gcry_check_version'.
2012-12-16daemon: Gracefully handle Nix errors.Ludovic Courtès
* nix/nix-daemon/guix-daemon.cc (main): Run Nix code in an exception handler; gracefully print error messages, and exit with EXIT_FAILURE.
2012-12-16daemon: Warn against running as root without `--build-users-group'.Ludovic Courtès
* nix/nix-daemon/guix-daemon.cc (main): Recommend using `--build-users-group' when running as root without a build users group.
2012-12-16daemon: Add `--chroot-directory'.Ludovic Courtès
* nix/nix-daemon/guix-daemon.cc (GUIX_OPT_CHROOT_DIR): New macro. (options): Add `--chroot-directory'. (parse_opt): Handle it.
2012-12-15daemon: Add `--debug' option.Ludovic Courtès
* nix/nix-daemon/guix-daemon.cc (GUIX_OPT_DEBUG): New macro. (options): Add `--debug'. (parse_opt): Set `verbosity' upon GUIX_OPT_DEBUG.
2012-12-14daemon: Disable use of substitutes for now.Ludovic Courtès
* nix/nix-daemon/guix-daemon.cc (main): Set `settings.useSubstitutes' to false, and `settings.substituters' to the empty list.
2012-12-14build: Avoid brace expansion in `nix/sync-with-upstream'.Andreas Enge
* nix/sync-with-upstream: Avoid brace expansion, for the sake of Dash.
2012-12-06daemon: Add more options.Ludovic Courtès
* nix/nix-daemon/guix-daemon.cc (GUIX_OPT_BUILD_USERS_GROUP, GUIX_OPT_CACHE_FAILURES, GUIX_OPT_LOSE_LOGS, GUIX_OPT_DISABLE_STORE_OPTIMIZATION, GUIX_OPT_IMPERSONATE_LINUX_26): New macros. (options)["build-users-group", "cache-failures", "lose-logs", "disable-store-optimization", "impersonate-linux-2.6"]: New options. (parse_opt): Handle them.
2012-12-05daemon: Add `list-runtime-roots' script.Ludovic Courtès
* nix/scripts/list-runtime-roots.in: New file. * config-daemon.ac: Add `AC_CONFIG_FILES' invocation for it. * daemon.am (nodist_pkglibexec_SCRIPTS): New variable. (AM_TESTS_ENVIRONMENT): Define `top_builddir'. * tests/guix-daemon.sh: Export `NIX_ROOT_FINDER'. * nix/sync-with-upstream: Substitute the path to the root finder in libstore/gc.cc.
2012-12-05daemon: Disable use of chroots when support is lacking.Ludovic Courtès
* nix/nix-daemon/guix-daemon.cc (options)[!HAVE_CHROOT]: Mention that `--disable-chroot' has no effect. (main)[!HAVE_CHROOT]: Set `useChroot' to false.
2012-12-04daemon: Fix typo in libgcrypt bindings.Ludovic Courtès
* nix/libutil/md5.h (MD5_Final): Pass RESBUF as the first argument to `guix_hash_final'. * nix/libutil/sha1.h (SHA1_Final): Likewise. * nix/libutil/sha256.h (SHA256_Final): Likewise.
2012-12-03build: Add `bootstrap' and `sync-with-upstream' scripts.Ludovic Courtès
* bootstrap, nix/sync-with-upstream: New files. * Makefile.am (EXTRA_DIST): Add `bootstrap'. * daemon.am (EXTRA_DIST): Add `nix/sync-with-upstream'.
2012-12-03build: Include a copy of Nix's libstore and daemon; build it.Ludovic Courtès
* configure.ac: Call `AC_USE_SYSTEM_EXTENSIONS', and `GUIX_SYSTEM_TYPE'. Add `--with-store-dir' option, and substitute `storedir'. Include `config-daemon.ac'. * config-daemon.ac: New file. * Makefile.am [BUILD_DAEMON]: Include `daemon.am'. * daemon.am: New file. * m4/guix.m4 (GUIX_SYSTEM_TYPE): New macro. * nix/libutil/gcrypt-hash.cc, nix/libutil/gcrypt-hash.hh, nix/libutil/md5.h, nix/libutil/sha1.h, nix/libutil/sha256.h, nix/nix-daemon/guix-daemon.cc, nix/nix-daemon/shared.hh: New files.