From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 WItdHghyHWVOkwAAG6o9tA:P1 (envelope-from ) for ; Wed, 04 Oct 2023 16:09:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id WItdHghyHWVOkwAAG6o9tA (envelope-from ) for ; Wed, 04 Oct 2023 16:09:12 +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 27940654A5 for ; Wed, 4 Oct 2023 16:09:12 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=PUsea11b; 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1696428552; 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=v6hxy5KKCQ4+AwUPkXKFPFsZfDq1GJedbQe2IIaAHDI=; b=k1LnGFm8bej/Y8GCmKB/Fja7xI5kdNXbY17QVswy9kdU0+KK5jIM8H1OlDh1Yg+U/o6uGb BEB58/fd1Oiijpq/ZW4yDJeboIw+7ab4b/UUQkZFAqYCA/hvLyRG2UloEMx1iXEE+Dac1k 726arSbu2OKBU0TiE2YCimdK36qL8hOqW4mKZG09s2dFYF/M1VfK/6PHQeSh+RMrG1MS51 mfIym3BRTuxZkuvBLgRw3mlRf7deMp369bSEd24aAFjpCAse7KE1Z4dcr4qk4OFhxVVDQF cS56svA/dILSw51lLPolPxwdMWcZyZbLQnoCnzBIkTXFsCv1/S9RkKDFiMEnhw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1696428552; a=rsa-sha256; cv=none; b=LqCKBPbYu4RTojDkXCOGDxu2/Qc/dK4ebxhbNuEJMFh7rbbMXqj4q/GewWpAGUxa9jLWIq Hpj52EsjLyBSIeD5Fs30TdPWw5IfhAbEVFy1FMm2Es2SxHO36oyvWWTPvm7H1ZSzLbPrNu UhrW5DGiAd3rYhHhIopDIGSgx9EkHrApodY4oM4at5hGeC2O9TuynvtVN6yzHyUss8FwNq TmPyvheZ3kzEN8MZwr1uuSWqWRKUdUBP5UBcvSJ0LOQ5rim1fkcLL6kBlFaqp4c5YUWlPk EeLfI+Nf6gmckqXETwoY2EnnKRgYcCW4xx9ZlMvtW4KV3X14Z9VXD2Zmd08vUQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=PUsea11b; 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=none Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qo2YQ-0007KT-LX; Wed, 04 Oct 2023 10:08:46 -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 1qo2YO-0007K2-Un for guix-patches@gnu.org; Wed, 04 Oct 2023 10:08:44 -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 1qo2YO-00085P-Mu for guix-patches@gnu.org; Wed, 04 Oct 2023 10:08:44 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qo2Yg-0002Hv-EV for guix-patches@gnu.org; Wed, 04 Oct 2023 10:09:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66263] [PATCH 09/23] gnu: Add make-cross-gcc-toolchain. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 04 Oct 2023 14:09: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, maxim.cournoyer@gmail.com Received: via spool by 66263-submit@debbugs.gnu.org id=B66263.16964284998728 (code B ref 66263); Wed, 04 Oct 2023 14:09:02 +0000 Received: (at 66263) by debbugs.gnu.org; 4 Oct 2023 14:08:19 +0000 Received: from localhost ([127.0.0.1]:45080 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qo2Xy-0002Gh-QK for submit@debbugs.gnu.org; Wed, 04 Oct 2023 10:08:19 -0400 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:51243) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qo2Xw-0002GR-SD for 66263@debbugs.gnu.org; Wed, 04 Oct 2023 10:08:17 -0400 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-405361bb9f7so20336715e9.2 for <66263@debbugs.gnu.org>; Wed, 04 Oct 2023 07:07:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696428473; x=1697033273; darn=debbugs.gnu.org; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender:from:to :cc:subject:date:message-id:reply-to; bh=v6hxy5KKCQ4+AwUPkXKFPFsZfDq1GJedbQe2IIaAHDI=; b=PUsea11bHM7V6GjJ9xBHVA7aon8vilIEh+1sUUz0D2YF2ISoeigwQpt9yKdo05LkK3 P00+CcWS36MQYGKVAyXZO6ThtqAJVcp1iGbwPu1U7mWsr80HCNxkjNUvkcPq4QPAy+67 gsyE5fjxCaMQl2E9ZyP0ZbLRDdxwv1eHJAsPeWe4MrQMZUnP2agOlS7ck5aiia5/fru6 sVuxKuVEiewOSLv6v76baLi5p2iusaoixCD80OGTINJyztRt85tlvWvfYEkYUOPbrZQv EH/FlM3u3YYzIVl0vVYl/8ylDdxHLxbDxkdpAdyjo8rNW7QjbV85SqloKkoBG0YO/D7/ DDvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696428473; x=1697033273; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=v6hxy5KKCQ4+AwUPkXKFPFsZfDq1GJedbQe2IIaAHDI=; b=qTGOuYDpPonjkTVTn4N3w3xJN1I/OOWd6KetbwAIRu1K/xnThJJvR+sKci70ttLsgt qU/wVvUYT04lKBBhNtDt/VhmDFGnWUOnFczr8nkrVzSKd/zRCAbs2OqQKUyATxjz+nqZ iG7cYtAhvNfqsNfxUnr9vKTiyCZ4Dxomsm0zGitA+O8pa1w3sW348rwr61q1kLsM2Gj7 OZ+RM8WJ648422q2USChYCpp3vzweGWMAD+RYcawKjqXHS6JKm+Q15beXmwIPqJs+ZGW TzSgRXtQB8TZmW4hvqdO6CEXsvbWK5LZYSK+/bskT+HTH7NfEVv1DoN20zQE7Msl7Gbn 8gSg== X-Gm-Message-State: AOJu0YyjlECx3/IuV17JkYOSjwlTrHhyV0bgq6yhpEdUlY5dggm/yIHv ISxMSxB1FfMpr0uzcZ7NMjs= X-Google-Smtp-Source: AGHT+IF1Bjxhex6UNR+Grs0vW7mSQjo+3Xrds4XxURpWBdgHXU4Zs4mA8z2kS5T7rvnxksyypTQzHg== X-Received: by 2002:a1c:f70e:0:b0:403:787:e878 with SMTP id v14-20020a1cf70e000000b004030787e878mr2281524wmh.21.1696428472984; Wed, 04 Oct 2023 07:07:52 -0700 (PDT) Received: from localhost ([2a02:ed3:916:6300:c3db:b80e:a694:a54f]) by smtp.gmail.com with ESMTPSA id i12-20020a5d438c000000b0031fe0576460sm4130082wrq.11.2023.10.04.07.07.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 07:07:52 -0700 (PDT) Date: Wed, 4 Oct 2023 17:07:51 +0300 From: Efraim Flashner Message-ID: Mail-Followup-To: Efraim Flashner , Jean-Pierre De Jesus DIAZ , 66263@debbugs.gnu.org, vagrant@debian.org, maxim.cournoyer@gmail.com References: <20230929091627.7820-1-jean@foundationdevices.com> <20230929091627.7820-9-jean@foundationdevices.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Xzp7EYEk/Ln67qB9" Content-Disposition: inline In-Reply-To: <20230929091627.7820-9-jean@foundationdevices.com> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -2.35 X-Migadu-Spam-Score: -2.35 X-Migadu-Scanner: mx1.migadu.com X-Migadu-Queue-Id: 27940654A5 X-TUID: N7R3zXWkvSlc --Xzp7EYEk/Ln67qB9 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 29, 2023 at 11:16:13AM +0200, Jean-Pierre De Jesus DIAZ wrote: > * gnu/packages/cross-toolchain.scm (make-cross-gcc-toolchain): New > procedure. > --- > gnu/local.mk | 1 + > gnu/packages/cross-toolchain.scm | 58 ++++++++++++++++++++++++++++++++ > 2 files changed, 59 insertions(+) > create mode 100644 gnu/packages/cross-toolchain.scm >=20 > diff --git a/gnu/local.mk b/gnu/local.mk > index bfa816d717..bdd3af5080 100644 > --- a/gnu/local.mk > +++ b/gnu/local.mk > @@ -197,6 +197,7 @@ GNU_SYSTEM_MODULES =3D \ > %D%/packages/crates-graphics.scm \ > %D%/packages/crates-gtk.scm \ > %D%/packages/cross-base.scm \ > + %D%/packages/cross-toolchain.scm \ > %D%/packages/crypto.scm \ > %D%/packages/cryptsetup.scm \ > %D%/packages/cups.scm \ > diff --git a/gnu/packages/cross-toolchain.scm b/gnu/packages/cross-toolch= ain.scm > new file mode 100644 > index 0000000000..0062d043a0 > --- /dev/null > +++ b/gnu/packages/cross-toolchain.scm > @@ -0,0 +1,58 @@ > +;;; GNU Guix --- Functional package management for GNU > +;;; Copyright =C2=A9 2023 Foundation Devices, Inc. > +;;; > +;;; This file is part of GNU Guix. > +;;; > +;;; GNU Guix is free software; you can redistribute it and/or modify it > +;;; under the terms of the GNU General Public License as published by > +;;; the Free Software Foundation; either version 3 of the License, or (at > +;;; your option) any later version. > +;;; > +;;; GNU Guix is distributed in the hope that it will be useful, but > +;;; WITHOUT ANY WARRANTY; without even the implied warranty of > +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > +;;; GNU General Public License for more details. > +;;; > +;;; You should have received a copy of the GNU General Public License > +;;; along with GNU Guix. If not, see . > + > +(define-module (gnu packages cross-toolchain) > + #:use-module (gnu packages avr) > + #:use-module (gnu packages cross-base) > + #:use-module (guix build-system trivial) > + #:use-module (guix packages) > + #:use-module (srfi srfi-1) > + #:export (make-cross-gcc-toolchain)) > + > +(define* (make-cross-gcc-toolchain target > + #:key > + (libc (cross-libc target)) > + (xgcc (cross-gcc target #:libc libc)) > + (xbinutils (cross-binutils target))) > + (package > + (name (string-append (package-name xgcc) "-toolchain")) > + (version (package-version xgcc)) > + (source #f) > + (build-system trivial-build-system) > + (arguments > + '(#:modules ((guix build union)) > + #:builder (begin > + (use-modules (ice-9 match) > + (guix build union)) > + > + (match %build-inputs > + (((names . directory) ...) > + (union-build (assoc-ref %outputs "out") directory)))))) > + (inputs (list xgcc xbinutils libc)) > + (native-search-paths (package-native-search-paths xgcc)) > + (search-paths (package-search-paths xgcc)) > + (properties (alist-delete 'hidden? (package-properties xgcc))) > + (license (package-license xgcc)) Trivial thing but the break in the synopsis really bothers me. I'd put the string-append starting on the next line > + (synopsis (string-append "Complete GCC tool chain for C/C++ developm= ent (" > + target ")")) > + (description > + "This package provides a complete GCC cross tool chain for C/C++ > +development to be installed in user profiles. This includes GCC, as wel= l as > +libc (headers and binaries), and Binutils. GCC is the GNU Compiler > +Collection.") > + (home-page "https://gcc.gnu.org/"))) > --=20 > 2.34.1 >=20 >=20 >=20 --=20 Efraim Flashner =D7=A8=D7=A0=D7=A9=D7=9C=D7=A4 = =D7=9D=D7=99=D7=A8=D7=A4=D7=90 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --Xzp7EYEk/Ln67qB9 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmUdcbcACgkQQarn3Mo9 g1Eb6RAAvYic4r2dcOXj90Mktw7cMvMQoyrgT0CLfCcF4foHXY5IvGE2xqq/JOdQ WIhL4xnNXzFAhrjRcJNgQIVdC2FQhSCyIDEotgGSBIgp/EE273qN9OBPbp/JP/ta uDcN2RJCtVbzZUm4avldkUvVrRMDSVFrLe2OIrrmaUgNjhjUMeTkfu8eo1ryVoBy 5KyXrfwgxG3Td3A6igbxSqScJK3CAyAV/DXuvGE/J1RSpofhsbMCK3TvmTYqSlY6 6hV+i1ju/ikw8A3CRiA/BJjPODrM/5ltIEEbKegAMjZ73+B2irmqqEL3VtdmWmYM cWJwWMER+V3Aa0dfn67UWYI3LbRGhjzttfvfGPuSh9inJftEL12R9U8E1MjJJ6Ow 1I24YUc78kO1R5piwiFq/eJAiuponFxkuiWIg9LhoLbPJDsf1S4RrSsmKv+hZ3LS 0eTDDiGgR6WmPay1b9i5LMlywOb996saMPoodK8fVdsDxUiu5dva/hryq3scGIfG og+ndHsrgwvGeYS6lLmd/RnAvY0pExb3SdTBrpcy7l03TrMZ48jRLNM84ho6eWZL QkyvcDXV6dCcLly0pHHMnoO9XR9xFZvzEUC754LG1K29IQpKd4+prlDKAqaTbx9B EStlvIblZnOiFksu9B4uYn2+hQWfMJKVSVxlWsgCVGEXPa1/unI= =Ku8m -----END PGP SIGNATURE----- --Xzp7EYEk/Ln67qB9--