From patchwork Tue Nov 28 11:34:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Pierre De Jesus DIAZ X-Patchwork-Id: 56891 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 42D0427BBE9; Tue, 28 Nov 2023 11:36:29 +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.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED 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 E334927BBE2 for ; Tue, 28 Nov 2023 11:36:27 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r7wNj-0005ZM-2R; Tue, 28 Nov 2023 06:35:59 -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 ) id 1r7wNf-0005Y6-Rw for guix-patches@gnu.org; Tue, 28 Nov 2023 06:35:56 -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 ) id 1r7wNf-00080Q-Jf for guix-patches@gnu.org; Tue, 28 Nov 2023 06:35:55 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r7wNm-0003Hm-Do for guix-patches@gnu.org; Tue, 28 Nov 2023 06:36:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#66263] [PATCH v1 02/22] guix: gnu-build-system: Handle missing libc. References: <20230929091333.7623-1-jean@foundationdevices.com> In-Reply-To: <20230929091333.7623-1-jean@foundationdevices.com> Resent-From: Jean-Pierre De Jesus DIAZ Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 28 Nov 2023 11:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66263 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: moreinfo patch To: 66263@debbugs.gnu.org Cc: Jean-Pierre De Jesus DIAZ Received: via spool by 66263-submit@debbugs.gnu.org id=B66263.170117134512567 (code B ref 66263); Tue, 28 Nov 2023 11:36:02 +0000 Received: (at 66263) by debbugs.gnu.org; 28 Nov 2023 11:35:45 +0000 Received: from localhost ([127.0.0.1]:45577 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7wNU-0003Gb-3D for submit@debbugs.gnu.org; Tue, 28 Nov 2023 06:35:44 -0500 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]:58855) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7wNP-0003GA-89 for 66263@debbugs.gnu.org; Tue, 28 Nov 2023 06:35:39 -0500 Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-507be298d2aso7238317e87.1 for <66263@debbugs.gnu.org>; Tue, 28 Nov 2023 03:35:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1701171326; x=1701776126; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=48ybuF+pejPaQQOY0rT+yYZTxaW9LdHlnjSl3uKNoCU=; b=IaWmkY8tya8gvz6FflwzOnGJB2HKeZ5u/WYvfjRnMGRpjVPeuuLRCEUkb+p4oouAog C+nIJlkhnRxU5b6+8x2l0fFjRr/IPheXx55UD5en6hONxWy2SNzbBg+9hH3Jtre2zKug ojm00e5VgFkVUzv4nGCiExWqBq/gV7lAD+9Mz2p0qmU2d8/zHTUQCuNf3t5MROSNNk4z 6xGxXT0lFgD8hJENzYmAiLc3g2cljLnDhbLFIbJkLDTC39Ar4U7YDB/ujZiobERcaes+ Kz3gLyy//hucZZnqzegQwXDhBKYYeg3mZMTAmsU9Llp2CKFywsY6hR/HPn1Iou96Amoj h/Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701171326; x=1701776126; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=48ybuF+pejPaQQOY0rT+yYZTxaW9LdHlnjSl3uKNoCU=; b=Pzhc5mMV8IwcAD8AWjzyO19l0NSvdvhWRS9rfAxuPHr8FKqG+vXMARGXTEv8S6t7Jw uo9ejS5hhdoIsBsFdPNer0SimbvNz4TERCZiJPZaNL2TXnV6ufMpA8gq04d197x4tyAM 2KJIW3tceRRtzE3QmwNZGDeWguHD9lrY+2YXEQHuL3LPAHjlQn+vLSDzhB7YORk8Qlo6 VMxNreRqruJ21S5VZSbr/4bGjAe1/AdCVvMevu7IT5yze7xCkhKUSWAhQU9CcIN4Ja78 2WxTV5uLr6F6+EPRdtuJ20zQ/JjKnUrpPaGjZPK9+Q73SHeA5l1v0OcmLkQQAp6slza3 kDfQ== X-Gm-Message-State: AOJu0Yz1eTgBgRtVkpeQrPAuXDDHnGMx9+i4yPuZSsB4bH+9W4aC+965 SyTNAXVbnLkGnAFWHj3QueASVmB3IxCkCgjmy7g= X-Google-Smtp-Source: AGHT+IGv1e8UOhzvJhOdzEYPgRZHXHEdZrHRRIZLtqp9wd06VagHFh8ENHmi5vy81hyicKb9SiymIA== X-Received: by 2002:a05:6512:2513:b0:500:b2f6:592 with SMTP id be19-20020a056512251300b00500b2f60592mr8567644lfb.50.1701171326149; Tue, 28 Nov 2023 03:35:26 -0800 (PST) Received: from jeandudey.home ([89.131.29.87]) by smtp.gmail.com with ESMTPSA id f7-20020a05600c154700b0040b4cb14d40sm1848769wmg.19.2023.11.28.03.35.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 03:35:25 -0800 (PST) Date: Tue, 28 Nov 2023 12:34:45 +0100 Message-ID: <20231128113510.11214-2-jean@foundationdevices.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Jean-Pierre De Jesus DIAZ X-ACL-Warn: , Jean-Pierre De Jesus DIAZ via Guix-patches X-Patchwork-Original-From: Jean-Pierre De Jesus DIAZ via Guix-patches via From: Jean-Pierre De Jesus DIAZ 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 * guix/build-system/gnu.scm (standard-cross-packages): Handle the case when `cross-libc` returns #f. Change-Id: I85ee5456f10ff141d521a5f2d91267cd612c5616 --- guix/build-system/gnu.scm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/guix/build-system/gnu.scm b/guix/build-system/gnu.scm index c1aa187c42..cdbb547773 100644 --- a/guix/build-system/gnu.scm +++ b/guix/build-system/gnu.scm @@ -460,10 +460,13 @@ (define standard-cross-packages `(("cross-gcc" ,(gcc target #:xbinutils (binutils target) #:libc libc)) - ("cross-libc" ,libc) + ;; Some targets don't have a libc. (e.g. *-elf targets). + ,@(if libc + `(("cross-libc" ,libc)) + '()) ;; MinGW's libc doesn't have a "static" output. - ,@(if (member "static" (package-outputs libc)) + ,@(if (and libc (member "static" (package-outputs libc))) `(("cross-libc:static" ,libc "static")) '()))))))))