summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-09-18derivations: 'derivation' and related procedures return a single value.Ludovic Courtès
* guix/derivations.scm (derivation->output-path, derivation->output-paths): New procedures. (derivation-path->output-path): Use 'derivation->output-path'. (derivation-path->output-paths): Use 'derivation->output-paths'. (derivation): Accept 'derivation?' objects as inputs. Return a single value. (build-derivations): New procedure. (compiled-modules): Use 'derivation->output-paths'. (build-expression->derivation)[source-path]: Add case for when the input matches 'derivation?'. [prologue]: Accept 'derivation?' objects in INPUTS. [mod-dir, go-dir]: Use 'derivation->output-path'. * guix/download.scm (url-fetch): Adjust to the single-value return. * guix/packages.scm (package-output): Use 'derivation->output-path'. * guix/scripts/build.scm (guix-build): When the argument is 'derivation-path?', pass it through 'read-derivation'. Use 'derivation-file-name' to print out the .drv file names, and to register them. Use 'derivation->output-path' instead of 'derivation-path->output-path'. * guix/scripts/package.scm (roll-back): Adjust to the single-value return. (guix-package): Use 'derivation->output-path'. * guix/ui.scm (show-what-to-build): Adjust to deal with 'derivation?' objects instead of .drv file names. * gnu/system/grub.scm (grub-configuration-file): Use 'derivation->output-path' instead of 'derivation-path->output-path'. * gnu/system/vm.scm (qemu-image, system-qemu-image): Likewise. * tests/builders.scm, tests/derivations.scm, tests/packages.scm, tests/store.scm, tests/union.scm: Adjust to the new calling convention. * doc/guix.texi (Defining Packages, The Store, Derivations): Adjust accordingly.
2013-09-18tests: Clarify filtering of the "debug" output.Ludovic Courtès
* tests/guix-package.sh: Clearly filter out the "debug" output of 'gnu-make-boot0'.
2013-09-18derivations: Add a nicer printer.Ludovic Courtès
* guix/derivations.scm (<derivation>): Add a printer.
2013-09-17derivations: Keep the .drv file name in <derivation> objects.Ludovic Courtès
* guix/derivations.scm (<derivation>): Add 'file-name' field. (%read-derivation): Use (port-filename DRV-PORT) as the file name for the result. (derivation): Set the 'file-name' field in the result. * tests/derivations.scm ("build derivation with 1 source"): Assert that 'derivation-file-name' returns the right thing.
2013-09-16gnu: dbus: Add dependency on libX11.Ludovic Courtès
* gnu/packages/glib.scm: Use #:export instead of 'define-public'. (dbus): Add LIBX11 as an input.
2013-09-14Merge branch 'python'Andreas Enge
2013-09-13substitute-binary: Add '--help'.Ludovic Courtès
Reported by Nikita Karetnikov <nikita@karetnikov.org>. * guix/scripts/substitute-binary.scm (show-help): New procedure. (guix-substitute-binary): Add '--help'.
2013-09-13gnu: gnutls: Upgrade to 3.2.4.Ludovic Courtès
* gnu/packages/gnutls.scm (gnutls): Update to 3.2.4; remove 'arguments' field, remove "patch/fix-tests" from the inputs. * gnu/packages/patches/gnutls-fix-tests-on-32-bits-system.patch: Remove. * gnu-system.am (dist_patch_DATA): Adjust accordingly.
2013-09-13gnu: Add python2-mechanize.Andreas Enge
* gnu/packages/python.scm (python2-mechanize): New variable.
2013-09-13guix package: Rename generation-related procedures.Nikita Karetnikov
* guix/scripts/package.scm (profile-numbers): Rename to 'generation-numbers'. (previous-profile-number): Rename to 'previous-generation-number'. (profile-number): Rename to 'generation-number'. (roll-back): Rename 'previous-profile' to 'previous-generation'.
2013-09-12gnu: Add python2-sqlite.Andreas Enge
* gnu/packages/python.scm (python2-sqlite): New variable.
2013-09-12Thank Matthias and Yutaka.Ludovic Courtès
2013-09-12daemon: Use 'int' instead of the internal 'gcry_md_algo_t' type.Ludovic Courtès
Fixes compilation with the forthcoming libgcrypt 1.6.x. Reported by Matthias Wachs <wachs@net.in.tum.de> and NIIBE Yutaka <gniibe@fsij.org>. * nix/libutil/gcrypt-hash.cc (guix_hash_init, guix_hash_final): Use 'int' as the type of the 'algo' parameter. * nix/libutil/gcrypt-hash.hh: Update declarations accordingly.
2013-09-11gnu: avahi, dbus: Use /var as $localstatedir.Ludovic Courtès
* gnu/packages/avahi.scm (avahi): Pass '--localstatedir'; add 'patch/localstatedir'. * gnu/packages/glib.scm (dbus): Pass '--localstatedir' and '--with-session-socket-dir'; add 'patch/localstatedir'. * gnu/packages/patches/avahi-localstatedir.patch, gnu/packages/patches/dbus-localstatedir.patch: New files. * gnu-system.am (dist_patch_DATA): Add them.
2013-09-11gnu: Update python-babel, python2-babel to 1.3.Andreas Enge
* gnu/packages/python.scm (python-babel, python2-babel): Update to 1.3.
2013-09-11gnu: Move helper code to (gnu system …) modules.Ludovic Courtès
* gnu/packages/grub.scm (<menu-entry>, grub-configuration-file): Move to... * gnu/system/grub.scm: ... here. New file. * gnu/packages/linux.scm (<pam-service>, <pam-entry>, pam-service->configuration, pam-service->directory, %pam-other-services, unix-pam-service): Move to... * gnu/system/linux.scm: ... here. New file. * gnu/system/vm.scm (passwd-file): Move to... * gnu/system/shadow.scm: ... here. New file. * gnu-system.am (GNU_SYSTEM_MODULES): Add gnu/system/{grub,linux,shadow}.scm.
2013-09-11gnu: vm: Remove potluck hacks.Ludovic Courtès
* gnu/system/vm.scm (example1): Remove. (example2): Rename to... (system-qemu-image): ... this. Add 'store' parameter, and remove call to 'open-connection'.
2013-09-11gnu: Add python-dateutil, python2-dateutil.Andreas Enge
* gnu/packages/python.scm (python-dateutil, python2-dateutil): New variables.
2013-09-11guix: python: Create module installation path and add it to PYTHONPATH duringAndreas Enge
the installation phase. * guix/build/python-build-system.scm (get-python-version): New procedure. * guix/build/python-build-system.scm (install): Create and add path. * gnu/packages/python.scm (python-setuptools): Drop path creation code.
2013-09-11gnu: vm: Setup PAM.Ludovic Courtès
* gnu/system/vm.scm (example2): Use 'pam-services->directory'. Change POPULATE to create /etc/pam.d, /etc/login.defs, and /var/run. Change BOOT to spawn syslogd; boot to Bash. Add inputs.
2013-09-11gnu: vm: Create shadow files with the right format.Ludovic Courtès
* gnu/system/vm.scm (passwd-file): When SHADOW? is true, use the right shadow(5) format. Always add a trailing newline.
2013-09-11linux-initrd: Create /dev/klog and /dev/kmsg.Ludovic Courtès
* guix/build/linux-initrd.scm (make-essential-device-nodes): Make /dev/klog and /dev/kmsg.
2013-09-11gnu: linux-initrd: Fix typo.Ludovic Courtès
* gnu/packages/linux-initrd.scm (gnu-system-initrd): Add missing argument to 'format' call.
2013-09-11gnu: linux-pam: Add declarative PAM service interface.Ludovic Courtès
* gnu/packages/linux.scm (<pam-service>, <pam-entry>): New record types. (pam-service->configuration, pam-services->directory, unix-pam-service): New procedures. (%pam-other-services): New variable.
2013-09-11store: The 'references' parameter of 'add-text-to-store' is now optional.Ludovic Courtès
* guix/store.scm (add-text-to-store): Make 'references' optional. * tests/store.scm ("dead-paths", "references"): Use 'add-text-to-store' with no optional argument. * doc/guix.texi (The Store): Adjust accordingly.
2013-09-10gnu: Add python-setuptools, python2-setuptools.Andreas Enge
* gnu/packages/python.scm (python-setuptools, python2-setuptools): New variables.
2013-09-10guix: python: Do not import %standard-phases from gnu-build-system.Andreas Enge
* guix/build-system/python.scm (python-build): Drop module gnu-build-system. Thanks to Ludovic Courtès <ludo@gnu.org>.
2013-09-10gnu: isl: Update urls.Andreas Enge
* gnu/packages/gcc.scm (isl): Update source and home page url.
2013-09-10guix: python: Add parameter #:phases to build system.Andreas Enge
* guix/build-system/python.scm (python-build): Use parameter #:phases.
2013-09-09gnu: vm: Copy /etc/shadow to the guest.Ludovic Courtès
* gnu/system/vm.scm (example2): Add SHADOW to #:inputs-to-copy.
2013-09-08gnu: vm: Create valid /etc/shadow and /etc/passwd.Ludovic Courtès
* gnu/system/vm.scm (/etc/passwd): Rename to... (passwd-file): ... this. Add 'shadow?' keyword parameter. Change format of ACCOUNTS, and fix CONTENTS. (example2): Adjust accordingly. Create both /etc/shadow and /etc/passwd, the latter being used by getpwnam(3) & co. when nscd is not running.
2013-09-08gnu: vm: Clear timestamps on the imported files, like in the store.Ludovic Courtès
* gnu/system/vm.scm (qemu-image): Clear timestamps on the copied files.
2013-09-08guix: python: Add package-with-python2, a procedure rewriting a packageAndreas Enge
to compile with Python 2 instead of the default Python 3. * guix/build-system/python.scm (default-python2, package-with-explicit-python, package-with-python2): New procedures. * guix/build-system/python.scm (python2-pytz, python2-babel): Use package-with-python2.
2013-09-08hydra: Support a 'subset' argument.Ludovic Courtès
* build-aux/hydra/gnu-system.scm (%core-packages): New variable. (%packages-to-cross-build): Make an alias for %CORE-PACKAGES. (hydra-jobs): Check for the 'subset' argument, and honor it for values "all" and "core".
2013-09-08gnu: linux-libre: Upgrade to 3.11.Ludovic Courtès
* gnu/packages/linux.scm (linux-libre): Upgrade to 3.11. Add bc as an input.
2013-09-07gnu: grub: Add support for building configuration files.Ludovic Courtès
* gnu/packages/grub.scm (<menu-entry>): New record type. (grub-configuration-file): New procedure. * gnu/system/vm.scm (qemu-image): Remove parameters 'linux', 'linux-arguments', and 'initrd'. Add 'grub-configuration' parameter. Honor them, and remove grub.cfg generation code accordingly. (example2): Use `grub-configuration-file', and adjust accordingly.
2013-09-07doc: Add "Data Types and Pattern Matching" to the Coding Style.Ludovic Courtès
* HACKING (Data Types and Pattern Matching): New section.
2013-09-07gnu: Add the 'license:' prefix.Nikita Karetnikov
* gnu/packages/glib.scm (itstool): Change 'gpl3+' to 'license:gpl3+'.
2013-09-06gnu: Add itstool.Cyril Roelandt
* gnu/packages/glib.scm (itstool): New variable.
2013-09-05gnu: vm: Add /etc/shadow in the QEMU image.Ludovic Courtès
* gnu/system/vm.scm (qemu-image): Add 'populate' keyword parameter and honor it; make it an input. (/etc/shadow): New procedure. (example2): Call it; build 'populate' script, and pass it to 'qemu-image'.
2013-09-05gnu: vm: Remove unused 'qemu-image' argument.Ludovic Courtès
* gnu/system/vm.scm (qemu-image): Remove 'boot-expression' parameter, superseded by 'linux-arguments'.
2013-09-05guix: python: Add build phase and factor out calls to setup.py.Andreas Enge
* guix/build/python-build-system.scm (call-setuppy): New procedure. * guix/build/python-build-system.scm (build): New procedure. * guix/build/python-build-system.scm (check, install): Use call-setuppy. * guix/build/python-build-system.scm (%standard-phases): Add call to build.
2013-09-05gnu: python: Disable tests in python2-pytz and python2-babel.Andreas Enge
* gnu/packages/python.scm (python2-pytz, python2-babel): Disable tests.
2013-09-05gnu: python: Disable tests in pytz and babel.Andreas Enge
* gnu/packages/python.scm (python-pytz, python-babel): Disable tests.
2013-09-05gnu: python: Honour #:tests? and #:test-target in build system.Andreas Enge
* guix/build/python-build-system.scm (check): Use named parameters tests? and test-target (default now: "test" instead of "check").
2013-09-05gnu: git: Switch back to Python 2.Andreas Enge
* gnu/packages/version-control.scm (git): Switch back to Python 2.
2013-09-05gnu: vm: First stab at building a populated QEMU image.Ludovic Courtès
* gnu/packages/linux-initrd.scm (gnu-system-initrd): New variable. * gnu/system/vm.scm (qemu-image): Add #:linux-arguments parameter. [input->name+derivation]: Add case for 'store-path?' items. Remove LOADER from `inputs'.
2013-09-05gnu: linux-initrd: Fix creation of /dev/tty nodes.Ludovic Courtès
* guix/build/linux-initrd.scm (make-essential-device-nodes): Make /dev/tty. Change from 'block-special' to 'char-special' for /dev/tty* nodes.
2013-09-05gnu: vm: 'qemu-image' populates /dev on the target root file system.Ludovic Courtès
* gnu/system/vm.scm (qemu-image): Use (guix build linux-initrd). Remove 'mknod' calls; use 'make-essential-device-nodes' to populate /dev on the target image. * gnu/packages/linux-initrd.scm (qemu-initrd): When /root/dev exists, don't call 'make-essential-device-nodes'.
2013-09-04gnu: python: Implement the python naming scheme for pytz and babel.Andreas Enge
* gnu/packages/python.scm (pytz): Rename this ... * gnu/packages/python.scm (python-pytz): ... to this * gnu/packages/python.scm (python2-pytz): New variable, input python-2. * gnu/packages/python.scm (babel): Rename this ... * gnu/packages/python.scm (python-babel): ... to this * gnu/packages/python.scm (python2-babel): New variable, input python-2.