From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 6DuvBLzQZWVHyAAAG6o9tA:P1 (envelope-from ) for ; Tue, 28 Nov 2023 12:36:28 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 6DuvBLzQZWVHyAAAG6o9tA (envelope-from ) for ; Tue, 28 Nov 2023 12:36:28 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E0A3963506 for ; Tue, 28 Nov 2023 12:36:27 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=foundationdevices.com header.s=google header.b=IaWmkY8t; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1701171387; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=48ybuF+pejPaQQOY0rT+yYZTxaW9LdHlnjSl3uKNoCU=; b=K5WHbhIp6krKoqm+oqKrraLYbFjaoSAoLHPo40lo57gXVIAKqr/xeDQLciDwju8V1AhfP+ mZif488WkKomvAgcvidveXoBysSgYO8q4Y2tD3HpK6QW3Ywl45gOSWMjYxhNrP+vK+wWf4 cP8+gbJYmyFnCzMJN0otfZXELtqbSDHn+W/Jv8ebVc4hRGoQ95PaX3UBsOMM9fIPpAG9mz FF/pVqIulNNfOc+EV5sAReMdhg2kUzdTnwTc7EO6P8qyAmGsOjir9oK7sTVsA71YuG+sbv Ueb0Xv51YOu5PknY7XVpde4N1UolFSaFHmqhqUT7ib2XK5WpvHWkWo5OrVRSRQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=foundationdevices.com header.s=google header.b=IaWmkY8t; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1701171387; a=rsa-sha256; cv=none; b=OfdN6/q8Ij4HRtdBoUOFKTLOTkwDg9l/8nF5DzBxdek+9CpAWwHJY9qdl+2VzrOqorlMyz s83RdzkB5srlQuRwOLJhE8cgHXxq/IOnZjLDJDf/IV8eKUHEPw13lulVTFTXf+OdmwSq4n mf5DdLb+PB/P0UEBnrZGdYnCI0yUgZ3AcnfBjwRYjNo53Eku+CXRzL1imcwdZoNUGnMHba 6FXkVyEOt0qKXeH4uCCArpuN7qdddQeNpVZvt0cvdu1HENlPn4ojBrDO1qDnzXm6Tvr3mt pl60uvaQGvxzipzkfkCIYpM3i+SIXUQ6jZZdbFr0GJOZuuKMneHosfNvkXKfQg== 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 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: 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 From: Jean-Pierre De Jesus DIAZ via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: E0A3963506 X-Spam-Score: -6.13 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -6.13 X-TUID: zUAeBOvFtz9B * 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")) '())))))))) -- 2.41.0