Commit graph

94011 commits

Author SHA1 Message Date
Ludovic Courtès 15bb35d0c4
gnu: gcc@11: Inherit supported micro-architectures from gcc@10.
Previously, gcc@11 would inherit the 'compiler-cpu-architectures'
property from gcc@8.

* gnu/packages/gcc.scm (gcc-11)[properties]: New field.
2022-03-14 23:32:26 +01:00
Ludovic Courtès e86293d250
gnu: ocaml-lacaml: Do not build with "-march=native".
* gnu/packages/ocaml.scm (ocaml-lacaml)[origin]: Add 'snippet'.
[properties]: New field.
2022-03-14 23:32:19 +01:00
Ludovic Courtès a359f3a49c
build-system/ocaml: Use standard packages as "build inputs".
Conceptually, "standard packages" (GCC, Coreutils, etc.) are "build
inputs".  In the absence of cross-compilation support, this change has
no effect, except for things like '--tune' that expect the compiler to
be among the build inputs.

* guix/build-system/ocaml.scm (lower): Move (standard-packages) from
'host-inputs' to 'build-inputs'.
2022-03-14 23:32:18 +01:00
Guillaume Le Vaillant f8aa76ab1f
gnu: rtl-sdr: Fix udev rules.
This is a followup to bcc13ee8a1.

* gnu/packages/radio.scm (rtl-sdr)[arguments]: Add 'fix-udev-rules' phase.
2022-03-14 15:42:46 +01:00
Efraim Flashner 9ba64d70f1
gnu: gcompris-qt: Update to 2.3.
* gnu/packages/education.scm (gcompris-qt): Update to 2.3.
2022-03-14 16:05:03 +02:00
Guillaume Le Vaillant bcc13ee8a1
gnu: rtl-sdr: Update to 0.6.0.1-5e73f90.
* gnu/packages/radio.scm (rtl-sdr): Update to 0.6.0.1-5e73f90.
2022-03-14 14:23:50 +01:00
Efraim Flashner c0ca63b4da
gnu: coeurl: Add source file-name.
* gnu/packages/curl.scm (coeurl)[source]: Add file-name field.
2022-03-14 12:10:30 +02:00
Mathieu Othacehe 4ba35ccd18
gnu: isc-dhcp: Fix cross-compilation.
* gnu/packages/admin.scm (isc-dhcp)[inputs]: Move config to ...
[native-inputs]: ... here.
2022-03-14 09:46:01 +01:00
Pradana AUMARS 857e5ab222
gnu: Add python-ansicolors.
* gnu/packages/python-xyz.scm (python-ansicolors): New variable.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-03-13 23:26:31 +01:00
Maxime Devos 2e5c3d91fe
gexp: Correctly handle #$output in 'gexp->approximate-sexp'.
This addresses the following backtrace from
"guix lint -c wrapper-inputs hostapd":

Backtrace:ostapd@2.10 [wrapper-inputs]...
[...]
    174:9  3 (gexp->approximate-sexp #<gexp (modify-phases %standard?>)
In srfi/srfi-1.scm:
   586:17  2 (map1 (#<gexp-output out> #<gexp-input "pkg-config":o?>))
In guix/gexp.scm:
   175:16  1 (_ _)
In ice-9/boot-9.scm:
  1685:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1685:16: In procedure raise-exception:
Throw to key `match-error' with args `("match" "no matching pattern" #<gexp-output out>)'.

* guix/gexp.scm (gexp->approximate-sexp): Handle the case where 'reference' is
  a <gexp-output>,, by returning (*approximate*).
* tests/gexp.scm ("gexp->approximate-sexp, outputs"): Test it.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-03-13 23:20:07 +01:00
Maxime Devos 5aec62ee0f
gexp: Correctly handle unquoting S-exp objects.
This fixes a false-positive in the linter:

  guix lint -c 'wrapper-inputs' libaio

* guix/gexp.scm (gexp->approximate-sexp): Allow the 'thing' in <gexp-input> to
  be a sexp, without approximation, by testing if it is a record.
* tests/gexp.scm ("unquoted sexp (not a gexp!)"): Test it.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-03-13 23:18:14 +01:00
Cees de Groot fce9f13b54
gnu: elixir: Don't fix Git executable location during Elixir build.
The removed code below affected two locations where Elixir uses Git:

* At build-time, Git is used to see if the build is inside a Git repo and if so, git info
  is added to the build information that Elixir returns with `System.build_info()`. The code
  uses PATH + `git` so the Git version from the inputs is used which is just fine.
* At run-time, Git is used by Mix if, and only if, there are any Git-based dependencies. This
  is not the normal case, and in that sense Git is an optional dependency of Elixir - most
  projects will work just fine without Git being present. Here, too, PATH + `git` is used
  so if there is a need on a user's system to use Git-based dependencies, the user can just
  add the package to the profile and things will just work.

I feel that leaving this alone is cleaner than trying to fix the dependency (if we want to
keep it, it needs to be in propagated-inputs in order to keep Git around; I stumbled upon
this building a project with Git dependencies after doing a `guix gc`. However, given that
using Git dependencies is the exception and I think that minimizing dependencies is nicer
I opted to just remove the substition completely).

* gnu/packages/elixir.scm (elixir)[arguments]: In 'replace-paths' phase,
remove substitutions of "git".

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
2022-03-13 23:13:46 +01:00
Julien Lepiller 7bdead3fce
gnu: maven: Update to 3.8.5.
* gnu/packages/maven.scm (maven-pom): Update to 3.8.5.
(maven-model-builder)[arguments]: Build from the subdirectory to work
around a test issue.
(maven-3.0-model-builder)[arguments]: Fix accordingly.
2022-03-13 22:42:19 +01:00
Julien Lepiller 6dbce7d815
gnu: Add maven-parent-pom-35.
* gnu/packages/maven-parent-pom.scm (maven-parent-pom-35): New variable.
2022-03-13 22:41:54 +01:00
Julien Lepiller ecd735f33d
gnu: Add apache-parent-pom-25.
* gnu/packages/maven-parent-pom.scm (apache-parent-pom-25): New
variable.
2022-03-13 22:41:48 +01:00
Julien Lepiller 67a2f6d6d9
gnu: ocaml-ppx-tools: Update to 6.5.
* gnu/packages/ocaml.scm (ocaml-ppx-tools): Update to 6.5.
2022-03-13 22:41:25 +01:00
Julien Lepiller bd9eb9ef27
gnu: dune: Update to 3.0.3.
* gnu/packages/ocaml.scm (dune): Update to 3.0.3.
(dune-configurator)[arguments]: Remove vendored dependencies.
(ocaml4.09-dune-configurator)[arguments]: Extend from dune-configurator.
2022-03-13 22:41:20 +01:00
Jelle Licht c49b410344
gnu: python-pgpy: Update dependencies.
* gnu/packages/python-crypto.scm (python-pgpy)[native-inputs]: Move
python-cryptography, python-pyasn1, python-singledispatch, python-six from
here ...
[propagated-inputs]: ... to here.
2022-03-13 18:09:22 +01:00
Florian Pelz 101ba64904
doc: Fix inappropriate escapes.
* doc/guix.texi (Shells Home Services): Change \" to ".
2022-03-13 14:38:20 +01:00
Ekaitz Zarraga 178ca9ef13
gnu: Add spike.
* gnu/packages/virtualization.scm (spike): New variable.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2022-03-13 11:02:25 +02:00
jgart f69727278b
gnu: cl-find-port: Update to 0.1-2.811727f and use git-version.
* gnu/packages/lisp-xyz.scm (cl-find-port): Update to 0.1-2.811727f.
[version]: Use git-version.

Signed-off-by: Raghav Gururajan <rg@raghavgururajan.name>
2022-03-13 04:41:51 -04:00
jgart 1a36fb51a8
gnu: janet: Update to 1.20.0.
* gnu/packages/lisp.scm (janet): Update to 1.20.0.

Signed-off-by: Raghav Gururajan <rg@raghavgururajan.name>
2022-03-13 03:25:50 -04:00
Leo Famulari 44cd0a4f37
gnu: linux-libre 4.9: Update to 4.9.306.
* gnu/packages/linux.scm (linux-libre-4.9-version): Update to 4.9.306.
(linux-libre-4.9-pristine-source): Update hash.
2022-03-12 17:40:10 -05:00
Leo Famulari 5960d07847
gnu: linux-libre 4.14: Update to 4.14.271.
* gnu/packages/linux.scm (linux-libre-4.14-version): Update to 4.14.271.
(linux-libre-4.14-pristine-source): Update hash.
2022-03-12 17:40:10 -05:00
Leo Famulari 1a5f9fe746
gnu: linux-libre 4.19: Update to 4.19.234.
* gnu/packages/linux.scm (linux-libre-4.19-version): Update to 4.19.234.
(linux-libre-4.19-pristine-source): Update hash.
2022-03-12 17:40:10 -05:00
Leo Famulari 7822c77930
gnu: linux-libre 5.4: Update to 5.4.184.
* gnu/packages/linux.scm (linux-libre-5.4-version): Update to 5.4.184.
(linux-libre-5.4-pristine-source): Update hash.
2022-03-12 17:40:09 -05:00
Leo Famulari 317752fedf
gnu: linux-libre 5.10: Update to 5.10.105.
* gnu/packages/linux.scm (linux-libre-5.10-version): Update to 5.10.105.
(linux-libre-5.10-pristine-source): Update hash.
2022-03-12 17:40:09 -05:00
Leo Famulari d642f0b80e
gnu: linux-libre 5.15: Update to 5.15.28.
* gnu/packages/linux.scm (linux-libre-5.15-version): Update to 5.15.28.
(linux-libre-5.15-pristine-source): Update hash.
2022-03-12 17:40:09 -05:00
Leo Famulari 927a5edc38
gnu: linux-libre: Update to 5.16.14.
* gnu/packages/linux.scm (linux-libre-5.16-version): Update to 5.16.14.
(linux-libre-5.16-pristine-source): Update hash.
2022-03-12 17:39:55 -05:00
Nicolas Goaziou 504d15a593
gnu: denemo: Honor TESTS?.
* gnu/packages/music.scm (denemo)[arguments]<#:phases>: Honor TESTS? keyword.
2022-03-12 19:23:09 +01:00
Nicolas Goaziou 33331efc46
gnu: denemo: Improve package style.
* gnu/packages/music.scm (denemo)[native-inputs]: Remove labels.
[arguments]: Use G-expressions.  Remove trailing #T from phases.
2022-03-12 19:21:55 +01:00
Nicolas Goaziou ab042de0f7
gnu: denemo: Update to 2.6.0.
* gnu/packages/music.scm (denemo): Update to 2.6.0.
2022-03-12 19:19:22 +01:00
Mathieu Othacehe b9b263d350
gnu: lemonbar-xft: Fix build.
* gnu/packages/wm.scm (lemonbar-xft)[arguments]: Fix the make-flags keyword
that now inherits from the lemonbar gexp make-flags keyword.
2022-03-12 13:26:18 +01:00
Christopher Baines f6fa20f923
gnu: guix-data-service: Update to 0.0.1-30.27c34a9.
* gnu/packages/web.scm (guix-data-service): Update to 0.0.1-30.27c34a9.
[inputs]: Add bash-minimal, move some inputs to ...
[propagated-inputs]: ... here.
2022-03-12 12:00:54 +00:00
Maxime Devos 662f1f7bba
gnu: ghc-bsb-http-chunked: Don't run tests when cross-compiling.
* gnu/packages/haskell-web.scm
  (ghc-bsb-http-chunked)[arguments]<#:tests?>: Set to #false when
  cross-compiling.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2022-03-11 23:34:50 -05:00
Maxime Devos fbc46b61da
gnu: extra-cmake-modules: Don't run tests when cross-compiling.
* gnu/packages/kde-frameworks.scm
  (extra-cmake-modules)[arguments]<#:tests?>: Set to #false when
  cross-compiling.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2022-03-11 23:34:50 -05:00
Maxime Devos 8afa5ace49
gnu: tdlib: Run tests conditionally.
* gnu/packages/messaging.scm (tdlib)[arguments]: Remove #:tests?
  instead of unconditionally setting it to #t.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2022-03-11 23:34:49 -05:00
Maxime Devos c9f81a63fd
gnu: belcard: Run tests conditionally.
* gnu/packages/linphone.scm (belcard)[arguments]: Remove #:tests?
  instead of unconditionally setting it to #t.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2022-03-11 23:34:49 -05:00
Maxime Devos 26f0310128
gnu: lablgtk: Run tests conditionally.
* gnu/packages/ocaml.scm (lablgtk)[arguments]: Remove #:tests?
instead of unconditionally setting it to #t.
[inputs]: Use new style.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2022-03-11 23:34:49 -05:00
Maxim Cournoyer d43568013e
gnu: Remove python2-promise.
* gnu/packages/python-xyz.scm (python2-promise): Delete variable.
(python-promise)[properties]: Delete field.
2022-03-11 23:34:49 -05:00
Maxim Cournoyer db1532e1ad
gnu: Remove python2-empy.
* gnu/packages/python-xyz.scm (python2-empy): Delete variable.
2022-03-11 23:34:48 -05:00
Maxime Devos 72e4e145ee
gnu: libicns: Do not explicitly set TESTS? to #t.
* gnu/packages/image.scm (libicns)[tests?]: Remove argument.
[home-page]: Update.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2022-03-11 23:34:48 -05:00
Maxime Devos 58d5d83dbb
gnu: perl-unicode-utf8: Run tests conditionally.
* gnu/packages/perl.scm (perl-unicode-utf8)[arguments]<#:tests?>:
  Set to #false when cross-compiling.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2022-03-11 23:34:48 -05:00
Maxime Devos 1879d6d810
gnu: ecl: Run tests conditionally and please lint.
* gnu/packages/lisp.scm (ecl)[source]: Adjust origin URL.
[inputs]: Add bash-minimal.
[arguments]: Move the comment about failing tests above the deleted check
phase.
[tests?]: Do not explicitly set to #t.
[phases]: Delete trailing #t.
[home-page]: Update.

Co-authored-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2022-03-11 23:34:48 -05:00
Maxime Devos 4b5b3b8eb2
gnu: go-1.16: Do not run tests when cross-compiling.
* gnu/packages/golang.scm (go-1.16)[arguments]: Remove #:tests?.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2022-03-11 23:34:48 -05:00
Maxime Devos 9dfbf92f55
gnu: ruby-ffi-rzmq: Honor TESTS?.
* gnu/packages/ruby.scm (ruby-ffi-rzmq)[TESTS?]: Remove argument.
[phases]{check}: Honor TESTS?.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2022-03-11 23:34:47 -05:00
Maxime Devos 0679c8fe97
gnu: ruby-yard-with-tests: Run tests conditionally.
* gnu/packages/ruby.scm (ruby-yard-with-tests)[arguments]:
Remove #:tests? instead of unconditionally setting it to #t.
[phases]: Delete trailing #t.
[native-inputs]: Use new style.

Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2022-03-11 23:34:47 -05:00
Maxime Devos 99a546df1f
gnu: swi-prolog: Fix cross-compilation.
* gnu/package/prolog.scm (swi-prolog)
[inputs]: Add bash-minimal.  Move perl, pkg-config and texinfo to...
[native-inputs]: ... here.
[tests?]: Remove argument.
[configure-flags]: Set BSD_SIGNALS, PROG_SWIPL, QSORT_R_GNU and CMAKE_HOST_CC
when cross-compiling.
[phases]{fix-cross-references}: New phase.
{delete-failing-tests}: Strip trailing #t and simplify the deletion of the
"save" directory.

Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2022-03-11 23:34:47 -05:00
Maxim Cournoyer 46ae78ba45
gnu: lean: Update to 3.41.0 and fixes toward cross-compilation.
* gnu/packages/lean.scm (lean): Update to 3.41.0.
[phases]: Remove trailing #t.
[tests?] Set to #false when cross-compiling.
[inputs]: Add bash-minimal.

Co-authored-by: Maxime Devos <maximedevos@telenet.be>
2022-03-11 23:34:47 -05:00
Maxime Devos 88e44f7e16
lint: check-tests-true: Allow #:tests? #t for some build systems.
emacs-build-system sets #:tests? #f by default, so the linter shouldn't warn
if #:tests? #t is set for packages using emacs-build-system.  Likewise for
texlive-build-system.

* guix/lint.scm (check-tests-true): Do not warn if the build system
  is emacs-build-system or texlive-build-system.
* tests/lint.scm
  ("tests-true: #:tests? #t acceptable for emacs packages")
  ("tests-true: #:tests? #t acceptable for texlive packages"): New tests.

Fixes: <https://issues.guix.gnu.org/50299>
Reported-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2022-03-11 23:34:47 -05:00