Message ID | 87v8codg2o.fsf@cbaines.net |
---|---|
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 CE0AC27BBE9; Tue, 5 Sep 2023 12:19:20 +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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=unavailable 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 900A727BBE2 for <patchwork@mira.cbaines.net>; Tue, 5 Sep 2023 12:19:19 +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 1qdU5K-00052y-P9; Tue, 05 Sep 2023 07:19:06 -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 1qdU5F-00051Q-Nl for guix-patches@gnu.org; Tue, 05 Sep 2023 07:19:01 -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 1qdU5F-0004XC-FY for guix-patches@gnu.org; Tue, 05 Sep 2023 07:19:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1qdU5F-0000Jq-Rj for guix-patches@gnu.org; Tue, 05 Sep 2023 07:19:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65755] [PATCH 0/3] Mark some packages as not supported on the hurd. Resent-From: Christopher Baines <mail@cbaines.net> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 05 Sep 2023 11:19:01 +0000 Resent-Message-ID: <handler.65755.B.16939126861152@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65755 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65755@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16939126861152 (code B ref -1); Tue, 05 Sep 2023 11:19:01 +0000 Received: (at submit) by debbugs.gnu.org; 5 Sep 2023 11:18:06 +0000 Received: from localhost ([127.0.0.1]:54448 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1qdU4M-0000IW-71 for submit@debbugs.gnu.org; Tue, 05 Sep 2023 07:18:06 -0400 Received: from lists.gnu.org ([2001:470:142::17]:57352) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <mail@cbaines.net>) id 1qdU4J-0000Ht-19 for submit@debbugs.gnu.org; Tue, 05 Sep 2023 07:18:04 -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 <mail@cbaines.net>) id 1qdU4D-0004hI-AL for guix-patches@gnu.org; Tue, 05 Sep 2023 07:17:57 -0400 Received: from mira.cbaines.net ([212.71.252.8]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from <mail@cbaines.net>) id 1qdU4A-0004FR-US for guix-patches@gnu.org; Tue, 05 Sep 2023 07:17:57 -0400 Received: from localhost (unknown [217.155.61.229]) by mira.cbaines.net (Postfix) with ESMTPSA id 263D827BBE2 for <guix-patches@gnu.org>; Tue, 5 Sep 2023 12:17:52 +0100 (BST) Received: from felis (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 50b9bb7c for <guix-patches@gnu.org>; Tue, 5 Sep 2023 11:17:51 +0000 (UTC) User-agent: mu4e 1.10.5; emacs 28.2 From: Christopher Baines <mail@cbaines.net> Date: Tue, 05 Sep 2023 12:17:12 +0100 Message-ID: <87v8codg2o.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=212.71.252.8; envelope-from=mail@cbaines.net; helo=mira.cbaines.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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 |
Mark some packages as not supported on the hurd.
|
|
Message
Christopher Baines
Sept. 5, 2023, 11:17 a.m. UTC
Mark some packages as not supported on the hurd. Christopher Baines (3): gnu: musl-cross: Remove i586-gnu from supported-systems. gnu: linux-libre-headers: Remove i586-gnu from supported-systems. gnu: skalibs: Remove i586-gnu from %supported-systems. gnu/packages/heads.scm | 1 + gnu/packages/linux.scm | 1 + gnu/packages/skarnet.scm | 1 + 3 files changed, 3 insertions(+) base-commit: e7b6cd86ef856b52817428227f9c3d3297312262
Comments
Hi, Christopher Baines <mail@cbaines.net> skribis: > gnu: musl-cross: Remove i586-gnu from supported-systems. > gnu: linux-libre-headers: Remove i586-gnu from supported-systems. > gnu: skalibs: Remove i586-gnu from %supported-systems. LGTM! Ludo’.
Ludovic Courtès <ludo@gnu.org> writes: > Hi, > > Christopher Baines <mail@cbaines.net> skribis: > >> gnu: musl-cross: Remove i586-gnu from supported-systems. >> gnu: linux-libre-headers: Remove i586-gnu from supported-systems. >> gnu: skalibs: Remove i586-gnu from %supported-systems. > > LGTM! Great, I've pushed this to master as 53f510dad6cc1b55b4abdbbfd55e507a9463a80f. Thanks, Chris
Hi, Marius found that building the updated "guix" package on the just-rebased hurd-team branch failed. It turns out that the packages.scm test on master fails notably: package-transitive-supported-systems, implicit inputs --8<---------------cut here---------------start------------->8--- test-name: package-transitive-supported-systems, implicit inputs location: /home/janneke/src/guix/master/tests/packages.scm:496 source: + (test-equal + "package-transitive-supported-systems, implicit inputs" + %supported-systems + (let ((p (dummy-package + "foo" + (build-system gnu-build-system) + (supported-systems + `("does-not-exist" "foobar" ,@%supported-systems))))) + (parameterize + ((%current-system "armhf-linux")) + (package-transitive-supported-systems p)))) expected-value: ("x86_64-linux" "mips64el-linux" "aarch64-linux" "powerpc64le-linux" "riscv64-linux" "i686-linux" "armhf-linux" "i586-gnu" "powerpc-linux") actual-value: ("x86_64-linux" "mips64el-linux" "aarch64-linux" "powerpc64le-linux" "riscv64-linux" "i686-linux" "armhf-linux" "powerpc-linux") result: FAIL --8<---------------cut here---------------end--------------->8--- The culprit is this commit 0e08ad7f19d5b29a4883468552b5d213a7bdb66e gnu: linux-libre-headers: Remove i586-gnu from supported-systems. Greetings, Janneke
Janneke Nieuwenhuizen <janneke@gnu.org> writes: > Marius found that building the updated "guix" package on the > just-rebased hurd-team branch failed. > > It turns out that the packages.scm test on master fails notably: > package-transitive-supported-systems, implicit inputs > > test-name: package-transitive-supported-systems, implicit inputs > location: /home/janneke/src/guix/master/tests/packages.scm:496 > source: > + (test-equal > + "package-transitive-supported-systems, implicit inputs" > + %supported-systems > + (let ((p (dummy-package > + "foo" > + (build-system gnu-build-system) > + (supported-systems > + `("does-not-exist" "foobar" ,@%supported-systems))))) > + (parameterize > + ((%current-system "armhf-linux")) > + (package-transitive-supported-systems p)))) > expected-value: ("x86_64-linux" "mips64el-linux" "aarch64-linux" "powerpc64le-linux" "riscv64-linux" "i686-linux" "armhf-linux" "i586-gnu" "powerpc-linux") > actual-value: ("x86_64-linux" "mips64el-linux" "aarch64-linux" "powerpc64le-linux" "riscv64-linux" "i686-linux" "armhf-linux" "powerpc-linux") > result: FAIL I would say interesting, but I've struggled with the supported system stuff for years. The data service does use package-transitive-supported-systems, but in a very weird way. To check if a package supports a system, you call package-transitive-supported-systems with the package and system (as the second optional argument), then check if that system is present in the returned list. This is to say that in my uninformed opinion, the presence of the system which you pass to package-transitive-supported-systems in the returned list seems to mean something, but I wouldn't be able to say anything else about the returned value. I don't think there's anything wrong with adjusting the expectation to have the test pass, but to me the longer term thing to do is look at changing the code around supported systems. On not breaking tests when making changes though, I don't generally run make check unless I'm changing code in guix/ but it would be nice to start QA doing that for every patch series. We should also probably try to avoid tests that break when making changes to packages.
Christopher Baines <mail@cbaines.net> skribis: > Janneke Nieuwenhuizen <janneke@gnu.org> writes: > >> Marius found that building the updated "guix" package on the >> just-rebased hurd-team branch failed. >> >> It turns out that the packages.scm test on master fails notably: >> package-transitive-supported-systems, implicit inputs >> >> test-name: package-transitive-supported-systems, implicit inputs >> location: /home/janneke/src/guix/master/tests/packages.scm:496 >> source: >> + (test-equal >> + "package-transitive-supported-systems, implicit inputs" >> + %supported-systems >> + (let ((p (dummy-package >> + "foo" >> + (build-system gnu-build-system) >> + (supported-systems >> + `("does-not-exist" "foobar" ,@%supported-systems))))) >> + (parameterize >> + ((%current-system "armhf-linux")) >> + (package-transitive-supported-systems p)))) >> expected-value: ("x86_64-linux" "mips64el-linux" "aarch64-linux" "powerpc64le-linux" "riscv64-linux" "i686-linux" "armhf-linux" "i586-gnu" "powerpc-linux") >> actual-value: ("x86_64-linux" "mips64el-linux" "aarch64-linux" "powerpc64le-linux" "riscv64-linux" "i686-linux" "armhf-linux" "powerpc-linux") >> result: FAIL [...] > I don't think there's anything wrong with adjusting the expectation to > have the test pass, but to me the longer term thing to do is look at > changing the code around supported systems. Agreed, we need to change the expected result to: (filter target-linux? %supported-systems) This is expected given that ‘%current-system’ is set to *-linux. > On not breaking tests when making changes though, I don't generally run > make check unless I'm changing code in guix/ but it would be nice to > start QA doing that for every patch series. Yes! > We should also probably try to avoid tests that break when making > changes to packages. We try to avoid it but there are a few cases where we test real packages that we hope rarely change. Thanks, Ludo’.
Ludovic Courtès writes: Hi, > Christopher Baines <mail@cbaines.net> skribis: > >> Janneke Nieuwenhuizen <janneke@gnu.org> writes: >> >>> Marius found that building the updated "guix" package on the >>> just-rebased hurd-team branch failed. [..] >> I don't think there's anything wrong with adjusting the expectation to >> have the test pass, but to me the longer term thing to do is look at >> changing the code around supported systems. > > Agreed, we need to change the expected result to: > > (filter target-linux? %supported-systems) > > This is expected given that ‘%current-system’ is set to *-linux. That makes sense (and fixes it :) Pushed to master as edca2863bcb52388fe454e14136264a4f7490273 Thanks! Janneke