jackhill/guix/guix.git
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.

10 years agognu: Add qjson.
Andreas Enge [Tue, 15 Apr 2014 15:40:23 +0000 (17:40 +0200)]
gnu: Add qjson.

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

10 years agognu: wdiff: Upgrade to 1.2.2.
Andreas Enge [Tue, 15 Apr 2014 12:55:44 +0000 (14:55 +0200)]
gnu: wdiff: Upgrade to 1.2.2.

* gnu/packages/wdiff.scm (wdiff): Upgrade to 1.2.2.

10 years agognu: gawk: Revert previous commit, which should go into core-updates.
Andreas Enge [Tue, 15 Apr 2014 12:50:33 +0000 (14:50 +0200)]
gnu: gawk: Revert previous commit, which should go into core-updates.

* gnu/packages/gawk.scm (gawk): Downgrade to 4.1.0 to avoid recompiling
    almost everything in master.

10 years agognu: gawk: Upgrade to 4.1.1.
Andreas Enge [Tue, 15 Apr 2014 12:31:54 +0000 (14:31 +0200)]
gnu: gawk: Upgrade to 4.1.1.

* gnu/packages/gawk.scm (gawk): Upgrade to 4.1.1.

10 years agolinux-initrd: Mount / as a unionfs when asking for a volatile root.
Ludovic Courtès [Mon, 14 Apr 2014 21:59:08 +0000 (23:59 +0200)]
linux-initrd: Mount / as a unionfs when asking for a volatile root.

* guix/build/linux-initrd.scm (make-essential-device-nodes): Make
  /dev/fuse.
  (boot-system): Add #:unionfs parameter.  Invoke UNIONFS instead of
  copying files over when VOLATILE-ROOT? is true.
* gnu/system/linux-initrd.scm (expression->initrd): Add #:inputs
  parameter.
  [files-to-copy]: New procedure.
  [builder]: Add 'to-copy' parameter; honor it.
  (qemu-initrd)[linux-modules]: Add 'fuse.ko' when VOLATILE-ROOT?.
  Pass UNIONFS-FUSE/STATIC as #:inputs; change builder to pass #:unionfs
  to 'boot-system'.

10 years agognu: unionfs-fuse-static: Remove dependency on util-linux.
Ludovic Courtès [Mon, 14 Apr 2014 21:47:15 +0000 (23:47 +0200)]
gnu: unionfs-fuse-static: Remove dependency on util-linux.

* gnu/packages/linux.scm (fuse-static): New variable.
  (unionfs-fuse/static): Use it.

10 years agognu: man-pages: Fix URL.
Ludovic Courtès [Mon, 14 Apr 2014 11:55:59 +0000 (13:55 +0200)]
gnu: man-pages: Fix URL.

* gnu/packages/man.scm (man-pages): Use the 'kernel.org' mirror set.

10 years agooffload: '{send,receive}-files' wait for completion of the transfer.
Ludovic Courtès [Sun, 13 Apr 2014 22:24:24 +0000 (00:24 +0200)]
offload: '{send,receive}-files' wait for completion of the transfer.

Fixes situations where the remote 'guix build' is invoked before the
.drv has been completely copied, as reported at
<https://lists.gnu.org/archive/html/guix-devel/2014-04/msg00174.html>.

In some cases 'send-files' would return before the other end is done
importing the files, and so the subsequent 'guix build' invocation would
just miss the .drv file it refers to.

* guix/utils.scm (call-with-decompressed-port): Don't close PORT.
  (call-with-compressed-output-port): Likewise.
* tests/utils.scm ("compressed-output-port + decompressed-port"): Adjust
  accordingly.
* guix/scripts/offload.scm (send-files): Add explicit (close-pipe pipe)
  call.
  (retrieve-files): Likewise.

10 years agooffload: Better synchronize with remote invocation of 'guix archive --missing'.
Ludovic Courtès [Sun, 13 Apr 2014 22:17:43 +0000 (00:17 +0200)]
offload: Better synchronize with remote invocation of 'guix archive --missing'.

* guix/scripts/offload.scm (send-files)[missing-files]: Call 'waitpid'
  after reading all of MISSING.

10 years agoderivations: Fix 'fixed-output-derivation?'.
Ludovic Courtès [Sat, 12 Apr 2014 22:42:07 +0000 (00:42 +0200)]
derivations: Fix 'fixed-output-derivation?'.

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

* guix/derivations.scm (fixed-output-derivation?): Fix pattern.
* tests/derivations.scm ("fixed-output-derivation?"): Add test.

10 years agognu: Add Linux man-pages.
Ludovic Courtès [Sat, 12 Apr 2014 21:46:58 +0000 (23:46 +0200)]
gnu: Add Linux man-pages.

* gnu/packages/man.scm (man-pages): New variable.

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

Prevents garbage collection of the temporary store directory while
restoring a file set, as it could previously happen:
<https://lists.gnu.org/archive/html/guix-devel/2014-04/msg00167.html>.

* guix/nar.scm (temporary-store-directory): Rename to...
  (temporary-store-file): ... this.  Use 'add-permanent-root' instead of
  'add-indirect-root'.
  (with-temporary-store-file): New macro.
  (restore-one-item): New procedure, with code formerly in
  'restore-file-set'.  Use 'with-temporary-store-file'.
  (restore-file-set): Use it.

10 years agostore: Add 'add-permanent-root' and 'remove-permanent-root'.
Ludovic Courtès [Sat, 12 Apr 2014 20:32:10 +0000 (22:32 +0200)]
store: Add 'add-permanent-root' and 'remove-permanent-root'.

* guix/store.scm (add-indirect-root): Improve docstring.
  (%gc-roots-directory): New variable.
  (add-permanent-root, remove-permanent-root): New procedures.
* tests/store.scm ("permanent root"): New test.

10 years agoopenssh: Add another mirror.
Nikita Karetnikov [Sat, 12 Apr 2014 12:18:45 +0000 (16:18 +0400)]
openssh: Add another mirror.

* gnu/packages/ssh.scm (openssh): Add the mirror.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
10 years agopackages: Correctly handle patching for inputs with no extension.
Ludovic Courtès [Sat, 12 Apr 2014 12:39:43 +0000 (14:39 +0200)]
packages: Correctly handle patching for inputs with no extension.

Reported by Manolis Ragkousis <manolis837@gmail.com>.

* guix/packages.scm (patch-and-repack)[numeric-extension?]: Handle
  FILE-NAME with no extension.

10 years agognu: Add Mosh.
Ludovic Courtès [Fri, 11 Apr 2014 20:05:33 +0000 (22:05 +0200)]
gnu: Add Mosh.

* gnu/packages/ssh.scm (mosh): New variable.

10 years agognu: Add perl-io-tty.
Ludovic Courtès [Fri, 11 Apr 2014 19:49:38 +0000 (21:49 +0200)]
gnu: Add perl-io-tty.

* gnu/packages/perl.scm (perl-io-tty): New variable.

10 years agognu: Add Protobuf.
Ludovic Courtès [Fri, 11 Apr 2014 19:38:28 +0000 (21:38 +0200)]
gnu: Add Protobuf.

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

10 years agohydra: Specify the image size of the QEMU image.
Ludovic Courtès [Fri, 11 Apr 2014 16:49:02 +0000 (18:49 +0200)]
hydra: Specify the image size of the QEMU image.

* build-aux/hydra/gnu-system.scm (qemu-jobs): Specify
  #:disk-image-size.

10 years agovm: Move image creation to (guix build vm); split into several procedures.
Ludovic Courtès [Fri, 11 Apr 2014 16:44:53 +0000 (18:44 +0200)]
vm: Move image creation to (guix build vm); split into several procedures.

* guix/build/vm.scm (read-reference-graph, initialize-partition-table,
  install-grub, populate-store, evaluate-populate-directive,
  reset-timestamps, initialize-hard-disk): New procedures.
* gnu/system/vm.scm (qemu-image): Change 'builder' to a call to
  'initialize-hard-disk'.

10 years agovm: 'expression->derivation-in-linux-vm' can import modules in the VM.
Ludovic Courtès [Fri, 11 Apr 2014 16:42:30 +0000 (18:42 +0200)]
vm: 'expression->derivation-in-linux-vm' can import modules in the VM.

* gnu/system/vm.scm (%imported-modules): New procedure.
  (expression->derivation-in-linux-vm): Add #:imported-modules
  parameter; remove #:modules.  Add LOADER, and change BUILDER to load
  it.
  (qemu-image): Remove useless #:modules argument.

10 years agovm: Strip import list.
Ludovic Courtès [Fri, 11 Apr 2014 16:26:35 +0000 (18:26 +0200)]
vm: Strip import list.

* gnu/system/vm.scm: Strip #:select for (gnu packages base).