For some applications, it's important to establish a non-blocking connection
rather than just making the socket non-blocking after the connection is
established. This is because there is I/O on the socket that will block during
the handshake.
I've noticed this blocking during the handshake causing issues in the build
coordinator for example.
This commit adds a new with-store variant to avoid changing the behaviour of
with-store/open-connection to ensure that this change can't break anything
that depends on the blocking nature of the socket.
* guix/store.scm (open-unix-domain-socket, open-inet-socket): Take
#:non-blocking? and use SOCK_NONBLOCK when calling socket if appropriate.
(connect-to-daemon, open-connection, call-with-store): Take #:non-blocking?
and pass it on.
(with-store/non-blocking): New syntax rule.
* .dir-locals.el (scheme-mode): Add entry for with-store/non-blocking.
Change-Id: I8225762b78448bc1f7b698c8de5d736e13f577bf
* gnu/packages/textutils.scm (utf8proc): fix cross-compilation.
[arguments]<#:make-flags>: Use CC-FOR-TARGET.
<#:phases>: When cross-compilation, Get test data from native-inputs.
Change-Id: I42699e62f28585cc215a8843b5daad9c52af44c9
This is a followup to 7757fdd491.
* gnu/packages/package-management.scm (guix): Update to 7ca9809.
Change-Id: Ic1e6d75223eb7e1371805f51b9f230ef846c536c
* tests/syscalls.scm ("terminal-string-width Japanese"): Skip when the
encoding of (current-output-port) is not UTF-8.
Reported-by: Ashvith Shetty <ashvithshetty10@gmail.com>
Change-Id: Ic284dd088d6b148d6fcb457290a28fdb0838b83d
* gnu/system/file-systems.scm (%pseudo-file-system-types): Add "virtiofs"
to the list of pseudo file system types.
Change-Id: Ib1d99127e65f6543c592faec1c54bd0c5eae3ad7
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
The field is called changeset, not revision. And the string does not have to
be a number.
* doc/guix.texi (origin Reference): Fix documentation for hg-reference.
Change-Id: Ic622dfc7b44caf42d070cdab8e42808dd96e6d63
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
For some reason, they were missing from the documentation. This commit adds
them including an example of usage.
* doc/guix.texi (origin Reference): Add cvs-fetch and cvs-reference.
Change-Id: I6622a9f70e6d71ed31fbb3d2689df4a6946f8868
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Fixes <https://issues.guix.gnu.org/70877>.
* nix/libutil/util.cc (copyFile): Loop over ‘copy_file_range’ instead of
throwing upon short write.
Reported-by: Ricardo Wurmus <rekado@elephly.net>
Change-Id: Id7b8a65ea59006c2d91bc23732309a68665b9ca0
As this avoids the indirect dependency on nss, which has a testsuite that
takes a long time to run.
* gnu/packages/package-management.scm (guix)[native-inputs]: Use po4a-minimal.
* guix/self.scm (%packages, translate-texi-manuals): Use po4a-minimal.
Change-Id: Iac7555cc850c1618d3d54f1b290faa4f9cfb4f8a
The main reason is to avoid the texlive-updmap.cfg input indirectly pulling in
nss, which has a very time consuming testsuite.
* gnu/packages/gettext.scm (po4a-minimal): New variable.
Change-Id: If8d46a18a02e57d5427852e8e122de01f970ded4
As I'm seeing this test fail with results of 5 to 7 seconds.
* gnu/packages/nss.scm (nss/fixed)[arguments]: Tweak a test to have a higher
time threshold.
Change-Id: Icb0551cd986acf67b2ba17dc8772a67b9747d31a
* gnu/packages/geo.scm (gnome-maps): Update to 46.10.
[arguments]: Add phase to setup time zones for a new test.
[native-inputs]: Add libportal and tzdata-for-tests.
Change-Id: Ife9b17eda68662d2adb289acfeacf1dc8f179a46
Signed-off-by: Christopher Baines <mail@cbaines.net>
* gnu/packages/gnome.scm (libshumate): Update to 1.2.1.
[arguments]: Drop `-Dlibsoup3=true` configure flag as it got removed
upstream. It only supports libsoup3 now.
[native-inputs]: Add gperf.
[propagated-inputs]: Add json-glib and protobuf-c.
Change-Id: Ibe63b6f2060f6684f8f68f44c2221ba9d6ad5a45
Signed-off-by: Christopher Baines <mail@cbaines.net>
As last update was in February and new changes for new models and memory leaks
fixes since then.
* gnu/packages/machine-learning.scm (llama-cpp): Update to 0.0.0-2.fed0108.
[arguments]<#:phases>: Add 'disable-unrunable-tests' phase. Change
replacement of 'install to be a post-install 'install-main' phase so libraries
and header files are normally installed.
Change-Id: Ia6532945f588747c4d58fdb7611d6a9c3c596705
Signed-off-by: Christopher Baines <mail@cbaines.net>
* gnu/packages/sycl.scm (adaptivecpp): New variable.
(opensync): Redefine using DEPRECATED-PACKAGE.
Change-Id: I7ac3f49409d539962de34510ed9255021b795724
Signed-off-by: Christopher Baines <mail@cbaines.net>
* guix/channels.scm (authenticate-channel): Handle single case with
authenticating message.
Change-Id: I7759607f37405e6d3bd4b7f5958fd11d908db204
Reviewed-by: Dale Mellor <guix-devel-0brg6a@rdmp.org>
Signed-off-by: Christopher Baines <mail@cbaines.net>
* gnu/packages/astronomy.scm (alfa)[arguments]: Set test-target. Replace
custom 'post-install-check phase with the standard 'check phase.
Change-Id: Ic5f77ac3a3a6ef62ce36ad5fa8892db6d0894d04
This helps reduce the dependencies on git, as I think it's find to build
ruby-gem-hadar with a slightly older git, at least during periods when
git-minimal/pinned needs updating.
* gnu/packages/ruby.scm (ruby-gem-hadar)[propagated-inputs]: Use
git-minimal/pinned.
Change-Id: I48e7725f8e4956f1a8311df1867d8d441c5cb4c2
As the test suite seems to consume all the disk space.
* gnu/packages/astronomy.scm (alfa)[arguments]: Don't run tests on riscv64.
Change-Id: Ifa52b8205387c22b386ccad97fd6e69723193a16
nixos.wiki was created by a community member a long time ago. It turned out to
be very useful to the community, it became an official service last month
hosted on the NixOS.org domain name. To ease the long term maintainance among
other things.
See more details at https://github.com/NixOS/foundation/issues/113
* doc/guix.texi (Nix service): Change nixos.wiki to wiki.nixos.org.
Change-Id: Ia95074fbfad494e8ceb5c2cdb3faab23f3604882
Signed-off-by: Christopher Baines <mail@cbaines.net>
* gnu/packages/python-xyz.scm (python-vdf): New variable.
Reviewed-by: Steve George <steve@futurile.net>
Signed-off-by: Christopher Baines <mail@cbaines.net>
Change-Id: Ie8a14292b9c9937d22f011ac078562e81abd6b36