summaryrefslogtreecommitdiff
path: root/guix
AgeCommit message (Collapse)Author
2014-06-27guix {system,offload}: Improve reporting of syntax errors.Ludovic Courtès
* 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.
2014-06-24guix system: Gracefully handle 'install-grub' errors.Ludovic Courtès
* guix/scripts/system.scm (install): Wrap 'install-grub' call in 'false-if-exception'. This is a followup to 641f9a2a.
2014-06-21linux-initrd: Allow unionfs to have a large number of open files.Ludovic Courtès
Fixes <http://bugs.gnu.org/17827>. * guix/build/linux-initrd.scm (mount-root-file-system) [volatile-root?]: Pass unionfs '-o max_file=65536'.
2014-06-20Merge branch 'core-updates'Ludovic Courtès
2014-06-19substitute-binary: Warn about uninitialized ACL.Ludovic Courtès
* 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.
2014-06-19guix system: 'init' makes sure the target store directory exists.Ludovic Courtès
* guix/scripts/system.scm (install): Before calling 'copy-closure', make sure directory (%store-prefix) under TARGET exists.
2014-06-17substitute-binary: Avoid the term "narinfo" in user messages.Ludovic Courtès
* guix/scripts/substitute-binary.scm (assert-valid-narinfo): Change message to avoid the term "narinfo".
2014-06-14Merge branch 'master' into core-updatesLudovic Courtès
2014-06-14ui: Avoid circularity with (guix gexp).Ludovic Courtès
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.
2014-06-14guix build: Allow gexps to be passed to '-e'.Ludovic Courtès
* 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'.
2014-06-13Separate package description translations from string translations.Ludovic Courtès
* 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'.
2014-06-13pull: Copy and compile gnu.scm.Ludovic Courtès
* guix/build/pull.scm (build-guix): Copy gnu.scm to OUT.
2014-06-09guix build: Only 'guix build' sets #:print-build-trace.Ludovic Courtès
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?'.
2014-06-07build-system/gnu: Add 'package-with-restricted-references'.Ludovic Courtès
* guix/build-system/gnu.scm (package-with-restricted-references): New procedure.
2014-06-06Merge branch 'master' into core-updatesLudovic Courtès
2014-06-06build-system/gnu: Add #:allowed-references.Ludovic Courtès
* guix/build-system/gnu.scm (gnu-build): Add #:allowed-references. [canonicalize-reference]: New procedure. Pass #:allowed-references to 'build-expression->derivation'. (gnu-cross-build): Likewise.
2014-06-06derivations: 'build-expression->derivation' supports #:allowed-references.Ludovic Courtès
* guix/derivations.scm (build-expression->derivation): Add #:allowed-references and pass it to 'derivation. * doc/guix.texi (Derivations): Adjust accordingly.
2014-06-06services: Use a fixed GID for the build group and use that for the store.Ludovic Courtès
This partly reverts commit 185f669 ("services: Make sure the store's group is the build group.") * gnu/services/base.scm (guix-service)[activate]: Remove 'chown' call. Add 'id' field to 'user-group' form. * guix/build/install.scm (directives): Set the store's GID to 30000.
2014-06-04activation: Only create groups that do not exist yet.Ludovic Courtès
Before that the effect would be to re-create groups at each boot, and thus remove any members of the groups. * guix/build/activation.scm (activate-users+groups): Call 'add-group' only when (getgrname name) fails.
2014-06-04services: Make sure the store's group is the build group.Ludovic Courtès
* gnu/services/base.scm (guix-service)[activate]: New variable. Add 'chown' call for (%store-prefix). Set the 'activate' field to ACTIVATE. * guix/build/install.scm (directives): Add comment about STORE's group.
2014-06-04tests: Skip tests that would hit the shebang length limitation.Ludovic Courtès
* tests/gexp.scm (shebang): New variable. Skip "gexp->script" when SHEBANG is longer than 127 chars. * guix/gexp.scm (gexp->script): Add comment on the issue.
2014-06-03system: File system sources can be marked as labels or devices.Ludovic Courtès
* gnu/system/file-systems.scm (<file-system>)[title]: New field. * gnu/services/base.scm (file-system-service): Add #:title parameter. In 'start' gexp, use 'canonicalize-device-spec' and honor TITLE. * gnu/system.scm (other-file-system-services, operating-system-root-file-system, operating-system-initrd-file): Adjust accordingly. * gnu/system/linux-initrd.scm (file-system->spec): Likewise. * gnu/system/vm.scm (system-disk-image): Add 'title' field for the root file system. * guix/build/linux-initrd.scm (mount-file-system): Expect the second element of SPEC to be the title. (boot-system)[root-mount-point?, root-fs-type]: Likewise. * gnu/services/dmd.scm (dmd-configuration-file): Select 'canonicalize-device-spec'.
2014-06-02linux-initrd: Wait for devices to appear when resolving a label.Ludovic Courtès
* guix/build/linux-initrd.scm (canonicalize-device-spec): Add #:title parameter. When resolving a label, wait a little and try several times before bailing out.
2014-06-01linux-initrd: Actually create /dev/console.Ludovic Courtès
* guix/build/linux-initrd.scm (make-essential-device-nodes): Add "dev/console".
2014-06-01derivations: Add #:allowed-references 'derivation' parameter.Ludovic Courtès
* guix/derivations.scm (derivation): Add #:allowed-references parameter. [user+system-env-vars]: Honor it. * tests/derivations.scm ("derivation #:allowed-references, ok", "derivation #:allowed-references, not allowed", "derivation #:allowed-references, self allowed", "derivation #:allowed-references, self not allowed"): New tests. * doc/guix.texi (Derivations): Document #:allowed-references.
2014-06-01linux-initrd: Make more device nodes for SCSI disks and CD-ROM devices.Ludovic Courtès
* guix/build/linux-initrd.scm (make-disk-device-nodes): New procedure. (make-essential-device-nodes): Use it. Make more devices nodes for SCSI disks and CD-ROM devices.
2014-06-01linux-initrd: Gracefully handle missing /dev nodes.Ludovic Courtès
* guix/build/linux-initrd.scm (partition-label-predicate): Catch 'system-error' around 'read-ext2-superblock'; return #f upon ENOENT.
2014-05-31linux-initrd: Gracefully deal with partitions with no label.Ludovic Courtès
* guix/build/linux-initrd.scm (partition-label-predicate): Check whether 'ext2-superblock-volume-name' returns #f, and return #f if it does.
2014-05-30linux-initrd: Allow use of volume labels in 'file-system' declarations.Ludovic Courtès
* guix/build/linux-initrd.scm (%ext2-endianness, %ext2-sblock-magic, %ext2-sblock-creator-os, %ext2-sblock-uuid, %ext2-sblock-volume-name): New macros. (read-ext2-superblock, ext2-superblock-uuid, ext2-superblock-volume-name, disk-partitions, partition-label-predicate, find-partition-by-label, canonicalize-device-spec): New procedures. (mount-file-system): Use 'canonicalize-device-spec' on SOURCE. (boot-system): Likewise for ROOT. * doc/guix.texi (Using the Configuration System): Adjust 'file-system' declaration accordingly.
2014-05-29vm: Allow a volume name to be specified for the root partition.Ludovic Courtès
* guix/build/vm.scm (format-partition): Add #:label parameter, and honor it. (initialize-hard-disk): Add #:file-system-label parameter, and pass it to 'format-partition'. * gnu/system/vm.scm (qemu-image): Add #:file-system-label parameter and pass it to 'initialize-hard-disk'.
2014-05-27Merge branch 'master' into core-updatesLudovic Courtès
2014-05-27store: Work around 'get-bytevector-n' bug that affects 'import-paths'.Ludovic Courtès
Fixes <http://bugs.gnu.org/17591>. * guix/store.scm (process-stderr) <%stderr-read>: Use 'get-bytevector-n!' instead of 'get-bytevector-n'.
2014-05-25store: Remove misleading 'setsockopt' call.Ludovic Courtès
* guix/store.scm (open-connection): Remove misleading 'setsockopt' call, erroneously introduced in df1fab58. This would actually shrink the receive buffer from 124 KiB to 12 KiB, though it had little impact on performance.
2014-05-24services: nscd: Provide an 'activate' script to make /var/run/nscd.Ludovic Courtès
* gnu/services/base.scm (nscd-service): Add 'activate' field. * guix/build/install.scm (directives): Remove /var/run/nscd; add /var/run. * doc/guix.texi (Defining Services): Add 'activate' field in example. Document it.
2014-05-24system: Always create /var/empty.Ludovic Courtès
* guix/build/install.scm (directives): Add /var/empty.
2014-05-24system: Separate the activation script from the boot script.Ludovic Courtès
* gnu/system.scm (operating-system-activation-script): New procedure, containing most of the former 'operating-system-boot-script'. (operating-system-boot-script): Call it, and 'primitive-load' its result. * guix/build/activation.scm (%booted-system): Remove. (activate-current-system): Remove #:boot? parameter and related code.
2014-05-23download: Enlarge your receive buffer.Ludovic Courtès
* guix/build/download.scm (open-connection-for-uri): Remove call to 'setsockopt'. * guix/http-client.scm (open-socket-for-uri)[rmem-max, buffer-size]: New variables. Add call to 'setsockopt'.
2014-05-22guix system: Add 'disk-image' action.Ludovic Courtès
* guix/scripts/system.scm (show-help): Add 'disk-image'. (guix-system)[parse-options]: Support 'disk-image' action. [option-arguments]: Likewise. Handle the 'disk-image' action. * doc/guix.texi (Invoking guix system): Document 'disk-image'.
2014-05-22vm: Use a para-virtualized disk when creating an image.Ludovic Courtès
* guix/build/vm.scm (load-in-linux-vm): When MAKE-DISK-IMAGE?, use '-drive ...,if=virtio' for better performance. * gnu/system/vm.scm (qemu-image): Use /dev/vda instead of /dev/sda.
2014-05-22vm: Make the image format a parameter.Ludovic Courtès
* guix/build/vm.scm (load-in-linux-vm): Add #:disk-image-format parameter; add 'image-file' variable. Honor DISK-IMAGE-FORMAT. * gnu/system/vm.scm (expression->derivation-in-linux-vm): Add #:disk-image-format parameter, and honor it. (qemu-image): Likewise.
2014-05-22linux-initrd: Build /dev/loop* nodes.Ludovic Courtès
* guix/build/linux-initrd.scm (make-essential-device-nodes): Build /dev/loop[0-7].
2014-05-22guix: download: Update imagemagick mirrors.Andreas Enge
* guix/download.scm (%mirrors)[imagemagick]: Update and add the legacy subdirectory of the main site as a last resort.
2014-05-21vm: Modularize build-side code.Ludovic Courtès
* guix/build/install.scm (install-grub): Call 'error' if 'system*' returns non-zero. * guix/build/vm.scm (initialize-partition-table): Make 'partition-size' a positional parameter. Call 'error' when 'system*' returns non-zero'. (format-partition, initialize-root-partition): New procedures. (initialize-hard-disk): Use them.
2014-05-21vm: Remove misleading comment.Ludovic Courtès
* guix/build/vm.scm (load-in-linux-vm): Remove misleading comment.
2014-05-21store: Flush the output when the build process emits '\r'.Ludovic Courtès
This allows progress reports emitted by 'substitute-binary' to be correctly displayed. * guix/store.scm (%newlines): New variable. (process-stderr) <%stderr-next>: Flush (current-build-output-port) when S contains one of %NEWLINES.
2014-05-20linux-initrd: Display a backtrace when the initial program fails.Ludovic Courtès
* guix/build/linux-initrd.scm (boot-system): Add pre-unwind handler in 'catch' form around 'primitive-load', and call 'format' and 'display-backtrace' from there.
2014-05-20vm: Fix typo.Ludovic Courtès
Regression introduced in e38e18f. * guix/build/vm.scm (initialize-hard-disk)[partition]: Use a string.
2014-05-20utils: 'delete-file-recursively' doesn't follow mount points by default.Ludovic Courtès
* guix/build/utils.scm (delete-file-recursively): Add #:follow-mounts? parameter and honor it.
2014-05-19ui: Gracefully deal with zero-output derivations.Ludovic Courtès
* guix/ui.scm (show-what-to-build)[built-or-substitutable?]: New procedure. Check whether OUT is #f. Use it. * tests/ui.scm ("show-what-to-build, zero outputs"): New test.
2014-05-19guix system: Check whether we are installing to /.Ludovic Courtès
* guix/scripts/system.scm (install): Check whether TARGET is / and warn.