jackhill/guix/guix.git
9 years agosystem: Adjust the set of fields with default values.
Ludovic Courtès [Thu, 26 Jun 2014 22:11:38 +0000 (00:11 +0200)]
system: Adjust the set of fields with default values.

* gnu/system.scm (<operating-system>)[file-systems]: Remove default.
  [locale]: Add default value.

9 years agoguix system: Add 'reconfigure' action.
Ludovic Courtès [Thu, 26 Jun 2014 22:06:46 +0000 (00:06 +0200)]
guix system: Add 'reconfigure' action.

* guix/scripts/system.scm (%system-profile): New variable.
  (switch-to-system, previous-grub-entries): New procedures.
  (unless-file-not-found): New macro.
  (show-help): Add 'reconfigure'.
  (guix-system): Handle it.
* gnu/system.scm: Export 'operating-system-activation-script'.
* doc/guix.texi (Invoking guix system): Document it.

9 years agoactivation: Preserve /etc/groups upon reboots.
Ludovic Courtès [Thu, 26 Jun 2014 21:31:17 +0000 (23:31 +0200)]
activation: Preserve /etc/groups upon reboots.

This is a followup to e2fcc23.  The /etc/group file would be cleared
when booting.

* guix/build/activation.scm (activate-users+groups)[touch]: Rewrite so
  it does not wipe out FILE's contents.

9 years agoguix {system,offload}: Improve reporting of syntax errors.
Ludovic Courtès [Thu, 26 Jun 2014 20:23:36 +0000 (22:23 +0200)]
guix {system,offload}: Improve reporting of syntax errors.

* guix/scripts/system.scm (read-operating-system) <catch handler>: Add
  case for 'syntax-error'.  Correct message for default case.
* guix/scripts/offload.scm (build-machines) <catch handler>: Add case
  for 'syntax-error'.
* tests/guix-system.sh: New file.
* Makefile.am (SH_TESTS): Add it.

9 years agognu: Add libsodium.
David Thompson [Thu, 26 Jun 2014 00:32:23 +0000 (20:32 -0400)]
gnu: Add libsodium.

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

9 years agognu: Add guile-opengl.
David Thompson [Wed, 25 Jun 2014 01:59:47 +0000 (21:59 -0400)]
gnu: Add guile-opengl.

* gnu/packages/gl.scm (guile-opengl): New variable.

9 years agognu: Add libvpx.
David Thompson [Thu, 26 Jun 2014 12:16:07 +0000 (08:16 -0400)]
gnu: Add libvpx.

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

9 years agognu: Add new package barcode
John Darrington [Thu, 26 Jun 2014 07:32:21 +0000 (09:32 +0200)]
gnu: Add new package barcode

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

9 years agosystem: Support the addition of old entries in the GRUB menu.
Ludovic Courtès [Wed, 25 Jun 2014 20:54:52 +0000 (22:54 +0200)]
system: Support the addition of old entries in the GRUB menu.

* gnu/system.scm (operating-system-grub.cfg): Add 'old-entries'
  parameter.  Pass it to 'grub-configuration-file'.
* gnu/system/grub.scm (grub-configuration-file): Add #:old-entries
  parameter.  Honor it.

9 years agosystem: Store boot parameters in the system derivation.
Ludovic Courtès [Wed, 25 Jun 2014 20:48:25 +0000 (22:48 +0200)]
system: Store boot parameters in the system derivation.

* gnu/system.scm (operating-system-parameters-file): New procedure.
  (operating-system-derivation): Use it to produce a 'parameters' files.

9 years agosystem: Factorize GRUB menu entry label.
Ludovic Courtès [Wed, 25 Jun 2014 20:46:44 +0000 (22:46 +0200)]
system: Factorize GRUB menu entry label.

* gnu/system.scm (kernel->grub-label): New procedure.
  (operating-system-grub.cfg): Use it.

9 years agognu: cursynth: Upgrade to 1.5.
Eric Bavier [Wed, 25 Jun 2014 19:25:26 +0000 (14:25 -0500)]
gnu: cursynth: Upgrade to 1.5.

* gnu/packages/cursynth.scm (cursynth)[source]: Upgrade to 1.5.  New
  'patches' field.
* gnu/packages/patches/cursynth-wave-rand.patch: New patch.
* gnu-system.am (dist_patch_DATA): Add it.

9 years agognu: libmicrohttpd: Upgrade to 0.9.37.
Ludovic Courtès [Wed, 25 Jun 2014 09:47:24 +0000 (11:47 +0200)]
gnu: libmicrohttpd: Upgrade to 0.9.37.

* gnu/packages/gnunet.scm (libmicrohttpd): Upgrade to 0.9.37.

9 years agognu: gnupg: Upgrade versions 1 and 2 (security fix.)
Ludovic Courtès [Wed, 25 Jun 2014 09:45:08 +0000 (11:45 +0200)]
gnu: gnupg: Upgrade versions 1 and 2 (security fix.)

* gnu/packages/gnupg.scm (gnupg): Upgrade to 2.0.24.
  (gnupg-1): Upgrade to 1.4.17.

9 years agognu: libgpg-error: Upgrade to 1.13.
Ludovic Courtès [Wed, 25 Jun 2014 09:33:06 +0000 (11:33 +0200)]
gnu: libgpg-error: Upgrade to 1.13.

* gnu/packages/gnupg.scm (libgpg-error): Upgrade to 1.13.

9 years agognu: nano: Upgrade to 2.3.4.
Ludovic Courtès [Wed, 25 Jun 2014 09:29:03 +0000 (11:29 +0200)]
gnu: nano: Upgrade to 2.3.4.

* gnu/packages/nano.scm (nano): Upgrade to 2.3.4.

9 years agognu: lightning: Upgrade to 2.0.4.
Ludovic Courtès [Wed, 25 Jun 2014 09:28:22 +0000 (11:28 +0200)]
gnu: lightning: Upgrade to 2.0.4.

* gnu/packages/lightning.scm (lightning): Upgrade to 2.0.4.

9 years agognu: ddrescue: Upgrade to 1.18.1.
Ludovic Courtès [Wed, 25 Jun 2014 09:27:02 +0000 (11:27 +0200)]
gnu: ddrescue: Upgrade to 1.18.1.

* gnu/packages/disk.scm (ddrescue): Upgrade to 1.18.1.

9 years agognu: mcron: Upgrade to 1.0.8.
Ludovic Courtès [Wed, 25 Jun 2014 09:23:00 +0000 (11:23 +0200)]
gnu: mcron: Upgrade to 1.0.8.

* gnu/packages/guile.scm (mcron): Upgrade to 1.0.8.

9 years agognu: libtasn1: Upgrade to 3.6.
Ludovic Courtès [Wed, 25 Jun 2014 09:21:39 +0000 (11:21 +0200)]
gnu: libtasn1: Upgrade to 3.6.

* gnu/packages/gnutls.scm (libtasn1): Upgrade to 3.6.

9 years agognu: nettle: Add version 3.0.
Ludovic Courtès [Wed, 25 Jun 2014 09:20:55 +0000 (11:20 +0200)]
gnu: nettle: Add version 3.0.

* gnu/packages/nettle.scm (nettle-3): New variable.

9 years agognu: parallel: Upgrade to 20140622.
Eric Bavier [Wed, 25 Jun 2014 07:23:10 +0000 (02:23 -0500)]
gnu: parallel: Upgrade to 20140622.

* gnu/packages/parallel.scm (parallel)[source]: Upgrade to 20140622.

9 years agognu: moe: Upgrade to 1.6.
Eric Bavier [Wed, 25 Jun 2014 07:01:34 +0000 (02:01 -0500)]
gnu: moe: Upgrade to 1.6.

* gnu/packages/moe.scm (moe)[source]: Upgrade to 1.6.
  Add 'native-inputs' field.

9 years agoguix system: Gracefully handle 'install-grub' errors.
Ludovic Courtès [Tue, 24 Jun 2014 20:11:12 +0000 (22:11 +0200)]
guix system: Gracefully handle 'install-grub' errors.

* guix/scripts/system.scm (install): Wrap 'install-grub' call in
  'false-if-exception'.  This is a followup to 641f9a2a.

9 years agognu: Move JSON-C to (gnu packages web).
Ludovic Courtès [Tue, 24 Jun 2014 12:53:51 +0000 (14:53 +0200)]
gnu: Move JSON-C to (gnu packages web).

* gnu/packages/pulseaudio.scm (json-c): Move to...
* gnu/packages/web.scm (json-c): ... here.  New variable.

9 years agognu: json-c: Upgrade to 0.12.
Ludovic Courtès [Tue, 24 Jun 2014 12:43:51 +0000 (14:43 +0200)]
gnu: json-c: Upgrade to 0.12.

* gnu/packages/pulseaudio.scm (json-c)[source]: Upgrade to 0.12.  Add
  'modules' and 'snippet' fields.

9 years agoinstall: Use udev.
Ludovic Courtès [Mon, 23 Jun 2014 13:37:19 +0000 (15:37 +0200)]
install: Use udev.

* gnu/system/install.scm (installation-services): Call 'udev-service'.

9 years agoservices: Add udev service, and add it to '%base-services'.
Ludovic Courtès [Mon, 23 Jun 2014 13:35:03 +0000 (15:35 +0200)]
services: Add udev service, and add it to '%base-services'.

* gnu/services/base.scm (udev-service): New procedure.
  (%base-services): Use it.
* gnu/system.scm (%base-packages): Add UDEV.

9 years agognu: Add notmuch.
David Thompson [Sun, 15 Jun 2014 00:52:09 +0000 (20:52 -0400)]
gnu: Add notmuch.

* gnu/packages/mail.scm (notmuch): New variable.

9 years agognu: Add dtach.
David Thompson [Sun, 6 Apr 2014 18:36:31 +0000 (14:36 -0400)]
gnu: Add dtach.

gnu/packages/screen.scm (dtach): New variable.

9 years agognu: Add talloc.
David Thompson [Sun, 6 Apr 2014 16:25:57 +0000 (12:25 -0400)]
gnu: Add talloc.

* gnu/packages/samba.scm (talloc): New variable.

9 years agosystem: Use the default 'groups' field.
Ludovic Courtès [Sun, 22 Jun 2014 20:28:24 +0000 (22:28 +0200)]
system: Use the default 'groups' field.

* gnu/system/install.scm (installation-os): Remove 'groups' field.
* build-aux/hydra/demo-os.scm: Likewise.

9 years agosystem: Augment the default set of groups.
Ludovic Courtès [Sun, 22 Jun 2014 20:16:14 +0000 (22:16 +0200)]
system: Augment the default set of groups.

* gnu/system/shadow.scm (%base-groups): New variable.
* gnu/system.scm (<operating-system>)[groups]: Use it as the default.

9 years agosystem: Remove useless 'members' field of 'user-group'.
Ludovic Courtès [Sun, 22 Jun 2014 19:48:35 +0000 (21:48 +0200)]
system: Remove useless 'members' field of 'user-group'.

* gnu/system/shadow.scm (<user-group>)[members]: Remove field.
* gnu/system/install.scm (installation-os)[users]: Remove 'members'
  fields.  Use 'supplementary-groups' for 'guest'.
* build-aux/hydra/demo-os.scm (users): Likewise.
* gnu/services/base.scm (guix-service): Remove 'members' field.

9 years agognu: kmod: Honor $LINUX_MODULE_DIRECTORY.
Ludovic Courtès [Sun, 22 Jun 2014 19:14:23 +0000 (21:14 +0200)]
gnu: kmod: Honor $LINUX_MODULE_DIRECTORY.

* gnu/packages/patches/kmod-module-directory.patch: New file.
* gnu-system.am (dist_patch_DATA): Add it.
* gnu/packages/linux.scm (kmod)[origin]: Use it.

9 years agognu: Add udev.
Andreas Enge [Sat, 7 Jun 2014 19:27:30 +0000 (21:27 +0200)]
gnu: Add udev.

* gnu/packages/linux.scm (udev): New variable.
* gnu/packages/patches/udev-gir-libtool.patch: New file.
* gnu-system.am (dist_patch_DATA): Add it.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
9 years agognu: Add kmod.
Andreas Enge [Sat, 7 Jun 2014 19:16:37 +0000 (21:16 +0200)]
gnu: Add kmod.

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

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
10 years agolinux-initrd: Allow unionfs to have a large number of open files.
Ludovic Courtès [Sat, 21 Jun 2014 15:35:56 +0000 (17:35 +0200)]
linux-initrd: Allow unionfs to have a large number of open files.

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

* guix/build/linux-initrd.scm (mount-root-file-system) [volatile-root?]:
  Pass unionfs '-o max_file=65536'.

10 years agonls: Update 'sr' translation.
Ludovic Courtès [Sat, 21 Jun 2014 13:21:04 +0000 (15:21 +0200)]
nls: Update 'sr' translation.

10 years agognu: man-pages: Upgrade to 3.69.
Ludovic Courtès [Sat, 21 Jun 2014 10:52:34 +0000 (12:52 +0200)]
gnu: man-pages: Upgrade to 3.69.

* gnu/packages/man.scm (man-pages): Upgrade to 3.69.

10 years agognu: gnupg: Upgrade to 2.0.23.
Ludovic Courtès [Fri, 20 Jun 2014 22:26:31 +0000 (00:26 +0200)]
gnu: gnupg: Upgrade to 2.0.23.

* gnu/packages/gnupg.scm (gnupg): Upgrade to 2.0.23.

10 years agognu: global: Upgrade to 6.3.
Ludovic Courtès [Fri, 20 Jun 2014 22:22:34 +0000 (00:22 +0200)]
gnu: global: Upgrade to 6.3.

* gnu/packages/global.scm (global): Upgrade to 6.3.

10 years agoMerge branch 'core-updates'
Ludovic Courtès [Fri, 20 Jun 2014 21:44:42 +0000 (23:44 +0200)]
Merge branch 'core-updates'

10 years agosubstitute-binary: Warn about uninitialized ACL.
Ludovic Courtès [Thu, 19 Jun 2014 21:35:21 +0000 (23:35 +0200)]
substitute-binary: Warn about uninitialized ACL.

* guix/scripts/substitute-binary.scm (guix-substitute-binary): Call
  'check-acl-initialized'.
  (check-acl-initialized): Don't rely on 'equal?' to compare keys.
  Instead, convert keys to strings.

10 years agodoc: Mention KVM support for 'guix system'.
Ludovic Courtès [Thu, 19 Jun 2014 21:29:05 +0000 (23:29 +0200)]
doc: Mention KVM support for 'guix system'.

* doc/guix.texi (Invoking guix system): Add note about KVM support.

10 years agosystem: Prefer packages from %FINAL-INPUTS.
Ludovic Courtès [Wed, 18 Jun 2014 21:28:54 +0000 (23:28 +0200)]
system: Prefer packages from %FINAL-INPUTS.

* gnu/packages/base.scm (canonical-package): New procedure.
* gnu/system.scm (%base-packages): Pass BASH, COREUTILS, FINDUTILS,
  GREP, and SED through 'canonical-package'.

10 years agoguix system: 'init' makes sure the target store directory exists.
Ludovic Courtès [Wed, 18 Jun 2014 21:19:01 +0000 (23:19 +0200)]
guix system: 'init' makes sure the target store directory exists.

* guix/scripts/system.scm (install): Before calling 'copy-closure', make
  sure directory (%store-prefix) under TARGET exists.

10 years agognu: isc-dhcp: In native builds, refer to the final Coreutils and sed.
Ludovic Courtès [Wed, 18 Jun 2014 21:07:14 +0000 (23:07 +0200)]
gnu: isc-dhcp: In native builds, refer to the final Coreutils and sed.

* gnu/packages/admin.scm (isc-dhcp)[inputs]: Add Coreutils and sed only
  when (%current-target-system) is true.

10 years agognu: privoxy: Use etc/privoxy as the sysconfdir.
Ludovic Courtès [Wed, 18 Jun 2014 15:22:29 +0000 (17:22 +0200)]
gnu: privoxy: Use etc/privoxy as the sysconfdir.

Reported by "d00000" on #guix.

* gnu/packages/tor.scm (privoxy)[arguments]: Add #:configure-flags.

10 years agognu: gawk: Apply work around to build system for MIPS.
Mark H Weaver [Wed, 18 Jun 2014 22:04:41 +0000 (18:04 -0400)]
gnu: gawk: Apply work around to build system for MIPS.

* gnu/packages/gawk.scm (gawk): Work around a build problem on MIPS.

10 years agognu: linux-libre: Upgrade to 3.15.
Ludovic Courtès [Wed, 18 Jun 2014 14:23:06 +0000 (16:23 +0200)]
gnu: linux-libre: Upgrade to 3.15.

* gnu/packages/linux.scm (linux-libre): Upgrade to 3.15.

10 years agognu: kbd: Patch buggy makefile.
Ludovic Courtès [Wed, 18 Jun 2014 13:32:17 +0000 (15:32 +0200)]
gnu: kbd: Patch buggy makefile.

* gnu/packages/linux.scm (kbd)[source]: Add 'modules' and 'snippet'
  fields.

10 years agobuild: Add 'assert-final-inputs-self-contained' rule.
Ludovic Courtès [Wed, 18 Jun 2014 13:03:13 +0000 (15:03 +0200)]
build: Add 'assert-final-inputs-self-contained' rule.

* build-aux/check-final-inputs-self-contained.scm: New file.
* Makefile.am (EXTRA_DIST): Add it.
  (assert-final-inputs-self-contained): New target.
  (distcheck-hook): Depend on it.

10 years agosubstitute-binary: Avoid the term "narinfo" in user messages.
Ludovic Courtès [Mon, 16 Jun 2014 22:30:16 +0000 (00:30 +0200)]
substitute-binary: Avoid the term "narinfo" in user messages.

* guix/scripts/substitute-binary.scm (assert-valid-narinfo): Change
  message to avoid the term "narinfo".

10 years agoThank Benno.
Ludovic Courtès [Mon, 16 Jun 2014 22:27:15 +0000 (00:27 +0200)]
Thank Benno.

10 years agonls: Use xgettext and msgmerge with --no-wrap.
Ludovic Courtès [Mon, 16 Jun 2014 22:26:32 +0000 (00:26 +0200)]
nls: Use xgettext and msgmerge with --no-wrap.

Suggested by Benno Schulenberg <coordinator@translationproject.org>.

* po/guix/Makevars (XGETTEXT_OPTIONS): Add --no-wrap.
  (MSGMERGE_OPTIONS): New variable.
* po/packages/Makevars (XGETTEXT_OPTIONS): Add --no-wrap.
  (MSGMERGE_OPTIONS): New variable.

10 years agonls: Remove obsolete messages from PO files.
Ludovic Courtès [Mon, 16 Jun 2014 22:23:35 +0000 (00:23 +0200)]
nls: Remove obsolete messages from PO files.

Suggested by Benno Schulenberg <coordinator@translationproject.org>.

* po/guix/eo.po, po/guix/pt_BR.po, po/guix/sr.po, po/guix/vi.po,
  po/packages/eo.po, po/packages/pt_BR.po, po/packages/sr.po,
  po/packages/vi.po: Remove obsolete messages.

10 years agotests: Use the C locale for 'guix package -s'.
Ludovic Courtès [Sun, 15 Jun 2014 08:32:21 +0000 (10:32 +0200)]
tests: Use the C locale for 'guix package -s'.

* tests/guix-package.sh: Set LC_MESSAGES=C before the 'guix package -s'
  test.

10 years agognu: guile-ncurses: Work around missing test files.
Ludovic Courtès [Mon, 16 Jun 2014 19:46:27 +0000 (21:46 +0200)]
gnu: guile-ncurses: Work around missing test files.

* gnu/packages/patches/guile-ncurses-tests.patch: New file.
* gnu/packages/guile.scm (guile-ncurses)[source]: Use it.
* gnu-system.am (dist_patch_DATA): Add it.

10 years agognu: icu4c: Upgrade to 53.1.
Ludovic Courtès [Mon, 16 Jun 2014 15:19:34 +0000 (17:19 +0200)]
gnu: icu4c: Upgrade to 53.1.

* gnu/packages/icu4c.scm (icu4c): Upgrade to 53.1.

10 years agognu: icu4c: Fix failing test.
Ludovic Courtès [Mon, 16 Jun 2014 15:17:57 +0000 (17:17 +0200)]
gnu: icu4c: Fix failing test.

* gnu/packages/patches/icu4c-test-date-format.patch: New file.
* gnu-system.am (dist_patch_DATA): Add it.
* gnu/packages/icu4c.scm (icu4c)[source]: Use it.

10 years agognu: qemu: Remove dependency on Samba.
Ludovic Courtès [Mon, 16 Jun 2014 08:47:36 +0000 (10:47 +0200)]
gnu: qemu: Remove dependency on Samba.

* gnu/packages/qemu.scm (qemu-headless)[inputs]: Remove SAMBA.
  [arguments]: Remove --smbd configure flag.

10 years agoReverting "gnu: ncurses: Build libtinfo."
Ludovic Courtès [Sun, 15 Jun 2014 20:18:10 +0000 (22:18 +0200)]
Reverting "gnu: ncurses: Build libtinfo."

This reverts commit 953c9fcf8c1a2e0cbebadd9c07591caed7d26f8a.  It turns
out that most packages (guile-ncurses, cursynth, aumix, util-linux,
etc.) expect libncurses to provide everything.  So they had to be
patched to add -ltinfow to their LDFLAGS, which is counterproductive.

Other recent distros take that approach---e.g.,
<https://bugs.launchpad.net/ubuntu/+source/ncurses/+bug/259139>.

10 years agognu: apr: Build sequentially.
Ludovic Courtès [Sun, 15 Jun 2014 19:10:58 +0000 (21:10 +0200)]
gnu: apr: Build sequentially.

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

10 years agognu: Remove dependency from gzip to the bootstrap binaries.
Ludovic Courtès [Sun, 15 Jun 2014 09:53:02 +0000 (11:53 +0200)]
gnu: Remove dependency from gzip to the bootstrap binaries.

* gnu/packages/base.scm (grep-final): New variable.
  (%boot5-inputs): Add it.
  (%final-inputs): Use it.

10 years agognu: Add cook.
John Darrington [Thu, 30 Jan 2014 14:27:07 +0000 (15:27 +0100)]
gnu: Add cook.

* gnu/packages/cook.scm: New file.
* gnu-system.am: New file cook.scm.

10 years agognu: gcc: Really avoid 'install-strip' when cross-compiling.
Ludovic Courtès [Sat, 14 Jun 2014 21:28:28 +0000 (23:28 +0200)]
gnu: gcc: Really avoid 'install-strip' when cross-compiling.

This is a followup to 6b9229c.

* gnu/packages/gcc.scm (gcc-4.7): Turn 'install-target' into a thunk,
  so (%current-target-system) is current.

10 years agoMerge branch 'master' into core-updates
Ludovic Courtès [Sat, 14 Jun 2014 21:25:59 +0000 (23:25 +0200)]
Merge branch 'master' into core-updates

10 years agoui: Avoid circularity with (guix gexp).
Ludovic Courtès [Sat, 14 Jun 2014 21:23:56 +0000 (23:23 +0200)]
ui: Avoid circularity with (guix gexp).

Fixes a regression introduced in 56b8210 ("guix build: Allow gexps to be
passed to '-e'.")

* guix/ui.scm (%guix-user-module): Wrap in 'delay'.
  (read/eval): Adjust accordingly.

10 years agoi18n: Move package descriptions from 'guix' to 'guix-packages'.
Ludovic Courtès [Sat, 14 Jun 2014 20:49:29 +0000 (22:49 +0200)]
i18n: Move package descriptions from 'guix' to 'guix-packages'.

* po/guix: Merge with po/packages as per
  <https://lists.gnu.org/archive/html/guix-devel/2014-06/msg00058.html>.
* po/packages/LINGUAS: Add eo, pt_BR, sr, and vi.

10 years agoguix: Look for "guix-packages" messages in $localedir.
Ludovic Courtès [Sat, 14 Jun 2014 20:46:30 +0000 (22:46 +0200)]
guix: Look for "guix-packages" messages in $localedir.

* scripts/guix.in (run-guix-main): Add 'bindtextdomain' call.

10 years agoguix build: Allow gexps to be passed to '-e'.
Ludovic Courtès [Sat, 14 Jun 2014 20:37:24 +0000 (22:37 +0200)]
guix build: Allow gexps to be passed to '-e'.

* guix/ui.scm (%guix-user-module): New variable.
  (read/eval): Pass it as the second argument to 'eval'.
* guix/scripts/build.scm (options/resolve-packages): Add case for
  'gexp?'.
* tests/guix-build.sh: Add tests.
* doc/guix.texi (Invoking guix build): Document '-e gexp'.
guxi build: Allow gexps to be passed to '-e'.

* guix/ui.scm (%guix-user-module): New variable.
  (read/eval): Pass it as the second argument to 'eval'.
* guix/scripts/build.scm (options/resolve-packages): Add case for
  'gexp?'.
* tests/guix-build.sh: Add tests.
* doc/guix.texi (Invoking guix build): Document '-e gexp'.

10 years agognu: gcc-4.7: Upgrade to 4.7.4.
Ludovic Courtès [Sat, 14 Jun 2014 20:21:29 +0000 (22:21 +0200)]
gnu: gcc-4.7: Upgrade to 4.7.4.

* gnu/packages/gcc.scm (gcc-4.7): Upgrade to 4.7.4.

10 years agognu: gcc: Don't use the 'install-strip' target when cross-compiling.
Ludovic Courtès [Sat, 14 Jun 2014 20:16:03 +0000 (22:16 +0200)]
gnu: gcc: Don't use the 'install-strip' target when cross-compiling.

* gnu/packages/gcc.scm (gcc-4.7): Add 'install-target' variable.  Use
  it in the 'install' phase.

10 years agognu: gcc: Fix cross-compilation of gcc (Canadian cross).
Ludovic Courtès [Sat, 14 Jun 2014 14:04:30 +0000 (16:04 +0200)]
gnu: gcc: Fix cross-compilation of gcc (Canadian cross).

* gnu/packages/gcc.scm (gcc-4.7)[arguments] <#:make-flags>:
  When (%current-target-system) is true, pass the empty list or
  '("CFLAGS=-g0 -O2").

10 years agognu: make-bootstrap: Make sure %gcc-stripped binaries are usable.
Ludovic Courtès [Sat, 14 Jun 2014 13:58:23 +0000 (15:58 +0200)]
gnu: make-bootstrap: Make sure %gcc-stripped binaries are usable.

* gnu/packages/make-bootstrap.scm (%gcc-stripped):
  When (%current-target-system) is false, run gcc, g++, and cpp with
  --version.

10 years agognu: make-bootstrap: Build %gcc-static with --disable-lto.
Ludovic Courtès [Sat, 14 Jun 2014 13:34:56 +0000 (15:34 +0200)]
gnu: make-bootstrap: Build %gcc-static with --disable-lto.

* gnu/packages/make-bootstrap.scm (%gcc-static): Pass --disable-lto.

10 years agognu: Add pingus.
Eric Bavier [Fri, 13 Jun 2014 04:54:44 +0000 (23:54 -0500)]
gnu: Add pingus.

* gnu/packages/games.scm (pingus): New variable.
* gnu/packages/patches/pingus-sdl-libs-config.patch: New patch.
* gnu-system.am (dist_patch_DATA): Add it.

10 years agognu: Add busybox.
John Darrington [Tue, 27 May 2014 06:53:30 +0000 (08:53 +0200)]
gnu: Add busybox.

* gnu/packages/busybox.scm: New file.
* gnu-system.am: Add gnu/packages/busybox.scm.

10 years agognu: make-bootstrap: Build libstdc++ in '%gcc-static'.
Ludovic Courtès [Fri, 13 Jun 2014 15:57:41 +0000 (17:57 +0200)]
gnu: make-bootstrap: Build libstdc++ in '%gcc-static'.

* gnu/packages/make-bootstrap.scm (%gcc-static): Re-enable C++.

10 years agoSeparate package description translations from string translations.
Ludovic Courtès [Fri, 13 Jun 2014 15:30:40 +0000 (17:30 +0200)]
Separate package description translations from string translations.

* po/packages/LINGUAS, po/packages/Makevars, po/packages/POTFILES.in:
  New files.
* po/guix/Makevars (DOMAIN): Change to "guix".
  (XGETTEXT_OPTIONS): Remove "--keyword=synopsis --keyword=description".
* po/guix/POTFILES.in: Remove gnu/packages/*.scm.
* configure.ac: Change to gettext 0.18.3.  Produce
  po/packages/Makefile.in.
* Makefile.am (SUBDIRS): Add po/packages.
* guix/ui.scm (%package-text-domain): New variable.
  (P_): New procedure.
  (package->recutils): Use 'P_' instead of '_'.
* guix/scripts/package.scm (find-packages-by-description): Use 'P_'
  instead of 'gettext'.

10 years agoMove gettext files to 'po/guix'.
Ludovic Courtès [Fri, 13 Jun 2014 14:15:18 +0000 (16:15 +0200)]
Move gettext files to 'po/guix'.

* po: Rename to...
* po/guix: ... this.
* po/guix/Makevars (subdir, top_builddir): Adjust accordingly.
* configure.ac: Change 'po/Makefile.in' to 'po/guix/Makefile.in'.
* Makefile.am (SUBDIRS): Change 'po' to 'po/guix'.

10 years agognu: make-bootstrap: Use single-output GCCs.
Ludovic Courtès [Fri, 13 Jun 2014 13:57:23 +0000 (15:57 +0200)]
gnu: make-bootstrap: Use single-output GCCs.

* gnu/packages/make-bootstrap.scm (package-with-relocatable-glibc)[native-inputs]:
  Add 'outputs' field for the rewritten GCC.
  (%gcc-stripped): Add 'outputs' field.

10 years agopull: Copy and compile gnu.scm.
Ludovic Courtès [Fri, 13 Jun 2014 09:42:33 +0000 (11:42 +0200)]
pull: Copy and compile gnu.scm.

* guix/build/pull.scm (build-guix): Copy gnu.scm to OUT.

10 years agognu: grep: Upgrade to 2.20.
Ludovic Courtès [Thu, 12 Jun 2014 21:35:02 +0000 (23:35 +0200)]
gnu: grep: Upgrade to 2.20.

* gnu/packages/base.scm (grep): Upgrade to 2.20.

10 years agognu: gettext: Upgrade to 0.19.1.
Ludovic Courtès [Thu, 12 Jun 2014 21:33:15 +0000 (23:33 +0200)]
gnu: gettext: Upgrade to 0.19.1.

* gnu/packages/gettext.scm (gnu-gettext): Upgrade to 0.19.1.

10 years agognu: make-bootstrap: Fix compilation of %gcc-static.
Ludovic Courtès [Thu, 12 Jun 2014 21:27:25 +0000 (23:27 +0200)]
gnu: make-bootstrap: Fix compilation of %gcc-static.

* gnu/packages/make-bootstrap.scm (%gcc-static)[arguments]
  <#:configure-flags>: Add --disable-bootstrap
  --with-stage1-ldflags=-static.
  Remove #:make-flags.

10 years agognu: Add tinyproxy.
John Darrington [Thu, 12 Jun 2014 11:03:53 +0000 (13:03 +0200)]
gnu: Add tinyproxy.

* gnu/packages/web.scm (tinyproxy): New variable.
* gnu/packages/docbook.scm: Remove #:select (tar)

10 years agognu: Add dropbear.
John Darrington [Thu, 12 Jun 2014 12:46:39 +0000 (14:46 +0200)]
gnu: Add dropbear.

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

10 years agognu: cross-gcc: Use a single output.
Ludovic Courtès [Mon, 9 Jun 2014 20:45:01 +0000 (22:45 +0200)]
gnu: cross-gcc: Use a single output.

* gnu/packages/cross-base.scm (cross-gcc): Add 'outputs' field.

10 years agoguix build: Only 'guix build' sets #:print-build-trace.
Ludovic Courtès [Mon, 9 Jun 2014 16:54:52 +0000 (18:54 +0200)]
guix build: Only 'guix build' sets #:print-build-trace.

This makes 'guix package' et al. slightly less verbose, by not emitting
"@ substituter-started" lines and similar.

* guix/scripts/build.scm (set-build-options-from-command-line): Pass
  #:print-build-trace.
  (%default-options): Add 'print-build-trace?'.

10 years agodoc: Add a few words on the term "derivation".
Ludovic Courtès [Mon, 9 Jun 2014 16:51:44 +0000 (18:51 +0200)]
doc: Add a few words on the term "derivation".

* doc/guix.texi (Programming Interface): Add a sentence on "derivation".

10 years agoThank Carlos.
Ludovic Courtès [Mon, 9 Jun 2014 16:51:11 +0000 (18:51 +0200)]
Thank Carlos.

10 years agognu: skribilo: Propagate Guile dependencies.
Ludovic Courtès [Mon, 9 Jun 2014 16:50:16 +0000 (18:50 +0200)]
gnu: skribilo: Propagate Guile dependencies.

Reported by Carlos Carleos <carleos@uniovi.es>.

* gnu/packages/skribilo.scm (skribilo)[inputs]: Move
  GUILE-READER/GUILE-2.0 and GUILE-LIB to...
  [propagated-inputs]: ... here.  New field.

10 years agognu: coreutils: Remove run-time dependency on Bash.
Ludovic Courtès [Mon, 9 Jun 2014 10:22:05 +0000 (12:22 +0200)]
gnu: coreutils: Remove run-time dependency on Bash.

* gnu/packages/base.scm (coreutils)[arguments] <patch-shell-references>:
  Leave src/split.c unpatched.  Set $SHELL.  Use .../bin/sh and not
  .../bin/bash in tests.

10 years agognu: gcc: Add a "lib" output.
Ludovic Courtès [Mon, 9 Jun 2014 09:58:43 +0000 (11:58 +0200)]
gnu: gcc: Add a "lib" output.

* gnu/packages/gcc.scm (gcc-4.7)[configure-flags]: Add
  --with-gxx-include-dir.
  [outputs]: New field.
  [arguments] <phases>: Adjust to use the "lib" output.  Add
  'substitute*' calls for "libstdc++-v3/python/Makefile.in" and
  "gcc/config.in".
* gnu/packages/base.scm (gcc-boot0) <symlink-libgcc_eh>: Use the "lib"
  output.
  (cross-gcc-wrapper): Add 'outputs' field.
  (glibc-final)[arguments]: Adjust #:allowed-references to list
  '(GCC-BOOT0 "lib").
  (libstdc++): Add 'outputs' field.
  (gcc-final)[arguments]: Add "lib" to #:allowed-references.
* gnu/packages/make-bootstrap.scm (%gcc-static): Add 'outputs' field.

10 years agognu: glibc-final: Remove top-level circular dependency.
Ludovic Courtès [Sun, 8 Jun 2014 21:24:04 +0000 (23:24 +0200)]
gnu: glibc-final: Remove top-level circular dependency.

This fixes a top-level circular dependency between linux.scm and
base.scm introduced in 2e92375.

* gnu/packages/base.scm (glibc-final): Remove call to
  'package-with-restricted-references', and use an 'arguments' field
  instead.

10 years agognu: libunistring: Work around parallel build issue.
Ludovic Courtès [Sun, 8 Jun 2014 08:54:44 +0000 (10:54 +0200)]
gnu: libunistring: Work around parallel build issue.

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

10 years agognu: rdup: Fix tests.
Eric Bavier [Thu, 5 Jun 2014 04:45:31 +0000 (23:45 -0500)]
gnu: rdup: Fix tests.

* gnu/packages/backup.scm (rdup) [arguments]: Add pre-check phase.
  [origin]: Add snippet.

10 years agognu: gettext: Remove debugging leftover.
Ludovic Courtès [Sat, 7 Jun 2014 20:42:57 +0000 (22:42 +0200)]
gnu: gettext: Remove debugging leftover.

* gnu/packages/gettext.scm (gnu-gettext)[source](patches): Remove.