Commit Graph

13446 Commits

Author SHA1 Message Date
Ludovic Courtès 0c21d92b1c 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.
2014-04-28 23:41:12 +02:00
Ludovic Courtès 8c35bfb68c system: Rewrite 'union' using gexps.
* gnu/system.scm (union): Rewrite using 'gexp->derivation'.
2014-04-28 23:41:12 +02:00
Ludovic Courtès 8779d34294 services: xorg: Rewrite using gexps.
* gnu/services/xorg.scm (xorg-start-command): Rewrite in terms of
  'gexp->script'.
  (xinitrc): Likewise.
2014-04-28 23:41:11 +02:00
Ludovic Courtès f6a7b21df7 system: grub: Rewrite using gexps.
* gnu/system/grub.scm (grub-configuration-file): Rewrite using
  'gexp->derivation'.
* gnu/system.scm (operating-system-derivation): Adjust accordingly.
2014-04-28 23:41:08 +02:00
Ludovic Courtès 23f6056b50 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.
2014-04-28 23:24:18 +02:00
Ludovic Courtès b5f4e68635 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".
2014-04-28 23:24:18 +02:00
Ludovic Courtès 1aa0033b64 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.
2014-04-28 23:24:18 +02:00
Ludovic Courtès eee2127109 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.
2014-04-28 23:24:18 +02:00
Ludovic Courtès 02100028bb 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'.
2014-04-28 23:24:17 +02:00
Ludovic Courtès 21b679f694 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.
2014-04-28 23:24:17 +02:00
Andreas Enge ba948b4fa0 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.
2014-04-28 20:20:52 +02:00
Andreas Enge c69fe8306d gnu: soprano: Upgrade to 2.9.4.
* gnu/packages/rdf.scm (soprano): Upgrade to 2.9.4.
2014-04-28 20:09:27 +02:00
Andreas Enge 06ed59825e 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>
2014-04-27 11:35:26 +02:00
Andreas Enge 5d17cf8eb9 gnu: soprano: Add native input doxygen.
* gnu/packages/rdf.scm (soprano): Add native input doxygen.
2014-04-25 00:32:11 +02:00
Andreas Enge 9e57c1b587 gnu: doxygen: Add propagated input graphviz.
* gnu/packages/doxygen.scm (doxygen): Add propagated input graphviz.
2014-04-25 00:31:41 +02:00
Andreas Enge 707d3e24a2 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.
2014-04-25 00:24:10 +02:00
Andreas Enge b01932868e gnu: libmpdclient: Add native input doxygen.
* gnu/packages/mpd.scm (libmpdclient): Add native input doxygen.
2014-04-25 00:16:30 +02:00
Andreas Enge eb78797163 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.
2014-04-25 00:09:59 +02:00
Andreas Enge 436d4d1fbb 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.
2014-04-25 00:03:36 +02:00
Ludovic Courtès c0412fedf8 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.
2014-04-24 17:47:20 +02:00
Andreas Enge 99fa3024b8 gnu: gp2c: Upgrade to 0.0.9pl1.
* gnu/packages/algebra.scm (gp2c): Upgrade to 0.0.9pl1.
2014-04-24 11:09:15 +02:00
Ludovic Courtès c47f0d8b71 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'.
2014-04-23 16:53:36 +02:00
Ludovic Courtès 2106d3fc81 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.
2014-04-23 16:52:14 +02:00
Ludovic Courtès 0b6f49ef69 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.
2014-04-23 15:47:42 +02:00
Ludovic Courtès 42b001381e gnu: cyrus-sasl: Add alternate source URL.
* gnu/packages/cyrus-sasl.scm (cyrus-sasl)[source]: Add alternate URL;
  the previous one is currently unreachable.
2014-04-22 22:15:18 +02:00
Ludovic Courtès 60bbd4f1be gnu: mplayer: Add mpg123 as an input.
* gnu/packages/video.scm (mplayer)[inputs]: Add mpg123.
2014-04-22 20:42:00 +02:00
Ludovic Courtès 1bdb591b74 gnu: Add mpg123.
* gnu/packages/mp3.scm (mpg123): New variable.
2014-04-22 20:41:25 +02:00
Ludovic Courtès 571aa6cd81 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.
2014-04-22 17:45:09 +02:00
Mark H Weaver 0815f8f9a2 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.
2014-04-22 08:55:43 -04:00
Ludovic Courtès 6ef3644e34 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.
2014-04-22 11:41:52 +02:00
Ludovic Courtès 6f69588529 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.
2014-04-22 11:30:58 +02:00
Ludovic Courtès 6030d8493e 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.
2014-04-22 01:39:31 +02:00
Ludovic Courtès 50db7d82b3 nar: Really really protect the temporary store directory from GC.
This is a follow-up to 6071b55e10.
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'.
2014-04-21 23:24:23 +02:00
Andreas Enge ace6924327 gnu: Add mplayer.
* gnu/packages/video.scm (mplayer): New variable.
2014-04-17 18:58:45 +02:00
Andreas Enge 8c0519bf83 gnu: xorg: libxxf86dga: Propagate input xf86dgaproto.
* gnu/packages/xorg.scm (libxxf86dga): Propagate input xf86dgaproto.
2014-04-17 18:43:40 +02:00
Andreas Enge d5a748e8e3 gnu: Add vlc.
* gnu/packages/video.scm (vlc): New variable.
2014-04-16 17:46:42 +02:00
Andreas Enge 01d3f19b6b gnu: lua: Add older version 5.1.5.
* gnu/packages/lua.scm (lua-5.1): New variable.
2014-04-16 15:31:24 +02:00
Andreas Enge 7b29779561 gnu: lua: Upgrade to 5.2.3.
* gnu/packages/lua.scm (lua): Upgrade to 5.2.3.
2014-04-16 15:14:43 +02:00
Andreas Enge 90f80bf21c gnu: lua: Compile with -fPIC.
* gnu/packages/lua.scm (lua): Add -fPIC to CFLAGS and LDFLAGS.
2014-04-16 15:12:46 +02:00
Ludovic Courtès 395bea2a53 download: Improve progress report output.
* guix/build/download.scm (url-fetch): Make current-output-port
  unbuffered.
2014-04-16 12:25:52 +02:00
Andreas Enge 58ec6f4ba9 gnu: Add strigi.
* gnu/packages/kde.scm (strigi): New variable.
2014-04-16 11:14:59 +02:00
Andreas Enge 7051054a0a 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.
2014-04-16 10:58:31 +02:00
Andreas Enge 8a79ec41e8 gnu: Add clucene.
* gnu/packages/rdf.scm (clucene): New variable.
2014-04-16 10:07:52 +02:00
Andreas Enge 8b32a70b23 gnu: Add attica.
* gnu/packages/kde.scm (attica): New variable.
2014-04-16 09:04:52 +02:00
Ludovic Courtès 10db1e6c36 gnu: tcpdump: Add dependency on OpenSSL.
* gnu/packages/admin.scm (tcpdump)[inputs]: Add OpenSSL.
2014-04-16 00:18:44 +02:00
Ludovic Courtès fccf2fe06b gnu: Add Rot[t]log.
* gnu/packages/admin.scm (rottlog): New variable.
2014-04-15 23:55:15 +02:00
Ludovic Courtès 1da34f5ad5 gnu: Add tcpdump.
* gnu/packages/admin.scm (tcpdump): New variable.
2014-04-15 23:55:15 +02:00
Ludovic Courtès 158adb6611 gnu: Add lftp.
* gnu/packages/ftp.scm: New file.
* gnu-system.am (GNU_SYSTEM_MODULES): Add it.
2014-04-15 23:55:15 +02:00
Ludovic Courtès 2b42718b34 gnu: man-db: Add specification for $MANPATH.
* gnu/packages/man.scm (man-db)[native-search-paths]: New field.
2014-04-15 23:55:14 +02:00
Andreas Enge ff46707281 gnu: Add libdbusmenu-qt.
*  gnu/packages/kde.scm (libdbusmenu-qt): New variable.
2014-04-15 17:46:55 +02:00