Message ID | ac66fb4e8ea35e1965bc2fab1e0673fd438f2294.1689690897.git.janneke@gnu.org |
---|---|
State | New |
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 2671627BBE2; Tue, 18 Jul 2023 15:45:26 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6A9B527BBEA for <patchwork@mira.cbaines.net>; Tue, 18 Jul 2023 15:45:24 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1qLlvn-0001ec-JV; Tue, 18 Jul 2023 10:44:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1qLluv-0000ky-Gj for guix-patches@gnu.org; Tue, 18 Jul 2023 10:43:11 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1qLlus-00017W-8u for guix-patches@gnu.org; Tue, 18 Jul 2023 10:43:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1qLlus-0006lI-3z; Tue, 18 Jul 2023 10:43:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64711] [PATCH 37/43] gnu: glib: Disable tests for the Hurd. Resent-From: Janneke Nieuwenhuizen <janneke@gnu.org> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: liliana.prikler@gmail.com, maxim.cournoyer@gmail.com, rg@raghavgururajan.name, guix-patches@gnu.org Resent-Date: Tue, 18 Jul 2023 14:43:06 +0000 Resent-Message-ID: <handler.64711.B64711.168969136025819@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64711 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64711@debbugs.gnu.org Cc: Liliana Marie Prikler <liliana.prikler@gmail.com>, Maxim Cournoyer <maxim.cournoyer@gmail.com>, Raghav Gururajan <rg@raghavgururajan.name> X-Debbugs-Original-Xcc: Liliana Marie Prikler <liliana.prikler@gmail.com>, Maxim Cournoyer <maxim.cournoyer@gmail.com>, Raghav Gururajan <rg@raghavgururajan.name> Received: via spool by 64711-submit@debbugs.gnu.org id=B64711.168969136025819 (code B ref 64711); Tue, 18 Jul 2023 14:43:06 +0000 Received: (at 64711) by debbugs.gnu.org; 18 Jul 2023 14:42:40 +0000 Received: from localhost ([127.0.0.1]:53899 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1qLluR-0006iC-4z for submit@debbugs.gnu.org; Tue, 18 Jul 2023 10:42:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47912) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <janneke@gnu.org>) id 1qLluP-0006hY-1K for 64711@debbugs.gnu.org; Tue, 18 Jul 2023 10:42:37 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <janneke@gnu.org>) id 1qLluJ-00010v-Q9; Tue, 18 Jul 2023 10:42:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=ZVA0L15Hcx8XjOvW+WViqF+3+WhRIjUP3a6pvsS1bYo=; b=AwrMV6+xbVfsU/WgF9dm yeomeUFw5cDBq0hZZ+IDjn9xNcXGOXsn5Hw5yEn0vUIVAVl0QOvE1QgLYUkmC9xTuPeSw94tibPRp DiYxrP3OGQGWVSbRclJNpLPqhfV3MGayur+Q6XIXVrU8SEzvIEvnGSrJsksY+3B8VtKXdO9gKKCBE HAqBILtigK1YGIivVCCkJKWu9mbgPmF0uj8Zq+6i0vzi4p9vIJQpe7xBGxVHueJOC8X0hHxSvUho9 bzdCTEY4S3LxyywpLuiaseyZpxssAJuZo6L3tmjEZ3AC3gfDIJXeGYxBwjl2kmCnRq+aqQcpjm1zx 89yqEYC757wWKg==; Received: from 2a02-a462-da03-1-aeb0-2f5e-e96a-dccb.fixed6.kpn.net ([2a02:a462:da03:1:aeb0:2f5e:e96a:dccb] helo=drakenpad.fritz.box) by fencepost.gnu.org with esmtpa (Exim 4.90_1) (envelope-from <janneke@gnu.org>) id 1qLluJ-0004hp-6I; Tue, 18 Jul 2023 10:42:31 -0400 From: Janneke Nieuwenhuizen <janneke@gnu.org> Date: Tue, 18 Jul 2023 16:40:30 +0200 Message-Id: <ac66fb4e8ea35e1965bc2fab1e0673fd438f2294.1689690897.git.janneke@gnu.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <cover.1689690897.git.janneke@gnu.org> References: <cover.1689690897.git.janneke@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series |
Fix builds and skip failing tests for the Hurd.
|
|
Commit Message
Janneke Nieuwenhuizen
July 18, 2023, 2:40 p.m. UTC
* gnu/packages/glib.scm (glib)[arguments]: When building for the Hurd, set #:tests? to #false. --- gnu/packages/glib.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Comments
Am Dienstag, dem 18.07.2023 um 16:40 +0200 schrieb Janneke Nieuwenhuizen: > * gnu/packages/glib.scm (glib)[arguments]: When building for the > Hurd, > set #:tests? to #false. > --- > gnu/packages/glib.scm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm > index e988e8dc87..bcbc1f22b1 100644 > --- a/gnu/packages/glib.scm > +++ b/gnu/packages/glib.scm > @@ -14,7 +14,7 @@ > ;;; Copyright © 2019, 2020, 2021 Marius Bakke <marius@gnu.org> > ;;; Copyright © 2020 Nicolò Balzarotti <nicolo@nixo.xyz> > ;;; Copyright © 2020 Florian Pelz <pelzflorian@pelzflorian.de> > -;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org> > +;;; Copyright © 2020, 2023 Janneke Nieuwenhuizen <janneke@gnu.org> > ;;; Copyright © 2020 Arthur Margerit <ruhtra.mar@gmail.com> > ;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be> > ;;; Copyright © 2022 Petr Hodina <phodina@protonmail.com> > @@ -241,6 +241,7 @@ (define glib > "debug")) > (arguments > (list > + #:tests? (not (target-hurd?)) > #:disallowed-references > (cons tzdata-for-tests > ;; Verify glib-mkenums, gtester, ... use the cross- > compiled Instead of disabling tests altogether, can we just disable those that fail on the Hurd?
Liliana Marie Prikler writes: > Am Dienstag, dem 18.07.2023 um 16:40 +0200 schrieb Janneke > Nieuwenhuizen: >> * gnu/packages/glib.scm (glib)[arguments]: When building for the >> Hurd, >> set #:tests? to #false. [..] >> + #:tests? (not (target-hurd?)) >> compiled > Instead of disabling tests altogether, can we just disable those that > fail on the Hurd? We probably can, and I have tried to do so in most cases. However, identifying those tests can be quite time consuming. I'm not sure how many tests failed here, and note that some tests will hang or crash the Hurd, so if we decide to do this, I would appreciate some help :-) Ludo on the other hand, argued against having more than ~20 (IIRC) test exceptions and using #:tests? #f instead. My idea was to get guix to build natively, and guix pull to work. Once we get those to work, we can possibly look forward to more contributors to this. Greetings, Janneke
Hello, Janneke Nieuwenhuizen <janneke@gnu.org> writes: > Liliana Marie Prikler writes: > >> Am Dienstag, dem 18.07.2023 um 16:40 +0200 schrieb Janneke >> Nieuwenhuizen: >>> * gnu/packages/glib.scm (glib)[arguments]: When building for the >>> Hurd, >>> set #:tests? to #false. > > [..] >>> + #:tests? (not (target-hurd?)) > >>> compiled > >> Instead of disabling tests altogether, can we just disable those that >> fail on the Hurd? > > We probably can, and I have tried to do so in most cases. However, > identifying those tests can be quite time consuming. I'm not sure how > many tests failed here, and note that some tests will hang or crash the > Hurd, so if we decide to do this, I would appreciate some help :-) > > Ludo on the other hand, argued against having more than ~20 (IIRC) test > exceptions and using #:tests? #f instead. > > My idea was to get guix to build natively, and guix pull to work. Once > we get those to work, we can possibly look forward to more contributors > to this. I agree with Liliana that it's nicer to disable just these tests that fail, but in light of what you wrote, your approach seems reasonable.
diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm index e988e8dc87..bcbc1f22b1 100644 --- a/gnu/packages/glib.scm +++ b/gnu/packages/glib.scm @@ -14,7 +14,7 @@ ;;; Copyright © 2019, 2020, 2021 Marius Bakke <marius@gnu.org> ;;; Copyright © 2020 Nicolò Balzarotti <nicolo@nixo.xyz> ;;; Copyright © 2020 Florian Pelz <pelzflorian@pelzflorian.de> -;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org> +;;; Copyright © 2020, 2023 Janneke Nieuwenhuizen <janneke@gnu.org> ;;; Copyright © 2020 Arthur Margerit <ruhtra.mar@gmail.com> ;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be> ;;; Copyright © 2022 Petr Hodina <phodina@protonmail.com> @@ -241,6 +241,7 @@ (define glib "debug")) (arguments (list + #:tests? (not (target-hurd?)) #:disallowed-references (cons tzdata-for-tests ;; Verify glib-mkenums, gtester, ... use the cross-compiled