Ludovic Courtès
f7bb161445
import: hackage: Use SRFI-71 instead of SRFI-11.
...
* guix/import/hackage.scm (read-cabal-and-hash)
(hackage-fetch-and-hash, hackage-fetch)
(hackage->guix-package): Use 'let' and 'let*' instead of 'let-values'
and 'let*-values'.
2022-03-07 22:49:29 +01:00
Ludovic Courtès
483e4a9d07
import: hackage: Avoid pointless use of 'compose'.
...
* guix/import/hackage.scm (hackage-module->sexp): Unroll pointless calls
to 'compose'.
(hackage->guix-package): Likewise.
2022-03-07 22:49:29 +01:00
zimoun
5278cab3dc
scripts: import: gem: Fix recursive error handling.
...
Partly fixes <https://bugs.gnu.org/44115 >.
* guix/scripts/import/gem.scm (guix-import-gem): Handle error.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-03-07 22:49:29 +01:00
zimoun
7229b0e858
import: cran: Return multiple values for unknown packages.
...
Partly fixes <https://bugs.gnu.org/44115 >.
* guix/import/pypi.scm (cran->guix-package): Return 'values'.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-03-07 22:49:28 +01:00
zimoun
1fe81b349c
import: elpa: Return multiple values for unknown packages.
...
Partly fixes <https://bugs.gnu.org/44115 >.
* guix/import/elpa.scm (elpa->guix-package): Return values.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-03-07 22:49:28 +01:00
zimoun
6bb92098b4
import: hackage: Return multiple values for unknown packages.
...
Partly fixes <https://bugs.gnu.org/44115 >.
* guix/import/hackage.scm (hackage->guix-package): Return 'values'.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-03-07 22:49:28 +01:00
zimoun
434925379d
import: pypi: Return multiple values for unknown packages.
...
Partly fixes <https://bugs.gnu.org/44115 >.
* guix/import/pypi.scm (pypi->guix-package): Return two values when
PROJECT is false.
Co-authored-by: Ludovic Courtès <ludo@gnu.org>
2022-03-07 22:49:28 +01:00
Ludovic Courtès
ebb03447f8
import: pypi: Gracefully handle missing project home page.
...
Fixes <https://issues.guix.gnu.org/54259 >.
Reported by Ricardo Wurmus <rekado@elephly.net>.
* guix/import/pypi.scm (pypi->guix-package): Upon
'missing-source-error?', raise '&fix-hint' only if
'project-info-home-page' returns a non-empty string.
2022-03-07 22:49:28 +01:00
Pierre-Henry Fröhring
ad464b1704
gnu: Add python-multipart.
...
* gnu/packages/python-xyz.scm (python-multipart): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-03-07 22:49:28 +01:00
Bird
c723aa98b5
gnu: Add gnusim8085.
...
* gnu/packages/emulators.scm (gnusim8085): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-03-07 22:49:28 +01:00
Ludovic Courtès
1cad347618
derivations: Coalesce inputs that have the same output path.
...
Fixes <https://issues.guix.gnu.org/54209 >.
* guix/derivations.scm (coalesce-duplicate-inputs): Use the output paths
of DRV as a hash table key.
* tests/derivations.scm ("derivation with duplicate fixed-output
inputs"): Expect a single input for FINAL.
("derivation with equivalent fixed-output inputs"): New test.
2022-03-07 22:49:27 +01:00
Ludovic Courtès
6e09ab9f61
gnu: scotch: Explicitly pass "-DINTSIZE" to CMake.
...
Previously, the 'scotch' and 'pt-scotch' packages would use the default
int size, which turned out to be 32 on x86_64-linux instead of 64 as it
used to be in Scotch 6.x.
* gnu/packages/maths.scm (scotch)[arguments]: Add "-DINTSIZE" to #:configure-flags.
(scotch32)[arguments]: Likewise.
(pt-scotch)[arguments]: Likewise.
(pt-scotch32)[arguments]: Likewise.
2022-03-07 22:49:27 +01:00
Ludovic Courtès
667f21aea0
tests: Adjust to (guix import github) changes.
...
This is a followup to a8d3033da6
.
* tests/import-github.scm (call-with-releases): Mock
'open-connection-for-uri'.
2022-03-07 22:49:27 +01:00
Efraim Flashner
34ba6e0616
system: Set kernel name for riscv64-linux.
...
* gnu/system.scm (system-linux-image-file-name): Add option for riscv64.
2022-03-07 22:53:58 +02:00
Efraim Flashner
027ce78933
gnu: dtc: Use pkg-config-for-target.
...
* gnu/packages/bootloaders.scm (dtc)[arguments]: Adjust custom
'patch-pkg-config phase to use pkg-config-for-target.
2022-03-07 22:53:58 +02:00
Efraim Flashner
54933a4047
gnu: dtc: Use different source tarball.
...
The xz compressed source failed to unpack on riscv64-linux.
* gnu/packages/bootloaders.scm (dtc)[source]: Use gzipped tarball.
2022-03-07 22:53:57 +02:00
Efraim Flashner
7b2f749862
build-system/meson: Add more cross-compilation targets.
...
* guix/build-system/meson.scm (make-machine-alist): Add riscv64-linux
option for cpu_family. Add riscv64-linux and powerpc-linux options for
endian.
2022-03-07 22:53:57 +02:00
Efraim Flashner
758d3c99a7
gnu: squashfs-tools: Fix cross-compiling.
...
* gnu/packages/compression.scm (squashfs-tools)[arguments]: Adjust
make-flags to refer to the 'out' output specifically.
2022-03-07 22:53:57 +02:00
Efraim Flashner
b657f062bb
gnu: libcap: Fix cross-compiling.
...
* gnu/packages/linux.scm (libcap)[arguments]: Fix make-flags when
cross-compiling.
2022-03-07 22:53:57 +02:00
Efraim Flashner
67d6544b6d
gnu: mtd-utils: Fix cross-compiling.
...
* gnu/packages/linux.scm (mtd-utils)[arguments]: Only add configure-flag
to enable unit-tests when not cross compiling.
2022-03-07 22:53:56 +02:00
Efraim Flashner
df03e7a601
gnu: libjpeg-turbo: Fix cross-compiling to riscv64-linux.
...
* gnu/packages/image.scm (libjpeg-turbo)[arguments]: When
cross-compiling to riscv64-linux correctly set CMAKE_SYSTEM_PROCESSOR.
2022-03-07 22:53:56 +02:00
Efraim Flashner
58e3a917e3
gnu: libxrender: Fix cross compiling to riscv64-linux.
...
* gnu/packages/xorg.scm (libxrender)[arguments]: When cross compiling to
riscv64-linux replace config.sub and config.guess with newer versions.
[native-inputs]: When cross compiling to riscv64-linux add config.
2022-03-07 22:53:26 +02:00
Efraim Flashner
f80034c1ff
gnu: libopenmpt: Update dependencies.
...
* gnu/packages/audio.scm (libopenmpt)[inputs]: Move libvorbis, mpg123,
zlib from here ...
[propagated-inputs]: ... to here. Add libogg.
2022-03-07 22:50:41 +02:00
Jonathan Brielmaier
dc1e2ce72c
gnu: icedove: Update to 91.6.2.
...
* gnu/packages/gnuzilla.scm (icedove): Update to 91.6.2.
2022-03-07 18:27:39 +01:00
Jelle Licht
256703fa6c
gnu: emacs-json-mode: Remove input for old versions.
...
* gnu/packages/emacs-xyz.scm (emacs-json-mode)[inputs]:
Remove emacs-json-reformat.
2022-03-07 13:48:00 +01:00
Jelle Licht
2fc12474bf
gnu: Add openriichi.
...
* gnu/packages/games.scm (openriichi): New variable.
2022-03-07 13:47:54 +01:00
Jelle Licht
98f58f7ae5
gnu: Add siege.
...
* gnu/packages/web.scm (siege): New variable.
2022-03-07 13:47:46 +01:00
Mark H Weaver
6c3c4f7088
gnu: icecat: Update to 91.6.1-guix0-preview1 [security fixes].
...
Includes fixes for CVE-2022-26485 and CVE-2022-26486.
* gnu/packages/gnuzilla.scm (%icecat-version, %icecat-build-id): Update.
(icecat-source): Update gnuzilla commit, base version, and hashes.
2022-03-07 00:39:53 -05:00
Leo Famulari
0dc7b53aaa
gnu: linux-libre 4.9: Update to 4.9.304.
...
* gnu/packages/linux.scm (linux-libre-4.9-version): Update to 4.9.304.
(linux-libre-4.9-pristine-source): Update hash.
2022-03-06 18:37:58 -05:00
Leo Famulari
664f63edf8
gnu: linux-libre 4.14: Update to 4.14.269.
...
* gnu/packages/linux.scm (linux-libre-4.14-version): Update to 4.14.269.
(linux-libre-4.14-pristine-source): Update hash.
2022-03-06 18:37:57 -05:00
Leo Famulari
cc9f9565c1
gnu: linux-libre 4.19: Update to 4.19.232.
...
* gnu/packages/linux.scm (linux-libre-4.19-version): Update to 4.19.232.
(linux-libre-4.19-pristine-source): Update hash.
2022-03-06 18:37:57 -05:00
Leo Famulari
f5f52b54ba
gnu: linux-libre 5.4: Update to 5.4.182.
...
* gnu/packages/linux.scm (linux-libre-5.4-version): Update to 5.4.182.
(linux-libre-5.4-pristine-source): Update hash.
2022-03-06 18:37:57 -05:00
Leo Famulari
84affd71f6
gnu: linux-libre 5.10: Update to 5.10.103.
...
* gnu/packages/linux.scm (linux-libre-5.10-version): Update to 5.10.103.
(linux-libre-5.10-pristine-source): Update hash.
2022-03-06 18:37:57 -05:00
Leo Famulari
64bd6bab42
gnu: linux-libre: Update to 5.15.26.
...
* gnu/packages/linux.scm (linux-libre-5.15-version): Update to 5.15.26.
(linux-libre-5.15-pristine-source): Update hash.
2022-03-06 18:37:57 -05:00
Leo Famulari
fb881af86d
gnu: linux-libre 5.16: Update to 5.16.12.
...
* gnu/packages/linux.scm (linux-libre-5.16-version): Update to 5.16.12.
(linux-libre-5.16-pristine-source): Update hash.
2022-03-06 18:37:44 -05:00
Ludovic Courtès
3ac1366648
gnu: guile-ssh: Support cross-compilation.
...
Cross-compilation broke with the update to 0.15.1 in
eabc6af9b8
. 'guile-snarf' would invoke
cpp instead of TRIPLET-cpp, which would thus fail to find libssh
headers.
* gnu/packages/ssh.scm (guile-ssh)[arguments]: Add
'support-cross-compilation' phase.
2022-03-07 00:26:51 +01:00
Алексей Дроздов
afb9f27523
gnu: Add python-xmldiff.
...
* gnu/packages/python-xyz.scm (python-xmldiff): New variable.
Co-authored-by: Ludovic Courtès <ludo@gnu.org>
2022-03-06 22:49:48 +01:00
Sheng Yang
d3fb8036b7
gnu: Add jtdx.
...
* gnu/packages/radio.scm (jtdx-hamlib): New variable.
(jtdx): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-03-06 22:49:48 +01:00
Evgeny Pisemsky
b16e17f34c
gnu: Add python-stltools.
...
* gnu/packages/python-xyz.scm (python-stltools): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-03-06 22:49:47 +01:00
terramorpha
8b426eb155
gnu: gnome-shell-extension-gsconnect: Update to 48
...
* gnu/packages/gnome-xyz (gnome-shell-extension-gsconnect): Update to 48
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-03-06 22:49:47 +01:00
Chadwain Holness
df1959277c
gnu: cgdb: Reference gdb.
...
* gnu/packages/debug.scm (cgdb)[inputs]: Add gdb, bash-minimal
[arguments]: Add phase to fix hardcoded gdb and sh paths
Add configure flags for cross-compilation
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-03-06 22:49:47 +01:00
Ludovic Courtès
a8d3033da6
import: github: Reuse HTTP connection for the /tags URL fallback.
...
* guix/import/github.scm (fetch-releases-or-tags): Call
'open-connection-for-uri' and reuse the same connection for the two
'http-fetch' calls.
* .dir-locals.el (scheme-mode): Add 'call-with-port'.
2022-03-06 22:49:47 +01:00
Ludovic Courtès
8786c2e8d7
http-client: Correctly handle redirects when #:keep-alive? #t.
...
Previously PORT would be closed unconditionally, which broke redirects
when #:keep-alive? #t is given.
* guix/http-client.scm (http-fetch): Make 'port' a parameter of 'loop'.
Upon 3xx responses, do not close PORT is KEEP-ALIVE? is true, but consume
RESP's body. Add second argument to 'loop'.
2022-03-06 22:49:47 +01:00
Ludovic Courtès
55e8e283ae
import: github: Gracefully handle rate limit exhaustion.
...
Previously, 'guix refresh' would literally crash when the rate limit was
reached due to the call to 'error'. With this change, the updater
notices when the rate limit is reached and it turns itself into a no-op
until the rate limit has been reset.
When running "guix refresh" (with no arguments), the 'github' updater
gets used until the rate limit has been reached, after which "guix
refresh" automatically picks up the next valid updater, typically
'generic-git'.
* guix/import/github.scm (fetch-releases-or-tags): Use 'http-fetch'
directly instead of 'json-fetch' to let 'http-get-error?' exceptions
through. Handle 403 errors with an 'X-RateLimit-Remaining' header.
(%rate-limit-reset-time): New variable.
(update-rate-limit-reset-time!, request-rate-limit-reached?): New
procedures.
(latest-released-version): Remove calls to 'error'.
2022-03-06 22:49:47 +01:00
Ludovic Courtès
ecad9b2213
http-client: Add response headers to '&http-get-error'.
...
* guix/http-client.scm (&http-get-error)[headers]: New field.
(http-fetch): Initialize the 'headers' field.
2022-03-06 22:49:46 +01:00
Ludovic Courtès
049aefddb2
tests: Add (guix http-client) tests.
...
* tests/http-client.scm: New file.
* Makefile.am (SCM_TESTS): Add it.
* .dir-locals.el (scheme-mode): Add 'with-http-server'.
2022-03-06 22:49:46 +01:00
Nicolas Goaziou
f75becbb36
gnu: emacs-go-mode: Activate tests.
...
* gnu/packages/emacs-xyz.scm (emacs-go-mode)[arguments]: Activate tests.
2022-03-06 22:44:51 +01:00
Nicolas Goaziou
48e72ee82b
gnu: emacs-go-mode: Update to 1.6.0.
...
* gnu/packages/emacs-xyz.scm (emacs-go-mode): Update to 1.6.0.
[arguments]: Remove unnecessary phase.
2022-03-06 22:14:15 +01:00
Efraim Flashner
e7886fd674
gnu: Add ncdu2.
...
* gnu/packages/ncdu.scm (ncdu2): New variable.
2022-03-06 14:15:15 +02:00
Efraim Flashner
78ff328d25
gnu: Add go-github-com-xdg-go-scram.
...
* gnu/packages/golang.scm (go-github-com-xdg-go-scram): New variable.
2022-03-06 12:24:59 +02:00