From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id AEdiBpF1mF+eIQAA0tVLHw (envelope-from ) for ; Tue, 27 Oct 2020 19:31:29 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id uOYOApF1mF9aDwAAB5/wlQ (envelope-from ) for ; Tue, 27 Oct 2020 19:31:29 +0000 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 A09EA940415 for ; Tue, 27 Oct 2020 19:31:28 +0000 (UTC) Received: from localhost ([::1]:33382 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXUgp-000770-Fi for larch@yhetil.org; Tue, 27 Oct 2020 15:31:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48876) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXUgT-0006mp-PB for guix-patches@gnu.org; Tue, 27 Oct 2020 15:31:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34386) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kXUgQ-0005EW-OP for guix-patches@gnu.org; Tue, 27 Oct 2020 15:31:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kXUgQ-0003PJ-LC for guix-patches@gnu.org; Tue, 27 Oct 2020 15:31:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#39918] [PATCH v3 2/2] gnu: avr-toolchain: Replace functions with package variables. Resent-From: Malte Frank Gerdes Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 27 Oct 2020 19:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39918 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 39918@debbugs.gnu.org Cc: Malte Frank Gerdes Received: via spool by 39918-submit@debbugs.gnu.org id=B39918.160382703413025 (code B ref 39918); Tue, 27 Oct 2020 19:31:02 +0000 Received: (at 39918) by debbugs.gnu.org; 27 Oct 2020 19:30:34 +0000 Received: from localhost ([127.0.0.1]:45924 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXUfy-0003Nu-5t for submit@debbugs.gnu.org; Tue, 27 Oct 2020 15:30:34 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:46867) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXUfs-0003NX-TA for 39918@debbugs.gnu.org; Tue, 27 Oct 2020 15:30:29 -0400 Received: by mail-ed1-f66.google.com with SMTP id t11so52290edj.13 for <39918@debbugs.gnu.org>; Tue, 27 Oct 2020 12:30:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=sNTUzjylihPf7o2vyshcoN2PFK7DJZyG6/QYaxRMtRs=; b=XixjFfleZTSwIOijhLLYvDfyrWa89kkl/i3q9KIE6vGpodlgvd64oLhl7fxtYwmowk NIn/m1L3svS8mMu68n1KWWE7xWB3SF2mRDYcMzlNsTMdNH6qj5VoKiro4AYBHVOQ1NPk 5QAoAqiSS+6TBjNyoPWhK7r9C2x9jKJv7bvfkcHsO+By71ZAGCTtUEec/6xOu6hOJRT3 yZBHwGLgrGiBqmmBpGrhtI4sCkPZumHMMGm86FDq2RxMfGzWKL0bX4QUxOKyOXZnO6Kt hQmPOmSFxgkHBaAYm7sch+70Kk4S+MtGK5tC8Y4W4HEYreF744u4RFrSTLlWJbuhdGKJ VV7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=sNTUzjylihPf7o2vyshcoN2PFK7DJZyG6/QYaxRMtRs=; b=BYCaiUKDKZoj1xa5qsSxDon2htQGpiS0DQrb99aBA8FY0WnpEoeASW5QqP/Y6n5n0o t6wJAkSqiJsVMjCVinQzdsw80o1fgKOz8qA1cS3Cy1wghDBlYp4t44VXEx1rzC654P4y onl5LP5NDXC9s63yK1+e6EhBdtaC2Q0M6e2U4u1Fh3QeYLdDbo33ZEtoi/x+aHFJRLiS YVPTByzSWNQCZE3PJRVXqMq56Rixr5yb66aWxXVdJVVWsTSrGahS4Y7RkAXAgGdZ3NAj cPJDizczjn4lJr+w0hxnTz3xLzG0egukaisnadwBLVTCe0qVtLHKOcw/hwAYPHjEDi1/ /hhQ== X-Gm-Message-State: AOAM530MNiXtsHdo63usKC6GCpGlziGT/tTKl7OdMbDQo6ojcoZ0+IQT 1f+hTmaKzrcAu20guWucIbeupzNPFQY= X-Google-Smtp-Source: ABdhPJxTzSDBXTldVt66PX6KfgEKRpuW1pgx378ejuX+ZAvlLkiOcwSPuQO91pBsj9H3SOW074WyTQ== X-Received: by 2002:aa7:d702:: with SMTP id t2mr3816726edq.196.1603827023014; Tue, 27 Oct 2020 12:30:23 -0700 (PDT) Received: from Morphium.intus (ip-84-118-73-55.unity-media.net. [84.118.73.55]) by smtp.gmail.com with ESMTPSA id n10sm1486697edo.55.2020.10.27.12.30.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Oct 2020 12:30:22 -0700 (PDT) From: Malte Frank Gerdes Date: Tue, 27 Oct 2020 20:30:19 +0100 Message-Id: <20201027193019.15927-2-malte.f.gerdes@gmail.com> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027193019.15927-1-malte.f.gerdes@gmail.com> References: <20201027193019.15927-1-malte.f.gerdes@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) 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" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=XixjFfle; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 4.09 X-TUID: gjCbeRakm1nV * gnu/packages/avr.scm (avr-gcc-7): Rename to avr-gcc. (avr-libc): Replace function with variable. (avr-toolchain): Replace function with variable. --- gnu/packages/avr.scm | 43 ++++++++++++++++++++----------------------- 1 file changed, 20 insertions(+), 23 deletions(-) diff --git a/gnu/packages/avr.scm b/gnu/packages/avr.scm index 573a5e089c..4ad4bb03ba 100644 --- a/gnu/packages/avr.scm +++ b/gnu/packages/avr.scm @@ -42,8 +42,8 @@ (inherit (cross-binutils "avr")) (name "avr-binutils"))) -(define-public avr-gcc-7 - (let ((xgcc (cross-gcc "avr" #:xgcc gcc-7 #:xbinutils avr-binutils))) +(define avr-gcc + (let ((xgcc (cross-gcc "avr" #:xgcc gcc #:xbinutils avr-binutils))) (package (inherit xgcc) (name "avr-gcc") @@ -95,10 +95,10 @@ (variable "CROSS_LIBRARY_PATH") (files '("avr/lib"))))) (native-inputs - `(("gcc" ,gcc-7) + `(("gcc" ,gcc) ,@(package-native-inputs xgcc)))))) -(define (avr-libc avr-gcc) +(define avr-libc (package (name "avr-libc") (version "2.0.0") @@ -123,30 +123,27 @@ for use with GCC on Atmel AVR microcontrollers.") (license (license:non-copyleft "http://www.nongnu.org/avr-libc/LICENSE.txt")))) -(define (avr-toolchain avr-gcc) +(define-public avr-toolchain ;; avr-libc checks the compiler version and passes "--enable-device-lib" for avr-gcc > 5.1.0. ;; It wouldn't install the library for atmega32u4 etc if we didn't use the corret avr-gcc. - (let ((avr-libc (avr-libc avr-gcc))) - (package - (name "avr-toolchain") - (version (package-version avr-gcc)) - (source #f) - (build-system trivial-build-system) - (arguments '(#:builder (begin (mkdir %output) #t))) - (propagated-inputs - `(("avrdude" ,avrdude) - ("binutils" ,avr-binutils) - ("gcc" ,avr-gcc) - ("libc" ,avr-libc))) - (synopsis "Complete GCC tool chain for AVR microcontroller development") - (description "This package provides a complete GCC tool chain for AVR + (package + (name "avr-toolchain") + (version (package-version avr-gcc)) + (source #f) + (build-system trivial-build-system) + (arguments '(#:builder (begin (mkdir %output) #t))) + (propagated-inputs + `(("avrdude" ,avrdude) + ("binutils" ,avr-binutils) + ("gcc" ,avr-gcc) + ("libc" ,avr-libc))) + (synopsis "Complete GCC tool chain for AVR microcontroller development") + (description "This package provides a complete GCC tool chain for AVR microcontroller development. This includes the GCC AVR cross compiler and avrdude for firmware flashing. The supported programming languages are C and C++.") - (home-page (package-home-page avr-libc)) - (license (package-license avr-gcc))))) - -(define-public avr-toolchain-7 (avr-toolchain avr-gcc-7)) + (home-page (package-home-page avr-libc)) + (license (package-license avr-gcc)))) (define-public microscheme (package -- 2.29.1