jackhill/guix/guix.git
9 years agopackages: Generalize package module search.
Ludovic Courtès [Wed, 24 Sep 2014 08:23:27 +0000 (10:23 +0200)]
packages: Generalize package module search.

* gnu/packages.scm (%distro-root-directory): New variable.
  (%distro-module-directory): Remove.
  (package-files): Rename to...
  (scheme-files): ... this.  Return absolute file names, not stripped.
  (file-name->module-name): New procedure.
  (package-modules): Add 'directory' and 'sub-directory' parameters.
  Rewrite accordingly.
  (fold-packages): Adjust 'package-modules' call accordingly.

9 years agognu: maxima: Update to 5.34.1 and add dependencies.
Federico Beffa [Tue, 23 Sep 2014 14:20:02 +0000 (16:20 +0200)]
gnu: maxima: Update to 5.34.1 and add dependencies.

* gnu/packages/maths.scm (maxima): Update to 5.34.1 which fixes a bug in
  the plotting capabilities present in the previous version.  Add Gnuplot
  and Tcl/Tk to 'inputs'.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
9 years agoUse #:prefix instead of #:renamer with 'symbol-prefix-proc'.
Mark H Weaver [Tue, 23 Sep 2014 20:44:22 +0000 (16:44 -0400)]
Use #:prefix instead of #:renamer with 'symbol-prefix-proc'.

* gnu/packages/abiword.scm, gnu/packages/admin.scm, gnu/packages/aidc.scm,
  gnu/packages/backup.scm, gnu/packages/bittorrent.scm,
  gnu/packages/boost.scm, gnu/packages/compression.scm,
  gnu/packages/cryptsetup.scm, gnu/packages/curl.scm,
  gnu/packages/cyrus-sasl.scm, gnu/packages/dc.scm, gnu/packages/emacs.scm,
  gnu/packages/fonts.scm, gnu/packages/fontutils.scm, gnu/packages/geeqie.scm,
  gnu/packages/ghostscript.scm, gnu/packages/gimp.scm,
  gnu/packages/gkrellm.scm, gnu/packages/gl.scm, gnu/packages/glib.scm,
  gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm,
  gnu/packages/gnutls.scm, gnu/packages/gnuzilla.scm, gnu/packages/gsasl.scm,
  gnu/packages/gtk.scm, gnu/packages/gv.scm, gnu/packages/image.scm,
  gnu/packages/indent.scm, gnu/packages/inkscape.scm,
  gnu/packages/lesstif.scm, gnu/packages/links.scm, gnu/packages/lisp.scm,
  gnu/packages/lsh.scm, gnu/packages/lsof.scm, gnu/packages/maths.scm,
  gnu/packages/mp3.scm, gnu/packages/openssl.scm, gnu/packages/ots.scm,
  gnu/packages/pciutils.scm, gnu/packages/pcre.scm, gnu/packages/pdf.scm,
  gnu/packages/pulseaudio.scm, gnu/packages/python.scm, gnu/packages/slim.scm,
  gnu/packages/ssh.scm, gnu/packages/texlive.scm, gnu/packages/vim.scm,
  gnu/packages/vpn.scm, gnu/packages/web.scm, gnu/packages/wv.scm,
  gnu/packages/xiph.scm, gnu/packages/xml.scm, gnu/packages/xorg.scm,
  gnu/packages/yasm.scm, gnu/packages/zip.scm,
  guix/build/cmake-build-system.scm, guix/build/perl-build-system.scm,
  guix/build/python-build-system.scm, guix/download.scm: Replaces uses of
  #:renamer and 'symbol-prefix-proc' with #:prefix.

9 years agognu: gtk+: Disable tests on mips64el-linux.
Mark H Weaver [Tue, 23 Sep 2014 20:23:30 +0000 (16:23 -0400)]
gnu: gtk+: Disable tests on mips64el-linux.

* gnu/packages/gtk.scm (gtk+): Disable tests on mips64el-linux.

9 years agognu: gtk+: Remove dependency on Xorg server on mips64el-linux.
Ludovic Courtès [Sun, 21 Sep 2014 13:13:23 +0000 (15:13 +0200)]
gnu: gtk+: Remove dependency on Xorg server on mips64el-linux.

Reported by Mark H. Weaver.

* gnu/packages/gtk.scm (gtk+)[native-inputs]: Remove XORG-SERVER on
  mips64el-linux.

9 years agoservices: Add 'bitlbee-service'.
Ludovic Courtès [Tue, 23 Sep 2014 21:46:01 +0000 (23:46 +0200)]
services: Add 'bitlbee-service'.

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

9 years agognu: xf86-input-synaptics: Allow building with libc 2.20.
Ludovic Courtès [Tue, 23 Sep 2014 20:49:42 +0000 (22:49 +0200)]
gnu: xf86-input-synaptics: Allow building with libc 2.20.

* gnu/packages/patches/xf86-input-synaptics-glibc-2.20.patch: New file.
* gnu-system.am (dist_patch_DATA): Add it.
* gnu/packages/xorg.scm (xf86-input-synaptics): Use it.  Improve
  synopsis and description.

9 years agognu: node: Add 'which' as an input.
Ludovic Courtès [Tue, 23 Sep 2014 13:30:13 +0000 (15:30 +0200)]
gnu: node: Add 'which' as an input.

* gnu/packages/node.scm (node)[native-inputs]: Add WHICH.

9 years agognu: xorg: Remove xf86-input-vmmouse.
Ludovic Courtès [Tue, 23 Sep 2014 13:13:46 +0000 (15:13 +0200)]
gnu: xorg: Remove xf86-input-vmmouse.

* gnu/packages/xorg.scm (xf86-input-vmmouse): Remove.  This driver
  implement the mouse protocol of a proprietary emulator.
* gnu/services/xorg.scm (xorg-start-command): Remove reference.

9 years agognu: linux-libre: Work around GCC 4.8.3 ICE.
Ludovic Courtès [Tue, 23 Sep 2014 08:12:17 +0000 (10:12 +0200)]
gnu: linux-libre: Work around GCC 4.8.3 ICE.

* gnu/packages/linux.scm (linux-libre)[inputs]: New field.

9 years agosystem: Add Patch to '%base-packages'.
Ludovic Courtès [Mon, 22 Sep 2014 21:11:33 +0000 (23:11 +0200)]
system: Add Patch to '%base-packages'.

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

9 years agoMerge branch 'core-updates'
Ludovic Courtès [Mon, 22 Sep 2014 21:06:33 +0000 (23:06 +0200)]
Merge branch 'core-updates'

9 years agolinux-initrd: Adjust VM code and doc to new 'base-initrd' signature.
Ludovic Courtès [Mon, 22 Sep 2014 19:29:41 +0000 (21:29 +0200)]
linux-initrd: Adjust VM code and doc to new 'base-initrd' signature.

This fixes regressions introduced in de1c158 ("system: Add support for
boot-time mapped devices.").

* doc/guix.texi (Initial RAM Disk): Adjust example with custom use of
  'base-initrd'.  Document #:mapped-devices parameter of 'base-initrd'.
* gnu/system/vm.scm (system-disk-image, system-qemu-image,
  virtualized-operating-system): Adjust call to 'base-initrd' to new
  signature.

9 years agosyscalls: Adjust /proc/net/dev parser for old kernels.
Ludovic Courtès [Mon, 22 Sep 2014 19:12:26 +0000 (21:12 +0200)]
syscalls: Adjust /proc/net/dev parser for old kernels.

* guix/build/syscalls.scm (%interface-line): Remove whitespace in rest
  pattern.  (There's no extra whitespace after the colon with Linux
  2.6.32.)

9 years agodownload: Use the 'SERVER NAME' TLS extension when possible.
Ludovic Courtès [Mon, 22 Sep 2014 19:06:39 +0000 (21:06 +0200)]
download: Use the 'SERVER NAME' TLS extension when possible.

Fixes <http://bugs.gnu.org/18526>.
Reported by Mark H. Weaver.

* guix/build/download.scm (tls-wrap): Add 'server' parameter.  Call
  'set-session-server-name!' when (gnutls) defines it.
  (open-connection-for-uri): Adjust 'tls-wrap' call accordingly.

9 years agognu: perl-tk: Build sequentially.
Ludovic Courtès [Mon, 22 Sep 2014 12:27:24 +0000 (14:27 +0200)]
gnu: perl-tk: Build sequentially.

Fixes <http://bugs.gnu.org/18262>.

* gnu/packages/tcl.scm (perl-tk)[arguments]: Add #:parallel-build? #f.

9 years agoguix package: Use 'profile-generations'.
Alex Kost [Sun, 21 Sep 2014 10:25:56 +0000 (14:25 +0400)]
guix package: Use 'profile-generations'.

* guix/scripts/package.scm (guix-package)[process-actions]: Use
  'profile-generations' instead of the equivalent code.

9 years agoprofiles: Add 'profile-generations'.
Alex Kost [Sun, 21 Sep 2014 10:24:09 +0000 (14:24 +0400)]
profiles: Add 'profile-generations'.

* guix/profiles.scm (profile-generations): New procedure.

9 years agosystem: Add support for boot-time mapped devices.
Ludovic Courtès [Mon, 22 Sep 2014 09:06:42 +0000 (11:06 +0200)]
system: Add support for boot-time mapped devices.

* gnu/build/linux-boot.scm (boot-system): Add #:pre-mount parameter and
  honor it.
* gnu/system/linux-initrd.scm (base-initrd): Add #:mapped-devices
  parameter.  Add 'device-mapping-commands' variable, and use it to
  build the #:pre-mount argument of 'boot-system'.
* gnu/system.scm (mapped-device-user,
  operating-system-user-mapped-devices,
  operating-system-boot-mapped-devices): New procedures.
  (device-mapping-services): Use 'operating-system-user-mapped-devices'
  instead of 'operating-system-mapped-devices'.
  (operating-system-initrd-file): Call the initrd with #:mapped-devices.

9 years agoactivation: Ensure existing user accounts have the right settings.
Ludovic Courtès [Mon, 22 Sep 2014 08:10:08 +0000 (10:10 +0200)]
activation: Ensure existing user accounts have the right settings.

* gnu/build/activation.scm (modify-user, ensure-user): New procedures.
  (activate-users+groups): Systematically call 'ensure-user'.

9 years agognu: valgrind: Update to 3.10.0.
Ludovic Courtès [Mon, 22 Sep 2014 08:07:52 +0000 (10:07 +0200)]
gnu: valgrind: Update to 3.10.0.

* gnu/packages/valgrind.scm (valgrind): Update to 3.10.0.
* gnu/packages/patches/valgrind-glibc.patch: Remove.
* gnu-system.am (dist_patch_DATA): Adjust accordingly.

9 years agognu: duplicity: Add dependency on util-linux.
Ludovic Courtès [Sat, 20 Sep 2014 21:38:16 +0000 (23:38 +0200)]
gnu: duplicity: Add dependency on util-linux.

* gnu/packages/backup.scm (duplicity)[native-inputs]: Add util-linux.

9 years agognu: ots: Build sequentially.
Ludovic Courtès [Sat, 20 Sep 2014 21:14:48 +0000 (23:14 +0200)]
gnu: ots: Build sequentially.

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

9 years agognu: Add sound-theme-freedesktop.
Ludovic Courtès [Sat, 20 Sep 2014 13:10:11 +0000 (15:10 +0200)]
gnu: Add sound-theme-freedesktop.

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

* gnu/packages/libcanberra.scm (sound-theme-freedesktop): New variable.

9 years agognu: libcanberra: Add dependency on PulseAudio and eudev.
Ludovic Courtès [Sat, 20 Sep 2014 13:02:45 +0000 (15:02 +0200)]
gnu: libcanberra: Add dependency on PulseAudio and eudev.

* gnu/packages/libcanberra.scm (libcanberra): Add PulseAudio and eudev
  as inputs.

9 years agognu: emacs: Switch to GTK+ 3.
Ludovic Courtès [Sat, 20 Sep 2014 12:49:20 +0000 (14:49 +0200)]
gnu: emacs: Switch to GTK+ 3.

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

* gnu/packages/emacs.scm (emacs): Switch to GTK+ 3.

9 years agognu: cyrus-sasl: Build sequentially.
Ludovic Courtès [Sat, 20 Sep 2014 12:15:17 +0000 (14:15 +0200)]
gnu: cyrus-sasl: Build sequentially.

* gnu/packages/cyrus-sasl.scm (cyrus-sasl)[arguments]: Pass
  #:parallel-build?.

9 years agooffload: Use a total order when sorting available machines.
Ludovic Courtès [Sat, 20 Sep 2014 10:23:30 +0000 (12:23 +0200)]
offload: Use a total order when sorting available machines.

* guix/scripts/offload.scm (machine-less-loaded?, machine-faster?):
  Remove.
  (machine-power-factor): New procedure.
  (machine-less-loaded-or-faster?): Use it.

9 years agooffload: Try another machine when the "best" machine is overloaded.
Ludovic Courtès [Sat, 20 Sep 2014 10:10:28 +0000 (12:10 +0200)]
offload: Try another machine when the "best" machine is overloaded.

* guix/scripts/offload.scm (choose-build-machine): When BEST is
  overloaded, try the other machines.

9 years agolinux-boot: Ask fsck for a progress bar.
Ludovic Courtès [Fri, 19 Sep 2014 19:51:36 +0000 (21:51 +0200)]
linux-boot: Ask fsck for a progress bar.

* gnu/build/file-systems.scm (check-file-system): Pass '-C 0' to FSCK.
  Suggested by Mark H. Weaver.

9 years agognu: guile-charting: Update to 0.2.0.
Ludovic Courtès [Fri, 19 Sep 2014 12:50:23 +0000 (14:50 +0200)]
gnu: guile-charting: Update to 0.2.0.

* gnu/packages/guile.scm (guile-charting): Update to 0.2.0.  Remove
  now-unnecessary cruft from 'snippet'.  Modify 'godir' in Makefile.in.

9 years agosystem: Fix value of 'EUDEV_RULES_DIRECTORY'.
Ludovic Courtès [Fri, 19 Sep 2014 09:58:49 +0000 (11:58 +0200)]
system: Fix value of 'EUDEV_RULES_DIRECTORY'.

* gnu/services/base.scm (udev-service): Append "/lib/udev/rules.d" to
  EUDEV_RULES_DIRECTORY.

9 years agognu: Fix typos.
Alex Kost [Fri, 19 Sep 2014 11:31:19 +0000 (15:31 +0400)]
gnu: Fix typos.

* gnu/packages/cdrom.scm (cdparanoia): Double space in description.
* gnu/packages/maths.scm (hdf5): Double space in synopsis.

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