jackhill/guix/guix.git
9 years agognu: linux-libre: Update to 3.16.3.
Jason Self [Thu, 18 Sep 2014 23:18:14 +0000 (16:18 -0700)]
gnu: linux-libre: Update to 3.16.3.

* gnu/packages/linux.scm (linux-libre): Update to version 3.16.3.

9 years agosystem: Add udev rule for /dev/kvm.
Ludovic Courtès [Thu, 18 Sep 2014 21:23:46 +0000 (23:23 +0200)]
system: Add udev rule for /dev/kvm.

* gnu/services/base.scm (kvm-udev-rule): New procedure.
  (udev-service): Use it, and add it to RULES.
  (guix-build-accounts): Add "kvm" to the 'supplementary-groups' field.
* gnu/system/shadow.scm (%base-groups): Add "kvm".

9 years agolinux-initrd: Remove now obsolete #:guile-modules-in-chroot? parameter.
Ludovic Courtès [Thu, 18 Sep 2014 21:05:22 +0000 (23:05 +0200)]
linux-initrd: Remove now obsolete #:guile-modules-in-chroot? parameter.

* gnu/build/linux-boot.scm (boot-system): Remove
  #:guile-modules-in-chroot? and related code.
* gnu/system/linux-initrd.scm (base-initrd): Likewise.
* gnu/system/vm.scm (expression->derivation-in-linux-vm): Remove
  #:guile-modules-in-chroot? argument in 'base-initrd' call.

9 years agodoc: Remove a couple of limitations.
Ludovic Courtès [Thu, 18 Sep 2014 18:37:10 +0000 (20:37 +0200)]
doc: Remove a couple of limitations.

* doc/guix.texi (System Installation): Remove encrypted disks and swap
  from the limitations.

9 years agosystem: Add support for swap devices.
Ludovic Courtès [Thu, 18 Sep 2014 20:51:48 +0000 (22:51 +0200)]
system: Add support for swap devices.

* gnu/services/base.scm (swap-service): New procedure.
* gnu/system.scm (<operating-system>)[swap-devices]: New field.
  (swap-services): New procedure.
  (essential-services): Use it.

9 years agosyscalls: Add 'swapon' and 'swapoff'.
Ludovic Courtès [Thu, 18 Sep 2014 18:19:56 +0000 (20:19 +0200)]
syscalls: Add 'swapon' and 'swapoff'.

* guix/build/syscalls.scm (swapon, swapoff): New procedures.
* tests/syscalls.scm ("swapon, ENOENT/EPERM", "swapoff, EINVAL/EPERM"):
  New tests.

9 years agodoc: Document mapped devices.
Ludovic Courtès [Thu, 18 Sep 2014 17:50:00 +0000 (19:50 +0200)]
doc: Document mapped devices.

* doc/guix.texi (Mapped Devices): New subsection.

9 years agosystem: Define 'device-mapping-kind', and add a 'close' procedure.
Ludovic Courtès [Thu, 18 Sep 2014 17:18:39 +0000 (19:18 +0200)]
system: Define 'device-mapping-kind', and add a 'close' procedure.

* gnu/system/file-systems.scm (<mapped-device-type>): New record type.
  (<mapped-device>)[command]: Remove field.
  [type]: New field.
* gnu/services/base.scm (device-mapping-service): Rename 'command'
  parameter to 'open'.  Add 'close' parameter and honor it.
* gnu/system.scm (luks-device-mapping): Rename to...
  (open-luks-device): ... this.
  (close-luks-device): New procedure.
  (luks-device-mapping): New variable.
  (device-mapping-services): Get the type of MD, and pass its 'open' and
  'close' fields to 'device-mapping-service'.

9 years agopull: Rewrite using gexps.
Ludovic Courtès [Thu, 18 Sep 2014 16:42:39 +0000 (18:42 +0200)]
pull: Rewrite using gexps.

* guix/scripts/pull.scm (unpack): Remove 'store' parameter.  Rewrite
  using 'gexp->derivation'.
  (what-to-build, indirect-root-added, build-and-install): New
  procedures.
  (guix-pull): Use it.

9 years agognu: skribilo: Make sure Guile-Reader is in the search path.
Ludovic Courtès [Thu, 18 Sep 2014 09:22:01 +0000 (11:22 +0200)]
gnu: skribilo: Make sure Guile-Reader is in the search path.

Reported by Luis Souto Graña <luissoutobueu@gmail.com>.

* gnu/packages/skribilo.scm (skribilo)[arguments]: Add #:phases.

9 years agognu: gcc-4.8.3: Add patch for PR61801.
Ludovic Courtès [Wed, 17 Sep 2014 15:17:43 +0000 (17:17 +0200)]
gnu: gcc-4.8.3: Add patch for PR61801.

* gnu/packages/patches/gcc-fix-pr61801.patch: New file.
* gnu/packages/gcc.scm (gcc-4.8): Use it.
* gnu-system.am (dist_patch_DATA): Add it.

9 years agognu: libcanberra: Update URL.
Ludovic Courtès [Wed, 17 Sep 2014 09:09:22 +0000 (11:09 +0200)]
gnu: libcanberra: Update URL.

Reported by Federico Beffa <beffa@ieee.org>.

* gnu/packages/libcanberra.scm (libcanberra)[source]: Update URI.

9 years agoservices: dhcp-client: Start 'dhclient' in "no wait" mode.
Ludovic Courtès [Wed, 17 Sep 2014 07:27:07 +0000 (09:27 +0200)]
services: dhcp-client: Start 'dhclient' in "no wait" mode.

* gnu/services/networking.scm (dhcp-client-service): Pass '-nw' to
  'dhclient'.

9 years agoservices: file-system: Change directory to root before unmounting.
Ludovic Courtès [Wed, 17 Sep 2014 07:20:38 +0000 (09:20 +0200)]
services: file-system: Change directory to root before unmounting.

* gnu/services/base.scm (file-system-service)[stop]: Add 'chdir' call.

9 years agoservices: user-processes: Wait for complete process termination.
Ludovic Courtès [Wed, 17 Sep 2014 07:13:51 +0000 (09:13 +0200)]
services: user-processes: Wait for complete process termination.

* gnu/services/base.scm (user-processes-service): Add 'wait' loop.

9 years agoservices: udev: Make non-respawnable.
Ludovic Courtès [Wed, 17 Sep 2014 06:59:13 +0000 (08:59 +0200)]
services: udev: Make non-respawnable.

* gnu/services/base.scm (udev-service): Add 'respawn?' field.

9 years agoservices: Change default 'stop' value to #~(const #f).
Ludovic Courtès [Wed, 17 Sep 2014 05:50:11 +0000 (07:50 +0200)]
services: Change default 'stop' value to #~(const #f).

* gnu/services.scm (<service>)[stop]: Change default value.

9 years agobuild: Ignore the user's language settings when running tests.
Ludovic Courtès [Wed, 17 Sep 2014 05:44:00 +0000 (07:44 +0200)]
build: Ignore the user's language settings when running tests.

* test-env.in: Unset 'LANGUAGE', set 'LC_MESSAGE'.

9 years agoutils: Create temporary files in $TMPDIR or /tmp.
Ludovic Courtès [Wed, 17 Sep 2014 05:18:46 +0000 (07:18 +0200)]
utils: Create temporary files in $TMPDIR or /tmp.

Reported by Federico Beffa <beffa@ieee.org>.

* guix/utils.scm (call-with-temporary-output-file): Prepend $TMPDIR or
  /tmp to TEMPLATE.

9 years agosystem: Add "input" to '%base-groups'.
Ludovic Courtès [Tue, 16 Sep 2014 20:43:55 +0000 (22:43 +0200)]
system: Add "input" to '%base-groups'.

* gnu/system/shadow.scm (%base-groups): Add "input" group.

9 years agoRemove outdated items from 'TODO'.
Ludovic Courtès [Tue, 16 Sep 2014 19:11:03 +0000 (21:11 +0200)]
Remove outdated items from 'TODO'.

9 years agognu: guile-charting: Modules correctly installed, guile-cairo propagated.
Ludovic Courtès [Tue, 16 Sep 2014 15:49:57 +0000 (17:49 +0200)]
gnu: guile-charting: Modules correctly installed, guile-cairo propagated.

* gnu/packages/guile.scm (guile-charting): Patch Makefile.in files to
  install to guile/site/2.0.  Move GUILE-CAIRO to 'propagated-inputs'.

9 years agognu: pulseaudio: Disable Console-Kit support by default.
Ludovic Courtès [Mon, 15 Sep 2014 21:58:30 +0000 (23:58 +0200)]
gnu: pulseaudio: Disable Console-Kit support by default.

This prevented PulseAudio from starting on systems without Console-Kit.

* gnu/packages/pulseaudio.scm (pulseaudio)[source]: Add snippet.

9 years agognu: Add OPAM.
Ludovic Courtès [Mon, 15 Sep 2014 13:05:52 +0000 (15:05 +0200)]
gnu: Add OPAM.

* gnu/packages/ocaml.scm (opam): New variable.

9 years agognu: Add arb.
Andreas Enge [Mon, 15 Sep 2014 14:26:30 +0000 (16:26 +0200)]
gnu: Add arb.

* gnu/packages/algebra.scm (arb): New variable.

9 years agognu: mupdf: Adjust synopsis.
Ludovic Courtès [Mon, 15 Sep 2014 07:06:42 +0000 (09:06 +0200)]
gnu: mupdf: Adjust synopsis.

* gnu/packages/pdf.scm (mupdf): Remove article from synopsis.

9 years agognu: Add mupdf.
Marek Benc [Mon, 15 Sep 2014 06:03:03 +0000 (08:03 +0200)]
gnu: Add mupdf.

* gnu/packages/pdf.scm (mupdf): New variable.
* gnu/packages/patches/mupdf-buildsystem-fix.patch: New file.
* gnu-system.am (dist_patch_DATA): Added the above patch.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
9 years agognu: Add openjpeg.
Marek Benc [Mon, 15 Sep 2014 05:56:22 +0000 (07:56 +0200)]
gnu: Add openjpeg.

* gnu/packages/image.scm (openjpeg): New variable.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
9 years agognu: Add jbig2dec
Marek Benc [Mon, 15 Sep 2014 05:51:01 +0000 (07:51 +0200)]
gnu: Add jbig2dec

* gnu/packages/image.scm (jbig2dec): New variable.
* gnu/packages/patches/jbig2dec-ignore-testtest.patch: New file.
* gnu-system.am (dist_patch_DATA): Added the above patch.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
9 years agoservices: Add 'dhcp-client-service'.
Ludovic Courtès [Sun, 14 Sep 2014 21:01:23 +0000 (23:01 +0200)]
services: Add 'dhcp-client-service'.

* gnu/services/networking.scm (dhcp-client-service): New procedure.
* doc/guix.texi (Networking Services): Document it.

9 years agosyscalls: Add 'all-network-interfaces'.
Ludovic Courtès [Sun, 14 Sep 2014 20:56:12 +0000 (22:56 +0200)]
syscalls: Add 'all-network-interfaces'.

* guix/build/syscalls.scm (network-interfaces): Update docstring.
  (%interface-line): New variable.
  (all-network-interfaces): New procedure.
* tests/syscalls.scm ("all-network-interfaces"): New test.
  ("network-interfaces"): Change to make sure the result is a subset
  of (all-network-interfaces).

9 years agosyscalls: Add 'network-interface-flags'.
Ludovic Courtès [Sun, 14 Sep 2014 20:12:35 +0000 (22:12 +0200)]
syscalls: Add 'network-interface-flags'.

* guix/build/syscalls.scm (SIOCGIFFLAGS, IFF_UP, IFF_BROADCAST,
  IFF_LOOPBACK, IF_NAMESIZE): New variables.
  (network-interface-flags, loopback-network-interface?): New
  procedures.
* tests/syscalls.scm ("network-interface-flags",
  "loopback-network-interface?"): New tests.

9 years agosyscalls: Add 'network-interfaces'.
Ludovic Courtès [Sun, 14 Sep 2014 19:39:51 +0000 (21:39 +0200)]
syscalls: Add 'network-interfaces'.

* guix/build/syscalls.scm (SIOCGIFCONF, ifconf-struct,
  ifreq-struct-size): New variables.
  (%ioctl, bytevector->string-list, network-interfaces): New
  procedures.
* tests/syscalls.scm ("network-interfaces"): New test.

9 years agoservices: static-networking-service: Wait for udev, except for loopback.
Ludovic Courtès [Sun, 14 Sep 2014 15:28:43 +0000 (17:28 +0200)]
services: static-networking-service: Wait for udev, except for loopback.

Reported by DusXMT on #guix.

* gnu/services/networking.scm (static-networking-service): Add
  'requirement' field.  Change 'documentation' to be a string literal.

9 years agopull: Create ~/.config/guix if needed instead of bailing out gracelessly.
Ludovic Courtès [Sun, 14 Sep 2014 13:33:38 +0000 (15:33 +0200)]
pull: Create ~/.config/guix if needed instead of bailing out gracelessly.

Previously 'guix pull' would just fail with "No such file or directory"
if ~/.config didn't already exist.

* guix/ui.scm (config-directory): Use 'mkdir-p' instead of 'mkdir'.
  Change the 'catch' handler to expect errors different from EEXIST.

9 years agodoc: Mention audio, video, and cdrom groups more prominently.
Ludovic Courtès [Sun, 14 Sep 2014 13:26:12 +0000 (15:26 +0200)]
doc: Mention audio, video, and cdrom groups more prominently.

* doc/guix.texi (User Accounts): Add the "audio", "video", and "cdrom"
  groups in the example.

9 years agoutils: Import (ice-9 format).
Mark H Weaver [Sun, 14 Sep 2014 15:54:25 +0000 (11:54 -0400)]
utils: Import (ice-9 format).

* guix/build/utils.scm: Import (ice-9 format).

9 years agoutils: Allow wrap-program to be called multiple times.
Eric Bavier [Sat, 13 Sep 2014 06:05:03 +0000 (01:05 -0500)]
utils: Allow wrap-program to be called multiple times.

* guix/build/utils.scm (wrap-program): Multiple invocations of
  wrap-program for the same file create successive wrappers.  Adjust
  docstring.
* tests/build-utils.scm: Test new wrap-program behavior.
  (%store): New variable.

9 years agoMerge branch 'master' into core-updates
Mark H Weaver [Sat, 13 Sep 2014 23:48:47 +0000 (19:48 -0400)]
Merge branch 'master' into core-updates

Conflicts:
gnu-system.am

9 years agognu: Add flint.
Andreas Enge [Fri, 12 Sep 2014 12:20:28 +0000 (14:20 +0200)]
gnu: Add flint.

* gnu/packages/algebra.scm (flint): New variable.

9 years agognu: Adjust synopses as recommended by 'guix lint'.
Ludovic Courtès [Sat, 13 Sep 2014 13:50:30 +0000 (15:50 +0200)]
gnu: Adjust synopses as recommended by 'guix lint'.

Remove leading articles and trailing periods in package synopses.

9 years agognu: Synchronize GNU package descriptions with upstream.
Ludovic Courtès [Sat, 13 Sep 2014 13:31:31 +0000 (15:31 +0200)]
gnu: Synchronize GNU package descriptions with upstream.

These are mostly two-space-after-end-of-sentence-period changes
resulting from commit 3a09e1d2.

9 years agosync-descriptions: Improve output of proposed descriptions.
Ludovic Courtès [Sat, 13 Sep 2014 13:26:37 +0000 (15:26 +0200)]
sync-descriptions: Improve output of proposed descriptions.

* build-aux/sync-descriptions.scm (escape-quotes): New procedure.
  Use it.  Add quotes around the proposed description.

9 years agonls: Update 'sr' translation.
Ludovic Courtès [Sat, 13 Sep 2014 12:22:37 +0000 (14:22 +0200)]
nls: Update 'sr' translation.

9 years agosystem: Use eudev instead of udev by default.
Ludovic Courtès [Sat, 13 Sep 2014 08:54:47 +0000 (10:54 +0200)]
system: Use eudev instead of udev by default.

* gnu/system.scm (%base-packages): Change 'udev' to 'eudev'.
* gnu/services/base.scm (udev-service): Change #:udev to default to
  'eudev'.

9 years agoservices: udev: Allow the use of eudev.
Ludovic Courtès [Sat, 13 Sep 2014 08:53:47 +0000 (10:53 +0200)]
services: udev: Allow the use of eudev.

* gnu/services/base.scm (udev-service): Adjust 'start' method to support
  eudev in addition to udev.

9 years agosystem: Add Diffutils to '%base-packages'.
Ludovic Courtès [Sat, 13 Sep 2014 08:52:21 +0000 (10:52 +0200)]
system: Add Diffutils to '%base-packages'.

* gnu/system.scm (%base-packages): Add DIFFUTILS.

9 years agosystem: Add FUSE and ALSA udev rules by default.
Ludovic Courtès [Sat, 13 Sep 2014 08:50:26 +0000 (10:50 +0200)]
system: Add FUSE and ALSA udev rules by default.

* gnu/services/base.scm (%base-services): Pass FUSE and ALSA-UTILS to
  'udev-service'.

9 years agognu: eudev: Honor $EUDEV_RULES_DIRECTORY.
Ludovic Courtès [Sat, 13 Sep 2014 08:47:58 +0000 (10:47 +0200)]
gnu: eudev: Honor $EUDEV_RULES_DIRECTORY.

* gnu/packages/patches/eudev-rules-directory.patch: New file.
* gnu-system.am (dist_patch_DATA): Add it.
* gnu/packages/linux.scm (eudev): Use it.

9 years agognu: eudev: Build with libkmod support.
Ludovic Courtès [Sat, 13 Sep 2014 08:46:10 +0000 (10:46 +0200)]
gnu: eudev: Build with libkmod support.

* gnu/packages/linux.scm (eudev)[arguments]: New field.

9 years agognu: fuse: Install udev rules in lib/udev/rules.d.
Ludovic Courtès [Sat, 13 Sep 2014 08:32:47 +0000 (10:32 +0200)]
gnu: fuse: Install udev rules in lib/udev/rules.d.

* gnu/packages/linux.scm (fuse): Change UDEV_RULES_PATH suffix to
  /lib/udev/rules.d.

9 years agoRevert "gnu: util-linux: Don't install 'logger'."
Ludovic Courtès [Fri, 12 Sep 2014 20:19:33 +0000 (22:19 +0200)]
Revert "gnu: util-linux: Don't install 'logger'."

This reverts commit c9a8ad847712dfa4811608efae2d48cb8500f72f.

9 years agognu: util-linux: Don't install 'logger'.
Ludovic Courtès [Fri, 12 Sep 2014 20:05:50 +0000 (22:05 +0200)]
gnu: util-linux: Don't install 'logger'.

* gnu/packages/linux.scm (util-linux)[source]: Add 'snippet'.

9 years agognu: Add eudev.
Ludovic Courtès [Fri, 12 Sep 2014 20:12:33 +0000 (22:12 +0200)]
gnu: Add eudev.

* gnu/packages/linux.scm (eudev): New variable.

9 years agognu: util-linux: Don't install 'logger'.
Ludovic Courtès [Fri, 12 Sep 2014 20:05:50 +0000 (22:05 +0200)]
gnu: util-linux: Don't install 'logger'.

* gnu/packages/linux.scm (util-linux)[source]: Add 'snippet'.

9 years agoactivation: Honor $GUIX_NEW_SYSTEM for use by 'guix system reconfigure'.
Ludovic Courtès [Fri, 12 Sep 2014 15:41:06 +0000 (17:41 +0200)]
activation: Honor $GUIX_NEW_SYSTEM for use by 'guix system reconfigure'.

* gnu/build/activation.scm (activate-current-system): Honor
  $GUIX_NEW_SYSTEM by default.
* guix/scripts/system.scm (switch-to-system): Set $GUIX_NEW_SYSTEM
  before loading SCRIPT.

9 years agognu: e2fsprogs: Build with --disable-blkid.
Ludovic Courtès [Fri, 12 Sep 2014 15:25:39 +0000 (17:25 +0200)]
gnu: e2fsprogs: Build with --disable-blkid.

* gnu/packages/linux.scm (e2fsprogs)[arguments]: Pass --disable-blkid.

9 years agosystem: Add more common tools to '%base-packages'.
Ludovic Courtès [Fri, 12 Sep 2014 20:13:23 +0000 (22:13 +0200)]
system: Add more common tools to '%base-packages'.

* gnu/system.scm (%base-packages): Add gawk, tar, gzip, bzip2, xz, lzip,
  and wireless-tools.

9 years agosystem: Produce a basic /etc/nsswitch.conf to honor /etc/hosts.
Ludovic Courtès [Fri, 12 Sep 2014 07:55:25 +0000 (09:55 +0200)]
system: Produce a basic /etc/nsswitch.conf to honor /etc/hosts.

* gnu/system.scm (etc-directory): Produce nsswitch.conf.

9 years agosystem: Fix the default /etc/hosts.
Ludovic Courtès [Fri, 12 Sep 2014 07:52:05 +0000 (09:52 +0200)]
system: Fix the default /etc/hosts.

* gnu/system.scm (default-/etc/hosts): Fix the alias/address order.
  Add ::1.

9 years agoMerge branch 'master' into core-updates
Mark H Weaver [Thu, 11 Sep 2014 22:26:28 +0000 (18:26 -0400)]
Merge branch 'master' into core-updates

Conflicts:
gnu/packages/image.scm

9 years agosystem: Add support for Linux-style mapped devices.
Ludovic Courtès [Thu, 11 Sep 2014 21:39:15 +0000 (23:39 +0200)]
system: Add support for Linux-style mapped devices.

* gnu/system/file-systems.scm (<mapped-device>): New record type.
* gnu/system.scm (<operating-system>)[mapped-devices]: New field.
  (luks-device-mapping): New procedure.
  (other-file-system-services)[device-mappings, requirements]: New
  procedures.  Pass #:requirements to 'file-system-service'.
  (device-mapping-services): New procedure.
  (essential-services): Use it.  Append its result to the return value.
  (operating-system-initrd-file): Add comment.
* gnu/services/base.scm (file-system-service): Add #:requirements
  parameter and honor it.
  (device-mapping-service): New procedure.
* gnu/system/linux-initrd.scm (base-initrd): Add comment.

9 years agoactivation: Set the permissions of /etc/sudoers to 440.
Ludovic Courtès [Thu, 11 Sep 2014 21:23:07 +0000 (23:23 +0200)]
activation: Set the permissions of /etc/sudoers to 440.

* gnu/build/activation.scm (activate-etc): Move 'rm-f' to a local
  'define'.  When TARGET is "sudoers", make it 440.

9 years agosystem: Add '\w' to the default PS1.
Ludovic Courtès [Thu, 11 Sep 2014 21:21:42 +0000 (23:21 +0200)]
system: Add '\w' to the default PS1.

* gnu/system.scm (etc-directory)[bashrc]: Add '\w' to PS1.

9 years agoactivation: Make the /bin/sh symlink at activation time.
Ludovic Courtès [Thu, 11 Sep 2014 20:18:52 +0000 (22:18 +0200)]
activation: Make the /bin/sh symlink at activation time.

* gnu/build/install.scm (directives): Remove "/bin/sh".
* gnu/build/activation.scm (activate-/bin/sh): New procedure.
* gnu/system.scm (operating-system-activation-script): Use it.

9 years agoservices: udev: Allow for additional udev rules.
Ludovic Courtès [Thu, 11 Sep 2014 20:13:37 +0000 (22:13 +0200)]
services: udev: Allow for additional udev rules.

* gnu/services/base.scm (udev-rules-union): New procedure.
  (udev-service): Add #:rules parameter.  Call 'udev-rules-union' and
  create udev.conf.  Set $UDEV_CONFIG_FILE before spawning udevd.

9 years agosystem: Add 'hosts-file' field.
Ludovic Courtès [Thu, 11 Sep 2014 20:03:24 +0000 (22:03 +0200)]
system: Add 'hosts-file' field.

* gnu/system.scm (<operating-system>)[hosts-file]: New field.
  (default-/etc/hosts): New procedure.
  (etc-directory): Add #:hosts-file parameter and honor it.
  (operating-system-etc-directory): Build /etc/hosts, and pass
  it as #:hosts-file to 'etc-directory'.

9 years agosystem: Add default PAM entries for xlock and xscreensaver.
Ludovic Courtès [Thu, 11 Sep 2014 19:53:20 +0000 (21:53 +0200)]
system: Add default PAM entries for xlock and xscreensaver.

* gnu/system/linux.scm (base-pam-services): Add "xlock" and
  "xscreensaver".

9 years agoactivation: Make sure /etc/sudoers & co. are regular files.
Ludovic Courtès [Thu, 11 Sep 2014 19:34:30 +0000 (21:34 +0200)]
activation: Make sure /etc/sudoers & co. are regular files.

Before that, 'sudo' would exit with:

  sudo: /etc/sudoers is not a regular file
  sudo: no valid sudoers sources found, quitting

* gnu/build/activation.scm (activate-etc): Check if SOURCE matches
  'file-is-directory?'.  If not, use 'copy-file' instead of 'symlink'.

9 years agoactivation: Remove outdated comment.
Ludovic Courtès [Thu, 11 Sep 2014 19:27:19 +0000 (21:27 +0200)]
activation: Remove outdated comment.

* gnu/build/activation.scm (activate-etc): Remove outdated comment.

9 years agoactivation: Factorize the link-or-copy trick.
Ludovic Courtès [Thu, 11 Sep 2014 19:25:58 +0000 (21:25 +0200)]
activation: Factorize the link-or-copy trick.

* gnu/build/activation.scm (link-or-copy): New procedure.
  (activate-setuid-programs): Use it.

9 years agognu: Add weechat
Kevin Lemonnier [Thu, 11 Sep 2014 23:49:22 +0000 (01:49 +0200)]
gnu: Add weechat

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

Signed-off-by: Eric Bavier <bavier@member.fsf.org>
9 years agognu: glpk: Update to 4.55.
Andreas Enge [Thu, 11 Sep 2014 14:43:08 +0000 (16:43 +0200)]
gnu: glpk: Update to 4.55.

* gnu/packages/maths.scm (glpk): Update to 4.55.

9 years agognu: global: Update to 6.3.2.
Andreas Enge [Thu, 11 Sep 2014 13:32:09 +0000 (15:32 +0200)]
gnu: global: Update to 6.3.2.

* gnu/packages/global.scm (global): Update to 6.3.2.

9 years agognu: freeipmi: Update to 1.4.5.
Andreas Enge [Thu, 11 Sep 2014 13:25:46 +0000 (15:25 +0200)]
gnu: freeipmi: Update to 1.4.5.

* gnu/packages/freeipmi.scm (freeipmi): Update to 1.4.5.

9 years agognu: Have lua-5.1 compile a .so
Kevin Lemonnier [Thu, 11 Sep 2014 01:12:39 +0000 (03:12 +0200)]
gnu: Have lua-5.1 compile a .so

* gnu/packages/patches/lua51-liblua-so.patch: New file
* gnu/packages/lua.scm: Use of lua51-liblua-so.patch in lua-5.1

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
9 years agonls: Adjust reference to stale file.
Ludovic Courtès [Thu, 11 Sep 2014 07:52:14 +0000 (09:52 +0200)]
nls: Adjust reference to stale file.

* po/packages/POTFILES.in: Replace recutils.scm with databases.scm.

9 years agognu: lzip: Update to 1.16.
Ludovic Courtès [Thu, 11 Sep 2014 07:51:39 +0000 (09:51 +0200)]
gnu: lzip: Update to 1.16.

* gnu/packages/compression.scm (lzip): Update to 1.16.

9 years agoprofiles: Adjust for compatibility with Guile 2.0.5.
Ludovic Courtès [Wed, 10 Sep 2014 21:33:30 +0000 (23:33 +0200)]
profiles: Adjust for compatibility with Guile 2.0.5.

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

* guix/profiles.scm (right-arrow): Use 'set-port-conversion-strategy!'
  instead of '%default-port-conversion-strategy'.  The latter is only
  available in Guile 2.0.5.

9 years agognu: lvm2: Programs such as 'dmsetup' now have a correct RUNPATH.
Ludovic Courtès [Wed, 10 Sep 2014 20:59:27 +0000 (22:59 +0200)]
gnu: lvm2: Programs such as 'dmsetup' now have a correct RUNPATH.

* gnu/packages/linux.scm (alsa-utils): Add comment.
  (lvm2): Add LDFLAGS as a configure flag.

9 years agoinstall: Gracefully handle corner cases with 'guix system init foo /'.
Ludovic Courtès [Wed, 10 Sep 2014 19:39:47 +0000 (21:39 +0200)]
install: Gracefully handle corner cases with 'guix system init foo /'.

* gnu/build/install.scm (evaluate-populate-directive): Wrap body in
  "catch 'system-error", and report clear errors.  In the symlink case,
  retry up EEXIST.
  (populate-root-file-system): Remove /var/guix/profiles/system-1-link
  before attempting to create it.

9 years agoAdd Marek to 'AUTHORS'.
Ludovic Courtès [Wed, 10 Sep 2014 13:44:51 +0000 (15:44 +0200)]
Add Marek to 'AUTHORS'.

9 years agognu: wv: Fix URL.
Ludovic Courtès [Tue, 9 Sep 2014 15:17:46 +0000 (17:17 +0200)]
gnu: wv: Fix URL.

Reported by Marek Benc.

* gnu/packages/wv.scm (wv): Change URL to mirror://.  Also replace one
  NAME occurrence in the URL with 'wvware'.

9 years agoHave (gnu) re-export (guix gexp).
Ludovic Courtès [Tue, 9 Sep 2014 15:13:43 +0000 (17:13 +0200)]
Have (gnu) re-export (guix gexp).

* gnu.scm (%public-modules): Add '(guix gexp)'.

9 years agosystem: Export '%setuid-programs'.
Ludovic Courtès [Tue, 9 Sep 2014 15:12:33 +0000 (17:12 +0200)]
system: Export '%setuid-programs'.

* gnu/system.scm: Export '%setuid-programs', as documented in the
  manual.

9 years agognu: libwmf: Use a mirror:// URL.
Ludovic Courtès [Tue, 9 Sep 2014 13:35:00 +0000 (15:35 +0200)]
gnu: libwmf: Use a mirror:// URL.

* gnu/packages/image.scm (libwmf): Use a mirror://sourceforge URL.

9 years agognu: abiword: Use 'wv', not 'wvware'.
Ludovic Courtès [Tue, 9 Sep 2014 13:33:57 +0000 (15:33 +0200)]
gnu: abiword: Use 'wv', not 'wvware'.

* gnu/packages/abiword.scm: Change 'wvware' to 'wv'.

9 years agognu: Add AbiWord.
Marek Benc [Tue, 9 Sep 2014 11:54:38 +0000 (13:54 +0200)]
gnu: Add AbiWord.

* gnu/packages/patches/abiword-explictly-cast-bools.patch New file.
* gnu/packages/patches/abiword-link-plugins-against-backend.patch: New file.
* gnu/packages/patches/abiword-no-include-glib-internal-headers.patch: New file.
* gnu/packages/patches/abiword-pass-no-undefined-to-linker.patch
* gnu/packages/patches/abiword-use-proper-png-api.patch: New file.
* gnu/packages/patches/abiword-wmf-version-lookup-fix.patch: New file.
* gnu/packages/abiword.scm: New file.
* gnu-system.am (GNU_SYSTEM_MODULES): Add abiword.scm.
  (dist_patch_DATA): Add the 6 patches for abiword.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
9 years agognu: Add ots.
Marek Benc [Tue, 9 Sep 2014 11:39:55 +0000 (13:39 +0200)]
gnu: Add ots.

* gnu/packages/patches/ots-no-include-missing-file.patch: New file.
* gnu/packages/ots.scm: New file.
* gnu-system.am (GNU_SYSTEM_MODULES): Add ots.scm.
  (dist_patch_DATA): Add ots-no-include-missing-file.patch.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
9 years agognu: Add Enchant.
Marek Benc [Tue, 9 Sep 2014 11:34:22 +0000 (13:34 +0200)]
gnu: Add Enchant.

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

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
9 years agognu: Add wv.
Marek Benc [Tue, 9 Sep 2014 09:54:18 +0000 (11:54 +0200)]
gnu: Add wv.

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

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
9 years agognu: Add libwmf.
Marek Benc [Tue, 9 Sep 2014 09:48:44 +0000 (11:48 +0200)]
gnu: Add libwmf.

* gnu/packages/image.scm (libwmf): New variable.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
9 years agognu: Add GNU FriBidi.
Marek Benc [Tue, 9 Sep 2014 09:39:12 +0000 (11:39 +0200)]
gnu: Add GNU FriBidi.

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

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
9 years agognu: Add zsh.
Kevin Lemonnier [Mon, 8 Sep 2014 19:06:31 +0000 (21:06 +0200)]
gnu: Add zsh.

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

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
9 years agolinux-initrd: Store Linux modules in a normal store directory.
Ludovic Courtès [Mon, 8 Sep 2014 21:46:48 +0000 (23:46 +0200)]
linux-initrd: Store Linux modules in a normal store directory.

* gnu/system/linux-initrd.scm (expression->initrd): Remove #:linux and
  #:linux-modules parameters.  Remove call to
  'float-linux-module-directory'.
  (base-initrd): Add call to 'float-linux-module-directory'.  Use it in
  #:linux-modules argument in the gexp.  Remove #:linux and
  #:linux-modules arguments to 'expression->initrd'.
* gnu/build/linux-initrd.scm (build-initrd): Remove
  #:linux-module-directory parameter.  Don't create 'modules'
  sub-directory.
* gnu/build/linux-boot.scm (boot-system): Mentin that LINUX-MODULES is a
  list of absolute file names.  Don't prepend "/modules/" to
  LINUX-MODULES.
* doc/guix.texi (Initial RAM Disk): Adjust accordingly.

9 years agolinux-initrd: Remove #:to-copy argument of 'expression->initrd'.
Ludovic Courtès [Mon, 8 Sep 2014 21:27:40 +0000 (23:27 +0200)]
linux-initrd: Remove #:to-copy argument of 'expression->initrd'.

* gnu/system/linux-initrd.scm (expression->initrd): Remove #:to-copy
  parameter.  Remove 'graph-files', and adjust #:references-graphs
  arguments to just list INIT.
  (base-initrd): Remove #:to-copy argument.
* doc/guix.texi (Initial RAM Disk): Adjust accordingly.

9 years agolinux-initrd: Move initrd creation code to (guix build linux-initrd).
Ludovic Courtès [Mon, 8 Sep 2014 21:20:34 +0000 (23:20 +0200)]
linux-initrd: Move initrd creation code to (guix build linux-initrd).

* gnu/build/linux-initrd.scm (cache-compiled-file-name,
  compile-to-cache, build-initrd): New procedures.
* gnu/system/linux-initrd.scm (expression->initrd)[builder]: Remove code
  now moved above.  Use 'build-initrd'.

9 years agolinux-initrd: Copy all the script's closure to the initrd.
Ludovic Courtès [Mon, 8 Sep 2014 20:26:05 +0000 (22:26 +0200)]
linux-initrd: Copy all the script's closure to the initrd.

* gnu/system/linux-initrd.scm (expression->initrd): Remove calls to
  'imported-modules' and 'compiled-modules'.  Use 'gexp->script' with
  EXP.  Add the result to TO-COPY.  Make /init a symlink to that script,
  and copy its closure into the "contents" directory.  Add fake
  /proc/self/exe symlink.
* gnu/build/linux-boot.scm (load-linux-module*): Add comment about mmap.
* gnu/system/vm.scm (system-qemu-image/shared-store-script): Add "-m
  256".  This turns out to be needed for initrds containing things like
  e2fsck and several modules; with the default of 128 MiB, loading
  libahci.ko may fail with -1.

9 years agognu: Add GNU direvent.
Ludovic Courtès [Mon, 8 Sep 2014 19:48:54 +0000 (21:48 +0200)]
gnu: Add GNU direvent.

* gnu/packages/admin.scm (direvent): New variable.

9 years agognu: Add testdisk.
Ludovic Courtès [Mon, 8 Sep 2014 19:20:55 +0000 (21:20 +0200)]
gnu: Add testdisk.

* gnu/packages/admin.scm (testdisk): New variable.