jackhill/guix/guix.git
10 years agoMerge branch 'master' into core-updates
Ludovic Courtès [Sun, 22 Sep 2013 22:35:17 +0000 (00:35 +0200)]
Merge branch 'master' into core-updates

10 years agobuild: check-available-binaries: Adjust to derivation API change.
Ludovic Courtès [Sun, 22 Sep 2013 20:14:46 +0000 (22:14 +0200)]
build: check-available-binaries: Adjust to derivation API change.

* build-aux/check-available-binaries.scm: Use 'derivation->output-path'
  instead of 'derivation-path->output-path'.

10 years agonar: Fix file descriptor leak when writing a Nar.
Ludovic Courtès [Sun, 22 Sep 2013 20:13:51 +0000 (22:13 +0200)]
nar: Fix file descriptor leak when writing a Nar.

* guix/nar.scm (write-contents)[call-with-binary-input-file]: Always
  close PORT.

10 years agodoc: Document '--list-generations' among the query options.
Ludovic Courtès [Sun, 22 Sep 2013 20:03:15 +0000 (22:03 +0200)]
doc: Document '--list-generations' among the query options.

* doc/guix.texi (Invoking guix package): Move '--list-generations' below
  "In addition to these actions".

10 years agoguix package: Show most recently installed packages last.
Ludovic Courtès [Sun, 22 Sep 2013 19:50:11 +0000 (21:50 +0200)]
guix package: Show most recently installed packages last.

Suggested by Andreas Enge <andreas@enge.fr>.

* guix/scripts/package.scm (guix-package)[list-generations,
  list-installed]: Reverse the result of 'manifest-packages'.
* doc/guix.texi (Invoking guix package): Document the order of packages
  for '--list-generations' and '--list-installed'.

10 years agoAdd 'guix-register'.
Ludovic Courtès [Sun, 22 Sep 2013 21:23:38 +0000 (23:23 +0200)]
Add 'guix-register'.

* nix/guix-register/guix-register.cc, tests/guix-register.sh: New
  files.
* Makefile.am (SH_TESTS)[BUILD_DAEMON]: Add tests/guix-register.sh.
* daemon.am (sbin_PROGRAMS, guix_register_SOURCES,
  guix_register_CPPFLAGS, guix_register_LDADD): New variables.
* test-env.in: Export 'storedir', 'prefix', 'datarootdir', 'datadir',
  and 'localstatedir'.

10 years agobuild: Build the daemon with -Wall.
Ludovic Courtès [Sun, 22 Sep 2013 14:40:18 +0000 (16:40 +0200)]
build: Build the daemon with -Wall.

* daemon.am (AM_CXXFLAGS): New variable.

10 years agognu: Add mutt.
Andreas Enge [Sun, 22 Sep 2013 20:30:18 +0000 (22:30 +0200)]
gnu: Add mutt.

* gnu/packages/mail.scm (mutt): New variable.

10 years agognu: Add fetchmail.
Andreas Enge [Sun, 22 Sep 2013 19:56:36 +0000 (21:56 +0200)]
gnu: Add fetchmail.

* gnu/packages/mail.scm (fetchmail): New variable.

10 years agognu: Rename module mailutils to mail.
Andreas Enge [Sun, 22 Sep 2013 19:01:40 +0000 (21:01 +0200)]
gnu: Rename module mailutils to mail.

* gnu/packages/mail.scm: Rename from gnu/packages/mailutils.scm.
* gnu-system.am: Rename the module.

10 years agognu: Add gnome-doc-utils.
Andreas Enge [Sun, 22 Sep 2013 15:53:01 +0000 (17:53 +0200)]
gnu: Add gnome-doc-utils.

* gnu/packages/gnome.scm: New file.
* gnu-system.am (GNU_SYSTEM_MODULES): Add module.

10 years agognu: Add gst-plugins-base.
Andreas Enge [Sun, 22 Sep 2013 15:25:12 +0000 (17:25 +0200)]
gnu: Add gst-plugins-base.

* gnu/packages/gstreamer.scm (gst-plugins-base): New variable.

10 years agognu: gstreamer: Depend on python-wrapper.
Andreas Enge [Sun, 22 Sep 2013 14:41:29 +0000 (16:41 +0200)]
gnu: gstreamer: Depend on python-wrapper.

* gnu/packages/gstreamer.scm (gstreamer): Replace input python by
    python-wrapper.

10 years agognu: Add gstreamer.
Andreas Enge [Sun, 22 Sep 2013 14:22:00 +0000 (16:22 +0200)]
gnu: Add gstreamer.

* gnu/packages/gstreamer.scm: New file.
* gnu-system.am (GNU_SYSTEM_MODULES): Add module.

10 years agognu: xcursor-themes: Install data into package output directory.
Andreas Enge [Sun, 22 Sep 2013 09:16:08 +0000 (11:16 +0200)]
gnu: xcursor-themes: Install data into package output directory.

* gnu/packages/xorg.scm (xcursor-themes): Install icons into output directory
    instead of libxcursor.

10 years agognu: Add python2-pyicu.
Andreas Enge [Sun, 22 Sep 2013 07:44:49 +0000 (09:44 +0200)]
gnu: Add python2-pyicu.

* gnu/packages/python.scm (python2-pyicu): New variable.

10 years agoguix package: Sort the list of generation numbers in '--list-generations'.
Ludovic Courtès [Sat, 21 Sep 2013 20:35:14 +0000 (22:35 +0200)]
guix package: Sort the list of generation numbers in '--list-generations'.

* guix/scripts/package.scm (generation-numbers): Sort the result.

10 years agoguix package: Internationalize "Generation" string.
Ludovic Courtès [Sat, 21 Sep 2013 20:32:20 +0000 (22:32 +0200)]
guix package: Internationalize "Generation" string.

* guix/scripts/package.scm (guix-package): Internationalize generation
  listing.

10 years agoThank Cyrill.
Ludovic Courtès [Sat, 21 Sep 2013 20:12:49 +0000 (22:12 +0200)]
Thank Cyrill.

10 years agopull: Adjust to 'derivation' API change.
Ludovic Courtès [Sat, 21 Sep 2013 20:12:20 +0000 (22:12 +0200)]
pull: Adjust to 'derivation' API change.

Fixes <http://bugs.gnu.org/15428>.
Reported by Cyrill Schenkel <cyrill.schenkel@gmail.com>.

* guix/scripts/pull.scm (guix-pull): 'unpack' returns a single value.

10 years agognu: Add python-simplejson, python2-simplejson.
Andreas Enge [Sat, 21 Sep 2013 19:14:19 +0000 (21:14 +0200)]
gnu: Add python-simplejson, python2-simplejson.

* gnu/packages/python.scm (python-simplejson, python2-simplejson):
    New variables.

10 years agognu: python2-pysqlite: Fix 'license'.
Ludovic Courtès [Fri, 20 Sep 2013 23:59:46 +0000 (01:59 +0200)]
gnu: python2-pysqlite: Fix 'license'.

* gnu/packages/python.scm (python2-pysqlite): Refer to (@ (guix
  licenses) zlib), not to the same-named package.

10 years agognu: QEMU images boots into dmd.
Ludovic Courtès [Fri, 20 Sep 2013 23:08:42 +0000 (01:08 +0200)]
gnu: QEMU images boots into dmd.

* gnu/system/dmd.scm: New file.
* gnu/system/vm.scm (system-qemu-image): Define dmd services.
  [populate]: Make var/log and etc/group.
  [boot]: Execute dmd directly.
  Add dmd and etc-group as inputs; add the inputs of dmd services.
* gnu-system.am (GNU_SYSTEM_MODULES): Add gnu/system/dmd.scm.

10 years agognu: Add GNU dmd.
Ludovic Courtès [Fri, 20 Sep 2013 22:09:56 +0000 (00:09 +0200)]
gnu: Add GNU dmd.

* gnu/packages/system.scm (dmd): New variable.

10 years agoguix package: Add '--list-generations'.
Nikita Karetnikov [Thu, 19 Sep 2013 11:07:39 +0000 (11:07 +0000)]
guix package: Add '--list-generations'.

* guix/scripts/package.scm: Import (srfi srfi-19).
  (generation-time, matching-generations): New functions.
  (show-help): Add '--list-generations'.
  (%options): Likewise.
  (guix-package)[process-query]: Add support for '--list-generations'.
* guix/ui.scm: Import (srfi srfi-19) and (ice-9 regex).
  (string->generations, string->duration): New functions.
* tests/guix-package.sh: Test '--list-generations'.
* tests/ui.scm: Import (srfi srfi-19).
  Test 'string->generations' and 'string->duration'.
* doc/guix.texi (Invoking guix-package): Document '--list-generations'.

10 years agognu: isl: Update urls.
Andreas Enge [Tue, 10 Sep 2013 17:05:43 +0000 (19:05 +0200)]
gnu: isl: Update urls.

* gnu/packages/gcc.scm (isl): Update source and home page url.

10 years agohydra: Pass the directory name of the Nix checkout.
Ludovic Courtès [Wed, 18 Sep 2013 21:07:45 +0000 (23:07 +0200)]
hydra: Pass the directory name of the Nix checkout.

* build-aux/hydra/guix.scm (hydra-jobs): Extract the 'file-name' item
  from NIX-CHECKOUT, and pass that to 'tarball-package'.

10 years agohydra: Fix typo.
Ludovic Courtès [Wed, 18 Sep 2013 18:58:49 +0000 (20:58 +0200)]
hydra: Fix typo.

* build-aux/hydra/guix.scm (tarball-package): Unquote 'nix-checkout'.

10 years agohydra: Add missing import.
Ludovic Courtès [Wed, 18 Sep 2013 18:49:47 +0000 (20:49 +0200)]
hydra: Add missing import.

* build-aux/hydra/gnu-system.scm, build-aux/hydra/guix.scm: Use (guix
  derivations).

10 years agohydra: Return the .drv file names, not the <derivation> objects.
Ludovic Courtès [Wed, 18 Sep 2013 17:37:50 +0000 (19:37 +0200)]
hydra: Return the .drv file names, not the <derivation> objects.

* build-aux/hydra/gnu-system.scm (package->alist): Call
  'derivation-file-name' on the result of 'package-derivation'.
* build-aux/hydra/guix.scm (package->alist): Likewise.

10 years agohydra: Point the Git submodule to our local copy.
Ludovic Courtès [Wed, 18 Sep 2013 17:00:03 +0000 (19:00 +0200)]
hydra: Point the Git submodule to our local copy.

* build-aux/hydra/guix.scm (tarball-package): Add 'nix-checkout'
  parameter.  Replace 'patch-bootstrap-script' phase by
  'set-nix-module'.
  (hydra-jobs): Get the 'nix' value from ARGUMENTS, and pass it to
  'tarball-package'.

10 years agoderivations: 'derivation' and related procedures return a single value.
Ludovic Courtès [Wed, 18 Sep 2013 15:01:40 +0000 (17:01 +0200)]
derivations: 'derivation' and related procedures return a single value.

* guix/derivations.scm (derivation->output-path,
  derivation->output-paths): New procedures.
  (derivation-path->output-path): Use 'derivation->output-path'.
  (derivation-path->output-paths): Use 'derivation->output-paths'.
  (derivation): Accept 'derivation?' objects as inputs.  Return a single
  value.
  (build-derivations): New procedure.
  (compiled-modules): Use 'derivation->output-paths'.
  (build-expression->derivation)[source-path]: Add case for when the
  input matches 'derivation?'.
  [prologue]: Accept 'derivation?' objects in INPUTS.
  [mod-dir, go-dir]: Use 'derivation->output-path'.
* guix/download.scm (url-fetch): Adjust to the single-value return.
* guix/packages.scm (package-output): Use 'derivation->output-path'.
* guix/scripts/build.scm (guix-build): When the argument is
  'derivation-path?', pass it through 'read-derivation'.
  Use 'derivation-file-name' to print out the .drv file names, and to
  register them.  Use 'derivation->output-path' instead of
  'derivation-path->output-path'.
* guix/scripts/package.scm (roll-back): Adjust to the single-value
  return.
  (guix-package): Use 'derivation->output-path'.
* guix/ui.scm (show-what-to-build): Adjust to deal with 'derivation?'
  objects instead of .drv file names.
* gnu/system/grub.scm (grub-configuration-file): Use
  'derivation->output-path' instead of 'derivation-path->output-path'.
* gnu/system/vm.scm (qemu-image, system-qemu-image): Likewise.
* tests/builders.scm, tests/derivations.scm, tests/packages.scm,
  tests/store.scm, tests/union.scm: Adjust to the new calling
  convention.
* doc/guix.texi (Defining Packages, The Store, Derivations): Adjust
  accordingly.

10 years agotests: Clarify filtering of the "debug" output.
Ludovic Courtès [Wed, 18 Sep 2013 14:42:51 +0000 (16:42 +0200)]
tests: Clarify filtering of the "debug" output.

* tests/guix-package.sh: Clearly filter out the "debug" output of
  'gnu-make-boot0'.

10 years agoderivations: Add a nicer printer.
Ludovic Courtès [Wed, 18 Sep 2013 09:10:02 +0000 (11:10 +0200)]
derivations: Add a nicer printer.

* guix/derivations.scm (<derivation>): Add a printer.

10 years agoderivations: Keep the .drv file name in <derivation> objects.
Ludovic Courtès [Tue, 17 Sep 2013 21:00:55 +0000 (23:00 +0200)]
derivations: Keep the .drv file name in <derivation> objects.

* guix/derivations.scm (<derivation>): Add 'file-name' field.
  (%read-derivation): Use (port-filename DRV-PORT) as the file name for
  the result.
  (derivation): Set the 'file-name' field in the result.
* tests/derivations.scm ("build derivation with 1 source"): Assert that
  'derivation-file-name' returns the right thing.

10 years agognu: dbus: Add dependency on libX11.
Ludovic Courtès [Mon, 16 Sep 2013 17:00:47 +0000 (19:00 +0200)]
gnu: dbus: Add dependency on libX11.

* gnu/packages/glib.scm: Use #:export instead of 'define-public'.
  (dbus): Add LIBX11 as an input.

10 years agognu: glibc: Fix 'ldd' on x86_64.
Ludovic Courtès [Sun, 15 Sep 2013 21:37:32 +0000 (23:37 +0200)]
gnu: glibc: Fix 'ldd' on x86_64.

Reported by Cyril Roelandt at
<https://lists.gnu.org/archive/html/guix-devel/2013-09/msg00136.html>.

* gnu/packages/patches/glibc-ldd-x86_64.patch: New file.
* gnu-system.am (dist_patch_DATA): Add it.
* gnu/packages/base.scm (glibc): Use it.

10 years agoutils: 'find-files' returns a sorted list.
Ludovic Courtès [Sun, 15 Sep 2013 21:20:16 +0000 (23:20 +0200)]
utils: 'find-files' returns a sorted list.

* guix/build/utils.scm (find-files): Sort the result lexicographically.
* guix/scripts/pull.scm (unpack): Don't sort the result of 'find-files'.

10 years agoMerge branch 'python'
Andreas Enge [Sat, 14 Sep 2013 08:45:01 +0000 (10:45 +0200)]
Merge branch 'python'

10 years agosubstitute-binary: Add '--help'.
Ludovic Courtès [Fri, 13 Sep 2013 21:42:36 +0000 (23:42 +0200)]
substitute-binary: Add '--help'.

Reported by Nikita Karetnikov <nikita@karetnikov.org>.

* guix/scripts/substitute-binary.scm (show-help): New procedure.
  (guix-substitute-binary): Add '--help'.

10 years agognu: gnutls: Upgrade to 3.2.4.
Ludovic Courtès [Fri, 13 Sep 2013 09:12:35 +0000 (11:12 +0200)]
gnu: gnutls: Upgrade to 3.2.4.

* gnu/packages/gnutls.scm (gnutls): Update to 3.2.4; remove 'arguments'
  field, remove "patch/fix-tests" from the inputs.
* gnu/packages/patches/gnutls-fix-tests-on-32-bits-system.patch: Remove.
* gnu-system.am (dist_patch_DATA): Adjust accordingly.

10 years agognu: Add python2-mechanize.
Andreas Enge [Fri, 13 Sep 2013 12:25:53 +0000 (14:25 +0200)]
gnu: Add python2-mechanize.

* gnu/packages/python.scm (python2-mechanize): New variable.

10 years agoguix package: Rename generation-related procedures.
Nikita Karetnikov [Thu, 12 Sep 2013 17:31:53 +0000 (17:31 +0000)]
guix package: Rename generation-related procedures.

* guix/scripts/package.scm (profile-numbers): Rename to 'generation-numbers'.
  (previous-profile-number): Rename to 'previous-generation-number'.
  (profile-number): Rename to 'generation-number'.
  (roll-back): Rename 'previous-profile' to 'previous-generation'.

10 years agognu: Add python2-sqlite.
Andreas Enge [Thu, 12 Sep 2013 13:31:45 +0000 (15:31 +0200)]
gnu: Add python2-sqlite.

* gnu/packages/python.scm (python2-sqlite): New variable.

10 years agoThank Matthias and Yutaka.
Ludovic Courtès [Thu, 12 Sep 2013 12:11:15 +0000 (14:11 +0200)]
Thank Matthias and Yutaka.

10 years agodaemon: Use 'int' instead of the internal 'gcry_md_algo_t' type.
Ludovic Courtès [Thu, 12 Sep 2013 12:09:29 +0000 (14:09 +0200)]
daemon: Use 'int' instead of the internal 'gcry_md_algo_t' type.

Fixes compilation with the forthcoming libgcrypt 1.6.x.
Reported by Matthias Wachs <wachs@net.in.tum.de>
and NIIBE Yutaka <gniibe@fsij.org>.

* nix/libutil/gcrypt-hash.cc (guix_hash_init, guix_hash_final): Use
  'int' as the type of the 'algo' parameter.
* nix/libutil/gcrypt-hash.hh: Update declarations accordingly.

10 years agognu: avahi, dbus: Use /var as $localstatedir.
Ludovic Courtès [Wed, 11 Sep 2013 21:37:57 +0000 (23:37 +0200)]
gnu: avahi, dbus: Use /var as $localstatedir.

* gnu/packages/avahi.scm (avahi): Pass '--localstatedir'; add
  'patch/localstatedir'.
* gnu/packages/glib.scm (dbus): Pass '--localstatedir' and
  '--with-session-socket-dir'; add 'patch/localstatedir'.
* gnu/packages/patches/avahi-localstatedir.patch,
  gnu/packages/patches/dbus-localstatedir.patch: New files.
* gnu-system.am (dist_patch_DATA): Add them.

10 years agognu: Update python-babel, python2-babel to 1.3.
Andreas Enge [Wed, 11 Sep 2013 20:56:52 +0000 (22:56 +0200)]
gnu: Update python-babel, python2-babel to 1.3.

* gnu/packages/python.scm (python-babel, python2-babel): Update to 1.3.

10 years agognu: Move helper code to (gnu system …) modules.
Ludovic Courtès [Wed, 11 Sep 2013 20:36:50 +0000 (22:36 +0200)]
gnu: Move helper code to (gnu system …) modules.

* gnu/packages/grub.scm (<menu-entry>, grub-configuration-file): Move
  to...
* gnu/system/grub.scm: ... here.  New file.
* gnu/packages/linux.scm (<pam-service>, <pam-entry>,
  pam-service->configuration, pam-service->directory,
  %pam-other-services, unix-pam-service): Move to...
* gnu/system/linux.scm: ... here.  New file.
* gnu/system/vm.scm (passwd-file): Move to...
* gnu/system/shadow.scm: ... here.  New file.
* gnu-system.am (GNU_SYSTEM_MODULES): Add
  gnu/system/{grub,linux,shadow}.scm.

10 years agognu: vm: Remove potluck hacks.
Ludovic Courtès [Wed, 11 Sep 2013 18:08:53 +0000 (20:08 +0200)]
gnu: vm: Remove potluck hacks.

* gnu/system/vm.scm (example1): Remove.
  (example2): Rename to...
  (system-qemu-image): ... this.  Add 'store' parameter, and remove call
  to 'open-connection'.

10 years agognu: Add python-dateutil, python2-dateutil.
Andreas Enge [Wed, 11 Sep 2013 13:51:13 +0000 (15:51 +0200)]
gnu: Add python-dateutil, python2-dateutil.

* gnu/packages/python.scm (python-dateutil, python2-dateutil): New variables.

10 years agoguix: python: Create module installation path and add it to PYTHONPATH during
Andreas Enge [Wed, 11 Sep 2013 13:47:34 +0000 (15:47 +0200)]
guix: python: Create module installation path and add it to PYTHONPATH during
  the installation phase.

* guix/build/python-build-system.scm (get-python-version): New procedure.
* guix/build/python-build-system.scm (install): Create and add path.
* gnu/packages/python.scm (python-setuptools): Drop path creation code.

10 years agognu: vm: Setup PAM.
Ludovic Courtès [Tue, 10 Sep 2013 23:07:07 +0000 (01:07 +0200)]
gnu: vm: Setup PAM.

* gnu/system/vm.scm (example2): Use 'pam-services->directory'.  Change
  POPULATE to create /etc/pam.d, /etc/login.defs, and /var/run.  Change
  BOOT to spawn syslogd; boot to Bash.  Add inputs.

10 years agognu: vm: Create shadow files with the right format.
Ludovic Courtès [Tue, 10 Sep 2013 22:54:20 +0000 (00:54 +0200)]
gnu: vm: Create shadow files with the right format.

* gnu/system/vm.scm (passwd-file): When SHADOW? is true, use the right
  shadow(5) format.  Always add a trailing newline.

10 years agolinux-initrd: Create /dev/klog and /dev/kmsg.
Ludovic Courtès [Tue, 10 Sep 2013 22:52:36 +0000 (00:52 +0200)]
linux-initrd: Create /dev/klog and /dev/kmsg.

* guix/build/linux-initrd.scm (make-essential-device-nodes): Make
  /dev/klog and /dev/kmsg.

10 years agognu: linux-initrd: Fix typo.
Ludovic Courtès [Tue, 10 Sep 2013 22:51:31 +0000 (00:51 +0200)]
gnu: linux-initrd: Fix typo.

* gnu/packages/linux-initrd.scm (gnu-system-initrd): Add missing
  argument to 'format' call.

10 years agognu: linux-pam: Add declarative PAM service interface.
Ludovic Courtès [Tue, 10 Sep 2013 22:22:45 +0000 (00:22 +0200)]
gnu: linux-pam: Add declarative PAM service interface.

* gnu/packages/linux.scm (<pam-service>, <pam-entry>): New record
  types.
  (pam-service->configuration, pam-services->directory,
  unix-pam-service): New procedures.
  (%pam-other-services): New variable.

10 years agostore: The 'references' parameter of 'add-text-to-store' is now optional.
Ludovic Courtès [Tue, 10 Sep 2013 20:36:41 +0000 (22:36 +0200)]
store: The 'references' parameter of 'add-text-to-store' is now optional.

* guix/store.scm (add-text-to-store): Make 'references' optional.
* tests/store.scm ("dead-paths", "references"): Use 'add-text-to-store'
  with no optional argument.
* doc/guix.texi (The Store): Adjust accordingly.

10 years agognu: Add python-setuptools, python2-setuptools.
Andreas Enge [Tue, 10 Sep 2013 19:08:12 +0000 (21:08 +0200)]
gnu: Add python-setuptools, python2-setuptools.

* gnu/packages/python.scm (python-setuptools, python2-setuptools):
    New variables.

10 years agoguix: python: Do not import %standard-phases from gnu-build-system.
Andreas Enge [Tue, 10 Sep 2013 18:32:50 +0000 (20:32 +0200)]
guix: python: Do not import %standard-phases from gnu-build-system.

* guix/build-system/python.scm (python-build): Drop module gnu-build-system.
    Thanks to Ludovic Courtès <ludo@gnu.org>.

10 years agognu: isl: Update urls.
Andreas Enge [Tue, 10 Sep 2013 17:05:43 +0000 (19:05 +0200)]
gnu: isl: Update urls.

* gnu/packages/gcc.scm (isl): Update source and home page url.

10 years agoguix: python: Add parameter #:phases to build system.
Andreas Enge [Tue, 10 Sep 2013 09:42:07 +0000 (11:42 +0200)]
guix: python: Add parameter #:phases to build system.

* guix/build-system/python.scm (python-build): Use parameter #:phases.

10 years agognu: vm: Copy /etc/shadow to the guest.
Ludovic Courtès [Mon, 9 Sep 2013 19:52:14 +0000 (21:52 +0200)]
gnu: vm: Copy /etc/shadow to the guest.

* gnu/system/vm.scm (example2): Add SHADOW to #:inputs-to-copy.

10 years agognu: vm: Create valid /etc/shadow and /etc/passwd.
Ludovic Courtès [Sun, 8 Sep 2013 21:52:03 +0000 (23:52 +0200)]
gnu: vm: Create valid /etc/shadow and /etc/passwd.

* gnu/system/vm.scm (/etc/passwd): Rename to...
  (passwd-file): ... this. Add 'shadow?' keyword parameter.  Change
  format of ACCOUNTS, and fix CONTENTS.
  (example2): Adjust accordingly.  Create both /etc/shadow and
  /etc/passwd, the latter being used by getpwnam(3) & co. when nscd is
  not running.

10 years agognu: vm: Clear timestamps on the imported files, like in the store.
Ludovic Courtès [Sun, 8 Sep 2013 20:45:30 +0000 (22:45 +0200)]
gnu: vm: Clear timestamps on the imported files, like in the store.

* gnu/system/vm.scm (qemu-image): Clear timestamps on the copied files.

10 years agoguix: python: Add package-with-python2, a procedure rewriting a package
Andreas Enge [Sun, 8 Sep 2013 14:57:37 +0000 (16:57 +0200)]
guix: python: Add package-with-python2, a procedure rewriting a package
  to compile with Python 2 instead of the default Python 3.

* guix/build-system/python.scm (default-python2, package-with-explicit-python,
    package-with-python2): New procedures.
* guix/build-system/python.scm (python2-pytz, python2-babel): Use
    package-with-python2.

10 years agoMerge branch 'master' into core-updates
Ludovic Courtès [Sun, 8 Sep 2013 10:11:32 +0000 (12:11 +0200)]
Merge branch 'master' into core-updates

10 years agohydra: Support a 'subset' argument.
Ludovic Courtès [Sun, 8 Sep 2013 10:10:25 +0000 (12:10 +0200)]
hydra: Support a 'subset' argument.

* build-aux/hydra/gnu-system.scm (%core-packages): New variable.
  (%packages-to-cross-build): Make an alias for %CORE-PACKAGES.
  (hydra-jobs): Check for the 'subset' argument, and honor it for values
  "all" and "core".

10 years agognu: glibc: Upgrade to 2.18.
Ludovic Courtès [Sun, 8 Sep 2013 10:01:33 +0000 (12:01 +0200)]
gnu: glibc: Upgrade to 2.18.

* gnu/packages/base.scm (glibc): Upgrade to 2.18.

10 years agognu: linux-libre: Upgrade to 3.11.
Ludovic Courtès [Sat, 7 Sep 2013 23:30:54 +0000 (01:30 +0200)]
gnu: linux-libre: Upgrade to 3.11.

* gnu/packages/linux.scm (linux-libre): Upgrade to 3.11.  Add bc as an
  input.

10 years agognu: grub: Add support for building configuration files.
Ludovic Courtès [Sat, 7 Sep 2013 15:23:23 +0000 (17:23 +0200)]
gnu: grub: Add support for building configuration files.

* gnu/packages/grub.scm (<menu-entry>): New record type.
  (grub-configuration-file): New procedure.
* gnu/system/vm.scm (qemu-image): Remove parameters 'linux',
  'linux-arguments', and 'initrd'.  Add 'grub-configuration' parameter.
  Honor them, and remove grub.cfg generation code accordingly.
  (example2): Use `grub-configuration-file', and adjust accordingly.

10 years agodoc: Add "Data Types and Pattern Matching" to the Coding Style.
Ludovic Courtès [Sat, 7 Sep 2013 13:51:29 +0000 (15:51 +0200)]
doc: Add "Data Types and Pattern Matching" to the Coding Style.

* HACKING (Data Types and Pattern Matching): New section.

10 years agognu: Add the 'license:' prefix.
Nikita Karetnikov [Sat, 7 Sep 2013 07:44:57 +0000 (07:44 +0000)]
gnu: Add the 'license:' prefix.

* gnu/packages/glib.scm (itstool): Change 'gpl3+' to 'license:gpl3+'.

10 years agognu: Add itstool.
Cyril Roelandt [Wed, 4 Sep 2013 17:21:38 +0000 (19:21 +0200)]
gnu: Add itstool.

* gnu/packages/glib.scm (itstool): New variable.

10 years agognu: vm: Add /etc/shadow in the QEMU image.
Ludovic Courtès [Thu, 5 Sep 2013 21:57:40 +0000 (23:57 +0200)]
gnu: vm: Add /etc/shadow in the QEMU image.

* gnu/system/vm.scm (qemu-image): Add 'populate' keyword parameter and
  honor it; make it an input.
  (/etc/shadow): New procedure.
  (example2): Call it; build 'populate' script, and pass it to
  'qemu-image'.

10 years agognu: vm: Remove unused 'qemu-image' argument.
Ludovic Courtès [Thu, 5 Sep 2013 20:14:21 +0000 (22:14 +0200)]
gnu: vm: Remove unused 'qemu-image' argument.

* gnu/system/vm.scm (qemu-image): Remove 'boot-expression' parameter,
  superseded by 'linux-arguments'.

10 years agoguix: python: Add build phase and factor out calls to setup.py.
Andreas Enge [Thu, 5 Sep 2013 18:25:08 +0000 (20:25 +0200)]
guix: python: Add build phase and factor out calls to setup.py.

* guix/build/python-build-system.scm (call-setuppy): New procedure.
* guix/build/python-build-system.scm (build): New procedure.
* guix/build/python-build-system.scm (check, install): Use call-setuppy.
* guix/build/python-build-system.scm (%standard-phases): Add call to build.

10 years agognu: python: Disable tests in python2-pytz and python2-babel.
Andreas Enge [Thu, 5 Sep 2013 17:07:28 +0000 (19:07 +0200)]
gnu: python: Disable tests in python2-pytz and python2-babel.

* gnu/packages/python.scm (python2-pytz, python2-babel): Disable tests.

10 years agognu: python: Disable tests in pytz and babel.
Andreas Enge [Thu, 5 Sep 2013 16:55:27 +0000 (18:55 +0200)]
gnu: python: Disable tests in pytz and babel.

* gnu/packages/python.scm (python-pytz, python-babel): Disable tests.

10 years agognu: python: Honour #:tests? and #:test-target in build system.
Andreas Enge [Thu, 5 Sep 2013 16:43:18 +0000 (18:43 +0200)]
gnu: python: Honour #:tests? and #:test-target in build system.

* guix/build/python-build-system.scm (check): Use named parameters tests?
    and test-target (default now: "test" instead of "check").

10 years agognu: git: Switch back to Python 2.
Andreas Enge [Thu, 5 Sep 2013 16:13:23 +0000 (18:13 +0200)]
gnu: git: Switch back to Python 2.

* gnu/packages/version-control.scm (git): Switch back to Python 2.

10 years agognu: vm: First stab at building a populated QEMU image.
Ludovic Courtès [Wed, 4 Sep 2013 22:45:53 +0000 (00:45 +0200)]
gnu: vm: First stab at building a populated QEMU image.

* gnu/packages/linux-initrd.scm (gnu-system-initrd): New variable.
* gnu/system/vm.scm (qemu-image): Add #:linux-arguments parameter.
  [input->name+derivation]: Add case for 'store-path?' items.
  Remove LOADER from `inputs'.

10 years agognu: linux-initrd: Fix creation of /dev/tty nodes.
Ludovic Courtès [Wed, 4 Sep 2013 21:22:34 +0000 (23:22 +0200)]
gnu: linux-initrd: Fix creation of /dev/tty nodes.

* guix/build/linux-initrd.scm (make-essential-device-nodes): Make
  /dev/tty.  Change from 'block-special' to 'char-special' for /dev/tty*
  nodes.

10 years agognu: vm: 'qemu-image' populates /dev on the target root file system.
Ludovic Courtès [Wed, 4 Sep 2013 21:21:37 +0000 (23:21 +0200)]
gnu: vm: 'qemu-image' populates /dev on the target root file system.

* gnu/system/vm.scm (qemu-image): Use (guix build linux-initrd).  Remove
  'mknod' calls; use 'make-essential-device-nodes' to populate /dev on
  the target image.
* gnu/packages/linux-initrd.scm (qemu-initrd): When /root/dev exists,
  don't call 'make-essential-device-nodes'.

10 years agognu: python: Implement the python naming scheme for pytz and babel.
Andreas Enge [Wed, 4 Sep 2013 20:12:33 +0000 (22:12 +0200)]
gnu: python: Implement the python naming scheme for pytz and babel.

* gnu/packages/python.scm (pytz): Rename this ...
* gnu/packages/python.scm (python-pytz): ... to this
* gnu/packages/python.scm (python2-pytz): New variable, input python-2.
* gnu/packages/python.scm (babel): Rename this ...
* gnu/packages/python.scm (python-babel): ... to this
* gnu/packages/python.scm (python2-babel): New variable, input python-2.

10 years agognu: subversion: Switch back to Python 2.
Andreas Enge [Wed, 4 Sep 2013 17:17:19 +0000 (19:17 +0200)]
gnu: subversion: Switch back to Python 2.

* gnu/packages/version-control.scm (subversion): Switch back to Python 2.

10 years agognu: qemu: Switch back to Python 2.
Andreas Enge [Wed, 4 Sep 2013 17:13:41 +0000 (19:13 +0200)]
gnu: qemu: Switch back to Python 2.

* gnu/packages/qemu.scm (qemu): Switch back to Python 2.

10 years agognu: texlive: Switch back to Python 2.
Andreas Enge [Wed, 4 Sep 2013 17:09:39 +0000 (19:09 +0200)]
gnu: texlive: Switch back to Python 2.

* gnu/packages/texlive.scm (texlive): Switch back to Python 2.

10 years agognu: rubber: Switch back to Python 2.
Andreas Enge [Wed, 4 Sep 2013 17:06:51 +0000 (19:06 +0200)]
gnu: rubber: Switch back to Python 2.

* gnu/packages/texlive.scm (rubber): Switch back to Python 2.

10 years agognu: mesa: Switch back to Python 2.
Andreas Enge [Wed, 4 Sep 2013 17:03:14 +0000 (19:03 +0200)]
gnu: mesa: Switch back to Python 2.

* gnu/packages/xorg.scm (mesa): Switch back to Python 2.

10 years agognu: libxml2: Switch back to Python 2.
Andreas Enge [Wed, 4 Sep 2013 16:54:53 +0000 (18:54 +0200)]
gnu: libxml2: Switch back to Python 2.

* gnu/packages/xml.scm (libxml2): Switch back to Python 2.

10 years agognu: zziplib: Switch back to Python 2.
Andreas Enge [Wed, 4 Sep 2013 16:40:54 +0000 (18:40 +0200)]
gnu: zziplib: Switch back to Python 2.

* gnu/packages/zip.scm (zziplib): Switch back to Python 2.

10 years agognu: bazaar: Switch back to Python 2.
Andreas Enge [Wed, 4 Sep 2013 16:35:49 +0000 (18:35 +0200)]
gnu: bazaar: Switch back to Python 2.

* gnu/packages/version-control.scm (bazaar): Switch back to Python 2.

10 years agoguix: python: Switch to python-wrapper as the default version for the python
Andreas Enge [Wed, 4 Sep 2013 16:04:15 +0000 (18:04 +0200)]
guix: python: Switch to python-wrapper as the default version for the python
  build system (switches to Python 3) and compute python-version instead of
  passing it as a parameter.

* guix/build-system/python.scm (default-python): Switch to python-wrapper.
* guix/build-system/python.scm (python-build): Drop parameter #:python-version.
* guix/build/python-build-system.scm (wrap): Compute python version from input.

10 years agognu: xorg: Update comment for mesa.
Andreas Enge [Wed, 4 Sep 2013 16:02:58 +0000 (18:02 +0200)]
gnu: xorg: Update comment for mesa.

* gnu/packages/xorg.scm (mesa): New compilation trial with 9.2.

10 years agognu: libdrm: Update to 2.4.46.
Andreas Enge [Wed, 4 Sep 2013 09:16:22 +0000 (11:16 +0200)]
gnu: libdrm: Update to 2.4.46.

* gnu/packages/xorg.scm (libdrm): Update to 2.4.46.

10 years agohydra: Add Graphviz as an input to the "tarball" job.
Ludovic Courtès [Tue, 3 Sep 2013 20:21:48 +0000 (22:21 +0200)]
hydra: Add Graphviz as an input to the "tarball" job.

* build-aux/hydra/guix.scm (tarball-package): Add GRAPHVIZ to
  `native-inputs'.

10 years agognu: python: Replace input python by python-wrapper.
Andreas Enge [Tue, 3 Sep 2013 20:18:39 +0000 (22:18 +0200)]
gnu: python: Replace input python by python-wrapper.

* gnu/packages/{gdb.scm (gdb), cryptsetup.scm (cryptsetup),
  ghostscript.scm (ghostscript), glib.scm (glib), gnupg.scm (pius),
  gtk.scm (cairo, harfbuzz), libevent.scm (libevent), netpbm.scm (netpbm),
  oggvorbis.scm (libkate), qemu.scm (qemu), samba.scm (samba),
  texlive.scm (rubber, texlive), version-control.scm (subversion),
  xml.scm (libxml2, libxslt), xorg.scm (libxcb, mesa, xcb-proto, xorg-server),
  yasm.scm (yasm), zip.scm (zziplib)}:
  Replace input python by python-wrapper.

10 years agohydra: Add Git as an input to the "tarball" job.
Ludovic Courtès [Tue, 3 Sep 2013 20:07:21 +0000 (22:07 +0200)]
hydra: Add Git as an input to the "tarball" job.

* build-aux/hydra/guix.scm (tarball-package): Add `native-inputs' field.

10 years agognu: python: Add package python-wrapper.
Andreas Enge [Tue, 3 Sep 2013 19:27:40 +0000 (21:27 +0200)]
gnu: python: Add package python-wrapper.

* gnu/packages/python.scm (python-wrapper): New variable.