From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id cECVKD05HmUd3wAAG6o9tA:P1 (envelope-from ) for ; Thu, 05 Oct 2023 06:19:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id cECVKD05HmUd3wAAG6o9tA (envelope-from ) for ; Thu, 05 Oct 2023 06:19:09 +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 4AAB2379B5 for ; Thu, 5 Oct 2023 06:19:09 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=K2CScTMI; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1696479549; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: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=XyaPZI8axLf1WOlbd3oglAHsMLXNGfNO6UPmwWkj5a8=; b=KQqOJa7x5zLHDN5G017/gBLrdVDf/K2crOoAjGuU6RzQUaELHi+60IHvrFQtDGcnfK+P0n 7mUAzgdF7xKUYOON0Bfl5BXlPhJeQ6qqr6KZwk2McWLZr6Efp9sfETtl17DwyeTpP+blZx lUctarTNKkLnStmMNRnqBWHe2E5cZhwccxYbZiz2vBOJUjkdef/Pe7DN4Uhhe/f/0ji6Rq Uzvgin7wn2xcyP/7KsYTZ3KYS9BK52meU0Dhgmk0oN72rBHHThh3V6IhcaVeKzx5Qk+bGF l4gMS4lnhs5K2TXUUDfU9cJv/IpNL+YadzacI0EnYc5alfnlnxj55cr9wxEM4Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=K2CScTMI; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1696479549; a=rsa-sha256; cv=none; b=NAr9dGYi+GNG0+Pn18UZQWJJvOJE3mtqWBnztwr/dqzhU/MvwBOjBb+5nxK5f8awlEvKxV CCV3FATqh8GM1CfgP8vJnHP33HYcV5v9rzPc8aXs9t8DWk95HX/sit4LftvIJhn6lJjrcQ 849FC3L4pXmDThmP/a/2R0CwANfK7jqezh4SaNvXfwTe5JKAnIgu+b/SQLq1mKfUlOL3x6 AhqzoSWPtsffoHYbYruBUNXunUTJlBCkrDAeOhiuTajl6e3l+6ZbDLhrhmrMg/Dx8AvnBm /3+wLtnZg/IjSsaKIW0NW9QmJvjTEr/Xf519LSOIa65x0PYJb4M6NH/mjG8dZA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qoFpB-0004TW-7S; Thu, 05 Oct 2023 00:18:57 -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 1qoFp0-0004RP-6i for guix-patches@gnu.org; Thu, 05 Oct 2023 00:18:47 -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 1qoFoz-00043w-N1 for guix-patches@gnu.org; Thu, 05 Oct 2023 00:18:45 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qoFpG-000853-Hm for guix-patches@gnu.org; Thu, 05 Oct 2023 00:19:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66263] [PATCH 00/23] guix: Add avr as a platform. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 05 Oct 2023 04:19: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: patch To: Jean-Pierre De Jesus DIAZ Cc: 66263@debbugs.gnu.org, vagrant@debian.org, efraim@flashner.co.il Received: via spool by 66263-submit@debbugs.gnu.org id=B66263.169647948730970 (code B ref 66263); Thu, 05 Oct 2023 04:19:02 +0000 Received: (at 66263) by debbugs.gnu.org; 5 Oct 2023 04:18:07 +0000 Received: from localhost ([127.0.0.1]:45680 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoFoN-00083Q-Gj for submit@debbugs.gnu.org; Thu, 05 Oct 2023 00:18:07 -0400 Received: from mail-qk1-x734.google.com ([2607:f8b0:4864:20::734]:55563) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoFoK-00082v-QG for 66263@debbugs.gnu.org; Thu, 05 Oct 2023 00:18:05 -0400 Received: by mail-qk1-x734.google.com with SMTP id af79cd13be357-774105e8c37so34894585a.3 for <66263@debbugs.gnu.org>; Wed, 04 Oct 2023 21:17:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696479461; x=1697084261; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=XyaPZI8axLf1WOlbd3oglAHsMLXNGfNO6UPmwWkj5a8=; b=K2CScTMIJA8YEvZ5Fna3HRJV47U+ZxqK50ShOIlKo4NbNN2w3J0Dy3K9TcGVZc/CoD fgvVX8QPGNkEV4MYZD8AejgC4SHe1VtDHVIi4dOgaZ+XzxzWzyAfPW6yMMxQyszHBVK/ CClVjrv1+uRmiAaTubHqvLbXbFLpFGRii6cO7OIuYxV7sTT94k+G1lK60vHjkPH7nN9D cHJgUehKoa2wQf97sSau5Gxx67fB7b1PLoj6b+NKkVS+4k2ACAQbQdyEsZFA8ISwZxkS evG3GTeH4HUzagL0/QGd8GxCHJI7FgD9mBgDxggWFkTegxcPaVoDiDTQsKOuFCoIsa4T fJxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696479461; x=1697084261; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=XyaPZI8axLf1WOlbd3oglAHsMLXNGfNO6UPmwWkj5a8=; b=Buaf01WhhY4K6RwoKWzS4fv75Cx984ErMA/8bx/PAJhwQpq6jvyytYHJlI5eGx/luQ u0DcPY8mrD0N0DYSCJGvqePSwcERm+e71E+D91dWzYxdhokyBfChUUBTKrenqhph2utF k64v/30Y0SrDfB/LTdoxe9Ppqi3Y45OX/zq6Z25BNvXpYtOp0sxKe2CD05TiEB9iOUl6 2AzVz6neJkWn9+7roy5uCasOL45A89anmxAwrHSl31MTlTQNxVHLWMeNoJhF4C85LqSP xKznSra0Omi8Ton6W0K2tQS8k7RSgJP/gzk/He9AsMyqPWSbFmG57mO/m77g8XeuWiI9 AWtw== X-Gm-Message-State: AOJu0YwrRvAYpUJ2iic93gblyLwLqm4It1XyeHTQwBNaokrtfgu2rNyH Igs4Di/a7O6+qSQngn4iF3M= X-Google-Smtp-Source: AGHT+IGic/Sru5Vi8thc4A/aYOd+yGYccnEssys1iZJ3hZoXPo2El4G2WluI/AnEIDQdXyySHin3Vw== X-Received: by 2002:a05:620a:a46:b0:775:806d:5389 with SMTP id j6-20020a05620a0a4600b00775806d5389mr4100506qka.70.1696479461012; Wed, 04 Oct 2023 21:17:41 -0700 (PDT) Received: from hurd (dsl-141-24.b2b2c.ca. [66.158.141.24]) by smtp.gmail.com with ESMTPSA id i1-20020a37c201000000b007742c2ad7dfsm215383qkm.73.2023.10.04.21.17.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 21:17:40 -0700 (PDT) From: Maxim Cournoyer References: <20230929091627.7820-1-jean@foundationdevices.com> <20230929091627.7820-8-jean@foundationdevices.com> Date: Thu, 05 Oct 2023 00:17:39 -0400 In-Reply-To: <20230929091627.7820-8-jean@foundationdevices.com> (Jean-Pierre De Jesus DIAZ's message of "Fri, 29 Sep 2023 11:16:12 +0200") Message-ID: <87fs2p1z4s.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: , 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-Spam-Score: -5.09 X-Migadu-Scanner: mx2.migadu.com X-Migadu-Queue-Id: 4AAB2379B5 X-Spam-Score: -5.09 X-TUID: gon+pP9Wj7b+ Hello, Jean-Pierre De Jesus DIAZ writes: > * gnu/packages/avr.scm (make-avr-libc): New procedure. > > * gnu/packages/avr.scm (avr-libc): Use make-avr-libc procedure. > --- > gnu/packages/avr.scm | 19 +++++++++++++------ > 1 file changed, 13 insertions(+), 6 deletions(-) > > diff --git a/gnu/packages/avr.scm b/gnu/packages/avr.scm > index ccce686010..df1523274b 100644 > --- a/gnu/packages/avr.scm > +++ b/gnu/packages/avr.scm > @@ -34,7 +34,8 @@ (define-module (gnu packages avr) > #:use-module (gnu packages check) > #:use-module (gnu packages cross-base) > #:use-module (gnu packages flashing-tools) > - #:use-module (gnu packages gcc)) > + #:use-module (gnu packages gcc) > + #:export (make-avr-libc)) > > (define-public avr-binutils > (package > @@ -93,7 +94,9 @@ (define avr-gcc > `(("gcc" ,gcc) > ,@(package-native-inputs xgcc)))))) > > -(define avr-libc > +(define* (make-avr-libc #:key > + (xbinutils (cross-binutils "avr")) > + (xgcc (cross-gcc "avr"))) > (package > (name "avr-libc") [...] Procedures returning packages should be memoized, using 'memoize' from (guix memoization) here since you have keyword arguments. -- Thanks, Maxim