jackhill/guix/guix.git
11 years agodistro: Add rsync.
Andreas Enge [Fri, 21 Dec 2012 10:37:46 +0000 (11:37 +0100)]
distro: Add rsync.

* distro/packages/rsync.scm: New file.
* Makefile.am (MODULES): Add it.

11 years agodistro: Add mpfrcx and fplll.
Andreas Enge [Wed, 19 Dec 2012 22:50:52 +0000 (23:50 +0100)]
distro: Add mpfrcx and fplll.

* distro/packages/algebra.scm: New file.
* Makefile.am (MODULES): Add it.

11 years agodistro: Add Usbutils.
Nikita Karetnikov [Mon, 17 Dec 2012 20:29:06 +0000 (20:29 +0000)]
distro: Add Usbutils.

* distro/packages/linux.scm (usbutils): New variable.

11 years agodistro: Add Libusb.
Nikita Karetnikov [Tue, 18 Dec 2012 22:34:52 +0000 (22:34 +0000)]
distro: Add Libusb.

* distro/packages/libusb.scm: New file.
* Makefile.am (MODULES): Add it.

11 years agodistro: Add Check.
Nikita Karetnikov [Sun, 16 Dec 2012 20:14:02 +0000 (20:14 +0000)]
distro: Add Check.

* distro/packages/check.scm: New file.
* Makefile.am (MODULES): Add it.

11 years agodownload: Remove unreachable SourceForge mirror.
Ludovic Courtès [Sun, 16 Dec 2012 23:18:15 +0000 (00:18 +0100)]
download: Remove unreachable SourceForge mirror.

* guix/download.scm (%mirrors)[sourceforge]: Remove kent.dl.*, which is
  unreachable.

11 years agodownload: Correctly detect "No route to host" conditions.
Ludovic Courtès [Sun, 16 Dec 2012 23:14:30 +0000 (00:14 +0100)]
download: Correctly detect "No route to host" conditions.

* guix/build/download.scm (open-connection-for-uri): Delete addrinfos
  with the same address.  Always open SOCK_STREAM/IPPROTO_IP sockets.
  Fix the error handler's condition to determine what to do.
  Reported by Nikita Karetnikov <nikita.karetnikov@gmail.com> at
  <http://lists.gnu.org/archive/html/bug-guix/2012-12/msg00150.html>.

11 years agodaemon: Gracefully handle Nix errors.
Ludovic Courtès [Sun, 16 Dec 2012 17:28:00 +0000 (18:28 +0100)]
daemon: Gracefully handle Nix errors.

* nix/nix-daemon/guix-daemon.cc (main): Run Nix code in an exception
  handler; gracefully print error messages, and exit with EXIT_FAILURE.

11 years agodaemon: Warn against running as root without `--build-users-group'.
Ludovic Courtès [Sun, 16 Dec 2012 17:13:59 +0000 (18:13 +0100)]
daemon: Warn against running as root without `--build-users-group'.

* nix/nix-daemon/guix-daemon.cc (main): Recommend using
  `--build-users-group' when running  as root without a build users
  group.

11 years agodaemon: Add `--chroot-directory'.
Ludovic Courtès [Sun, 16 Dec 2012 17:09:27 +0000 (18:09 +0100)]
daemon: Add `--chroot-directory'.

* nix/nix-daemon/guix-daemon.cc (GUIX_OPT_CHROOT_DIR): New macro.
  (options): Add `--chroot-directory'.
  (parse_opt): Handle it.

11 years agoguix-build: Add `--verbosity'.
Ludovic Courtès [Sat, 15 Dec 2012 14:21:38 +0000 (15:21 +0100)]
guix-build: Add `--verbosity'.

* guix-build.in (%default-options): Add `verbosity'.
  (%options): Add `--verbosity'.
  (guix-build): Pass it to `set-build-options'.
  (show-help): Update accordingly.
* doc/guix.texi (Invoking guix-build): Document `--verbosity'.

11 years agodaemon: Add `--debug' option.
Ludovic Courtès [Fri, 14 Dec 2012 23:06:09 +0000 (00:06 +0100)]
daemon: Add `--debug' option.

* nix/nix-daemon/guix-daemon.cc (GUIX_OPT_DEBUG): New macro.
  (options): Add `--debug'.
  (parse_opt): Set `verbosity' upon GUIX_OPT_DEBUG.

11 years agodaemon: Disable use of substitutes for now.
Ludovic Courtès [Fri, 14 Dec 2012 22:51:20 +0000 (23:51 +0100)]
daemon: Disable use of substitutes for now.

* nix/nix-daemon/guix-daemon.cc (main): Set `settings.useSubstitutes' to
  false, and `settings.substituters' to the empty list.

11 years agodistro: Use (guix licenses) instead of strings.
Nikita Karetnikov [Fri, 14 Dec 2012 15:14:04 +0000 (15:14 +0000)]
distro: Use (guix licenses) instead of strings.

* distro/packages/acl.scm, distro/packages/attr.scm,
  distro/packages/autotools.scm, distro/packages/base.scm,
  distro/packages/bash.scm, distro/packages/bdw-gc.scm,
  distro/packages/bison.scm, distro/packages/bootstrap.scm,
  distro/packages/compression.scm, distro/packages/cpio.scm,
  distro/packages/ddrescue.scm, distro/packages/ed.scm,
  distro/packages/flex.scm, distro/packages/gawk.scm,
  distro/packages/gdbm.scm, distro/packages/gettext.scm,
  distro/packages/gnupg.scm, distro/packages/gnutls.scm,
  distro/packages/gperf.scm, distro/packages/guile.scm,
  distro/packages/help2man.scm, distro/packages/less.scm,
  distro/packages/libffi.scm, distro/packages/libsigsegv.scm,
  distro/packages/libunistring.scm, distro/packages/linux.scm,
  distro/packages/lout.scm, distro/packages/lsh.scm,
  distro/packages/m4.scm, distro/packages/multiprecision.scm,
  distro/packages/nano.scm, distro/packages/ncurses.scm,
  distro/packages/nettle.scm, distro/packages/perl.scm,
  distro/packages/pkg-config.scm, distro/packages/pth.scm,
  distro/packages/readline.scm, distro/packages/recutils.scm,
  distro/packages/shishi.scm, distro/packages/system.scm,
  distro/packages/texinfo.scm, distro/packages/time.scm,
  distro/packages/wget.scm, distro/packages/which.scm,
  distro/packages/zile.scm: Use (guix licenses).

11 years agobuild: Avoid brace expansion in `nix/sync-with-upstream'.
Andreas Enge [Fri, 14 Dec 2012 10:47:09 +0000 (11:47 +0100)]
build: Avoid brace expansion in `nix/sync-with-upstream'.

* nix/sync-with-upstream: Avoid brace expansion, for the sake of Dash.

11 years agodaemon: Build `nix-setuid-helper'.
Ludovic Courtès [Fri, 14 Dec 2012 17:15:37 +0000 (18:15 +0100)]
daemon: Build `nix-setuid-helper'.

* daemon.am (libexec_PROGRAMS, nix_setuid_helper_SOURCES,
  nix_setuid_helper_CPPFLAGS, nix_setuid_helper_LDADD): New variables.
* test-env.in: Set and export `NIX_SETUID_HELPER'.
* README (Installing Guix as non-root): New section.

11 years agodownload: Work around (web client) bug <http://bugs.gnu.org/13095>.
Ludovic Courtès [Fri, 14 Dec 2012 17:07:10 +0000 (18:07 +0100)]
download: Work around (web client) bug <bugs.gnu.org/13095>.

* guix/build/download.scm: Annihilate `shutdown' in (web client).

11 years agorelease.nix: Remove trailing "/nix" from localstatedir.
Ludovic Courtès [Fri, 14 Dec 2012 09:44:22 +0000 (10:44 +0100)]
release.nix: Remove trailing "/nix" from localstatedir.

* release.nix (tarball, build): Use /nix/var as localstatedir, as a
  follow-up to 7f4f065.

11 years agobuild: Fix default value of `%state-directory'.
Ludovic Courtès [Thu, 13 Dec 2012 22:53:37 +0000 (23:53 +0100)]
build: Fix default value of `%state-directory'.

* guix/config.scm.in (%state-directory): Append `/nix'.
  Reported by Andreas Enge <andreas@enge.fr>.

11 years agobuild: Have `bootstrap' run all the necessary steps.
Ludovic Courtès [Thu, 13 Dec 2012 22:45:38 +0000 (23:45 +0100)]
build: Have `bootstrap' run all the necessary steps.

* bootstrap: Always run "git submodule init".  Run
  `nix/sync-with-upstream'.
  Reported by Nikita Karetnikov and Andreas Enge.

11 years agoguix-package: Avoid use of the `guix' sub-directory for profiles.
Ludovic Courtès [Thu, 13 Dec 2012 22:02:22 +0000 (23:02 +0100)]
guix-package: Avoid use of the `guix' sub-directory for profiles.

* guix-package.in (%current-profile): Change to `guix-profile'.

11 years agorelease.nix: tarball: Fix typo.
Ludovic Courtès [Thu, 13 Dec 2012 21:53:45 +0000 (22:53 +0100)]
release.nix: tarball: Fix typo.

* release.nix (tarball): Replace "gnulib" by "nix".

11 years agoguix-package: Use directory names from (guix config).
Ludovic Courtès [Thu, 13 Dec 2012 21:53:05 +0000 (22:53 +0100)]
guix-package: Use directory names from (guix config).

* guix-package.in (%profile-directory): Use %STATE-DIRECTORY instead of
  a hard-coded directory.

11 years agodistro: lout: Comment out dependency on Ghostscript.
Ludovic Courtès [Thu, 13 Dec 2012 21:28:34 +0000 (22:28 +0100)]
distro: lout: Comment out dependency on Ghostscript.

* distro/packages/lout.scm (lout): Temporarily comment out dependency on
  Ghostscript as this was causing evaluation errors on Hydra.

11 years agoMerge branch 'nix-integration'
Ludovic Courtès [Thu, 13 Dec 2012 21:14:25 +0000 (22:14 +0100)]
Merge branch 'nix-integration'

Conflicts:
tests/guix-package.sh

11 years agorelease.nix: Add `build_disable_daemon'.
Ludovic Courtès [Thu, 13 Dec 2012 21:08:33 +0000 (22:08 +0100)]
release.nix: Add `build_disable_daemon'.

* release.nix (build_disable_daemon): New job.

11 years agorelease.nix: build: Allow builds within a chroot.
Ludovic Courtès [Thu, 13 Dec 2012 21:08:13 +0000 (22:08 +0100)]
release.nix: build: Allow builds within a chroot.

* release.nix (build): Remove `__noChroot' and `preConfigure'.

11 years agotests: Skip network-dependent tests when the network is unreachable.
Ludovic Courtès [Thu, 13 Dec 2012 21:06:45 +0000 (22:06 +0100)]
tests: Skip network-dependent tests when the network is unreachable.

* tests/builders.scm (network-reachable?): New variable.
  ("url-fetch", "gnu-build"): Skip unless NETWORK-REACHABLE?.
* tests/derivations.scm (%coreutils): Check for network access.
  ("build-expression->derivation with one input"): Skip when %COREUTILS
  is #f.
* tests/guix-package.sh: Skip installation of GNU Make when the network
  is unreachable.
* tests/packages.scm ("GNU Make, bootstrap"): Likewise.
* tests/union.scm ("union-build"): Likewise.

11 years agorelease.nix: Build the daemon.
Ludovic Courtès [Wed, 12 Dec 2012 23:28:51 +0000 (00:28 +0100)]
release.nix: Build the daemon.

* release.nix (tarball): Add `preAutoconf'.  Augment `buildInputs' and
  `configureFlags' to allow daemon builds.
  (build): Likewise.

11 years agobuild: Make `--enable-daemon' the default.
Ludovic Courtès [Wed, 12 Dec 2012 23:27:27 +0000 (00:27 +0100)]
build: Make `--enable-daemon' the default.

* configure.ac: Have $guix_build_daemon default to "yes".

11 years agobuild: When `--enable-daemon', don't error out when Nix programs are missing.
Ludovic Courtès [Wed, 12 Dec 2012 23:26:41 +0000 (00:26 +0100)]
build: When `--enable-daemon', don't error out when Nix programs are missing.

* config-daemon.ac: Move AC_ARG_ENABLE([daemon]...)...
* configure.ac: ... here.
  When Nix programs are not found, error out only when
  $guix_build_daemon is no.

11 years agotests: Arrange to have the socket file name fit in `sun_path'.
Ludovic Courtès [Wed, 12 Dec 2012 23:24:27 +0000 (00:24 +0100)]
tests: Arrange to have the socket file name fit in `sun_path'.

* test-env.in (NIX_STATE_DIR): Choose a slightly smaller directory name.

11 years agotests: base32: Work around `system*' bug.
Ludovic Courtès [Wed, 12 Dec 2012 23:23:20 +0000 (00:23 +0100)]
tests: base32: Work around `system*' bug.

* tests/base32.scm (%nix-hash): When `getenv' returns the empty string,
  ignore it.
  (%have-nix-hash?): New variable.  Update `test-skip' clause to use it.

11 years agodaemon: Use `openssl' from $PATH.
Ludovic Courtès [Wed, 12 Dec 2012 14:32:35 +0000 (15:32 +0100)]
daemon: Use `openssl' from $PATH.

* daemon.am (-DOPENSSL_PATH): Default to "openssl".
* TODO: Mention removal of OpenSSL dependency.

11 years agoguix-package: Add `--verbose'; silence the environment's build by default.
Ludovic Courtès [Wed, 12 Dec 2012 13:59:16 +0000 (14:59 +0100)]
guix-package: Add `--verbose'; silence the environment's build by default.

* guix-package.in (%options): Add `--verbose'.
  (show-help): Update accordingly.
  (guix-package): Parameterize `current-build-output-port' according to
  VERBOSE?.  By default, silence the environment build's output.

11 years agodoc: Fix typos.
Ludovic Courtès [Wed, 12 Dec 2012 13:46:43 +0000 (14:46 +0100)]
doc: Fix typos.

* doc/guix.texi: Fix typos.  Reported by Andreas Enge <andreas@enge.fr>.

11 years agolicenses: Add 'bsd-style', 'expat', 'gpl1', 'gpl1+', 'lgpl2.0', and 'lgpl2.0+'.
Nikita Karetnikov [Wed, 12 Dec 2012 05:41:53 +0000 (05:41 +0000)]
licenses: Add 'bsd-style', 'expat', 'gpl1', 'gpl1+', 'lgpl2.0', and 'lgpl2.0+'.

* guix/licenses.scm (bsd-style, expat, gpl1, gpl1+)
  (lgpl2.0, lgpl2.0+): New variables.

11 years agotests: Remove `t-profile' files on exit.
Ludovic Courtès [Tue, 11 Dec 2012 23:10:32 +0000 (00:10 +0100)]
tests: Remove `t-profile' files on exit.

* tests/guix-package.sh: Use a trap on EXIT to remove profile-related
  files.  Reported by Andreas Enge <andreas@enge.fr>.

11 years agoguix-package: Gracefully handle multiple installs of the same path.
Ludovic Courtès [Tue, 11 Dec 2012 23:01:17 +0000 (00:01 +0100)]
guix-package: Gracefully handle multiple installs of the same path.

* guix-package.in (guix-package)[process-actions]: Compute PACKAGES such
  that packages listed in INSTALL* are first removed from the remainder
  of the list.  When PROF is equal to the previous profile's store path,
  do nothing.  Reported by Andreas Enge <andreas@enge.fr>.
* tests/guix-package.sh: Test the behavior of installing the same store
  path twice.  When removing a package, omit its version number.

11 years agoHave `%nixpkgs-directory' default to #f when $NIXPKGS is the empty string.
Ludovic Courtès [Mon, 10 Dec 2012 21:53:28 +0000 (22:53 +0100)]
Have `%nixpkgs-directory' default to #f when $NIXPKGS is the empty string.

* guix/utils.scm (%nixpkgs-directory): Set to #f when the `NIXPKGS'
  environment variable is set but empty.  Reported by
  Andreas Enge <andreas@enge.fr>.

11 years agodistro: lout: Delay use of of `nixpkgs-derivation'.
Ludovic Courtès [Mon, 10 Dec 2012 13:35:03 +0000 (14:35 +0100)]
distro: lout: Delay use of of `nixpkgs-derivation'.

* distro/packages/lout.scm (lout): Don't fork with `nixpkgs-derivation',
  to avoid any issues in the absence of `nix-instantiate'.

11 years agoderivations: Distinguish direct store paths from files within a store path.
Ludovic Courtès [Sun, 9 Dec 2012 23:44:17 +0000 (00:44 +0100)]
derivations: Distinguish direct store paths from files within a store path.

* guix/derivations.scm (derivation)[direct-store-path?]: New procedure.
  Use it to determine which inputs must be added to the store.

11 years agoMerge branch 'master' into nix-integration
Ludovic Courtès [Sun, 9 Dec 2012 22:54:37 +0000 (23:54 +0100)]
Merge branch 'master' into nix-integration

Conflicts:
guix/store.scm

11 years agostore: Add GC-related operations.
Ludovic Courtès [Sun, 9 Dec 2012 22:52:59 +0000 (23:52 +0100)]
store: Add GC-related operations.

* guix/store.scm (gc-action): New enumerate type.
  (read-long-long, read-string-list, write-store-path,
  write-store-path-list, read-store-path-list): New procedures.
  (write-arg): Add support for `store-path' and `store-path-list'.
  (read-arg): Add support for `store-path-list'.
  (define-operation): Add support for multiple-value returns.
  (run-gc, live-paths, dead-paths, collect-garbage, delete-paths): New
  procedures.
  (%long-long-max): New macro.
* tests/store.scm: New file.
* Makefile.am (TESTS): Add it.

11 years agostore: Add `add-temp-root'.
Ludovic Courtès [Sun, 9 Dec 2012 22:50:17 +0000 (23:50 +0100)]
store: Add `add-temp-root'.

* guix/store.scm (add-temp-root): New procedure.

11 years agoUpdate `THANKS'.
Ludovic Courtès [Sun, 9 Dec 2012 22:35:15 +0000 (23:35 +0100)]
Update `THANKS'.

11 years agodoc: Correct short name of `--install' option of `guix-package'.
Ludovic Courtès [Sun, 9 Dec 2012 22:35:03 +0000 (23:35 +0100)]
doc: Correct short name of `--install' option of `guix-package'.

* doc/guix.texi (Invoking guix-package): Fix short form of `--install'.
  Reported by Andreas Enge <andreas@enge.fr>.

11 years agodaemon: Update to Nix 1.2-1-ge087bfe.
Ludovic Courtès [Sun, 9 Dec 2012 13:54:01 +0000 (14:54 +0100)]
daemon: Update to Nix 1.2-1-ge087bfe.

11 years agoUpdate `TODO'.
Ludovic Courtès [Sun, 9 Dec 2012 13:44:17 +0000 (14:44 +0100)]
Update `TODO'.

11 years agoChange email address in `AUTHORS'.
Ludovic Courtès [Sun, 9 Dec 2012 13:42:30 +0000 (14:42 +0100)]
Change email address in `AUTHORS'.

11 years agoUpdate `AUTHORS'.
Ludovic Courtès [Sat, 8 Dec 2012 18:21:47 +0000 (19:21 +0100)]
Update `AUTHORS'.

11 years agoAdd (guix licenses).
Nikita Karetnikov [Sat, 8 Dec 2012 01:48:17 +0000 (01:48 +0000)]
Add (guix licenses).

* guix/licenses.scm: New file.
* Makefile.am (MODULES): Add it.

11 years agodownload: Fix the primary Savannah URL.
Ludovic Courtès [Fri, 7 Dec 2012 20:06:03 +0000 (21:06 +0100)]
download: Fix the primary Savannah URL.

* guix/download.scm (%mirrors)[savannah]: Use
  "http://download.savannah.gnu.org/releases/" as the primary URL.

11 years agodistro: Add ACL.
Nikita Karetnikov [Fri, 7 Dec 2012 01:18:23 +0000 (01:18 +0000)]
distro: Add ACL.

* distro/packages/acl.scm: New file.  Dependency on Perl added by
  Ludovic.
* Makefile.am (MODULES): Add it.

11 years agodistro: Add Attr.
Nikita Karetnikov [Fri, 7 Dec 2012 00:59:30 +0000 (00:59 +0000)]
distro: Add Attr.

* distro/packages/attr.scm: New file.  Dependency on Perl and
  `patch-shebang' added by Ludovic.
* Makefile.am (MODULES): Add it.

11 years agodoc: Add new dependencies in `README'.
Ludovic Courtès [Thu, 6 Dec 2012 21:54:10 +0000 (22:54 +0100)]
doc: Add new dependencies in `README'.

* README (Hacking): Rename to...
  (Requirements): ... this.  Add the daemon's dependencies.

11 years agodaemon: Add more options.
Ludovic Courtès [Thu, 6 Dec 2012 21:21:45 +0000 (22:21 +0100)]
daemon: Add more options.

* 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.

11 years agobuild: Update skip count in `tests/derivations.scm'.
Ludovic Courtès [Wed, 5 Dec 2012 23:05:11 +0000 (00:05 +0100)]
build: Update skip count in `tests/derivations.scm'.

* tests/derivations.scm: When %STORE if #f, skip 11 tests.

11 years agobuild: Run `distcheck' with `--enable-daemon'.
Ludovic Courtès [Wed, 5 Dec 2012 23:04:43 +0000 (00:04 +0100)]
build: Run `distcheck' with `--enable-daemon'.

* Makefile.am (AM_DISTCHECK_CONFIGURE_FLAGS): Add `--enable-daemon'.

11 years agobuild: Add missing daemon header to the distribution.
Ludovic Courtès [Wed, 5 Dec 2012 23:04:00 +0000 (00:04 +0100)]
build: Add missing daemon header to the distribution.

* daemon.am (guix_daemon_headers): New variable.
  (noinst_HEADERS): Add it.

11 years agobuild: Capture configure-time settings in (guix config).
Ludovic Courtès [Wed, 5 Dec 2012 22:02:47 +0000 (23:02 +0100)]
build: Capture configure-time settings in (guix config).

* configure.ac: Compute and substitute `guix_localstatedir'.
* m4/guix.m4: Substitute `guix_system'.
* guix/config.scm.in (%store-directory, %store-directory, %system): New
  variables.
* guix/store.scm (%nix-state-dir): Remove.
  (%default-socket-path): Use %STATE-DIRECTORY as the default.
  (%store-prefix): Use %STORE-DIRECTORY as the default.
* guix/utils.scm (%current-system): Default to %SYSTEM.

11 years agobuild: Run all the tests against the just-built daemon.
Ludovic Courtès [Wed, 5 Dec 2012 23:03:26 +0000 (00:03 +0100)]
build: Run all the tests against the just-built daemon.

* test-env.in: New file.
* configure.ac: Add it to `AC_CONFIG_FILES' and `commands-exec'.
* config-daemon.ac: Set and substitute `GUIX_TEST_ROOT'.
* Makefile.am (SCM_LOG_COMPILER, SH_LOG_COMPILER): Use it in lieu of
  `pre-inst-env'.
* daemon.am (test_root): Remove
  (AM_TESTS_ENVIRONMENT): Remove `TEST_ROOT'.
  (clean-local): Use $(GUIX_TEST_ROOT); make files writable before
  removing them.guix_test_root
* tests/guix-daemon.sh: Remove `NIX_' variable settings; don't launch
  `guix-daemon'.

11 years agotests: Remove hard-coded /nix/store.
Ludovic Courtès [Wed, 5 Dec 2012 21:41:58 +0000 (22:41 +0100)]
tests: Remove hard-coded /nix/store.

* tests/utils.scm ("store-path-package-name"): Use (%store-prefix)
  instead of a hard-coded "/nix/store".

11 years agodaemon: Add `list-runtime-roots' script.
Ludovic Courtès [Wed, 5 Dec 2012 15:29:28 +0000 (16:29 +0100)]
daemon: Add `list-runtime-roots' script.

* 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.

11 years agodaemon: Disable use of chroots when support is lacking.
Ludovic Courtès [Wed, 5 Dec 2012 14:22:28 +0000 (15:22 +0100)]
daemon: Disable use of chroots when support is lacking.

* nix/nix-daemon/guix-daemon.cc (options)[!HAVE_CHROOT]: Mention that
  `--disable-chroot' has no effect.
  (main)[!HAVE_CHROOT]: Set `useChroot' to false.

11 years agoAdd (guix gnu-maintenance).
Nikita Karetnikov [Tue, 4 Dec 2012 23:02:22 +0000 (23:02 +0000)]
Add (guix gnu-maintenance).

* guix/gnu-maintenance.scm: New file.
* Makefile.am (MODULES): Add it.

11 years agodaemon: Add test.
Ludovic Courtès [Tue, 4 Dec 2012 22:16:11 +0000 (23:16 +0100)]
daemon: Add test.

* daemon.am (test_root, AM_TESTS_ENVIRONMENT): New variables.
  (clean-local): New target.
* tests/guix-daemon.sh: New file.

11 years agobuild: daemon: Add missing feature tests.
Ludovic Courtès [Tue, 4 Dec 2012 22:13:59 +0000 (23:13 +0100)]
build: daemon: Add missing feature tests.

* config-daemon.ac: Add feature tests needed for the daemon code.  Taken
  from Nix's `configure.ac'.

11 years agobuild: daemon: Remove extraneous quotes in CPP macro `SYSTEM'.
Ludovic Courtès [Tue, 4 Dec 2012 22:12:40 +0000 (23:12 +0100)]
build: daemon: Remove extraneous quotes in CPP macro `SYSTEM'.

* config-daemon.ac: Remove extraneous quotes in definition of `SYSTEM'.

11 years agodaemon: Fix typo in libgcrypt bindings.
Ludovic Courtès [Tue, 4 Dec 2012 22:10:54 +0000 (23:10 +0100)]
daemon: Fix typo in libgcrypt bindings.

* 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.

11 years agoMerge branch 'master' into nix-integration
Ludovic Courtès [Tue, 4 Dec 2012 22:51:31 +0000 (23:51 +0100)]
Merge branch 'master' into nix-integration

11 years agoguix-build: Don't connect to the daemon when run with `--version' or `--help'.
Ludovic Courtès [Tue, 4 Dec 2012 22:50:20 +0000 (23:50 +0100)]
guix-build: Don't connect to the daemon when run with `--version' or `--help'.

* guix-build.in (%store): Turn into a SRFI-39 parameter.  Update users.
  (guix-build): Set %STORE and call `open-connection' only after
  `parse-options' has been called.

11 years agostore: Honor $NIX_STORE_DIR and $NIX_STATE_DIR.
Ludovic Courtès [Tue, 4 Dec 2012 22:48:21 +0000 (23:48 +0100)]
store: Honor $NIX_STORE_DIR and $NIX_STATE_DIR.

* guix/store.scm (%nix-state-dir): Honor $NIX_STATE_DIR.
  (%store-prefix): Honor $NIX_STORE_DIR.

11 years agoderivations: Fix erroneous call to `add-to-store' for local files as input.
Ludovic Courtès [Tue, 4 Dec 2012 22:46:50 +0000 (23:46 +0100)]
derivations: Fix erroneous call to `add-to-store' for local files as input.

* guix/derivations.scm (derivation)[inputs]: Fix typo in call to
  `add-to-store'.
* tests/derivations.scm ("derivation with local file as input"): New test.
* tests/packages.scm ("trivial with local file as input"): New test.

11 years agoAugment `TODO'.
Ludovic Courtès [Tue, 4 Dec 2012 21:04:03 +0000 (22:04 +0100)]
Augment `TODO'.

11 years agodistro: Add GNU lsh.
Ludovic Courtès [Tue, 4 Dec 2012 21:03:21 +0000 (22:03 +0100)]
distro: Add GNU lsh.

* distro/packages/lsh.scm,
  distro/packages/patches/lsh-guile-compat.patch:
  distro/packages/patches/lsh-no-root-login.patch:
  distro/packages/patches/lsh-pam-service-name.patch: New files.
* Makefile.am (MODULES): Add lsh.scm.
  (dist_patch_DATA): Add the above patches.

11 years agodistro: Add util-linux.
Nikita Karetnikov [Mon, 3 Dec 2012 23:13:02 +0000 (23:13 +0000)]
distro: Add util-linux.

* distro/packages/linux.scm (util-linux): New variable.

11 years agodistro: Add psmisc.
Ludovic Courtès [Mon, 3 Dec 2012 23:17:49 +0000 (00:17 +0100)]
distro: Add psmisc.

* distro/packages/linux.scm (psmisc): New variable.

11 years agobuild: Add `bootstrap' and `sync-with-upstream' scripts.
Ludovic Courtès [Mon, 3 Dec 2012 21:43:26 +0000 (22:43 +0100)]
build: Add `bootstrap' and `sync-with-upstream' scripts.

* bootstrap, nix/sync-with-upstream: New files.
* Makefile.am (EXTRA_DIST): Add `bootstrap'.
* daemon.am (EXTRA_DIST): Add `nix/sync-with-upstream'.

11 years agobuild: Add Nix as a sub-module.
Ludovic Courtès [Sun, 2 Dec 2012 21:54:19 +0000 (22:54 +0100)]
build: Add Nix as a sub-module.

* .gitmodules, nix-upstream: New files.

11 years agobuild: Include a copy of Nix's libstore and daemon; build it.
Ludovic Courtès [Mon, 3 Dec 2012 22:04:47 +0000 (23:04 +0100)]
build: Include a copy of Nix's libstore and daemon; build it.

* 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.

11 years agodistro: make-bootstrap: Use `linux' module.
Ludovic Courtès [Sun, 2 Dec 2012 21:32:09 +0000 (22:32 +0100)]
distro: make-bootstrap: Use `linux' module.

* distro/packages/make-bootstrap.scm: Use (distro packages linux).  This
  is a followup to 80fe5c6.

11 years agodistro: gnutls: Build sequentially.
Ludovic Courtès [Fri, 30 Nov 2012 23:59:08 +0000 (00:59 +0100)]
distro: gnutls: Build sequentially.

* distro/packages/gnutls.scm (gnutls)[arguments]: New field.

11 years agodistro: guile-2.0: Update to 2.0.7.
Ludovic Courtès [Fri, 30 Nov 2012 21:01:47 +0000 (22:01 +0100)]
distro: guile-2.0: Update to 2.0.7.

* distro/packages/guile.scm (guile-2.0): Switch to 2.0.7.
  (guile-2.0/fixed): Stay at 2.0.6.

11 years agodistro: Add `guile-2.0/fixed', which should rarely change.
Ludovic Courtès [Fri, 30 Nov 2012 20:37:41 +0000 (21:37 +0100)]
distro: Add `guile-2.0/fixed', which should rarely change.

* distro/packages/guile.scm (guile-2.0/fixed): New variable.
* distro/packages/base.scm (guile-final): Use it.

11 years agodistro: Import 'gettext' under a different name.
Nikita Karetnikov [Tue, 27 Nov 2012 20:06:18 +0000 (20:06 +0000)]
distro: Import 'gettext' under a different name.

* distro/packages/nano.scm, distro/packages/wget.scm: Import 'gettext'
  from (distro packages gettext) under 'guix:gettext'.

11 years agodistro: linux-libre-headers: Move to (distro packages linux).
Ludovic Courtès [Tue, 27 Nov 2012 21:04:57 +0000 (22:04 +0100)]
distro: linux-libre-headers: Move to (distro packages linux).

* distro/packages/base.scm (linux-libre-headers): Move to...
* distro/packages/linux.scm (linux-libre-headers): ... here.

11 years agodistro: Add Linux-PAM.
Ludovic Courtès [Tue, 27 Nov 2012 20:56:37 +0000 (21:56 +0100)]
distro: Add Linux-PAM.

* distro/packages/linux.scm: New file.
* Makefile.am (MODULES): Add it.

11 years agodownload: Add kernel.org mirrors.
Ludovic Courtès [Tue, 27 Nov 2012 20:55:53 +0000 (21:55 +0100)]
download: Add kernel.org mirrors.

* guix/download.scm (%mirrors): Add `kernel.org' mirrors.

11 years agodownload: Keep only one slash when concatenating URIs.
Ludovic Courtès [Tue, 27 Nov 2012 20:33:54 +0000 (21:33 +0100)]
download: Keep only one slash when concatenating URIs.

* guix/build/download.scm (url-fetch)[uri-vicinity]: New procedure.
  [maybe-expand-mirrors]: Use it.

11 years agodistro: flex: Fix module name.
Ludovic Courtès [Tue, 27 Nov 2012 20:33:00 +0000 (21:33 +0100)]
distro: flex: Fix module name.

* distro/packages/flex.scm: Change the module name to (distro packages
  flex).

11 years agodistro: Add GNU Cpio.
Nikita Karetnikov [Sun, 25 Nov 2012 21:45:42 +0000 (22:45 +0100)]
distro: Add GNU Cpio.

* distro/packages/cpio.scm,
  distro/packages/patches/cpio-gets-undeclared.patch: New files.
* Makefile.am (MODULES): Add 'cpio.scm'.
  (dist_patch_DATA): Add 'cpio-gets-undeclared.patch'.

11 years agodistro: Add GNU Time.
Nikita Karetnikov [Sun, 25 Nov 2012 17:41:21 +0000 (17:41 +0000)]
distro: Add GNU Time.

* distro/packages/time.scm: New file.
* Makefile.am (MODULES): Add it.

11 years agodistro: Add GNU Which.
Nikita Karetnikov [Sun, 25 Nov 2012 16:19:39 +0000 (16:19 +0000)]
distro: Add GNU Which.

* distro/packages/which.scm: New file.
* Makefile.am (MODULES): Add it.

11 years agobuild: Have `hydra.scm' return one job per package.
Ludovic Courtès [Sun, 25 Nov 2012 16:12:46 +0000 (17:12 +0100)]
build: Have `hydra.scm' return one job per package.

* hydra.scm (hydra-jobs): Return one job for each non-bootstrap package.

11 years agopackages: Add missing export.
Ludovic Courtès [Sun, 25 Nov 2012 15:55:35 +0000 (16:55 +0100)]
packages: Add missing export.

* guix/packages.scm: Export `package-home-page'.

11 years agodistro: Search bootstrap binaries and patches in %LOAD-PATH.
Ludovic Courtès [Sun, 25 Nov 2012 15:28:52 +0000 (16:28 +0100)]
distro: Search bootstrap binaries and patches in %LOAD-PATH.

* Makefile.am (patchdir, bootstrapdir): Change to be sub-directories of
  $(guilemoduledir).
  (.scm.go): Remove `DISTRO_' environment variables.
* distro.scm (not-colon): Remove.
  (%patch-path, %bootstrap-binaries-path): Default to sub-directories of
  the entries in %LOAD-PATH.
* pre-inst-env.in: Remove definition of `DISTRO_' environment variables.

11 years agodistro: Add GNU Less.
Nikita Karetnikov [Sun, 25 Nov 2012 04:04:13 +0000 (04:04 +0000)]
distro: Add GNU Less.

* distro/packages/less.scm: New file.
* Makefile.am (MODULES): Add it.

11 years agodistro: Add GNU Nano.
Nikita Karetnikov [Sun, 25 Nov 2012 03:14:01 +0000 (03:14 +0000)]
distro: Add GNU Nano.

* distro/packages/nano.scm: New file.
* Makefile.am (MODULES): Add it.

11 years agodoc: Mention the pronunciation of "Guix".
Ludovic Courtès [Sun, 25 Nov 2012 14:30:03 +0000 (15:30 +0100)]
doc: Mention the pronunciation of "Guix".

* README: Mention pronunciation of "Guix".
* doc/guix.texi (Introduction): Likewise.