Message ID | cover.1704463873.git.simon@simonsouth.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 3F80227BBEA; Fri, 5 Jan 2024 14:47:42 +0000 (GMT) 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,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 7B8DB27BBE2 for <patchwork@mira.cbaines.net>; Fri, 5 Jan 2024 14:47:38 +0000 (GMT) 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 1rLlTT-00082o-Mm; Fri, 05 Jan 2024 09:47:03 -0500 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 1rLlTP-0007zl-Lf for guix-patches@gnu.org; Fri, 05 Jan 2024 09:47:01 -0500 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 1rLlTP-0003d2-DG for guix-patches@gnu.org; Fri, 05 Jan 2024 09:46:59 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1rLlTS-0007eI-Eo; Fri, 05 Jan 2024 09:47:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68263] [PATCH 0/2] libsmbios: Restrict to only supported systems. Resent-From: Simon South <simon@simonsouth.net> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: efraim@flashner.co.il, vagrant@debian.org, guix-patches@gnu.org Resent-Date: Fri, 05 Jan 2024 14:47:02 +0000 Resent-Message-ID: <handler.68263.B.170446601229383@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68263 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68263@debbugs.gnu.org Cc: Efraim Flashner <efraim@flashner.co.il>, Vagrant Cascadian <vagrant@debian.org> X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Efraim Flashner <efraim@flashner.co.il>, Vagrant Cascadian <vagrant@debian.org> Received: via spool by submit@debbugs.gnu.org id=B.170446601229383 (code B ref -1); Fri, 05 Jan 2024 14:47:02 +0000 Received: (at submit) by debbugs.gnu.org; 5 Jan 2024 14:46:52 +0000 Received: from localhost ([127.0.0.1]:56738 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1rLlTI-0007dr-7e for submit@debbugs.gnu.org; Fri, 05 Jan 2024 09:46:52 -0500 Received: from lists.gnu.org ([2001:470:142::17]:53000) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <simon@simonsouth.net>) id 1rLlTF-0007de-Pb for submit@debbugs.gnu.org; Fri, 05 Jan 2024 09:46:51 -0500 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 <simon@simonsouth.net>) id 1rLlT6-0007sl-1h for guix-patches@gnu.org; Fri, 05 Jan 2024 09:46:40 -0500 Received: from mailout.easymail.ca ([64.68.200.34]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <simon@simonsouth.net>) id 1rLlT3-0003bo-Qr for guix-patches@gnu.org; Fri, 05 Jan 2024 09:46:39 -0500 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id D921665EFA for <guix-patches@gnu.org>; Fri, 5 Jan 2024 14:46:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo09-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo09-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cDn-Z9m53Msx for <guix-patches@gnu.org>; Fri, 5 Jan 2024 14:46:03 +0000 (UTC) Received: from jupiter.smallsystems.net (23-233-96-210.cpe.pppoe.ca [23.233.96.210]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id C4D1265C4B for <guix-patches@gnu.org>; Fri, 5 Jan 2024 14:46:03 +0000 (UTC) From: Simon South <simon@simonsouth.net> Date: Fri, 5 Jan 2024 09:45:49 -0500 Message-ID: <cover.1704463873.git.simon@simonsouth.net> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=64.68.200.34; envelope-from=simon@simonsouth.net; helo=mailout.easymail.ca X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 |
libsmbios: Restrict to only supported systems.
|
|
Message
Simon South
Jan. 5, 2024, 2:45 p.m. UTC
Here are a couple patches that fix build failures of libsmbios, a library for accessing System Management BIOS[0] data, by restricting its package to only platforms the library supports (Linux on x86 and x86-64). They also make libsmbios an optional input to fwupd (its only dependent), allowing fwupd to build successfully on non-Intel/AMD platforms. I've tested this on AArch64 and x86-64 and everything appears fine. I've been unable to test cross-building fwupd, though, as this fails with guix build: error: gnu/packages/gnome.scm:3504:2: librsvg@2.56.4: build system `cargo' does not support cross builds By way of justification for these changes: libsmbios is intended for PCs and expects[1] to find a sys/io.h header file on the host. This is supplied by glibc only for architectures that support peripheral I/O via ports: x86, x86-64 and DEC Alpha using Linux; and i386 using the Hurd[2]. Of these Guix does not support Linux on Alpha, while libsmbios does not support the Hurd at all[3]. -- Simon South simon@simonsouth.net [0] https://en.wikipedia.org/wiki/System_Management_BIOS [1] https://github.com/dell/libsmbios/blob/v2.4.3/src/libsmbios_c/cmos/cmos_linux.c#L25 [2] "find -type f -name 'io.h'" at the top level of glibc's source tree makes this apparent. [3] https://github.com/dell/libsmbios/blob/v2.4.3/src/libsmbios_c/common/select_platform_config.h Simon South (2): gnu: libsmbios: Restrict to only supported systems. gnu: fwupd: Depend on libsmbios only on supported systems. gnu/packages/firmware.scm | 34 +++++++++++++++++++--------------- gnu/packages/hardware.scm | 1 + 2 files changed, 20 insertions(+), 15 deletions(-) base-commit: ac69b423865f12310cef5662d9c303aa4b90c869
Comments
Hello, > guix build: error: gnu/packages/gnome.scm:3504:2: librsvg@2.56.4: build > system `cargo' does not support cross builds That is no longer the case, there is however a new error: --8<---------------cut here---------------start------------->8--- In guix/packages.scm: 1618:16 19 (package->bag _ _ _ #:graft? _) 1719:48 18 (thunk) 1512:25 17 (inputs _) In srfi/srfi-1.scm: 586:29 16 (map1 (("coreutils" #<package coreutils@9.1 guix/b…>) …)) 586:29 15 (map1 (("grep" #<package grep@3.8 gnu/packages/com…>) …)) 586:29 14 (map1 (("xz" #<package xz@5.2.8 gnu/packages/comme…>) …)) 586:29 13 (map1 (("locales" #<package glibc-utf8-locales@2.3…>) …)) 586:29 12 (map1 (("bash" #<package bash-minimal@5.1.16 gnu/p…>) …)) 586:17 11 (map1 (("gcc" #<package gcc@11.3.0 gnu/packages/co…>) …)) In guix/packages.scm: 1469:20 10 (rewrite ("gcc" #<package gcc@11.3.0 gnu/packages/com…>)) In guix/memoization.scm: 101:0 9 (_ #<hash-table 7f049b80cbc0 14/31> #<package gcc@11.3…> …) In guix/packages.scm: 1483:13 8 (_) In guix/build-system/gnu.scm: 158:33 7 (cut? _) In gnu/packages/commencement.scm: 3241:36 6 (arguments #<package gcc@11.3.0 gnu/packages/commenceme…>) In gnu/packages/gcc.scm: 748:34 5 (arguments #<package gcc@11.3.0 gnu/packages/gcc.scm:73…>) 218:48 4 (arguments #<package gcc@4.8.5 gnu/packages/gcc.scm:398…>) In gnu/packages/bootstrap.scm: 338:11 3 (_) In ice-9/boot-9.scm: 1685:16 2 (raise-exception _ #:continuable? _) 1685:16 1 (raise-exception _ #:continuable? _) 1685:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1685:16: In procedure raise-exception: dynamic linker name not known for this system "aarch64-linux-gnu" --8<---------------cut here---------------end--------------->8--- preventing fwupd from cross-compiling. Mathieu
On Sun, Jan 07, 2024 at 08:50:11PM +0100, Mathieu Othacehe wrote: > > Hello, > > > guix build: error: gnu/packages/gnome.scm:3504:2: librsvg@2.56.4: build > > system `cargo' does not support cross builds > > That is no longer the case, there is however a new error: > > --8<---------------cut here---------------start------------->8--- > In guix/packages.scm: > 1618:16 19 (package->bag _ _ _ #:graft? _) > 1719:48 18 (thunk) > 1512:25 17 (inputs _) > In srfi/srfi-1.scm: > 586:29 16 (map1 (("coreutils" #<package coreutils@9.1 guix/b…>) …)) > 586:29 15 (map1 (("grep" #<package grep@3.8 gnu/packages/com…>) …)) > 586:29 14 (map1 (("xz" #<package xz@5.2.8 gnu/packages/comme…>) …)) > 586:29 13 (map1 (("locales" #<package glibc-utf8-locales@2.3…>) …)) > 586:29 12 (map1 (("bash" #<package bash-minimal@5.1.16 gnu/p…>) …)) > 586:17 11 (map1 (("gcc" #<package gcc@11.3.0 gnu/packages/co…>) …)) > In guix/packages.scm: > 1469:20 10 (rewrite ("gcc" #<package gcc@11.3.0 gnu/packages/com…>)) > In guix/memoization.scm: > 101:0 9 (_ #<hash-table 7f049b80cbc0 14/31> #<package gcc@11.3…> …) > In guix/packages.scm: > 1483:13 8 (_) > In guix/build-system/gnu.scm: > 158:33 7 (cut? _) > In gnu/packages/commencement.scm: > 3241:36 6 (arguments #<package gcc@11.3.0 gnu/packages/commenceme…>) > In gnu/packages/gcc.scm: > 748:34 5 (arguments #<package gcc@11.3.0 gnu/packages/gcc.scm:73…>) > 218:48 4 (arguments #<package gcc@4.8.5 gnu/packages/gcc.scm:398…>) > In gnu/packages/bootstrap.scm: > 338:11 3 (_) > In ice-9/boot-9.scm: > 1685:16 2 (raise-exception _ #:continuable? _) > 1685:16 1 (raise-exception _ #:continuable? _) > 1685:16 0 (raise-exception _ #:continuable? _) > > ice-9/boot-9.scm:1685:16: In procedure raise-exception: > dynamic linker name not known for this system "aarch64-linux-gnu" > --8<---------------cut here---------------end--------------->8--- > > preventing fwupd from cross-compiling. I'm not seeing that error, I'm getting json-glib failing to cross-compile. Is it possible you have some stale .go files? (guix platforms) changed recently.