From patchwork Sat May 17 10:29:52 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Danny Milosavljevic X-Patchwork-Id: 42652 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id DBC8027BC4B; Sat, 17 May 2025 11:42:21 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, RCVD_IN_SBL_CSS,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1953727BC49 for ; Sat, 17 May 2025 11:42:21 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uGEzY-0002WH-OH; Sat, 17 May 2025 06:42:08 -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 1uGEzW-0002W0-Ir for guix-patches@gnu.org; Sat, 17 May 2025 06:42:06 -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 1uGEzV-0000Nc-Ho; Sat, 17 May 2025 06:42:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=3NPve8JtTtrOhIEeiLGrm2cF2iOjICnywfKoC72WOhA=; b=jjP8PzfwmRaadYhrT5QfDqrviIC0MtruhJt+Q4l2Qbs69+K1ElaBNUZz6mhZQRmcm+WnOUq3A/FVlHR7G8+O1pz4fuN7YpJAs0Cw+E4s1N/ku7A9dbm+ZoadcwQNm1+q9WKrlooV3zF3AMG4rsnriqd0g1moejQU9yzRPkpJYeEyzD4cp8M479fvsAcY3FqqgGx50OZRZCNExiYZEJTVuE3qIfdBnn4uJ1MY7IiLiw2uj8NVWX1bCEAN8ALEV4+z5VsJA7rPmHI6sw95NZsfKViMzymkaf29oM/IrqqjHN7oHk3cDnCGQMuU0DCCXFCK1oCOSrze3iEjQQiKqdnmSA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1uGEzS-0000B9-Ff; Sat, 17 May 2025 06:42:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#78470] [PATCH] gnu: Add gm2-toolchain. Resent-From: Danny Milosavljevic Original-Sender: "Debbugs-submit" Resent-CC: andreas@enge.fr, efraim@flashner.co.il, ekaitz@elenq.tech, janneke@gnu.org, ludo@gnu.org, z572@z572.online, guix-patches@gnu.org Resent-Date: Sat, 17 May 2025 10:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 78470 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 78470@debbugs.gnu.org Cc: Danny Milosavljevic , Andreas Enge , Efraim Flashner , Ekaitz Zarraga , Janneke Nieuwenhuizen , Ludovic =?utf-8?q?Court=C3=A8s?= , Zheng Junjie X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Andreas Enge , Efraim Flashner , Ekaitz Zarraga , Janneke Nieuwenhuizen , Ludovic =?utf-8?q?Court=C3=A8s?= , Zheng Junjie Received: via spool by submit@debbugs.gnu.org id=B.1747478521680 (code B ref -1); Sat, 17 May 2025 10:42:02 +0000 Received: (at submit) by debbugs.gnu.org; 17 May 2025 10:42:01 +0000 Received: from localhost ([127.0.0.1]:46351 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uGEzR-0000Ar-6K for submit@debbugs.gnu.org; Sat, 17 May 2025 06:42:01 -0400 Received: from lists.gnu.org ([2001:470:142::17]:39270) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uGEzO-0000AW-AS for submit@debbugs.gnu.org; Sat, 17 May 2025 06:41:59 -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 1uGEzI-0002V7-1t for guix-patches@gnu.org; Sat, 17 May 2025 06:41:52 -0400 Received: from silver.cherry.relay.mailchannels.net ([23.83.223.166]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uGEzG-0000IM-8s for guix-patches@gnu.org; Sat, 17 May 2025 06:41:51 -0400 X-Sender-Id: dreamhost|x-authsender|dannym@friendly-machines.com Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 462CE1C280A; Sat, 17 May 2025 10:41:47 +0000 (UTC) Received: from pdx1-sub0-mail-a235.dreamhost.com (100-112-52-184.trex-nlb.outbound.svc.cluster.local [100.112.52.184]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id AF9FD1C2C59; Sat, 17 May 2025 10:41:46 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1747478506; a=rsa-sha256; cv=none; b=Mh+5OZQcyRzaxLDGVc65d/gFoxbN7j16NAKB/G9xnqVpJz+BpGvuq4g5BibiBLBFTLwgB1 X1sw5/Uer6flpFBNxB6ODMMc8ZC99MaAxvo+XmS7G/bthRIO3Jj2Hn5OT00KlryRhTx9hB 3F74QpUHBYIFFKMg0hDI6l9FcjZa5YE5L35vwe+rEbmnDusPn9pGt/RWksV65gReQ4+rSP 7F6kF901C65GnTo+V7UDZKBVwaDg3ca82rkrnWokQPfshQYbSpHXLSIrbwRK4m8zCRpg1A QSfM0Eh3dVfciCqjch3jTutvK9NIQoXKdKkwKkk/SYWuSrlQBN2paIVOpP6umg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1747478506; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:dkim-signature; bh=3NPve8JtTtrOhIEeiLGrm2cF2iOjICnywfKoC72WOhA=; b=BFQ5D1G0tnGoCZdSxKUS2Z8bIu8LJ9rUpAe6vT2KdwqosNphCyx5LBAFamGJixp01OsyyF sTR8/Hci3RI5JoWoI727HObBlmt75gdMIam5VrxwjialXDkQmZtYj3Z/Otyeqc7kpaEN/a 4k+SHj/APxMBaukCuh4X51gWM2xjLgyCEMZAdE9VFcDyvv9oqgVwI9LUplXd9Szz+HpuFk 9IxgprkwymwKce47Fxs+GhrxszAV17WbYFKB7BNhPFUboQUIEUtudeyHYkq10nXTzq3s4O Lne7wwDR427kHLgkBmDM68NEu1Sv0Ryu/JFYIsAgx1fwRMzR8fxiMZZL/gHOWQ== ARC-Authentication-Results: i=1; rspamd-5b49d78d5-cc9z7; auth=pass smtp.auth=dreamhost smtp.mailfrom=dannym@friendly-machines.com X-Sender-Id: dreamhost|x-authsender|dannym@friendly-machines.com X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|dannym@friendly-machines.com X-MailChannels-Auth-Id: dreamhost X-Desert-Inform: 7ffc29a75a190509_1747478507099_1609977139 X-MC-Loop-Signature: 1747478507098:3616568541 X-MC-Ingress-Time: 1747478507098 Received: from pdx1-sub0-mail-a235.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.112.52.184 (trex/7.0.3); Sat, 17 May 2025 10:41:47 +0000 Received: from localhost (84-115-226-251.cable.dynamic.surfer.at [84.115.226.251]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: dannym@friendly-machines.com) by pdx1-sub0-mail-a235.dreamhost.com (Postfix) with ESMTPSA id 4b00qt1l9Vz1b; Sat, 17 May 2025 03:41:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=friendly-machines.com; s=dreamhost; t=1747478506; bh=3NPve8JtTtrOhIEeiLGrm2cF2iOjICnywfKoC72WOhA=; h=From:To:Cc:Subject:Date:Content-Transfer-Encoding; b=LdES4dYl6QhY7L3MsUpZRt4HJebfAxaaYWSqwYlc55nJJJs0/rFzN+fgCs6SlOWt0 5EYyqS4oJFXYQWY5h3KfBN82LRu0enkrMz10M/dep3qcD8MftrjDbhpLBY5+ZwTK2c nBhJteeIQQ7rJdL0CBQnYXVz/kYQtmniXVjm0pVHgs2gWz6R6+kesFg7OsEyOQsQpU ArO2hrTBxsu+7T6MkCqciYVAY9j2WiF9zVW5QsCnH6jw1mwBzi8E0w1ZkYWdCtLAhj m8SY0ckm3eDgxLIfgw1QxG4TFtktZwmNeJWLzx3sQVFmnUOgFjO9hBdXl2r7LzfqLL 6i2bHHWWuLNbA== From: Danny Milosavljevic Date: Sat, 17 May 2025 12:29:52 +0200 Message-ID: <67c8e92a6a0d136ad52e309f0829d99984ff1818.1747437605.git.dannym@friendly-machines.com> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 Received-SPF: pass client-ip=23.83.223.166; envelope-from=dannym@friendly-machines.com; helo=silver.cherry.relay.mailchannels.net X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_SBL_CSS=3.335, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/commencement.scm (gm2-toolchain): New variable. * gnu/packages/gcc.scm (gm2): New variable. Change-Id: I0f416b53497daeec60dcefc3916591ea8a152dae --- gnu/packages/commencement.scm | 7 +++++++ gnu/packages/gcc.scm | 12 ++++++++++++ 2 files changed, 19 insertions(+) base-commit: efac01f19b65d7d77a98bbfd57fe2073fb13064a diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm index 60ade637e1..24382d5437 100644 --- a/gnu/packages/commencement.scm +++ b/gnu/packages/commencement.scm @@ -3744,5 +3744,12 @@ (define-public gfortran-toolchain gfortran, as well as libc (headers and binaries, plus debugging symbols in the @code{debug} output), and binutils."))) +(define-public gm2-toolchain + (package (inherit (make-gcc-toolchain gm2)) + (synopsis "Complete GCC tool chain for Modula-2 development") + (description "This package provides a complete GCC tool chain for +Modula-2 development to be installed in user profiles. This includes +modula2, as well as libc (headers and binaries, plus debugging symbols +in the @code{debug} output), and binutils."))) ;;; commencement.scm ends here diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm index 2486448893..d1fb67cd72 100644 --- a/gnu/packages/gcc.scm +++ b/gnu/packages/gcc.scm @@ -48,6 +48,7 @@ (define-module (gnu packages gcc) #:use-module (gnu packages docbook) #:use-module (gnu packages graphviz) #:use-module (gnu packages elf) + #:use-module (gnu packages flex) #:use-module (gnu packages perl) #:use-module (guix packages) #:use-module (guix download) @@ -1247,6 +1248,17 @@ (define-public gdc (custom-gcc gcc "gdc" '("d") %generic-search-paths))) +(define-public gm2 + (hidden-package + (let ((base (custom-gcc gcc-14 + "gm2" '("m2") + %generic-search-paths))) + (package + (inherit base) + (native-inputs + `(("flex" ,flex) + ,@(package-native-inputs base))))))) + (define-public (make-libgccjit gcc) (package (inherit gcc)