From unknown Fri Jun 13 11:23:09 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#35753] [PATCH] gnu: mes: Prepare for non-x86 architectures. Resent-From: Danny Milosavljevic Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 15 May 2019 15:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35753 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 35753@debbugs.gnu.org Cc: Danny Milosavljevic X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15579357408727 (code B ref -1); Wed, 15 May 2019 15:56:02 +0000 Received: (at submit) by debbugs.gnu.org; 15 May 2019 15:55:40 +0000 Received: from localhost ([127.0.0.1]:53225 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQwFo-0002Gh-01 for submit@debbugs.gnu.org; Wed, 15 May 2019 11:55:40 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37386) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQwFm-0002GV-Ey for submit@debbugs.gnu.org; Wed, 15 May 2019 11:55:39 -0400 Received: from lists.gnu.org ([209.51.188.17]:49951) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hQwFb-0002bn-RS for submit@debbugs.gnu.org; Wed, 15 May 2019 11:55:33 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51592) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQwFZ-0002wS-BH for guix-patches@gnu.org; Wed, 15 May 2019 11:55:27 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_05,RCVD_IN_DNSWL_LOW autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hQw2j-0005ea-23 for guix-patches@gnu.org; Wed, 15 May 2019 11:42:09 -0400 Received: from dd26836.kasserver.com ([85.13.145.193]:45754) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hQw2h-0005UV-Bw for guix-patches@gnu.org; Wed, 15 May 2019 11:42:08 -0400 Received: from localhost.localdomain (212095005169.public.telering.at [212.95.5.169]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 26E5E3360DD1; Wed, 15 May 2019 17:42:03 +0200 (CEST) From: Danny Milosavljevic Date: Wed, 15 May 2019 17:42:01 +0200 Message-Id: <20190515154201.31101-1-dannym@scratchpost.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Tags: patch Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 85.13.145.193 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/mes.scm (mes)[native-inputs]: Prepare for non-x86 architectures. --- gnu/packages/mes.scm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/gnu/packages/mes.scm b/gnu/packages/mes.scm index c45e267875..5c6b64150b 100644 --- a/gnu/packages/mes.scm +++ b/gnu/packages/mes.scm @@ -78,13 +78,16 @@ extensive examples, including parsers for the Javascr= ipt and C99 languages.") ("nyacc" ,nyacc))) (native-inputs `(("guile" ,guile-2.2) - ,@(if (not (string-prefix? "i686-linux" (or (%current-target-sy= stem) - (%current-system)))= ) + ,@(let ((target-system (or (%current-target-system) + (%current-system)))) + (cond + ((string-prefix? "x86_64-linux" target-system) ;; Use cross-compiler rather than #:system "i686-linux" t= o get ;; MesCC 64 bit .go files installed ready for use with Gu= ile. `(("i686-linux-binutils" ,(cross-binutils triplet)) - ("i686-linux-gcc" ,(cross-gcc triplet))) - '()) + ("i686-linux-gcc" ,(cross-gcc triplet)))) + (else + '()))) ("graphviz" ,graphviz) ("help2man" ,help2man) ("perl" ,perl) ; build-aux/gitlog-to-changelog From unknown Fri Jun 13 11:23:09 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#35753] [PATCH v2] gnu: mes: Prepare for non-x86 architectures. Resent-From: Danny Milosavljevic Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 15 May 2019 16:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35753 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 35753@debbugs.gnu.org Cc: Danny Milosavljevic Received: via spool by 35753-submit@debbugs.gnu.org id=B35753.155793922314105 (code B ref 35753); Wed, 15 May 2019 16:54:02 +0000 Received: (at 35753) by debbugs.gnu.org; 15 May 2019 16:53:43 +0000 Received: from localhost ([127.0.0.1]:53273 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQx9x-0003fQ-Ri for submit@debbugs.gnu.org; Wed, 15 May 2019 12:53:43 -0400 Received: from dd26836.kasserver.com ([85.13.145.193]:37156) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQx9v-0003fH-JJ for 35753@debbugs.gnu.org; Wed, 15 May 2019 12:53:40 -0400 Received: from localhost.localdomain (212095005169.public.telering.at [212.95.5.169]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 9CE4F33601B1; Wed, 15 May 2019 18:53:37 +0200 (CEST) From: Danny Milosavljevic Date: Wed, 15 May 2019 18:53:36 +0200 Message-Id: <20190515165336.7816-1-dannym@scratchpost.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190515154201.31101-1-dannym@scratchpost.org> References: <20190515154201.31101-1-dannym@scratchpost.org> MIME-Version: 1.0 Tags: patch Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/mes.scm (mes)[native-inputs]: Prepare for non-x86 architectures. --- gnu/packages/mes.scm | 74 +++++++++++++++++++++++--------------------- 1 file changed, 38 insertions(+), 36 deletions(-) diff --git a/gnu/packages/mes.scm b/gnu/packages/mes.scm index c45e267875..afb1e025b4 100644 --- a/gnu/packages/mes.scm +++ b/gnu/packages/mes.scm @@ -60,46 +60,48 @@ extensive examples, including parsers for the Javascript and C99 languages.") (license (list gpl3+ lgpl3+)))) (define-public mes - (let ((triplet "i686-unknown-linux-gnu")) - (package - (name "mes") - (version "0.19") - (source (origin - (method url-fetch) - (uri (string-append "mirror://gnu/mes/" - "mes-" version ".tar.gz")) - (sha256 - (base32 - "15h4yhaywdc0djpjlin2jz1kzahpqxfki0r0aav1qm9nxxmnp1l0")))) - (build-system gnu-build-system) - (supported-systems '("i686-linux" "x86_64-linux")) - (propagated-inputs - `(("mescc-tools" ,mescc-tools) - ("nyacc" ,nyacc))) - (native-inputs - `(("guile" ,guile-2.2) - ,@(if (not (string-prefix? "i686-linux" (or (%current-target-system) - (%current-system)))) - ;; Use cross-compiler rather than #:system "i686-linux" to get - ;; MesCC 64 bit .go files installed ready for use with Guile. - `(("i686-linux-binutils" ,(cross-binutils triplet)) - ("i686-linux-gcc" ,(cross-gcc triplet))) - '()) - ("graphviz" ,graphviz) - ("help2man" ,help2man) - ("perl" ,perl) ; build-aux/gitlog-to-changelog - ("texinfo" ,texinfo))) - (arguments - `(#:strip-binaries? #f)) ; binutil's strip b0rkes MesCC/M1/hex2 binaries - (synopsis "Scheme interpreter and C compiler for full source bootstrapping") - (description - "GNU Mes--Maxwell Equations of Software--brings the Reduced Binary Seed + (package + (name "mes") + (version "0.19") + (source (origin + (method url-fetch) + (uri (string-append "mirror://gnu/mes/" + "mes-" version ".tar.gz")) + (sha256 + (base32 + "15h4yhaywdc0djpjlin2jz1kzahpqxfki0r0aav1qm9nxxmnp1l0")))) + (build-system gnu-build-system) + (supported-systems '("i686-linux" "x86_64-linux")) + (propagated-inputs + `(("mescc-tools" ,mescc-tools) + ("nyacc" ,nyacc))) + (native-inputs + `(("guile" ,guile-2.2) + ,@(let ((target-system (or (%current-target-system) + (%current-system)))) + (cond + ((string-prefix? "x86_64-linux" target-system) + ;; Use cross-compiler rather than #:system "i686-linux" to get + ;; MesCC 64 bit .go files installed ready for use with Guile. + `(("i686-linux-binutils" ,(cross-binutils "i686-unknown-linux-gnu")) + ("i686-linux-gcc" ,(cross-gcc "i686-unknown-linux-gnu")))) + (else + '()))) + ("graphviz" ,graphviz) + ("help2man" ,help2man) + ("perl" ,perl) ; build-aux/gitlog-to-changelog + ("texinfo" ,texinfo))) + (arguments + `(#:strip-binaries? #f)) ; binutil's strip b0rkes MesCC/M1/hex2 binaries + (synopsis "Scheme interpreter and C compiler for full source bootstrapping") + (description + "GNU Mes--Maxwell Equations of Software--brings the Reduced Binary Seed bootstrap to Guix and aims to help create full source bootstrapping for GNU/Linux distributions. It consists of a mutual self-hosting Scheme interpreter in C and a Nyacc-based C compiler in Scheme and is compatible with Guile.") - (home-page "https://gnu.org/software/mes") - (license gpl3+)))) + (home-page "https://gnu.org/software/mes") + (license gpl3+))) (define-public mescc-tools (package From unknown Fri Jun 13 11:23:09 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#35753] [PATCH v2] gnu: mes: Prepare for non-x86 architectures. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 21 May 2019 13:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35753 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Danny Milosavljevic Cc: 35753@debbugs.gnu.org Received: via spool by 35753-submit@debbugs.gnu.org id=B35753.155844680215544 (code B ref 35753); Tue, 21 May 2019 13:54:02 +0000 Received: (at 35753) by debbugs.gnu.org; 21 May 2019 13:53:22 +0000 Received: from localhost ([127.0.0.1]:39051 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hT5Ck-00042d-Io for submit@debbugs.gnu.org; Tue, 21 May 2019 09:53:22 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47807) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hT5Cj-00042S-Cl for 35753@debbugs.gnu.org; Tue, 21 May 2019 09:53:22 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46199) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hT5Cd-0005In-R9; Tue, 21 May 2019 09:53:15 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=40138 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hT5Cd-0001sM-1X; Tue, 21 May 2019 09:53:15 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20190515154201.31101-1-dannym@scratchpost.org> <20190515165336.7816-1-dannym@scratchpost.org> Date: Tue, 21 May 2019 15:53:12 +0200 In-Reply-To: <20190515165336.7816-1-dannym@scratchpost.org> (Danny Milosavljevic's message of "Wed, 15 May 2019 18:53:36 +0200") Message-ID: <874l5n3odz.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Danny, Danny Milosavljevic skribis: > * gnu/packages/mes.scm (mes)[native-inputs]: Prepare for non-x86 > architectures. Please describe the change in terms of what=E2=80=99s added/remove from =E2=80=98native-inputs=E2=80=99. > + (native-inputs > + `(("guile" ,guile-2.2) > + ,@(let ((target-system (or (%current-target-system) > + (%current-system)))) > + (cond > + ((string-prefix? "x86_64-linux" target-system) > + ;; Use cross-compiler rather than #:system "i686-linux" to = get > + ;; MesCC 64 bit .go files installed ready for use with Guil= e. > + `(("i686-linux-binutils" ,(cross-binutils "i686-unknown-lin= ux-gnu")) > + ("i686-linux-gcc" ,(cross-gcc "i686-unknown-linux-gnu")))) > + (else > + '()))) LGTM, thanks! Looking forward to Mes on ARM! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue May 21 16:31:49 2019 Received: (at control) by debbugs.gnu.org; 21 May 2019 20:31:49 +0000 Received: from localhost ([127.0.0.1]:41090 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hTBQK-0001wM-UP for submit@debbugs.gnu.org; Tue, 21 May 2019 16:31:49 -0400 Received: from dd26836.kasserver.com ([85.13.145.193]:38660) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hTBQI-0001wB-JO for control@debbugs.gnu.org; Tue, 21 May 2019 16:31:47 -0400 Received: from localhost (77.117.230.94.wireless.dyn.drei.com [77.117.230.94]) by dd26836.kasserver.com (Postfix) with ESMTPSA id AF2FF3361565 for ; Tue, 21 May 2019 22:31:44 +0200 (CEST) Date: Tue, 21 May 2019 22:31:36 +0200 From: Danny Milosavljevic To: Message-ID: <20190521223136.075ec9bb@scratchpost.org> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/imdnXsQ3DyNvXcA9wY=Ytg9"; protocol="application/pgp-signature" X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: close 35753 Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [85.13.145.193 listed in list.dnswl.org] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject 0.0 TVD_SPACE_RATIO No description available. X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) --Sig_/imdnXsQ3DyNvXcA9wY=Ytg9 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable close 35753 --Sig_/imdnXsQ3DyNvXcA9wY=Ytg9 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlzkYCgACgkQ5xo1VCww uqVI2gf/RbRdCRz+EP9agoBpeO6UdclbGwTk2d0QyEi0wahCrjjukqb+B6ZBGbWf mUDUaeq8kTm0ffKtr0W/Iw+cxqg7MBaqVwPOAxsYTiqmDCwFDgMKf/Nr6GmbPztA I59RmGxqgSoIgRC9O83IzZIRsbi+mq87t5j8j7U3JSckmFvH/7QAt6woljT+eGoR 9SWAW1vvfFC38w+X6+kqvdvQNcxFWGa/OMaC880DaMEBp4N20WTcp98dCg8KlCEU /Q+o+ywvwg5V6EfhdLatvwm0dY4f+6Kh17Wl4ftURv5VVNYOiuE7Cy7pjYgQQlGL x2g5dlXKlzZUzdhGGPPQSJgAldt9lQ== =eRiw -----END PGP SIGNATURE----- --Sig_/imdnXsQ3DyNvXcA9wY=Ytg9--