jackhill/guix/guix.git
10 years agolinux-initrd: Delete files from the initrd ramfs when switching roots.
Ludovic Courtès [Tue, 6 May 2014 16:09:25 +0000 (18:09 +0200)]
linux-initrd: Delete files from the initrd ramfs when switching roots.

* guix/build/linux-initrd.scm (switch-root): Delete file from the old
  root.  Chdir to / after 'chroot' call.  Re-open file descriptors 0, 1,
  and 2.
  (boot-system): Move 'loading' message after the 'switch-root' call.
* gnu/system.scm (operating-system-boot-script): Add loop that closes
  file descriptor before calling 'execl'.

10 years agognu: pius: Use Python 2.
Ludovic Courtès [Tue, 6 May 2014 14:48:58 +0000 (16:48 +0200)]
gnu: pius: Use Python 2.

* gnu/packages/gnupg.scm (pius): Use Python 2.

10 years agognu: make-bootstrap: Add missing export.
Ludovic Courtès [Tue, 6 May 2014 13:01:39 +0000 (15:01 +0200)]
gnu: make-bootstrap: Add missing export.

* gnu/packages/make-bootstrap.scm: Export '%guile-static-stripped'.  The
  problem was hidden because of <http://bugs.gnu.org/17418>.

10 years agognu: e2fsprogs: Install the libext2fs Info manual.
Ludovic Courtès [Tue, 6 May 2014 12:26:49 +0000 (14:26 +0200)]
gnu: e2fsprogs: Install the libext2fs Info manual.

* gnu/packages/linux.scm (e2fsprogs)[native-inputs]: Add TEXINFO.

10 years agognu: e2fsprogs: Use 'static-package' for the statically-linked variant.
Ludovic Courtès [Tue, 6 May 2014 12:12:41 +0000 (14:12 +0200)]
gnu: e2fsprogs: Use 'static-package' for the statically-linked variant.

* gnu/packages/linux.scm (e2fsprogs/static): Remove.
  (e2fsck/static): Use (static-package e2fsprogs) instead.

10 years agognu: gdb: Upgrade to 7.7.1.
Ludovic Courtès [Tue, 6 May 2014 12:06:41 +0000 (14:06 +0200)]
gnu: gdb: Upgrade to 7.7.1.

* gnu/packages/gdb.scm (gdb): Upgrade to 7.7.1.

10 years agognu: gdb: Add dependency on libxml2.
Ludovic Courtès [Tue, 6 May 2014 12:06:16 +0000 (14:06 +0200)]
gnu: gdb: Add dependency on libxml2.

* gnu/packages/gdb.scm (gdb)[inputs]: Add LIBXML2.

10 years agognu: Add libgsf.
Ludovic Courtès [Mon, 5 May 2014 22:26:10 +0000 (00:26 +0200)]
gnu: Add libgsf.

* gnu/packages/gnome.scm (libgsf): New variable.

10 years agognu: Add libcroco.
Ludovic Courtès [Mon, 5 May 2014 22:07:36 +0000 (00:07 +0200)]
gnu: Add libcroco.

* gnu/packages/gnome.scm (libcroco): New variable.

10 years agognu: pybugz: Add fixlet patches.
Ludovic Courtès [Mon, 5 May 2014 15:12:55 +0000 (17:12 +0200)]
gnu: pybugz: Add fixlet patches.

* gnu/packages/python.scm (python2-pybugz)[source]: Add 'patches'
  field.
* gnu/packages/patches/pybugz-encode-error.patch,
  gnu/packages/patches/pybugz-stty.patch: New files.
* gnu-system.am (dist_patch_DATA): Add them.

10 years agognu-maintenance: Add missing type check.
Ludovic Courtès [Mon, 5 May 2014 07:00:00 +0000 (09:00 +0200)]
gnu-maintenance: Add missing type check.

* guix/gnu-maintenance.scm (gnu-package?): Only call 'mirror-type' when
  URL is a string.

10 years agolinux-initrd: Improve root file system switching.
Ludovic Courtès [Sun, 4 May 2014 20:24:47 +0000 (22:24 +0200)]
linux-initrd: Improve root file system switching.

* guix/build/linux-initrd.scm (move-essential-file-systems,
  switch-root): New procedures.
  (MS_MOVE): New variable.
  (boot-system): Remove 'mount-essential-file-systems' call for ROOT.
  Use 'switch-root' instead of chdir + chroot.

10 years agoservices: networking: Fix typo in static networking service.
Ludovic Courtès [Sun, 4 May 2014 19:09:29 +0000 (21:09 +0200)]
services: networking: Fix typo in static networking service.

* gnu/services/networking.scm (static-networking-service): Use
  $inetutils/bin/ifconfig, not $inetutils/sbin/ifconfig.

10 years agognu: Add missing import in (gnu packages maths).
Ludovic Courtès [Sun, 4 May 2014 09:15:30 +0000 (11:15 +0200)]
gnu: Add missing import in (gnu packages maths).

* gnu/packages/maths.scm: Use (guix utils), which was needed since
  b9100e2f.

10 years agolinux-initrd: Check the root and other early file systems.
Ludovic Courtès [Sat, 3 May 2014 22:30:39 +0000 (00:30 +0200)]
linux-initrd: Check the root and other early file systems.

* gnu/system.scm (operating-system-derivation)[boot-file-systems]: Keep "/".
* gnu/system/linux-initrd.scm (file-system->spec): Keep the 'check?'
  flag.
  (qemu-initrd)[helper-packages]: New variable.  Pass it as #:to-copy.
  <gexp>: Add 'set-path-environment-variable' call.  Remove #:unionfs
  argument for 'boot-system'.
* gnu/system/vm.scm (%linux-vm-file-systems): Add 'check?' field/
  (virtualized-operating-system): Likewise for the "9p" file system.
* guix/build/linux-initrd.scm (mount-root-file-system): Change #:unionfs
  default.  Call 'check-file-system' before mounting ROOT, when
  VOLATILE-ROOT? is false.
  (check-file-system): New procedure.
  (mount-file-system): Honor 'check?' element in list; add
  'check-file-system' call.
  (boot-system): Remove #:root-fs-type and #:unionfs parameters.
  [root-mount-point?, root-fs-type]: New variables.
  Call 'mount-file-system' on all MOUNTS but "/".

10 years agoactivation: Fix deletion of setuid programs.
Ludovic Courtès [Sat, 3 May 2014 22:18:46 +0000 (00:18 +0200)]
activation: Fix deletion of setuid programs.

* guix/build/activation.scm (activate-setuid-programs): When
  %SETUID-DIRECTORY exists, pass the right file names to 'delete-file'.

10 years agognu: Add statically-linked versions of e2fsprogs and the fsck.* commands.
Ludovic Courtès [Sat, 3 May 2014 14:37:04 +0000 (16:37 +0200)]
gnu: Add statically-linked versions of e2fsprogs and the fsck.* commands.

* gnu/packages/linux.scm (e2fsprogs/static, e2fsck/static): New
  variables.

10 years agovm: Provide a root partition for the freestanding VM image.
Ludovic Courtès [Sat, 3 May 2014 10:45:43 +0000 (12:45 +0200)]
vm: Provide a root partition for the freestanding VM image.

Fixes a regression introduced in 83bcd0b.

* gnu/system/vm.scm (system-qemu-image): Override the 'file-systems'
  field of OS.  Add #:file-system-type parameter and honor it.

10 years agovm: Make root file system type a parameter, and default to ext4.
Ludovic Courtès [Sat, 3 May 2014 10:16:10 +0000 (12:16 +0200)]
vm: Make root file system type a parameter, and default to ext4.

* gnu/system/vm.scm (qemu-image): Add #:file-system-type parameter.
  Pass it to 'initialize-hard-disk'.
* guix/build/linux-initrd.scm (mount-root-file-system): Always honor
  TYPE.
  (boot-system): Change #:root-fs-type to default to "ext4".  Update
  docstring.
* guix/build/vm.scm (initialize-hard-disk): Remove #:mkfs parameter; add
  #:file-system-type.  Adjust 'mkfs' invocation and 'mount' call to
  honor #:file-system-type.

10 years agodoc: Minor improvements in "G-Expressions".
Ludovic Courtès [Sat, 3 May 2014 10:02:43 +0000 (12:02 +0200)]
doc: Minor improvements in "G-Expressions".

* doc/guix.texi (G-Expressions): Show coreutils version number in store
  file name.  Add xref to "Derivations", in documentation of
  'gexp->derivation'.  Fix typo.

10 years agognu: Add diffstat.
Ludovic Courtès [Fri, 2 May 2014 22:46:34 +0000 (00:46 +0200)]
gnu: Add diffstat.

* gnu/packages/version-control.scm (diffstat): New variable.

10 years agoftp-client: Add missing CR in "USER" command.
Ludovic Courtès [Fri, 2 May 2014 22:43:37 +0000 (00:43 +0200)]
ftp-client: Add missing CR in "USER" command.

* guix/ftp-client.scm (%ftp-login): Add #\return before #\newline.
  Fixes access to some FTP servers, such as
  ftp://invisible-island.net ("ProFTPD 1.3.4a Server").

10 years agosystem: Add first-class file system declarations.
Ludovic Courtès [Fri, 2 May 2014 22:26:07 +0000 (00:26 +0200)]
system: Add first-class file system declarations.

* gnu/system.scm (<operating-system>)[initrd]: Default to
  'qemu-initrd'.
  (<file-system>): New record type.
  (operating-system-root-file-system): New procedure.
  (operating-system-derivation): Take the device name for GRUB from
  'operating-system-root-file-system'.  Pass the
  'operating-system-initrd' procedure the list of boot file systems.
* gnu/system/linux-initrd.scm (file-system->spec): New procedure.
  (qemu-initrd): Add 'file-systems' parameter, and remove #:mounts
  parameter.
  [file-system-type-predicate]: New procedure.
  [linux-modules]: Use it.
  Adjust #:mounts argument in 'boot-system' call.
  (gnu-system-initrd): Remove.
* gnu/system/vm.scm (%linux-vm-file-systems): New variable.
  (expression->derivation-in-linux-vm): Adjust call to 'qemu-initrd'.
  (virtualized-operating-system): New procedure.
  (system-qemu-image/shared-store-script)[initrd]: Remove.  Use
  'virtualized-operating-system'.  Get the 'initrd' file from OS-DRV.
* guix/build/linux-initrd.scm (mount-qemu-smb-share, mount-qemu-9p):
  Remove.
  (MS_RDONLY, MS_BIND): New global variables.
  (bind-mount): Remove local 'MS_BIND' definition.
  (mount-root-file-system): New procedure, with code formerly in
  'boot-system'.
  (mount-file-system): New procedure.
  (boot-system): Add #:root-fs-type parameter.  Remove 'MS_RDONLY' local
  variable.  Use 'mount-root-file-system' and 'mount-file-system'.
* doc/guix.texi (Using the Configuration System): Add 'file-system'
  declaration.

10 years agognu: Add missing copyright line
Eric Bavier [Fri, 2 May 2014 19:23:16 +0000 (14:23 -0500)]
gnu: Add missing copyright line

* gnu/packages/maths.scm: Add copyright line missing from 3de01d3.

10 years agognu: petsc: Add input superlu.
Eric Bavier [Fri, 2 May 2014 19:11:37 +0000 (14:11 -0500)]
gnu: petsc: Add input superlu.

* gnu/packages/maths.scm (petsc): Configure with superlu support.

10 years agognu: Add superlu
Eric Bavier [Fri, 2 May 2014 15:44:50 +0000 (10:44 -0500)]
gnu: Add superlu

* gnu/packages/maths.scm (superlu): New variable

10 years agognu: qemu: Upgrade to 2.0.0.
Ludovic Courtès [Thu, 1 May 2014 20:04:50 +0000 (22:04 +0200)]
gnu: qemu: Upgrade to 2.0.0.

* gnu/packages/qemu.scm (qemu-headless): Upgrade to 2.0.0.

10 years agodownload: Rewrite using gexps.
Ludovic Courtès [Thu, 1 May 2014 19:07:52 +0000 (21:07 +0200)]
download: Rewrite using gexps.

* guix/download.scm (gnutls-derivation): Remove.
  (gnutls-package): New procedure.
  (url-fetch): Rewrite using 'gexp->derivation'.

10 years agomonads, gexp: Remove unintended dependency on (gnu packages …).
Ludovic Courtès [Thu, 1 May 2014 16:53:16 +0000 (18:53 +0200)]
monads, gexp: Remove unintended dependency on (gnu packages …).

* guix/gexp.scm (gexp->derivation, gexp->script): Use 'default-guile'
  instead of an explicit reference to 'guile-final'.
  (default-guile): New procedure.
* guix/monads.scm (run-with-store)[default-guile]: New procedure.
  Use it.

10 years agogexp: Add support for 'origin?' objects in 'ungexp' forms.
Ludovic Courtès [Thu, 1 May 2014 14:15:00 +0000 (16:15 +0200)]
gexp: Add support for 'origin?' objects in 'ungexp' forms.

* guix/gexp.scm (lower-inputs, gexp-inputs, gexp->sexp,
  canonicalize-reference): Add 'origin?' case.
* guix/monads.scm (origin->derivation): New procedure.
* tests/gexp.scm ("one input origin"): New test.

10 years agosystem: Add 'sudo' to the setuid programs, and handle /etc/sudoers.
Ludovic Courtès [Thu, 1 May 2014 13:29:24 +0000 (15:29 +0200)]
system: Add 'sudo' to the setuid programs, and handle /etc/sudoers.

* gnu/system.scm (<operating-system>)[groups]: Change default to just
  the 'root' group.
  [sudoers]: New field.
  (etc-directory): Add #:sudoers parameter.  Add 'sudoers' to the
  file union.
  (operating-system-etc-directory): Pass #:sudoers to 'etc-directory'.
  (%setuid-programs): Add 'sudo'.
  (%sudoers-specification): New variable.
* gnu/system/linux.scm (base-pam-services): Add 'sudo'.
* build-aux/hydra/demo-os.scm: Add 'groups' field; add 'guest' to the
  'wheel' group.

10 years agognu: Add petsc
Eric Bavier [Wed, 30 Apr 2014 19:01:43 +0000 (14:01 -0500)]
gnu: Add petsc

* gnu/packages/maths.scm (petsc): New variable.
  (petsc-complex): New variable.
* gnu/packages/patches/petsc-fix-threadcomm.patch: New patch.
* gnu-system.am (dist_patch_DATA): Add it.

10 years agognu: Add abbaye.
David Thompson [Thu, 1 May 2014 00:36:32 +0000 (20:36 -0400)]
gnu: Add abbaye.

* gnu/packages/games.scm (abbaye): New variable.

10 years agognu: Propagate necessary inputs for sdl-image.
David Thompson [Thu, 1 May 2014 00:35:45 +0000 (20:35 -0400)]
gnu: Propagate necessary inputs for sdl-image.

* gnu/packages/sdl.scm (sdl-image): Propagate jpeg, png, and tiff
  libraries.

10 years agogexp: Add pretty printer.
Ludovic Courtès [Wed, 30 Apr 2014 21:16:03 +0000 (23:16 +0200)]
gexp: Add pretty printer.

* guix/gexp.scm (write-gexp): New procedure.
  <top level>: Add call to 'set-record-type-printer!'.

10 years agognu: Add sudo.
Ludovic Courtès [Wed, 30 Apr 2014 21:15:22 +0000 (23:15 +0200)]
gnu: Add sudo.

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

10 years agosystem: Add support for setuid binaries.
Ludovic Courtès [Wed, 30 Apr 2014 20:17:56 +0000 (22:17 +0200)]
system: Add support for setuid binaries.

* gnu/system.scm (<operating-system>)[pam-services, setuid-programs]:
  New fields.
  (etc-directory)[bashrc]: Prepend /run/setuid-programs to $PATH.
  (operating-system-etc-directory): Honor
  'operating-system-pam-services'.
  (%setuid-programs): New variable.
  (operating-system-boot-script): Add (guix build utils) to the set of
  imported modules.  Call 'activate-setuid-programs' in boot script.
* gnu/system/linux.scm (base-pam-services): New procedure.
* guix/build/activation.scm (%setuid-directory): New variable.
  (activate-setuid-programs): New procedure.
* build-aux/hydra/demo-os.scm: Add 'pam-services' field.

10 years agolinux-initrd: Allow setuid binaries from the unionfs to run.
Ludovic Courtès [Wed, 30 Apr 2014 20:11:01 +0000 (22:11 +0200)]
linux-initrd: Allow setuid binaries from the unionfs to run.

* guix/build/linux-initrd.scm (boot-system): Pass the 'suid' option to
  UNIONFS.

10 years agosystem: Add (guix build activation).
Ludovic Courtès [Wed, 30 Apr 2014 13:44:59 +0000 (15:44 +0200)]
system: Add (guix build activation).

* gnu/services/dmd.scm (dmd-configuration-file): Remove 'etc'
  parameter.  Move /etc activation code to...
* guix/build/activation.scm: ... here; new file.
* gnu/system.scm (operating-system-boot-script): Augment script: add
  (guix build activation) to the load path; call 'activate-etc'.
* Makefile.am (MODULES): Add guix/build/activation.scm.

10 years agognu: calcurse: Fix module definition.
Eric Bavier [Wed, 30 Apr 2014 20:12:43 +0000 (15:12 -0500)]
gnu: calcurse: Fix module definition.

* gnu/packages/calcurse.scm: Define calcurse module correctly.

10 years agognu: gmsh: Fix typos
Eric Bavier [Wed, 30 Apr 2014 19:56:52 +0000 (14:56 -0500)]
gnu: gmsh: Fix typos

* gnu/packages/maths.scm (gmsh): Fix typo and space aftern
  end-of-sentence.

10 years agognu: Add gmsh
Eric Bavier [Thu, 24 Apr 2014 20:13:59 +0000 (15:13 -0500)]
gnu: Add gmsh

* gnu/packages/maths.scm (gmsh): New variable

10 years agoderivations: Micro-optimize 'derivation'.
Ludovic Courtès [Tue, 29 Apr 2014 16:13:10 +0000 (18:13 +0200)]
derivations: Micro-optimize 'derivation'.

* guix/derivations.scm (derivation->string): New procedure.
  (derivation-hash, derivation): Use it.
  Memoization here yields a 5% improvement on "guix build -e '(@ (gnu
  packages emacs) emacs)' -n --no-substitutes".

10 years agognu: guile-ncurses: Build with Unicode support.
Ludovic Courtès [Tue, 29 Apr 2014 16:05:52 +0000 (18:05 +0200)]
gnu: guile-ncurses: Build with Unicode support.

* gnu/packages/guile.scm (guile-ncurses)[arguments]: Pass
  "--with-ncursesw".

10 years agognu-maintenance: Avoid network access in 'gnu-package?'.
Ludovic Courtès [Tue, 29 Apr 2014 16:02:16 +0000 (18:02 +0200)]
gnu-maintenance: Avoid network access in 'gnu-package?'.

* guix/gnu-maintenance.scm (gnu-package?): Add 'mirror-type' procedure.
  Resort to 'official-gnu-packages' only when 'mirror-type' returns #f.

10 years agoUpdate 'TODO'.
Ludovic Courtès [Tue, 29 Apr 2014 15:59:23 +0000 (17:59 +0200)]
Update 'TODO'.

10 years agogexp: Remove leftover parameter.
Ludovic Courtès [Tue, 29 Apr 2014 15:58:34 +0000 (17:58 +0200)]
gexp: Remove leftover parameter.

* guix/gexp.scm (gexp->sexp): Remove #:outputs parameter.  Adjust
  callers accordingly.

10 years agognu: screen: Upgrade to 4.2.1.
Ludovic Courtès [Mon, 28 Apr 2014 21:53:01 +0000 (23:53 +0200)]
gnu: screen: Upgrade to 4.2.1.

* gnu/packages/screen.scm (screen): Upgrade to 4.2.1.

10 years agognu: mcron: Upgrade to 1.0.7.
Ludovic Courtès [Mon, 28 Apr 2014 21:52:13 +0000 (23:52 +0200)]
gnu: mcron: Upgrade to 1.0.7.

* gnu/packages/guile.scm (mcron): Upgrade to 1.0.7.
  Use GUILE-2.0 instead of GUILE-1.8; add 'native-inputs' field.

10 years agomonads: Hide 'derivation-expression' and 'lower-inputs'.
Ludovic Courtès [Sun, 27 Apr 2014 21:19:11 +0000 (23:19 +0200)]
monads: Hide 'derivation-expression' and 'lower-inputs'.

* guix/monads.scm: Unexport 'lower-inputs' and 'derivation-expression'.
  (text-file*): Add comment about the switch to 'gexp->derivation'.
  (lower-inputs): Add comment about its doom.
  (derivation-expression): Likewise.
* guix/gexp.scm (lower-inputs*): Rename to...
  (lower-inputs): ... this.  Update callers.
* tests/monads.scm (derivation-expression): New procedure.
* doc/guix.texi (The Store Monad): Use 'gexp->derivation' instead of
  'derivation-expression'.  Remove documentation of
  'derivation-expression'.
* guix/ui.scm (read/eval): Use THE-ROOT-MODULE so that macros are
  properly expanded.
* tests/guix-build.sh: Use 'gexp->derivation' instead of
  'derivation-expression'.monads: Hide 'derivation-expression' and 'lower-inputs'.

10 years agolinux-initrd: Rewrite using gexps.
Ludovic Courtès [Sun, 27 Apr 2014 21:06:15 +0000 (23:06 +0200)]
linux-initrd: Rewrite using gexps.

* gnu/system/linux-initrd.scm (expression->initrd): Rename 'inputs'
  parameter to 'to-copy'.  Remove 'files-to-copy'.  Rewrite 'builder' as
  a gexp, and use 'gexp->derivation'.
  (qemu-initrd): Adjust accordingly.

10 years agosystem: Rewrite 'union' using gexps.
Ludovic Courtès [Sun, 27 Apr 2014 20:40:48 +0000 (22:40 +0200)]
system: Rewrite 'union' using gexps.

* gnu/system.scm (union): Rewrite using 'gexp->derivation'.

10 years agoservices: xorg: Rewrite using gexps.
Ludovic Courtès [Sun, 27 Apr 2014 17:28:47 +0000 (19:28 +0200)]
services: xorg: Rewrite using gexps.

* gnu/services/xorg.scm (xorg-start-command): Rewrite in terms of
  'gexp->script'.
  (xinitrc): Likewise.

10 years agosystem: grub: Rewrite using gexps.
Ludovic Courtès [Mon, 28 Apr 2014 21:40:24 +0000 (23:40 +0200)]
system: grub: Rewrite using gexps.

* gnu/system/grub.scm (grub-configuration-file): Rewrite using
  'gexp->derivation'.
* gnu/system.scm (operating-system-derivation): Adjust accordingly.

10 years agosystem: Change 'file-union' to use gexps.
Ludovic Courtès [Sun, 27 Apr 2014 14:50:34 +0000 (16:50 +0200)]
system: Change 'file-union' to use gexps.

* gnu/system.scm (file-union): Make 'name' the first parameter; remove
  'inputs' parameter.  Rewrite using 'gexp->derivation'.
  (etc-directory): Adjust accordingly.
  (operating-system-derivation): Ditto.

10 years agoservices: Rewrite using gexps.
Ludovic Courtès [Mon, 28 Apr 2014 21:07:08 +0000 (23:07 +0200)]
services: Rewrite using gexps.

* gnu/services.scm (<service>)[inputs]: Remove.
* gnu/system.scm (links): Remove.
  (etc-directory): Add PASSWD and SHADOW to #:inputs.
  (operating-system-boot-script): Pass ETC to 'dmd-configuration-file'.
  (operating-system-derivation): Remove EXTRAS from the union.
* gnu/system/linux.scm (pam-service->configuration): Rewrite in terms of
  'gexp->derivation'.  Compute the contents on the build side.  Expect
  'arguments' to contain a list of gexps.
  (pam-services->directory): Rewrite in terms of 'gexp->derivation'.
  (unix-pam-service): Change 'arguments' to a list of one gexp.
* gnu/system/shadow.scm (<user-account>)[inputs]: Remove.
  [shell]: Change default value to a gexp.
  (passwd-file): Rewrite in terms of 'gexp->derivation'.  Compute
  contents on the build side.
* gnu/services/base.scm (host-name-service, mingetty-service,
  nscd-service, syslog-service, guix-service): Change 'start' and 'stop'
  to gexps; remove 'inputs' field.
  (guix-build-accounts): Change 'shell' field to a gexp.
* gnu/services/networking.scm (static-networking-service): Change
  'start' and 'stop' to gexps; remove 'inputs' field.
* gnu/services/xorg.scm (slim-service): Likewise.
* gnu/services/dmd.scm (dmd-configuration-file): Expect ETC to be a
  derivation.  Change 'config' to a gexp.  Use 'gexp->file' instead of
  'text-file'.
* doc/guix.texi (Defining Services): Update nscd example with gexps, and
  without 'inputs'.  Add xref to "G-Expressions".

10 years agovm: Rewrite support procedures to use gexps.
Ludovic Courtès [Sun, 27 Apr 2014 12:58:15 +0000 (14:58 +0200)]
vm: Rewrite support procedures to use gexps.

* gnu/system/vm.scm (%imported-modules): Remove.
  (expression->derivation-in-linux-vm): Remove 'inputs' parameter.
  Rename 'imported-modules' to 'modules'.  Rewrite using gexps and
  'gexp->derivation'.
  (qemu-image): Add 'qemu' parameter.  Pass NAME to
  'expression->derivation-in-linux-vm'.  Rewrite using gexps.  Remove
  #:inputs argument to 'expression->derivation-in-linux-vm'.
  (operating-system-default-contents): Rewrite using gexps.
* gnu/system.scm (operating-system-profile-derivation): Rename to...
  (operating-system-profile): ... this.  Adjust callers.
  (operating-system-profile-directory): Remove.

10 years agostore: (direct-store-path? (%store-prefix)) returns #f.
Ludovic Courtès [Sat, 26 Apr 2014 14:38:38 +0000 (16:38 +0200)]
store: (direct-store-path? (%store-prefix)) returns #f.

* guix/store.scm (direct-store-path?): Return #f if PATH
  is (%store-prefix).
* tests/store.scm ("direct-store-path?"): Add test.

10 years agognu: Use gexps in obvious places in (gnu system ...).
Ludovic Courtès [Sat, 26 Apr 2014 14:36:48 +0000 (16:36 +0200)]
gnu: Use gexps in obvious places in (gnu system ...).

* gnu/system.scm (operating-system-boot-script): Use 'gexp->file'
  instead of 'text-file*'.
* gnu/system/vm.scm (expression->derivation-in-linux-vm): Likewise.
  (system-qemu-image/shared-store-script)[builder]: Turn into a gexp.
  Use 'gexp->derivation' instead of 'derivation-expression'.

10 years agoAdd (guix gexp).
Ludovic Courtès [Mon, 28 Apr 2014 21:00:57 +0000 (23:00 +0200)]
Add (guix gexp).

* guix/gexp.scm: New file.
* tests/gexp.scm: New file.
* Makefile.am (MODULES): Add guix/gexp.scm.
  (SCM_TESTS): Add tests/gexp.scm.
* doc/guix.texi (Derivations): Add #:inputs in 'derivation' example.
  Mark 'build-expression->derivation' as deprecated, refer to
  "G-Expressions".  Remove paragraph about code strata.
  (G-Expressions): New node.

10 years agognu: soprano: Add input clucene.
Andreas Enge [Mon, 28 Apr 2014 18:20:52 +0000 (20:20 +0200)]
gnu: soprano: Add input clucene.

* gnu/packages/rdf.scm (soprano): Add input clucene and patch the cmake
    file looking for it.
* gnu/packages/patches/soprano-find-clucene.patch: New file.
* gnu-system.am (dist_patch_DATA): Register the patch.

10 years agognu: soprano: Upgrade to 2.9.4.
Andreas Enge [Mon, 28 Apr 2014 18:09:27 +0000 (20:09 +0200)]
gnu: soprano: Upgrade to 2.9.4.

* gnu/packages/rdf.scm (soprano): Upgrade to 2.9.4.

10 years agoguix: cmake: Add input and package libraries to the rpath, and adapt package
Andreas Enge [Sun, 27 Apr 2014 09:09:07 +0000 (11:09 +0200)]
guix: cmake: Add input and package libraries to the rpath, and adapt package
  definitions accordingly.

* guix/build/cmake-build-system.scm (configure): Add flags.
* gnu/packages/maths.scm (lapack): Drop special code.
* gnu/packages/ssh.scm (libssh): Drop special code.
* gnu/packages/slim.scm (slim): Drop special code and enable shared library.

Co-authored-by: Eric Bavier <bavier@member.fsf.org>
10 years agognu: soprano: Add native input doxygen.
Andreas Enge [Thu, 24 Apr 2014 22:24:48 +0000 (00:24 +0200)]
gnu: soprano: Add native input doxygen.

* gnu/packages/rdf.scm (soprano): Add native input doxygen.

10 years agognu: doxygen: Add propagated input graphviz.
Andreas Enge [Thu, 24 Apr 2014 22:31:41 +0000 (00:31 +0200)]
gnu: doxygen: Add propagated input graphviz.

* gnu/packages/doxygen.scm (doxygen): Add propagated input graphviz.

10 years agognu: libkate: Add native input doxygen and make input pkg-config native.
Andreas Enge [Thu, 24 Apr 2014 22:20:31 +0000 (00:20 +0200)]
gnu: libkate: Add native input doxygen and make input pkg-config native.

* gnu/packages/xiph.scm (libkate): Add native input doxygen.
    Make input pkg-config native.

10 years agognu: libmpdclient: Add native input doxygen.
Andreas Enge [Thu, 24 Apr 2014 22:16:30 +0000 (00:16 +0200)]
gnu: libmpdclient: Add native input doxygen.

* gnu/packages/mpd.scm (libmpdclient): Add native input doxygen.

10 years agognu: libdbusmenu-qt: Add native input doxygen for building the documentation,
Andreas Enge [Thu, 24 Apr 2014 22:09:59 +0000 (00:09 +0200)]
gnu: libdbusmenu-qt: Add native input doxygen for building the documentation,
  and make input qjson native.

* gnu/packages/kde.scm (libdbusmenu-qt): Add native input doxygen for
    building the documentation.
    Make input qjson native, as it is needed only for the tests.

10 years agognu: Add doxygen.
Andreas Enge [Thu, 24 Apr 2014 22:03:36 +0000 (00:03 +0200)]
gnu: Add doxygen.

* gnu/packages/doxygen.scm: New file.
* gnu/packages/patches/doxygen-test.patch,
  gnu/packages/patches/doxygen-tmake.patch: New files.
* gnu-system.am (GNU_SYSTEM_MODULES, dist_patch_DATA): Register the new files.

10 years agobuild: Add missing function checks for optional daemon features.
Ludovic Courtès [Thu, 24 Apr 2014 15:39:12 +0000 (17:39 +0200)]
build: Add missing function checks for optional daemon features.

* config-daemon.ac: Check for lchown, posix_fallocate, vfork,
  sched_setaffinity, statvfs, nanosleep, and strsignal.  As a side
  effect, this enables daemon features depending on the corresponding
  feature test macros.

10 years agognu: gp2c: Upgrade to 0.0.9pl1.
Andreas Enge [Thu, 24 Apr 2014 09:09:15 +0000 (11:09 +0200)]
gnu: gp2c: Upgrade to 0.0.9pl1.

* gnu/packages/algebra.scm (gp2c): Upgrade to 0.0.9pl1.

10 years agovm: Clarify 'system-qemu-image/shared-store-script'.
Ludovic Courtès [Wed, 23 Apr 2014 14:53:36 +0000 (16:53 +0200)]
vm: Clarify 'system-qemu-image/shared-store-script'.

* gnu/system/vm.scm (system-qemu-image/shared-store-script): Move
  'initrd' definition to the top-level.  Have a single definition of
  'initrd', 'image', and 'os-drv'.

10 years agosystem: Add 'operating-system-boot-script'.
Ludovic Courtès [Wed, 23 Apr 2014 14:52:14 +0000 (16:52 +0200)]
system: Add 'operating-system-boot-script'.

* gnu/system.scm (operating-system-boot-script): New procedure.
  (operating-system-derivation): Use it.  Remove DMD-CONF from the
  file union.  Add BOOT-DRV to the inputs.

10 years agosystem: Factorize (gnu system).
Ludovic Courtès [Wed, 23 Apr 2014 13:47:42 +0000 (15:47 +0200)]
system: Factorize (gnu system).

* gnu/system.scm (operating-system-accounts,
  operating-system-etc-directory): New procedures.
  (operating-system-derivation): Use them.
* gnu/services/base.scm (%base-services): Add 'host-name-service'
  invocation.

10 years agognu: cyrus-sasl: Add alternate source URL.
Ludovic Courtès [Tue, 22 Apr 2014 20:15:18 +0000 (22:15 +0200)]
gnu: cyrus-sasl: Add alternate source URL.

* gnu/packages/cyrus-sasl.scm (cyrus-sasl)[source]: Add alternate URL;
  the previous one is currently unreachable.

10 years agognu: mplayer: Add mpg123 as an input.
Ludovic Courtès [Tue, 22 Apr 2014 18:42:00 +0000 (20:42 +0200)]
gnu: mplayer: Add mpg123 as an input.

* gnu/packages/video.scm (mplayer)[inputs]: Add mpg123.

10 years agognu: Add mpg123.
Ludovic Courtès [Tue, 22 Apr 2014 18:41:25 +0000 (20:41 +0200)]
gnu: Add mpg123.

* gnu/packages/mp3.scm (mpg123): New variable.

10 years agognu: Add GCC 4.9.0.
Ludovic Courtès [Tue, 22 Apr 2014 15:44:45 +0000 (17:44 +0200)]
gnu: Add GCC 4.9.0.

* gnu/packages/gcc.scm (gcc-4.9): New variable.
* gnu/packages/base.scm (gcc-toolchain-4.9): New variable.

10 years agognu: openssl: Fixes for CVE-2010-5298 and extension checking.
Mark H Weaver [Mon, 21 Apr 2014 14:04:17 +0000 (10:04 -0400)]
gnu: openssl: Fixes for CVE-2010-5298 and extension checking.

* gnu/packages/patches/openssl-CVE-2010-5298.patch: New file.
* gnu/packages/patches/openssl-extension-checking-fixes.patch: New file.
* gnu/packages/openssl.scm (openssl): Add them.
* gnu-system.am (dist_patch_DATA): Add them.

10 years agopk-crypto: Add pretty-printer to 'gcry-error' exceptions.
Ludovic Courtès [Tue, 22 Apr 2014 09:41:52 +0000 (11:41 +0200)]
pk-crypto: Add pretty-printer to 'gcry-error' exceptions.

* guix/pk-crypto.scm (string->canonical-sexp, sign, generate-key): Pass
  the procedure name as the first argument to 'throw'.
  (gcrypt-error-printer): New procedure.
  <top level>: Add call to 'set-exception-printer!'.
* guix/nar.scm (restore-one-item): Add 'proc' parameter to 'catch'
  handler for 'gcry-error.
* guix/scripts/archive.scm (%options, generate-key-pair, authorize-key):
  Likewise.
* guix/scripts/substitute-binary.scm (narinfo-signature->canonical-sexp):
  Likewise.

10 years agoauthenticate: Allow signatures with binary data to be written to stdout.
Ludovic Courtès [Tue, 22 Apr 2014 09:30:51 +0000 (11:30 +0200)]
authenticate: Allow signatures with binary data to be written to stdout.

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

* guix/scripts/authenticate.scm (guix-authenticate): Add calls to
  'set-port-encoding!' and 'set-port-conversion-strategy!'.  Wrap body
  in 'with-fluids' form that sets '%default-port-encoding' and
  '%default-port-conversion-strategy'.
* tests/guix-authenticate.sh: Add test.
* tests/pk-crypto.scm ("hash corrupt due to restrictive locale
  encoding"): Add reference to bug.

10 years agopk-crypto: Use ISO-8859-1 for strings passed to 'gcry_sexp_new'.
Ludovic Courtès [Mon, 21 Apr 2014 23:36:31 +0000 (01:36 +0200)]
pk-crypto: Use ISO-8859-1 for strings passed to 'gcry_sexp_new'.

* guix/pk-crypto.scm (string->canonical-sexp): Pass "ISO-8859-1" as the
  2nd argument to 'string->pointer'.
* tests/pk-crypto.scm ("version"): New test.
  ("hash corrupt due to restrictive locale encoding"): New test.

10 years agonar: Really really protect the temporary store directory from GC.
Ludovic Courtès [Mon, 21 Apr 2014 21:23:34 +0000 (23:23 +0200)]
nar: Really really protect the temporary store directory from GC.

This is a follow-up to 6071b55e10b7b6e67d77ae058c8744834889e0b4.
See <https://lists.gnu.org/archive/html/guix-devel/2014-04/msg00167.html>
for the original report, and
<https://lists.gnu.org/archive/html/guix-devel/2014-04/msg00198.html>
for an alternate solution that has been discussed.

* guix/nar.scm (temporary-store-file): Remove call to
  'add-permanent-root'; don't loop.
  (with-temporary-store-file): Rewrite using 'with-store' and
  'add-temp-root'.

10 years agognu: Add mplayer.
Andreas Enge [Thu, 17 Apr 2014 16:57:46 +0000 (18:57 +0200)]
gnu: Add mplayer.

* gnu/packages/video.scm (mplayer): New variable.

10 years agognu: xorg: libxxf86dga: Propagate input xf86dgaproto.
Andreas Enge [Thu, 17 Apr 2014 16:43:40 +0000 (18:43 +0200)]
gnu: xorg: libxxf86dga: Propagate input xf86dgaproto.

* gnu/packages/xorg.scm (libxxf86dga): Propagate input xf86dgaproto.

10 years agognu: Add vlc.
Andreas Enge [Wed, 16 Apr 2014 15:46:42 +0000 (17:46 +0200)]
gnu: Add vlc.

* gnu/packages/video.scm (vlc): New variable.

10 years agognu: lua: Add older version 5.1.5.
Andreas Enge [Wed, 16 Apr 2014 13:31:24 +0000 (15:31 +0200)]
gnu: lua: Add older version 5.1.5.

* gnu/packages/lua.scm (lua-5.1): New variable.

10 years agognu: lua: Upgrade to 5.2.3.
Andreas Enge [Wed, 16 Apr 2014 13:14:43 +0000 (15:14 +0200)]
gnu: lua: Upgrade to 5.2.3.

* gnu/packages/lua.scm (lua): Upgrade to 5.2.3.

10 years agognu: lua: Compile with -fPIC.
Andreas Enge [Wed, 16 Apr 2014 13:12:46 +0000 (15:12 +0200)]
gnu: lua: Compile with -fPIC.

* gnu/packages/lua.scm (lua): Add -fPIC to CFLAGS and LDFLAGS.

10 years agodownload: Improve progress report output.
Ludovic Courtès [Wed, 16 Apr 2014 10:25:25 +0000 (12:25 +0200)]
download: Improve progress report output.

* guix/build/download.scm (url-fetch): Make current-output-port
  unbuffered.

10 years agognu: Add strigi.
Andreas Enge [Wed, 16 Apr 2014 09:14:59 +0000 (11:14 +0200)]
gnu: Add strigi.

* gnu/packages/kde.scm (strigi): New variable.

10 years agognu: clucene: Add patch to indicate linking with clucene-shared, not only
Andreas Enge [Wed, 16 Apr 2014 08:58:31 +0000 (10:58 +0200)]
gnu: clucene: Add patch to indicate linking with clucene-shared, not only
   clucene-core, to pkgconfig.

* gnu/packages/patches/clucene-pkgconfig.patch: New file.
* gnu-system.am (dist_patch_DATA): Register patch.
* gnu/packages/rdf.scm (clucene): Use patch.

10 years agognu: Add clucene.
Andreas Enge [Wed, 16 Apr 2014 08:07:52 +0000 (10:07 +0200)]
gnu: Add clucene.

* gnu/packages/rdf.scm (clucene): New variable.

10 years agognu: Add attica.
Andreas Enge [Wed, 16 Apr 2014 07:04:52 +0000 (09:04 +0200)]
gnu: Add attica.

* gnu/packages/kde.scm (attica): New variable.

10 years agognu: tcpdump: Add dependency on OpenSSL.
Ludovic Courtès [Tue, 15 Apr 2014 22:18:44 +0000 (00:18 +0200)]
gnu: tcpdump: Add dependency on OpenSSL.

* gnu/packages/admin.scm (tcpdump)[inputs]: Add OpenSSL.

10 years agognu: Add Rot[t]log.
Ludovic Courtès [Tue, 15 Apr 2014 21:54:18 +0000 (23:54 +0200)]
gnu: Add Rot[t]log.

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

10 years agognu: Add tcpdump.
Ludovic Courtès [Tue, 15 Apr 2014 21:31:31 +0000 (23:31 +0200)]
gnu: Add tcpdump.

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

10 years agognu: Add lftp.
Ludovic Courtès [Tue, 15 Apr 2014 21:01:53 +0000 (23:01 +0200)]
gnu: Add lftp.

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

10 years agognu: man-db: Add specification for $MANPATH.
Ludovic Courtès [Tue, 15 Apr 2014 20:23:12 +0000 (22:23 +0200)]
gnu: man-db: Add specification for $MANPATH.

* gnu/packages/man.scm (man-db)[native-search-paths]: New field.

10 years agognu: Add libdbusmenu-qt.
Andreas Enge [Tue, 15 Apr 2014 15:46:55 +0000 (17:46 +0200)]
gnu: Add libdbusmenu-qt.

*  gnu/packages/kde.scm (libdbusmenu-qt): New variable.