summaryrefslogtreecommitdiff
path: root/guix
AgeCommit message (Collapse)Author
2020-04-27import: crate: Gracefully handle non-existent crates.Ludovic Courtès
Fixes <https://bugs.gnu.org/40891>. Reported by Hartmut Goebel <h.goebel@crazy-compilers.com>. * guix/import/crate.scm (crate->guix-package): Wrap value of 'version-number' and 'version*' in (and crate ...).
2020-04-26channels: Use a declarative profile.Ludovic Courtès
* guix/channels.scm (package-cache-file): Use 'profile' instead of 'profile-derivation'.
2020-04-26pack: Use a declarative profile.Ludovic Courtès
* guix/scripts/pack.scm (guix-pack): Use a declarative profile instead of 'profile-derivation'.
2020-04-26profiles: Add lowerable <profile> record type.Ludovic Courtès
* guix/profiles.scm (<profile>): New record type. * tests/profiles.scm ("<profile>"): New test.
2020-04-26substitute: Close port at the end of http-multiple-get.Christopher Baines
* guix/scripts/substitute.scm (http-multiple-get): Add close-port call.
2020-04-26substitute: Make http-multiple-get batch size configurable.Christopher Baines
* guix/scripts/substitute.scm (http-multiple-get): Add batch-size parameter.
2020-04-26substitute: Use the same port for multiple request batches.Christopher Baines
In http-multiple-get. * guix/scripts/substitute.scm (http-multiple-get): Switch port to p in one occurrence.
2020-04-24Merge branch 'master' into core-updatesMarius Bakke
2020-04-24guix package: Export 'search-path-environment-variables'.Marius Bakke
...because Emacs-Guix uses it. * guix/scripts/package.scm (search-path-environment-variables): Export.
2020-04-24Revert "licenses: Export license record."Mathieu Othacehe
This reverts commit f0779922ff260df2404c90504986aa59553154fb. We do not want to export the license record, see: https://lists.gnu.org/archive/html/guix-commits/2020-04/msg01923.html.
2020-04-23compile: Pre-load the compiler outside 'with-target'.Ludovic Courtès
* guix/build/compile.scm (compile-files): Move call to 'compile' before 'with-target'. Failing to do that, if the target has a different word size than the host, the first call to 'compile-file' fails with: ice-9/eval.scm:293:34: In procedure load-thunk-from-memory: ELF file does not have native word size while attempting loading 'language/spec.go'.
2020-04-23licenses: Export license record.zimoun
* guix/licenses.scm (<license>): Export it. Signed-off-by: Mathieu Othacehe <m.othacehe@gmail.com>
2020-04-23git-version: Raise a condition instead of an error.Jakub Kądziołka
* guix/git-download.scm (git-version): Replace ERROR with RAISE and CONDITION. This is a follow-up to commit bbf6bc1acc9bbdebf7ee7b68c0fa091733a5f6e1.
2020-04-23Merge branch 'master' into core-updatesMarius Bakke
Conflicts: etc/news.scm gnu/local.mk gnu/packages/bootloaders.scm gnu/packages/linphone.scm gnu/packages/linux.scm gnu/packages/tls.scm gnu/system.scm
2020-04-23git-version: Handle invalid arguments gracefullyJakub Kądziołka
* guix/git-download.scm (git-version): Add a check for commit ID length.
2020-04-22profiles: Add #:name parameter to 'profile-derivation'.Ludovic Courtès
* guix/profiles.scm (profile-derivation): Add #:name and pass it to 'gexp->derivation'.
2020-04-22gexp: Add 'load-path?' field to <scheme-file>.Ludovic Courtès
* guix/gexp.scm (<scheme-file>)[load-path?]: New field. (scheme-file): Add #:set-load-path? and honor it. (scheme-file-compiler): Pass #:set-load-path? to 'gexp->file'. * doc/guix.texi (G-Expressions): Document it.
2020-04-21self: Build and install 'guix-cookbook.info' and its translations.Ludovic Courtès
* guix/self.scm (translate-texi-manuals)[build]: Translate and install guix-cookbook.texi. (info-manual)[build]: Handle "guix-cookbook*.texi".
2020-04-21self: translate-texi-manuals: Add 'available-translations'.Ludovic Courtès
* guix/self.scm (translate-texi-manuals)[build](available-translations): New procedure. Use it rather than directly calling 'find-files' & co.
2020-04-21self: translate-texi-manuals: Don't hardcode "guix.texi".Ludovic Courtès
* guix/self.scm (translate-texi-manuals)[build](translate-texi): Add 'prefix' and #:extras parameters and honor them. Adjust callers.
2020-04-21packages: Recommend against the use of 'package-file'.Ludovic Courtès
* guix/packages.scm (package-file): Recommend against its use in the docstring. * doc/guix.texi (The Store Monad): Likewise.
2020-04-20syscalls: Fix Linux detection in 'readdir*'.Julien Lepiller
* guix/build/syscalls.scm (readdir*): Fix Linux detection for `arm-unknown-linux-gnueabihf'.
2020-04-19Merge branch 'master' into core-updatesMarius Bakke
2020-04-19tests: Invoke 'git' with a custom '.gitconfig' and ignore the system config.Ludovic Courtès
Fixes <https://bugs.gnu.org/37679>. Reported by Gábor Boskovits <boskovits@gmail.com>. * guix/tests/git.scm (call-with-environment-variables): New procedure. (with-environment-variables): New macro. (populate-git-repository)[git]: Wrap (git-command) invocation in 'call-with-temporary-directory' and 'with-environment-variables'.
2020-04-19status: Remove extra space before ellipsis.Ludovic Courtès
Extra space was introduced in 8fa4ac5be4d5f8a1e62635842b16486832ff49f1. * guix/status.scm (print-build-event): Remove extra space before ellipsis.
2020-04-18guix: self: Use guile with libgc-7.Christopher Baines
Rather than libgc version 8. This should avoid crashes that can occur, particularly when loading data in to the Guix Data Service [1]. 1: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=40525 * gnu/packages/guile.scm (guile-3.0/libgc-7): New variable. * guix/self.scm (specification->package): Use guile-3.0/libgc-7 for guile.
2020-04-17gnupg: Accept revoked keys.Tobias Geerinckx-Rice
I (nckx) have revoked all RSA subkeys, in favour of my older and freshly-refreshed ECDSA ones. This was merely a precaution: to my knowledge all my RSA private keys have been carefully destroyed and were never compromised. This commit keeps ‘make authenticate’ happy. * guix/gnupg.scm (revkeysig-rx): New variable for revoked keys. (gnupg-verify): Parse it. (gnupg-status-good-signature?): Accept it as ‘good’ for our purposes. * build-aux/git-authenticate.scm (%committers): Clarify nckx's subkeys. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2020-04-17ui: Fix typos, 80-col & grammar in comments & docstrings.Vincent Legoll
* guix/ui.scm (load*): Fix comment line length. (leave-on-EPIPE): Fix typo in docstring. (substitutable-info): Fix typo in comment. (indented-string): Fix typo in docstring. (%package-metrics): Fix typo in comment. (run-guix): Fix grammar in docstring. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2020-04-17status: Allow double-click select of URLs.TomZ
Various places while downloading or compiling guix prints the source URL. This change makes the URL easier to use by placing a space between the URL and the trailing dots. Signed-off-by: Marius Bakke <mbakke@fastmail.com>
2020-04-16import/print: Don't factorize URI if there's no version match.Ricardo Wurmus
* guix/import/print.scm (package->code): If FACTORIZE-URI returns just the unmodified string use that as the URI.
2020-04-16import/utils: alist->package: Include arguments.Ricardo Wurmus
* guix/import/utils.scm (alist->package): Process arguments field in input data and include it in the generated package.
2020-04-16import/json: json->code: Handle files with more than one definition.Ricardo Wurmus
* guix/import/json.scm (json->code): Convert JSON arrays to lists of package definitions. (json->scheme-file): Write all expressions to the target file.
2020-04-16import/utils: alist->package: Ignore known inputs.Ricardo Wurmus
* guix/import/utils.scm (alist->package): Accept optional list of known inputs, which are excluded from the specification lookup. * guix/import/print.scm (package->code)[package-lists->code]: Handle inputs which are just symbols.
2020-04-16import/print: package->code: Wrap S-expression in definition.Ricardo Wurmus
* guix/import/print.scm (package->code): Return a definition, not just a package expression.
2020-04-16import/json: Use json->code.Ricardo Wurmus
* guix/import/json.scm (json->code): Export procedure. * guix/scripts/import/json.scm (guix-import-json): Use json->code.
2020-04-16scripts/package: Handle JSON files.Ricardo Wurmus
* guix/scripts/package.scm (%options): Support loading from JSON files when "install-from-file" is used.
2020-04-16scripts/build: options->things-to-build: Handle .json files.Ricardo Wurmus
* guix/scripts/build.scm (options->things-to-build): Handle files that end on .json.
2020-04-16import/json: Add json->scheme-file.Ricardo Wurmus
* guix/import/json.scm (json->code, json->scheme-file): New procedures.
2020-04-16import/print: package->code: Wrap build system value in module reference.Ricardo Wurmus
* guix/import/print.scm (package->code): Return build system value with corresponding module.
2020-04-16import/print: Return license with prefix.Ricardo Wurmus
* guix/import/print.scm (license->code): Prepend license: prefix.
2020-04-16syscalls: 'readdir*' chooses between the Linux and Hurd code at run time.Ludovic Courtès
Partly fixes <https://bugs.gnu.org/40574>. Reported by Jan Nieuwenhuizen <janneke@gnu.org>. Previously, we'd choose at expansion time whether to use the Hurd or the Linux variant, taking the cross-compilation target into account. This would lead to the wrong decision when (guix build syscalls) is evaluated while we're cross-compiling to GNU/Hurd. This is a followup to 1ab9e483391f8b62b873833ea71cb0074efa03e7. * guix/build/syscalls.scm (define-generic-identifier) (read-dirent-header, %struct-dirent-header, sizeof-dirent-header): Remove. (readdir*): Rename to... (readdir-procedure): ... this, and add parameters. (readdir*): Define as a call to 'readdir-procedure' as a function of %HOST-TYPE.
2020-04-15Merge branch 'master' into core-updatesMarius Bakke
2020-04-15Merge branch 'version-1.1.0'Ludovic Courtès
2020-04-14weather: Delete duplicate entries coming from '--manifest'.Ludovic Courtès
* guix/scripts/weather.scm (load-manifest): Call 'delete-duplicates'.
2020-04-13Merge branch 'master' into core-updatesMarius Bakke
2020-04-13self: Prevent inlining of internal procedures used by 'doc/build.scm'.Ludovic Courtès
This allows 'doc/build.scm' to keep using '@@' for these. (This sets a bad example, don't follow it.) * guix/self.scm (prevent-inlining!): New macro. <top level>: Use it for 'file-append*', 'translate-texi-manuals', and 'info-manual'.
2020-04-12build: julia-build-system: Update for new Julia version.nixo
* guix/build/julia-build-system.scm (generate-load-path): Delete function. (install): Don't set JULIA_LOAD_PATH. (precompile): Set SOURCE_DATE_EPOCH. Update calculating the JULIA_LOAD_PATH. Adjust the 'invoke-julia' command. (check): Set SOURCE_DATE_EPOCH. Adjust JULIA_LOAD_PATH. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2020-04-11database: 'reset-timestamps' can optionally preserve permissions.Ludovic Courtès
* guix/store/database.scm (reset-timestamps): Add #:preserve-permissions? and honor it.
2020-04-11Merge branch 'master' into core-updatesMarius Bakke
2020-04-10lint: 'check-patch-file-names' restricts to shorter file names.Ludovic Courtès
* guix/lint.scm (check-patch-file-names): Increase MARGIN.