summaryrefslogtreecommitdiff
path: root/guix
Commit message (Collapse)AuthorAge
* Merge branch 'master' into stagingMarius Bakke2019-10-08
|\
| * Merge branch 'master' into core-updatesRicardo Wurmus2019-10-06
| |\
| | * gexp: 'load-path-expression' produces an expression that deletes duplicates.Ludovic Courtès2019-10-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes <https://bugs.gnu.org/37531>. "herd eval root '(length %load-path)'" on a freshly-booted bare-bones system now returns 8 instead of 119 before. * guix/gexp.scm (load-path-expression): Rewrite expression to that it deletes duplicates.
| | * environment: '--container' honors '--preserve'.Ludovic Courtès2019-10-03
| | | | | | | | | | | | | | | | | | | | | * guix/scripts/environment.scm (launch-environment/container): Add #:white-list parameter and honor it. (guix-environment): Pass #:white-list to 'launch-environment/container'. * tests/guix-environment-container.sh: Add test.
| | * import: crate: Add '--recursive'.Martin Becze2019-10-01
| | | | | | | | | | | | | | | | | | | | | * guix/scripts/import/crate.scm (show-help, guix-import-crate): Add '--recursive'. * doc/guix.texi (Invoking guix import): Mention '--recursive'. Co-authored-by: Ludovic Courtès <ludo@gnu.org>
| | * import: crate: Support recursive imports.Martin Becze2019-10-01
| | | | | | | | | | | | | | | | | | | | | * guix/import/crate.scm (crate-recursive-import): New procedure. (crate->guix-package): Return dependencies as a second value. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
| | * pull: Do not use '~*', which 'msgfmt' fails to interpret.Konrad Hinsen2019-10-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Really fixes <https://bugs.gnu.org/37505>. This is a followup to f751b4646d3989d76dad9e33e39f9724c7c50be6. * guix/scripts/pull.scm (display-channel-news): Remove second occurrence of '~*' in a format string. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
| | * inferior: Change to use the (guix repl) module.Christopher Baines2019-10-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rather than (guix scripts repl), from which the machine-repl procedure was removed in [1]. 1: 92a4087bf4862d5ba9b77111eba3c68c2a1c4679 * guix/inferior.scm (inferior-pipe): Load (guix repl) rather than (guix scripts repl).
| * | syscalls: Add 'add-to-entropy-count'.Ludovic Courtès2019-10-05
| | | | | | | | | | | | | | | | | | * guix/build/syscalls.scm (RNDADDTOENTCNT): New variable. (add-to-entropy-count): New procedure. * tests/syscalls.scm ("add-to-entropy-count"): New test.
| * | channels: Add quirk to build recent 'master' with Guile 2.2.4.Ludovic Courtès2019-10-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes <https://bugs.gnu.org/37506>. Reported by Marius Bakke <mbakke@fastmail.com>. * guix/channels.scm (syscalls-reexports-local-variables?) (guile-2.2.4, guile-for-source): New procedures. (%quirks): New variable. (build-from-source): Add calls to 'guile-for-source' and 'set-guile-for-build'.
| * | Merge branch 'master' into core-updatesLudovic Courtès2019-10-01
| |\|
| | * pull: Do not use '~*', which 'msgfmt' fails to interpret.Ludovic Courtès2019-10-01
| | | | | | | | | | | | | | | | | | | | | | | | Fixes <https://bugs.gnu.org/37505>. Reported by Konrad Hinsen <konrad.hinsen@fastmail.net>. * guix/scripts/pull.scm (display-channel-news): Use ~a instead of ~* when reporting new channels.
| | * ui: 'show-what-to-build' colorizes store file names.Ludovic Courtès2019-10-01
| | | | | | | | | | | | | | | | | | * guix/ui.scm (colorize-store-file-name): New procedure. (show-what-to-build)[colorize-store-item]: New variable. Use it throughout.
| | * syscalls: 'define-as-needed' does not re-export local variables.Ludovic Courtès2019-09-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes <https://bugs.gnu.org/36723>. Reported by Timothy Sample <samplet@ngyro.com>. * guix/build/syscalls.scm (define-as-needed): Rewrite to use lower-level module primitives; define VARIABLE only if it's not already defined to avoid "re-exporting local variable" error.
| | * offload: Include the port number in the machine lock file name.Ludovic Courtès2019-09-28
| | | | | | | | | | | | | | | | | | | | | | | | This is useful when a single machine appears several time, with different port numbers. * guix/scripts/offload.scm (machine-slot-file): Add MACHINE's port to the file name.
| | * compile: Fix race condition on completion progress.Eric Bavier2019-09-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | This prevent a race condition where multiple compilation threads could report the same progress. * guix/build/compile.scm (compile-files)<completed>: Rename to... <progress>: ...this. Increment in same mutex region as the compilation is reported.
| * | Merge branch 'master' into core-updatesMarius Bakke2019-09-27
| |\|
| | * self: Mark trivial "-modules" derivations as non-substitutable.Ludovic Courtès2019-09-26
| | | | | | | | | | | | | | | | | | | | | | | | The resulting nar takes ~500KiB and it's quicker to build it locally than to download it. * guix/self.scm (node-source+compiled): Pass #:options to 'computed-file'.
| | * guix download: Ensure destination file-name is valid in the store.Hartmut Goebel2019-09-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid invalid store-file-name by explicitly passing the destination name, replacing any character not allowed in the store-file-name by an underscore. Fixes <http://issues.guix.gnu.org/issue/26175> * guix/scripts/download.scm (safe-naensure-valid-store-file-nameme): New function. (download-to-store*): Use it to generate a "safe" basename of URL.
| | * guix package: Add '--list-profiles'.Ludovic Courtès2019-09-26
| | | | | | | | | | | | | | | | | | * guix/scripts/package.scm (show-help, %options): Add '--list-profiles'. (process-query): Honor it. * tests/guix-package.sh: Add test.
| | * pull: Dim the commit ID when displaying news.Ludovic Courtès2019-09-25
| | | | | | | | | | | | * guix/scripts/pull.scm (display-news-entry): Dim the commit line.
| | * colors: Add 'dim'.Ludovic Courtès2019-09-25
| | | | | | | | | | | | | | | | | | | | | * guix/colors.scm (coloring-procedure): New procedure. (%highlight-color): Remove. (highlight): Define in terms of 'coloring-procedure'. (dim): New procedure.
| * | Merge branch 'master' into core-updatesLudovic Courtès2019-09-24
| |\|
| | * pull: Use ~/.cache/guix/checkouts instead of ~/.cache/guix/pull.Ludovic Courtès2019-09-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | Previously 'channel-news-for-commit' would use the former while 'guix pull' would use the latter. Consequently, the first 'guix pull -N' would clone the repository anew. * guix/scripts/pull.scm (guix-pull): Remove 'cache', and leave %REPOSITORY-CACHE-DIRECTORY to its default value.
| | * gexp: Remove unused procedure.Ludovic Courtès2019-09-23
| | | | | | | | | | | | * guix/gexp.scm (syntax-location-string): Remove.
| | * gexp: Catch and report non-self-quoting gexp inputs.Ludovic Courtès2019-09-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we would, for example, generate build scripts in the store; when trying to run them, we'd get a 'read' error due to the presence of #<foo> syntax in there. * guix/gexp.scm (gexp->sexp)[self-quoting?]: New procedure. [reference->sexp]: Check whether the argument in a <gexp-input> box is self-quoting. Raise a '&gexp-input-error' condition if it's not. * tests/gexp.scm ("lower-gexp, non-self-quoting input"): New test.
| | * repl, marionette: 'self-quoting?' matches keywords.Ludovic Courtès2019-09-23
| | | | | | | | | | | | | | | | | | | | | * guix/repl.scm (self-quoting?): Add 'keyword?' and 'array?'; remove 'vector?' and 'bytevector?'. * gnu/tests.scm (marionette-shepherd-service) <start>: Likewise. <modules>: Remove (rnrs bytevector).
| | * show, search: Add '--load-path'.Ludovic Courtès2019-09-23
| | | | | | | | | | | | | | | * guix/scripts/search.scm (show-help, %options): Add -L/--load-path. * guix/scripts/show.scm (show-help, %options): Add -L/--load-path.
| | * build: ruby-build-system: Fix typo.Vagrant Cascadian2019-09-23
| | | | | | | | | | | | * guix/build/ruby-build-system: Fix spelling of "invocation".
| | * import: stackage: Fix typo.Vagrant Cascadian2019-09-23
| | | | | | | | | | | | * guix/import/stackage: Fix spelling of "version".
| | * inferior: Fix typo.Vagrant Cascadian2019-09-23
| | | | | | | | | | | | * guix/inferior: Fix spelling of "specifications".
| | * lint: Fix typo.Vagrant Cascadian2019-09-23
| | | | | | | | | | | | * guix/lint: Fix spelling of "mentioning".
| | * scripts: container: Fix typo.Vagrant Cascadian2019-09-23
| | | | | | | | | | | | * guix/scripts/container/exec (show-help): Fix spelling of COMMAND.
| | * deploy: Add '--verbosity' and properly interpret build log.Ludovic Courtès2019-09-23
| | | | | | | | | | | | | | | | | | | | | This is a followup to 91300526b7d9d775bd98a700ed3758420ef9eac6. * guix/scripts/deploy.scm (show-help, %options): Add '--verbosity'. (guix-deploy): Wrap 'with-store' in 'with-status-verbosity'.
| | * pull: Display news titles directly upon 'pull'.Ludovic Courtès2019-09-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * guix/scripts/pull.scm (display-profile-news): Return true when there's more to display. (display-news-entry-title): New procedure. (display-news-entry): Use it. (display-channel-specific-news): Return true when there's more to display. (display-channel-news-headlines): New procedure. (build-and-install): Call it. When 'display-channel-news-headlines' or 'display-profile-news' returns #t, print a hint to run "pull --news". (display-new/upgraded-packages): Return true when there's more to display.
| | * pull: '-l' displays channel news.Ludovic Courtès2019-09-23
| | | | | | | | | | | | | | | | | | * guix/scripts/pull.scm (display-channel-news): Make 'previous' a parameter. (process-query)[list-generations]: Call 'display-channel-news'.
| | * pull: Display channel news.Ludovic Courtès2019-09-23
| | | | | | | | | | | | | | | | | | | | | | | | * guix/scripts/pull.scm (display-news-entry) (display-channel-specific-news): New procedures. (display-channel-news): Call it. (display-new/upgraded-packages): Adjust hint message. * doc/guix.texi (Invoking guix pull): Mention it.
| | * ui: Add 'current-message-language'.Ludovic Courtès2019-09-23
| | | | | | | | | | | | | | | * guix/ui.scm (%default-message-language): New variable. (current-message-language): New procedure.
| | * channels: Allow news entries to refer to a tag.Ludovic Courtès2019-09-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Suggested by Ricardo Wurmus <rekado@elephly.net>. * guix/channels.scm (<channel-news-entry>)[tag]: New field. (sexp->channel-news-entry): Accept either 'commit' or 'tag' in 'entry' forms. (resolve-channel-news-entry-tag): New procedure. (channel-news-for-commit): Move 'with-repository' form one level higher. Call 'resolve-channel-news-entry-tag' on all the news entries. * guix/tests/git.scm (populate-git-repository): Add clause for 'tag'. * tests/channels.scm ("channel-news, one entry"): Create a tag and add an entry with a tag. Check that the tag is resolved and also visible in the <channel-news-entry> record. * doc/guix.texi (Channels): Mention tags in news entries.
| | * channels: Add support for a news file.Ludovic Courtès2019-09-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * guix/channels.scm (<channel-metadata>)[news-file]: New field. (read-channel-metadata): Set the 'news-file' field. (read-channel-metadata-from-source): Likewise. (<channel-news>, <channel-news-entry>): New record types. (sexp->channel-news-entry, read-channel-news) (channel-news-for-commit): New procedures. * guix/tests/git.scm (populate-git-repository): For 'add', allow CONTENTS to be a procedure. * tests/channels.scm ("channel-news, no news") ("channel-news, one entry"): New tests. * doc/guix.texi (Channels): Document it.
| | * git: Add 'commit-difference'.Ludovic Courtès2019-09-23
| | | | | | | | | | | | | | | | | | | | | * guix/git.scm (commit-closure, commit-difference): New procedures. * guix/tests/git.scm, tests/git.scm: New files. * Makefile.am (dist_noinst_DATA): Add guix/tests/git.scm. (SCM_TESTS): Add tests/git.scm.
| | * git: 'update-cached-checkout' avoids network access when unnecessary.Ludovic Courtès2019-09-23
| | | | | | | | | | | | | | | | | | * guix/git.scm (reference-available?): New procedure. (update-cached-checkout): Avoid call to 'remote-fetch' when REPOSITORY already contains REF.
| | * pull: '--news' shows the list of channels added or removed.Ludovic Courtès2019-09-23
| | | | | | | | | | | | | | | | | | * guix/scripts/pull.scm (display-channel, channel=?) (display-channel-news, display-news): New procedures. (process-query): Call 'display-news' instead of 'display-profile-news'.
| | * guix package: '--show' ignores deprecated packages.Ludovic Courtès2019-09-21
| | | | | | | | | | | | | | | | | | * guix/scripts/package.scm (process-query) <'show>: Remove superseded packages. * tests/guix-package-aliases.sh: Add test.
| | * guix package: Add 'guix show' alias.zimoun2019-09-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * guix/scripts/show.scm: New file. * Makefile.am (MODULES): Add it. * po/guix/POTFILES.in: Add it. * tests/guix-package-aliases.sh: Add test. * doc/guix.texi (Invoking guix package): Document it and use it in a example. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
| | * inferior: Propagate '&store-protocol-error' error conditions.Ludovic Courtès2019-09-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Until now '&store-protocol-error' conditions raised in the inferior would not be correctly propagated because SRFI-35 records lack a read syntax. Reported at <https://bugs.gnu.org/37449> by Carl Dong <contact@carldong.me>. * guix/inferior.scm (port->inferior): Import (srfi srfi-34) in the inferior. (inferior-eval-with-store): Define 'error?' and 'error-message'. Wrap call to PROC in 'guard'. Check the response of INFERIOR for a 'store-protocol-error' or a 'result' tag. * tests/inferior.scm ("inferior-eval-with-store, &store-protocol-error"): New test.
| | * import/github: Check for more version prefixes.Efraim Flashner2019-09-20
| | | | | | | | | | | | | | | * guix/import/github.scm (latest-released-version): Allow the version string to begin with the word 'version'.
| | * ui: 'relevance' connects regexps with a logical and.zimoun2019-09-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes <https://bugs.gnu.org/36763>. Previously, the logical and connecting the regexps did not output the expected results (introduced in 8874faaaac665100a095ef25e39c9a389f5a397f). * guix/ui.scm (relevance) [score]: Change its arguments. [regexp->score]: New procedure. * tests/ui.scm ("package-relevance"): Add test. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
| | * scripts: pull: Add options for generation managementKonrad Hinsen2019-09-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * guix/scripts/pull.scm (%options) Add --roll-back, --switch-generation, --delete-generations (process-generation-change): New function (guix-pull): Execute generation management operations * doc/guix.texi: Document the generation management operations Signed-off-by: Ludovic Courtès <ludo@gnu.org>
| | * pull: Work around Ubuntu's 'sudo'.Ludovic Courtès2019-09-18
| | | | | | | | | | | | | | | | | | | | | | | | Partly fixes <https://bugs.gnu.org/36785>. Reported by Julien Lepiller <julien@lepiller.eu>. * guix/scripts/pull.scm (ensure-default-profile): Do not call 'migrate-generations' when "SUDO_USER" is set.