From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id cLApKVyWFmUJYAAAauVa8A:P1 (envelope-from ) for ; Fri, 29 Sep 2023 11:18:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cLApKVyWFmUJYAAAauVa8A (envelope-from ) for ; Fri, 29 Sep 2023 11:18:20 +0200 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 8895D5DE23 for ; Fri, 29 Sep 2023 11:18:20 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=foundationdevices.com header.s=google header.b=EaosmqFl; 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=1695979100; 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=FCV+UtGUIkfq3vrLJDUKGfi83XI3U1/XET70FM9B/kw=; b=CHnrJCyYwFAlvPT6PmwStyu8tWCGSrOb6huwHpRdU+1Q/vwewSvBYzbTNNUbTBCPJnWPU1 RRD5B+yMRHPSUm2ebila+DEhmvjNUaptLPhMw57ApDkNPooQA3L42YsyiDYjStcWigOVjK hTH4n1XGUEW8J1XSJvpI0qRUxyuyWaNV/RqVRWC+cHPms+cLn2qW1eo3jCWIUePte7avg9 ax97WTv599i8XAkwhOrOp4Q6mlMt6sq9aJOowGdeo9Wzlw9NkwiLS62aBWdDkHmDf3AnV2 ZnYfkf7ho+PM2rflPKUUct7rWNukw26FhzY2P4amqSCWZvHNpQI7s4HJpuDC8w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1695979100; a=rsa-sha256; cv=none; b=o5FOG3eOjgiolSjX4rIUf8cKAeU3v9U3uIcjKpAzZo2bJbEZdJw3VVLxc59JTNnm1Obhew kluVtWyhkDFI5XVt6Qcw6YEhoJtxTU4JKxmF6JkpdSQW1EbkcpnQD/M15YH3d2tmIsz6gl Ewy1DwfCVnBJZH60XBmcn5eZa5eTxB3YizYTNWIjhbmI19qdJnUZaDVGr9Al3adj7XAF5P T+keZcqTGu5LcEWPPRA42BlwnODHXZAAxcReWpEcoDHXVk+PippQ1YvnPT9eTNZARtT7qw VxqpqQRZfXdmmbcqa0qyMLyhjyEH1grVmkVWT/j6/IpU7wsu8pva9GCJT3i5XA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=foundationdevices.com header.s=google header.b=EaosmqFl; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qm9dR-0005bk-SP; Fri, 29 Sep 2023 05:18:10 -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 ) id 1qm9dG-0005Ug-U1 for guix-patches@gnu.org; Fri, 29 Sep 2023 05:18:00 -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 ) id 1qm9d9-0003uX-CM for guix-patches@gnu.org; Fri, 29 Sep 2023 05:17:53 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qm9dM-0004ly-U4; Fri, 29 Sep 2023 05:18:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66263] [PATCH 02/23] guix: gnu: Handle platforms without libc. Resent-From: Jean-Pierre De Jesus DIAZ Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, vagrant@debian.org, maxim.cournoyer@gmail.com, guix-patches@gnu.org Resent-Date: Fri, 29 Sep 2023 09:18:04 +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: patch To: 66263@debbugs.gnu.org Cc: Jean-Pierre De Jesus DIAZ , efraim@flashner.co.il, vagrant@debian.org, maxim.cournoyer@gmail.com X-Debbugs-Original-Xcc: efraim@flashner.co.il, vagrant@debian.org, maxim.cournoyer@gmail.com Received: via spool by 66263-submit@debbugs.gnu.org id=B66263.169597904818116 (code B ref 66263); Fri, 29 Sep 2023 09:18:04 +0000 Received: (at 66263) by debbugs.gnu.org; 29 Sep 2023 09:17:28 +0000 Received: from localhost ([127.0.0.1]:55197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qm9cm-0004i1-97 for submit@debbugs.gnu.org; Fri, 29 Sep 2023 05:17:28 -0400 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:57848) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qm9cI-0004dk-0r for 66263@debbugs.gnu.org; Fri, 29 Sep 2023 05:17:10 -0400 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-40535597f01so140502085e9.3 for <66263@debbugs.gnu.org>; Fri, 29 Sep 2023 02:16:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1695978995; x=1696583795; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=FCV+UtGUIkfq3vrLJDUKGfi83XI3U1/XET70FM9B/kw=; b=EaosmqFlA4+NVlM3BIbEEgKZwbT4DLGxPaGGWBG4jaLbN9DH7HhSaHNDUNvZW7VHTg yKqUeU9UBD+GrKb8pVDXIC8N5y4s2/MrAtMMmm98xDtJy4SotY7KY05wqEjlMbgVD9v2 LzyKN1AbppLwmsdX/B7S2w8iHIBYcVQ8VKJ6k2lWCfi/LP+rGgGU9kLyOdvoge+NDyqK BwqUwLwhualAG7CVPpBoK7mwop4XN4eqSCANjYSlrsKpts5OVmjBOIWqfa6hAeOLf/DG 9NXhEz+iagRHx2C6QQ9cuw3asS7CPmP+INRNQQ443mUUqFZ3hkSBIV+jSY8xdedsmNi8 E1ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695978995; x=1696583795; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FCV+UtGUIkfq3vrLJDUKGfi83XI3U1/XET70FM9B/kw=; b=Spd/8NnSvEQoD/ZjEmTFhyQ/8R8co98Z3Zc+bdEapvfQYfuybOjyub9C6bEJbJHo2F hB9UppFH18ifuK1fSz2Avj3C/spdIfHD3ZrplCthKawx1y/V6w+d6ef0zm51IXFkbGQt 9okuloGV1oPH2aI1JiwoPp3P78SDLijjVkoN2RUTEYbV+HDQjXP0FrUFUgHrSvU3Wg0L Z1AZbwURpeuT29vOABRlLH27kNHB9I8bLB0W/MuzSi+203qVSLRE3v1xVrTEYFY19mz7 3ikZhNDJvQ5KL1qefr1vTgDjtom0XZ1g4RkSVnJZ55xBnVeyV55uG2eCxrQHKh1xkfCI YAbA== X-Gm-Message-State: AOJu0YyUVQTiAFwqr5cjZMGcY5rmwiV7E6kW2RndFAlfzMo/vKnZCYNK G2dxqdMkNl397wGjqglVrjKIx76KgjVdey9mwwnJFQ== X-Google-Smtp-Source: AGHT+IHuDnfzuPAsOC8wA0qGCZwKHP6BtyMhLCfSSgbpWcQCwcabN8Ze84MFCCoqafJ+g1IPGdjCVQ== X-Received: by 2002:a05:600c:204:b0:3fe:fc0f:52e2 with SMTP id 4-20020a05600c020400b003fefc0f52e2mr3467862wmi.37.1695978995086; Fri, 29 Sep 2023 02:16:35 -0700 (PDT) Received: from omen15.home ([89.131.29.87]) by smtp.gmail.com with ESMTPSA id k15-20020a7bc40f000000b004013797efb6sm1020933wmi.9.2023.09.29.02.16.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 02:16:34 -0700 (PDT) Date: Fri, 29 Sep 2023 11:16:06 +0200 Message-Id: <20230929091627.7820-2-jean@foundationdevices.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230929091627.7820-1-jean@foundationdevices.com> References: <20230929091627.7820-1-jean@foundationdevices.com> 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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -4.76 X-Migadu-Spam-Score: -4.76 X-Migadu-Scanner: mx1.migadu.com X-Migadu-Queue-Id: 8895D5DE23 X-TUID: SODs7BLWMXE5 * guix/build-system/gnu.scm (standard-cross-packages): Do not add cross-libc as an input if the system doesn't support a libc. --- guix/build-system/gnu.scm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/guix/build-system/gnu.scm b/guix/build-system/gnu.scm index c1aa187c42..03a742f8b9 100644 --- a/guix/build-system/gnu.scm +++ b/guix/build-system/gnu.scm @@ -460,11 +460,15 @@ (define standard-cross-packages `(("cross-gcc" ,(gcc target #:xbinutils (binutils target) #:libc libc)) - ("cross-libc" ,libc) - ;; MinGW's libc doesn't have a "static" output. - ,@(if (member "static" (package-outputs libc)) - `(("cross-libc:static" ,libc "static")) + ;; Some targets don't have a libc. + ,@(if libc + `(("cross-libc" ,libc) + + ;; MinGW's libc doesn't have a "static" output. + ,@(if (member "static" (package-outputs libc)) + `(("cross-libc:static" ,libc "static")) + '())) '())))))))) (define* (gnu-cross-build name -- 2.34.1