Age | Commit message (Expand) | Author |
2014-08-23 | svn-download: Rewrite using gexps....* guix/svn-download.scm (subversion-package): New procedure.
(svn-fetch): Use it. Remove 'svn-for-build'. Use a gexp and
'gexp->derivation'.
| Ludovic Courtès |
2014-08-23 | git-download: Rewrite using gexps....* guix/git-download.scm (git-package): New procedure.
(git-fetch): Use it. Remove 'git-for-build'.
Use a gexp and 'gexp->derivation'.
* guix/download.scm (gnutls-package): Fix docstring.
| Ludovic Courtès |
2014-08-23 | Factorize test suite support in (guix tests)....* guix/tests.scm: New file.
* Makefile.am (noinst_DATA): New variable.
(GOBJECTS): Add guix/tests.go.
* tests/builders.scm (%store): Use 'open-connection-for-tests'
from (guix tests).
* tests/derivations.scm: Likewise.
* tests/monads.scm: Likewise.
* tests/packages.scm: Likewise.
* tests/profiles.scm: Likewise.
* tests/union.scm: Likewise.
* tests/gexp.scm: Likewise.
(guile-for-build): Remove. Use (%guile-for-build) instead.
* tests/nar.scm (make-random-bytevector, %seed, random-text): Remove.
(populate-file): Change 'make-random-bytevector' to 'random-bytevector'.
Use (guix tests).
* tests/store.scm (%seed, random-text): Remove.
Use (guix tests).
| Ludovic Courtès |
2014-08-23 | profiles: Produce a top-level Info 'dir' file....Fixes <http://bugs.gnu.org/18305>.
Reported by Brandon Invergo <brandon@gnu.org>.
* guix/profiles.scm (manifest-inputs, info-dir-file): New procedures.
(profile-derivation): Use them. Add #:info-dir? parameter and honor
it.
* guix/scripts/package.scm (guix-package): Call 'profile-derivation'
with #:info-dir? #f when the 'bootstrap? option is set.
* tests/profiles.scm ("profile-derivation"): Pass #:info-dir? #f.
| Ludovic Courtès |
2014-08-23 | profiles: Report about upgrades....* guix/profiles.scm (manifest-show-transaction): Report about upgrades.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
| Alex Kost |
2014-08-20 | Move 'check-package-freshness' from 'guix package' to 'packages'....* guix/scripts/package.scm (%sigint-prompt, call-with-sigint-handler)
(waiting, ftp-open*, check-package-freshness): Move to...
* gnu/packages.scm: ... here.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
| Alex Kost |
2014-08-19 | guix package: Use 'manifest-transaction'....* guix/scripts/package.scm (guix-package)[process-actions]: Use
'manifest-transaction' instead of the equivalent code.
(show-what-to-remove/install): Remove.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
| Alex Kost |
2014-08-19 | profiles: Add 'manifest-transaction'....* guix/profiles.scm (<manifest-transaction>): New record-type.
(manifest-perform-transaction): New procedure.
(manifest-show-transaction): New procedure.
* tests/profiles.scm ("manifest-perform-transaction"): New test.
Co-authored-by: Ludovic Courtès <ludo@gnu.org>
| Alex Kost |
2014-08-18 | gexp: Add 'ungexp-native' and 'ungexp-native-splicing'....* guix/gexp.scm (<gexp>)[natives]: New field.
(write-gexp): Use both 'gexp-references' and
'gexp-native-references'.
(gexp->derivation): Use both 'gexp-inputs' and 'gexp-native-inputs',
and append them.
(gexp-inputs): Add 'references' parameter and honor it.
(gexp-native-inputs): New procedure.
(gexp->sexp)[reference->sexp]: Add 'native?' parameter and honor it.
Use it, and use 'gexp-native-references'.
(gexp)[collect-native-escapes]: New procedure.
[escape->ref]: Handle 'ungexp-native' and 'ungexp-native-splicing'.
[substitute-ungexp, substitute-ungexp-splicing]: New procedures.
[substitute-references]: Use them, and handle 'ungexp-native' and
'ungexp-native-splicing'.
Adjust generated 'make-gexp' call to provide both normal references
and native references.
[read-ungexp]: Support 'ungexp-native' and
'ungexp-native-splicing'.
Add reader extension for #+.
* tests/gexp.scm (gexp-native-inputs): New procedure.
(gexp->sexp*): Add 'target' parameter.
("ungexp + ungexp-native",
"input list + ungexp-native",
"input list splicing + ungexp-native-splicing",
"gexp->derivation, ungexp-native",
"gexp->derivation, ungexp + ungexp-native"): New tests.
("sugar"): Add tests for #+ and #+@.
* doc/guix.texi (G-Expressions): Document 'ungexp-native' et al.
| Ludovic Courtès |
2014-08-17 | gexp: Add #:target parameter to 'gexp->derivation'....* guix/gexp.scm (lower-inputs): Add #:system and #:target. Use
'package->cross-derivation' when TARGET is true. Honor SYSTEM.
(gexp->derivation): Add #:target argument. Pass SYSTEM and TARGET to
'lower-inputs' and 'gexp->sexp'.
(gexp->sexp): Add #:system and #:target. Pass them in recursive call
and to 'package-file'.
* tests/gexp.scm (gexp->sexp*): Add 'system' and 'target' parameters.
("gexp->derivation, cross-compilation"): New test.
| Ludovic Courtès |
2014-08-17 | monads: 'package-file' uses '%current-system' at '>>=' time....* guix/monads.scm (package-file): Leave #:system to #f by default.
* tests/monads.scm ("package-file, default system"): New test.
| Ludovic Courtès |
2014-08-17 | monads: Add 'package->cross-derivation' and #:target for 'package-file'....* guix/monads.scm (package-file): Add #:target keyword parameter and
honor it.
(package->cross-derivation): New procedure.
* tests/monads.scm ("package-file + package->cross-derivation"): New test.
* doc/guix.texi (The Store Monad): Update 'package-file' documentation.
Add 'package->cross-derivation'.
| Ludovic Courtès |
2014-08-15 | Add (guix monad-repl)....* guix/monad-repl.scm: New file.
* guix.scm: Add it.
* Makefile.am (MODULES): Add it.
* doc/guix.texi (The Store Monad): Document it.
| Ludovic Courtès |
2014-08-15 | linux-initrd: Do not create /etc/resolv.conf....* guix/build/linux-initrd.scm (configure-qemu-networking): Don't create
/etc/resolv.conf.
| Ludovic Courtès |
2014-08-14 | Add (guix build emacs-utils)....* guix/build/emacs-utils.scm: New file.
* Makefile.am (MODULES): Add it.
* .dir-locals.el: Add indentation rules.
| Mark H Weaver |
2014-08-12 | Remove ftp.sunet.se mirror....* guix/download.scm (%mirrors): Remove ftp.sunet.se URIs.
| David Thompson |
2014-08-12 | profiles: Adjust to unintended manifest format change....Reported by Andreas Enge.
* guix/profiles.scm (sexp->manifest): Adjust to handle unintended format
change introduced in 4ca0b41.
| Ludovic Courtès |
2014-08-12 | guix package: Remove leftover internal procedure....Reported by Alex Kost <alezost@gmail.com>.
* guix/scripts/package.scm (guix-package)[process-actions]: Remove
'same-package?'.
| Ludovic Courtès |
2014-08-12 | guix package: Use 'manifest-add'....* guix/scripts/package.scm (guix-package)[process-actions]: Use
'manifest-add' instead of the equivalent code.
| Ludovic Courtès |
2014-08-12 | profiles: Add 'manifest-add'....* guix/profiles.scm (manifest-add): New procedure.
* tests/profiles.scm (guile-1.8.8): New variable.
("manifest-add"): New test.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
| Alex Kost |
2014-08-11 | guix package: Remove dead code and unused variables....Suggested by Alex Kost <alezost@gmail.com>.
* guix/scripts/package.scm (options->installable)[deduplicate]: Remove.
[packages-to-upgrade]: Remove unused variable 'newest'.
(roll-back): Remove unused variable 'manifest'.
(guix-package): Remove unused variables 'guile-missing?', 'verbose?',
and 'packages'.
| Ludovic Courtès |
2014-08-11 | ui: Fix handling of periods by fill-paragraph....Fixes <http://bugs.gnu.org/17468>.
* guix/ui.scm (fill-paragraph): Two spaces after period and no spaces before newline.
* tests/ui.scm: New test case.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
| Cyrill Schenkel |
2014-07-26 | profiles: Add 'package->manifest-entry'....Suggested by Alex Kost <alezost@gmail.com>.
* guix/scripts/package.scm (options->installable)[package->manifest-entry]:
Move to (guix profiles).
[package->manifest-entry*]: New procedure.
Use it.
* guix/profiles.scm (package->manifest-entry): New procedure.
* tests/profiles.scm (guile-for-build): New variable.
Call '%guile-for-build'.
("profile-derivation"): New test.
| Ludovic Courtès |
2014-07-26 | profiles: Get rid of the 'inputs' field of 'manifest-entry'....* guix/profiles.scm (<manifest-entry>)[inputs]: Remove.
(profile-derivation): Rely on 'item' and 'deps' instead of 'inputs'.
Adjust 'builder' accordingly.
* guix/scripts/package.scm (options->installable)[package->manifest-entry]:
Remove 'inputs' field. Change 'dependencies' field to contain
packages.
| Ludovic Courtès |
2014-07-26 | profiles: Switch to gexps....* guix/profiles.scm (<manifest-entry>)[path]: Rename to...
[item]: ... this. Update users.
(manifest->sexp): Rename to...
(manifest->gexp): ... this. Return a gexp.
(lower-input): Remove.
(profile-derivation): Remove 'store' parameter, and turn into a
monadic procedure.
[inputs]: New variable.
[builder]: Turn into a gexp.
Replace call to 'build-expression->derivation' with call to
'gexp->derivation'.
* guix/scripts/package.scm (link-to-empty-profile): Adjust call to
'profile-derivation', and wrap it in 'run-with-store'.
(show-what-to-remove/install): Rename 'path' to 'item'. Check whether
ITEM is a package, and return its output path if it is.
(input->name+path): Remove.
(options->installable): Set 'item' to P.
(guix-package): Adjust call to 'profile-derivation'.
* tests/profiles.scm (guile-2.0.9): Change 'path' to 'item'.
| Ludovic Courtès |
2014-07-26 | profiles: Do away with 'manifest=?'....* guix/profiles.scm (manifest=?): Remove.
* guix/scripts/package.scm (readlink*): New procedure.
(guix-package)[process-actions]: Use 'readlink*' and compare the
profile to be built, PROF, with PROFILE to determine whether there's
nothing to be done.
| Ludovic Courtès |
2014-07-25 | profiles: Remove dead code....* guix/profiles.scm (write-manifest): Remove.
(read-manifest): Keep private.
| Ludovic Courtès |
2014-07-25 | guix: package: Fix recutils output for non-package inputs....* guix/ui.scm (package->recutils)[dependencies]: Ignore non-package inputs.
* tests/guix-package.sh: New test.
| Eric Bavier |
2014-07-25 | ui: Improve formatting of package dependencies in recutils....* guix/ui.scm (package->recutils)[dependencies->recutils]: New
procedure. Use it.
| Ludovic Courtès |
2014-07-25 | system: Add the 'system?' field for user groups....Suggested by Mark H. Weaver.
* gnu/system/shadow.scm (<user-group>)[system?]: New field.
(%base-groups): Introduce 'system-group' macro, and use it.
* gnu/system.scm (user-group->gexp): Pass the 'system?' field.
* guix/build/activation.scm (add-group): Add #:system? and honor it.
(activate-users+groups): Handle the 'system?' field.
* gnu/system/file-systems.scm (%tty-gid): Choose an ID below 1000.
* doc/guix.texi (User Accounts): Document the 'system?' field.
| Ludovic Courtès |
2014-07-24 | monads: Add 'interned-file'....* guix/monads.scm (interned-file): New procedure.
* tests/monads.scm ("interned-file"): New test.
* doc/guix.texi (The Store Monad): Document it.
| Ludovic Courtès |
2014-07-23 | guix system: Protect against changes to $PATH when activating the system....Partly fixes <http://bugs.gnu.org/18082>.
Reported by Mark H Weaver <mhw@netris.org>.
* guix/scripts/system.scm (save-environment-excursion): New macro.
(switch-to-system): Wrap 'primitive-load' call in it.
| Ludovic Courtès |
2014-07-23 | guix system: Fix type error in 'reconfigure'....Partly fixes <http://bugs.gnu.org/18082>.
Reported by Mark H Weaver <mhw@netris.org>.
* guix/scripts/system.scm (perform-action) <reconfigure>: Pass the
output file name of GRUB.CFG to 'install-grub'.
| Ludovic Courtès |
2014-07-23 | system: Recognize more file system flags....* guix/build/linux-initrd.scm (MS_NOSUID, MS_NODEV, MS_NOEXEC): New
variables.
(mount-flags->bit-mask): New procedure.
(mount-file-system)[flags->bit-mask]: Remove.
Use 'mount-flags->bit-mask' instead.
In /etc/mtab, use the empty string when OPTIONS is false.
* gnu/services/base.scm (file-system-service): Add #:flags parameter and
honor it.
* gnu/system.scm (other-file-system-services): Pass FLAGS to
'file-system-service'.
| Ludovic Courtès |
2014-07-23 | system: Add 'file-system' decl. for /dev/pts, and use the right options....Fixes <http://bugs.gnu.org/18081>.
* gnu/system/file-systems.scm (%devtmpfs-file-system): Add
'needed-for-boot?' field.
(%tty-gid, %pseudo-terminal-file-system): New variables.
(%base-file-systems): Add %PSEUDO-TERMINAL-FILE-SYSTEM.
* gnu/services/base.scm (udev-service): Remove dependency on
'file-system-/dev'.
* gnu/system/shadow.scm (%base-groups): Add 'id' field for group 'tty'.
* guix/build/linux-initrd.scm (boot-system): Remove 'mount' call for
/dev/pts.
* doc/guix.texi (File Systems): Add %pseudo-terminal-file-system.
| Ludovic Courtès |
2014-07-21 | Add comments about global memoization....* guix/build-system/gnu.scm (standard-inputs): Add comment about
misplaced memoization.
* guix/packages.scm (cache): Likewise.
| Ludovic Courtès |
2014-07-21 | guix package: add a "show" option....* doc/guix.texi: Update the documentation.
* guix/scripts/package.scm: Add a "show" option.
* tests/guix-package.sh: Add a test for the "show" option.
| Cyril Roelandt |
2014-07-21 | ui: add the "dependencies" field to package->recutils:...* guix/ui.scm (package->recutils): Print the dependencies of the package.
| Cyril Roelandt |
2014-07-20 | guix refresh: Use (ice-9 format)....* guix/scripts/refresh.scm: Use (ice-9 format).
| Ludovic Courtès |
2014-07-20 | guix system: Factorize 'copy-closure'....* guix/scripts/system.scm (copy-closure): Rename to...
(copy-item): ... this.
(copy-closure): New procedure.
(install): Use it, and remove redundant code.
| Ludovic Courtès |
2014-07-20 | guix: refresh: Add --list-dependent option....* guix/packages.scm (package-direct-inputs): New procedure.
* gnu/packages.scm (vhash-refq, package-direct-dependents)
(package-transitive-dependents, package-covering-dependents): New procedures.
* guix/scripts/refresh.scm (%options, show-help, guix-refresh): Add
--list-dependent option.
* doc/guix.texi (Invoking guix refresh): Document '--list-dependent' option.
| Eric Bavier |
2014-07-20 | guix: utils: Add fold-tree and fold-tree-leaves....* guix/utils.scm (fold-tree, fold-tree-leaves): New functions.
* tests/utils.scm: Add tests for them.
| Eric Bavier |
2014-07-19 | install: Set the store's permission to #o1775....Fixes <http://bugs.gnu.org/18053>.
Reported by Mark H Weaver <mhw@netris.org>.
* guix/build/install.scm (directives): Add mode #o1775 for STORE.
| Ludovic Courtès |
2014-07-18 | guix system: init: Always use /var/guix as the target state directory....Fixes <http://bugs.gnu.org/18049>.
Reported by Marek Benc <merkur32@gmail.com>.
* guix/scripts/system.scm (copy-closure): Pass #:state-directory to
'register-path'.
| Ludovic Courtès |
2014-07-18 | guix-register: Add '--state-directory' parameter....* nix/guix-register/guix-register.cc (GUIX_OPT_STATE_DIRECTORY): New
macro.
(parse_opt): Honor it.
* tests/guix-register.sh: Add test with '--state-directory'.
* guix/store.scm (register-path): Add #:state-directory parameter.
| Ludovic Courtès |
2014-07-17 | records: Report unknown field names in inheriting forms....* guix/records.scm (define-record-type*)[record-inheritance]: Check for
unexpected field names.
* tests/records.scm ("define-record-type* with let* behavior"): Return
#t, not *unspecified*.
("define-record-type* & inherit & extra initializers"): New test.
| Ludovic Courtès |
2014-07-17 | records: Factorize error-reporting macro....* guix/records.scm (record-error): New macro.
(define-record-type*)[error*]: Remove.
Use 'record-error' instead.
| Ludovic Courtès |
2014-07-17 | gexp: Gracefully handle printing of gexps with spliced references....* guix/gexp.scm (write-gexp): Wrap 'write' call in
'false-if-exception'.
* tests/gexp.scm ("printer", "printer vs. ungexp-splicing"): New tests.
| Ludovic Courtès |
2014-07-16 | gexp: Build 'gexp->file' derivations locally....* guix/gexp.scm (gexp->file): Add #:local-build? argument.
| Ludovic Courtès |
2014-07-15 | guix: refresh: Correctly identify invalid package names....* guix/scripts/refresh.scm (guix-refresh): Check for null list
returned by find-packages-by-name rather than #f.
| Eric Bavier |