unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: picnoir@alternativebit.fr
To: 71361@debbugs.gnu.org
Cc: Picnoir <picnoir@alternativebit.fr>,
	Efraim Flashner <efraim@flashner.co.il>
Subject: [bug#71361] [PATCH] gnu: rust-dns-lookup-2: fix package test.
Date: Tue,  4 Jun 2024 14:06:56 +0200	[thread overview]
Message-ID: <427adbf62708384449eb6bb900009de62d9bfd0b.1717502815.git.picnoir@alternativebit.fr> (raw)

From: Picnoir <picnoir@alternativebit.fr>

* gnu/packages/crates-io.scm (rust-dns-lookup-2): this package was introduced
in abfef465b2b2353610cbff2caefee679566978f7 as a dependency for Nsncd. We can
build Nsncd just fine, but building explicitely this package is failing. The
issue comes from two tests making assumption about domain name resolution. The
Guix build sandbox breaks these assumptions, preventing the test suite to
succeed. Fixing this by disabling the faulty tests.

Change-Id: Idc42822d8cd72e83e9ea973820b5073ff87ad4d4
---
 gnu/packages/crates-io.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 47c280e79f..5c9bc4c525 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -19955,7 +19955,12 @@ (define-public rust-dns-lookup-2
         (base32 "1z74n2zij2gahycabm0gkmkyx574h76gwk7sz93yqpr3qa3n0xp5"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:cargo-inputs (("rust-cfg-if" ,rust-cfg-if-1)
+     `(#:cargo-test-flags
+       '("--"
+         ;; the builder sandbox breaks getaddrinfo, failing two tests.
+         "--skip=nameinfo::test_getnameinfo"
+         "--skip=src/lib.rs")
+       #:cargo-inputs (("rust-cfg-if" ,rust-cfg-if-1)
                        ("rust-libc" ,rust-libc-0.2)
                        ("rust-socket2" ,rust-socket2-0.5)
                        ("rust-windows-sys" ,rust-windows-sys-0.48))))

base-commit: 5d3edff1a604414a3c42b89fcbc007e9d573993d
-- 
2.41.0





             reply	other threads:[~2024-06-04 12:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-04 12:06 picnoir [this message]
2024-06-10 10:10 ` bug#71361: [PATCH] gnu: rust-dns-lookup-2: fix package test Christopher Baines

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=427adbf62708384449eb6bb900009de62d9bfd0b.1717502815.git.picnoir@alternativebit.fr \
    --to=picnoir@alternativebit.fr \
    --cc=71361@debbugs.gnu.org \
    --cc=efraim@flashner.co.il \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).